PageRenderTime 328ms CodeModel.GetById 40ms RepoModel.GetById 1ms app.codeStats 2ms

/gcc-4.5/libgfortran/configure

https://bitbucket.org/pizzafactory/blackfin-toolchain
Shell | 16665 lines | 15629 code | 544 blank | 492 comment | 319 complexity | 383e0dc6a9c043df8542fd70ed506dec MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='GNU Fortran Runtime Library'
  509. PACKAGE_TARNAME='libgfortran'
  510. PACKAGE_VERSION='0.3'
  511. PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. IEEE_FLAGS
  554. FPU_HOST_HEADER
  555. extra_ldflags_libgfortran
  556. ac_ct_FC
  557. FCFLAGS
  558. FC
  559. enable_static
  560. enable_shared
  561. CPP
  562. OTOOL64
  563. OTOOL
  564. LIPO
  565. NMEDIT
  566. DSYMUTIL
  567. OBJDUMP
  568. LN_S
  569. NM
  570. ac_ct_DUMPBIN
  571. DUMPBIN
  572. LD
  573. FGREP
  574. EGREP
  575. GREP
  576. SED
  577. LIBTOOL
  578. RANLIB
  579. AR
  580. AS
  581. SECTION_FLAGS
  582. LIBGFOR_USE_SYMVER_FALSE
  583. LIBGFOR_USE_SYMVER_TRUE
  584. AM_CFLAGS
  585. AM_FCFLAGS
  586. am__fastdepCC_FALSE
  587. am__fastdepCC_TRUE
  588. CCDEPMODE
  589. AMDEPBACKSLASH
  590. AMDEP_FALSE
  591. AMDEP_TRUE
  592. am__quote
  593. am__include
  594. DEPDIR
  595. OBJEXT
  596. EXEEXT
  597. ac_ct_CC
  598. CPPFLAGS
  599. LDFLAGS
  600. CFLAGS
  601. CC
  602. toolexeclibdir
  603. toolexecdir
  604. multi_basedir
  605. MAINT
  606. MAINTAINER_MODE_FALSE
  607. MAINTAINER_MODE_TRUE
  608. am__untar
  609. am__tar
  610. AMTAR
  611. am__leading_dot
  612. SET_MAKE
  613. AWK
  614. mkdir_p
  615. MKDIR_P
  616. INSTALL_STRIP_PROGRAM
  617. STRIP
  618. install_sh
  619. MAKEINFO
  620. AUTOHEADER
  621. AUTOMAKE
  622. AUTOCONF
  623. ACLOCAL
  624. VERSION
  625. PACKAGE
  626. CYGPATH_W
  627. am__isrc
  628. INSTALL_DATA
  629. INSTALL_SCRIPT
  630. INSTALL_PROGRAM
  631. target_os
  632. target_vendor
  633. target_cpu
  634. target
  635. host_os
  636. host_vendor
  637. host_cpu
  638. host
  639. onestep
  640. onestep_FALSE
  641. onestep_TRUE
  642. target_subdir
  643. host_subdir
  644. build_subdir
  645. build_libsubdir
  646. build_os
  647. build_vendor
  648. build_cpu
  649. build
  650. target_alias
  651. host_alias
  652. build_alias
  653. LIBS
  654. ECHO_T
  655. ECHO_N
  656. ECHO_C
  657. DEFS
  658. mandir
  659. localedir
  660. libdir
  661. psdir
  662. pdfdir
  663. dvidir
  664. htmldir
  665. infodir
  666. docdir
  667. oldincludedir
  668. includedir
  669. localstatedir
  670. sharedstatedir
  671. sysconfdir
  672. datadir
  673. datarootdir
  674. libexecdir
  675. sbindir
  676. bindir
  677. program_transform_name
  678. prefix
  679. exec_prefix
  680. PACKAGE_URL
  681. PACKAGE_BUGREPORT
  682. PACKAGE_STRING
  683. PACKAGE_VERSION
  684. PACKAGE_TARNAME
  685. PACKAGE_NAME
  686. PATH_SEPARATOR
  687. SHELL'
  688. ac_subst_files=''
  689. ac_user_opts='
  690. enable_option_checking
  691. with_build_libsubdir
  692. enable_version_specific_runtime_libs
  693. enable_intermodule
  694. enable_symvers
  695. enable_maintainer_mode
  696. enable_multilib
  697. enable_dependency_tracking
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. enable_libtool_lock
  704. enable_largefile
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CPP
  710. CPPFLAGS
  711. FC
  712. FCFLAGS
  713. LDFLAGS
  714. LIBS'
  715. # Initialize some variables set by options.
  716. ac_init_help=
  717. ac_init_version=false
  718. ac_unrecognized_opts=
  719. ac_unrecognized_sep=
  720. # The variables have the same names as the options, with
  721. # dashes changed to underlines.
  722. cache_file=/dev/null
  723. exec_prefix=NONE
  724. no_create=
  725. no_recursion=
  726. prefix=NONE
  727. program_prefix=NONE
  728. program_suffix=NONE
  729. program_transform_name=s,x,x,
  730. silent=
  731. site=
  732. srcdir=
  733. verbose=
  734. x_includes=NONE
  735. x_libraries=NONE
  736. # Installation directory options.
  737. # These are left unexpanded so users can "make install exec_prefix=/foo"
  738. # and all the variables that are supposed to be based on exec_prefix
  739. # by default will actually change.
  740. # Use braces instead of parens because sh, perl, etc. also accept them.
  741. # (The list follows the same order as the GNU Coding Standards.)
  742. bindir='${exec_prefix}/bin'
  743. sbindir='${exec_prefix}/sbin'
  744. libexecdir='${exec_prefix}/libexec'
  745. datarootdir='${prefix}/share'
  746. datadir='${datarootdir}'
  747. sysconfdir='${prefix}/etc'
  748. sharedstatedir='${prefix}/com'
  749. localstatedir='${prefix}/var'
  750. includedir='${prefix}/include'
  751. oldincludedir='/usr/include'
  752. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  753. infodir='${datarootdir}/info'
  754. htmldir='${docdir}'
  755. dvidir='${docdir}'
  756. pdfdir='${docdir}'
  757. psdir='${docdir}'
  758. libdir='${exec_prefix}/lib'
  759. localedir='${datarootdir}/locale'
  760. mandir='${datarootdir}/man'
  761. ac_prev=
  762. ac_dashdash=
  763. for ac_option
  764. do
  765. # If the previous option needs an argument, assign it.
  766. if test -n "$ac_prev"; then
  767. eval $ac_prev=\$ac_option
  768. ac_prev=
  769. continue
  770. fi
  771. case $ac_option in
  772. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  773. *) ac_optarg=yes ;;
  774. esac
  775. # Accept the important Cygnus configure options, so we can diagnose typos.
  776. case $ac_dashdash$ac_option in
  777. --)
  778. ac_dashdash=yes ;;
  779. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  780. ac_prev=bindir ;;
  781. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  782. bindir=$ac_optarg ;;
  783. -build | --build | --buil | --bui | --bu)
  784. ac_prev=build_alias ;;
  785. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  786. build_alias=$ac_optarg ;;
  787. -cache-file | --cache-file | --cache-fil | --cache-fi \
  788. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  789. ac_prev=cache_file ;;
  790. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  791. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  792. cache_file=$ac_optarg ;;
  793. --config-cache | -C)
  794. cache_file=config.cache ;;
  795. -datadir | --datadir | --datadi | --datad)
  796. ac_prev=datadir ;;
  797. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  798. datadir=$ac_optarg ;;
  799. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  800. | --dataroo | --dataro | --datar)
  801. ac_prev=datarootdir ;;
  802. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  803. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  804. datarootdir=$ac_optarg ;;
  805. -disable-* | --disable-*)
  806. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  807. # Reject names that are not valid shell variable names.
  808. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  809. as_fn_error "invalid feature name: $ac_useropt"
  810. ac_useropt_orig=$ac_useropt
  811. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  812. case $ac_user_opts in
  813. *"
  814. "enable_$ac_useropt"
  815. "*) ;;
  816. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  817. ac_unrecognized_sep=', ';;
  818. esac
  819. eval enable_$ac_useropt=no ;;
  820. -docdir | --docdir | --docdi | --doc | --do)
  821. ac_prev=docdir ;;
  822. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  823. docdir=$ac_optarg ;;
  824. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  825. ac_prev=dvidir ;;
  826. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  827. dvidir=$ac_optarg ;;
  828. -enable-* | --enable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=\$ac_optarg ;;
  843. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  844. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  845. | --exec | --exe | --ex)
  846. ac_prev=exec_prefix ;;
  847. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  848. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  849. | --exec=* | --exe=* | --ex=*)
  850. exec_prefix=$ac_optarg ;;
  851. -gas | --gas | --ga | --g)
  852. # Obsolete; use --with-gas.
  853. with_gas=yes ;;
  854. -help | --help | --hel | --he | -h)
  855. ac_init_help=long ;;
  856. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  857. ac_init_help=recursive ;;
  858. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  859. ac_init_help=short ;;
  860. -host | --host | --hos | --ho)
  861. ac_prev=host_alias ;;
  862. -host=* | --host=* | --hos=* | --ho=*)
  863. host_alias=$ac_optarg ;;
  864. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  865. ac_prev=htmldir ;;
  866. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  867. | --ht=*)
  868. htmldir=$ac_optarg ;;
  869. -includedir | --includedir | --includedi | --included | --include \
  870. | --includ | --inclu | --incl | --inc)
  871. ac_prev=includedir ;;
  872. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  873. | --includ=* | --inclu=* | --incl=* | --inc=*)
  874. includedir=$ac_optarg ;;
  875. -infodir | --infodir | --infodi | --infod | --info | --inf)
  876. ac_prev=infodir ;;
  877. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  878. infodir=$ac_optarg ;;
  879. -libdir | --libdir | --libdi | --libd)
  880. ac_prev=libdir ;;
  881. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  882. libdir=$ac_optarg ;;
  883. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  884. | --libexe | --libex | --libe)
  885. ac_prev=libexecdir ;;
  886. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  887. | --libexe=* | --libex=* | --libe=*)
  888. libexecdir=$ac_optarg ;;
  889. -localedir | --localedir | --localedi | --localed | --locale)
  890. ac_prev=localedir ;;
  891. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  892. localedir=$ac_optarg ;;
  893. -localstatedir | --localstatedir | --localstatedi | --localstated \
  894. | --localstate | --localstat | --localsta | --localst | --locals)
  895. ac_prev=localstatedir ;;
  896. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  897. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  898. localstatedir=$ac_optarg ;;
  899. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  900. ac_prev=mandir ;;
  901. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  902. mandir=$ac_optarg ;;
  903. -nfp | --nfp | --nf)
  904. # Obsolete; use --without-fp.
  905. with_fp=no ;;
  906. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  907. | --no-cr | --no-c | -n)
  908. no_create=yes ;;
  909. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  910. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  911. no_recursion=yes ;;
  912. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  913. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  914. | --oldin | --oldi | --old | --ol | --o)
  915. ac_prev=oldincludedir ;;
  916. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  917. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  918. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  919. oldincludedir=$ac_optarg ;;
  920. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  921. ac_prev=prefix ;;
  922. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  923. prefix=$ac_optarg ;;
  924. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  925. | --program-pre | --program-pr | --program-p)
  926. ac_prev=program_prefix ;;
  927. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  928. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  929. program_prefix=$ac_optarg ;;
  930. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  931. | --program-suf | --program-su | --program-s)
  932. ac_prev=program_suffix ;;
  933. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  934. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  935. program_suffix=$ac_optarg ;;
  936. -program-transform-name | --program-transform-name \
  937. | --program-transform-nam | --program-transform-na \
  938. | --program-transform-n | --program-transform- \
  939. | --program-transform | --program-transfor \
  940. | --program-transfo | --program-transf \
  941. | --program-trans | --program-tran \
  942. | --progr-tra | --program-tr | --program-t)
  943. ac_prev=program_transform_name ;;
  944. -program-transform-name=* | --program-transform-name=* \
  945. | --program-transform-nam=* | --program-transform-na=* \
  946. | --program-transform-n=* | --program-transform-=* \
  947. | --program-transform=* | --program-transfor=* \
  948. | --program-transfo=* | --program-transf=* \
  949. | --program-trans=* | --program-tran=* \
  950. | --progr-tra=* | --program-tr=* | --program-t=*)
  951. program_transform_name=$ac_optarg ;;
  952. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  953. ac_prev=pdfdir ;;
  954. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  955. pdfdir=$ac_optarg ;;
  956. -psdir | --psdir | --psdi | --psd | --ps)
  957. ac_prev=psdir ;;
  958. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  959. psdir=$ac_optarg ;;
  960. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  961. | -silent | --silent | --silen | --sile | --sil)
  962. silent=yes ;;
  963. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  964. ac_prev=sbindir ;;
  965. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  966. | --sbi=* | --sb=*)
  967. sbindir=$ac_optarg ;;
  968. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  969. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  970. | --sharedst | --shareds | --shared | --share | --shar \
  971. | --sha | --sh)
  972. ac_prev=sharedstatedir ;;
  973. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  974. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  975. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  976. | --sha=* | --sh=*)
  977. sharedstatedir=$ac_optarg ;;
  978. -site | --site | --sit)
  979. ac_prev=site ;;
  980. -site=* | --site=* | --sit=*)
  981. site=$ac_optarg ;;
  982. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  983. ac_prev=srcdir ;;
  984. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  985. srcdir=$ac_optarg ;;
  986. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  987. | --syscon | --sysco | --sysc | --sys | --sy)
  988. ac_prev=sysconfdir ;;
  989. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  990. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  991. sysconfdir=$ac_optarg ;;
  992. -target | --target | --targe | --targ | --tar | --ta | --t)
  993. ac_prev=target_alias ;;
  994. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  995. target_alias=$ac_optarg ;;
  996. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  997. verbose=yes ;;
  998. -version | --version | --versio | --versi | --vers | -V)
  999. ac_init_version=: ;;
  1000. -with-* | --with-*)
  1001. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1002. # Reject names that are not valid shell variable names.
  1003. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1004. as_fn_error "invalid package name: $ac_useropt"
  1005. ac_useropt_orig=$ac_useropt
  1006. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007. case $ac_user_opts in
  1008. *"
  1009. "with_$ac_useropt"
  1010. "*) ;;
  1011. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1012. ac_unrecognized_sep=', ';;
  1013. esac
  1014. eval with_$ac_useropt=\$ac_optarg ;;
  1015. -without-* | --without-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=no ;;
  1030. --x)
  1031. # Obsolete; use --with-x.
  1032. with_x=yes ;;
  1033. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1034. | --x-incl | --x-inc | --x-in | --x-i)
  1035. ac_prev=x_includes ;;
  1036. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1037. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1038. x_includes=$ac_optarg ;;
  1039. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1040. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1041. ac_prev=x_libraries ;;
  1042. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1043. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1044. x_libraries=$ac_optarg ;;
  1045. -*) as_fn_error "unrecognized option: \`$ac_option'
  1046. Try \`$0 --help' for more information."
  1047. ;;
  1048. *=*)
  1049. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1050. # Reject names that are not valid shell variable names.
  1051. case $ac_envvar in #(
  1052. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1053. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1054. esac
  1055. eval $ac_envvar=\$ac_optarg
  1056. export $ac_envvar ;;
  1057. *)
  1058. # FIXME: should be removed in autoconf 3.0.
  1059. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1060. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1061. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1062. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1063. ;;
  1064. esac
  1065. done
  1066. if test -n "$ac_prev"; then
  1067. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1068. as_fn_error "missing argument to $ac_option"
  1069. fi
  1070. if test -n "$ac_unrecognized_opts"; then
  1071. case $enable_option_checking in
  1072. no) ;;
  1073. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1074. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1075. esac
  1076. fi
  1077. # Check all directory arguments for consistency.
  1078. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1079. datadir sysconfdir sharedstatedir localstatedir includedir \
  1080. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1081. libdir localedir mandir
  1082. do
  1083. eval ac_val=\$$ac_var
  1084. # Remove trailing slashes.
  1085. case $ac_val in
  1086. */ )
  1087. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1088. eval $ac_var=\$ac_val;;
  1089. esac
  1090. # Be sure to have absolute directory names.
  1091. case $ac_val in
  1092. [\\/$]* | ?:[\\/]* ) continue;;
  1093. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1094. esac
  1095. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1096. done
  1097. # There might be people who depend on the old broken behavior: `$host'
  1098. # used to hold the argument of --host etc.
  1099. # FIXME: To remove some day.
  1100. build=$build_alias
  1101. host=$host_alias
  1102. target=$target_alias
  1103. # FIXME: To remove some day.
  1104. if test "x$host_alias" != x; then
  1105. if test "x$build_alias" = x; then
  1106. cross_compiling=maybe
  1107. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1108. If a cross compiler is detected then cross compile mode will be used." >&2
  1109. elif test "x$build_alias" != "x$host_alias"; then
  1110. cross_compiling=yes
  1111. fi
  1112. fi
  1113. ac_tool_prefix=
  1114. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1115. test "$silent" = yes && exec 6>/dev/null
  1116. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1117. ac_ls_di=`ls -di .` &&
  1118. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1119. as_fn_error "working directory cannot be determined"
  1120. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1121. as_fn_error "pwd does not report name of working directory"
  1122. # Find the source files, if location was not specified.
  1123. if test -z "$srcdir"; then
  1124. ac_srcdir_defaulted=yes
  1125. # Try the directory containing this script, then the parent directory.
  1126. ac_confdir=`$as_dirname -- "$as_myself" ||
  1127. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1128. X"$as_myself" : 'X\(//\)[^/]' \| \
  1129. X"$as_myself" : 'X\(//\)$' \| \
  1130. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1131. $as_echo X"$as_myself" |
  1132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)[^/].*/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\).*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. s/.*/./; q'`
  1149. srcdir=$ac_confdir
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. srcdir=..
  1152. fi
  1153. else
  1154. ac_srcdir_defaulted=no
  1155. fi
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1158. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1159. fi
  1160. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1161. ac_abs_confdir=`(
  1162. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1163. pwd)`
  1164. # When building in place, set srcdir=.
  1165. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1166. srcdir=.
  1167. fi
  1168. # Remove unnecessary trailing slashes from srcdir.
  1169. # Double slashes in file names in object file debugging info
  1170. # mess up M-x gdb in Emacs.
  1171. case $srcdir in
  1172. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1173. esac
  1174. for ac_var in $ac_precious_vars; do
  1175. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1176. eval ac_env_${ac_var}_value=\$${ac_var}
  1177. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1179. done
  1180. #
  1181. # Report the --help message.
  1182. #
  1183. if test "$ac_init_help" = "long"; then
  1184. # Omit some internal or obsolete options to make the list less imposing.
  1185. # This message is too long to be a string in the A/UX 3.1 sh.
  1186. cat <<_ACEOF
  1187. \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
  1188. Usage: $0 [OPTION]... [VAR=VALUE]...
  1189. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1190. VAR=VALUE. See below for descriptions of some of the useful variables.
  1191. Defaults for the options are specified in brackets.
  1192. Configuration:
  1193. -h, --help display this help and exit
  1194. --help=short display options specific to this package
  1195. --help=recursive display the short help of all the included packages
  1196. -V, --version display version information and exit
  1197. -q, --quiet, --silent do not print \`checking...' messages
  1198. --cache-file=FILE cache test results in FILE [disabled]
  1199. -C, --config-cache alias for \`--cache-file=config.cache'
  1200. -n, --no-create do not create output files
  1201. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1202. Installation directories:
  1203. --prefix=PREFIX install architecture-independent files in PREFIX
  1204. [$ac_default_prefix]
  1205. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1206. [PREFIX]
  1207. By default, \`make install' will install all the files in
  1208. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1209. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1210. for instance \`--prefix=\$HOME'.
  1211. For better control, use the options below.
  1212. Fine tuning of the installation directories:
  1213. --bindir=DIR user executables [EPREFIX/bin]
  1214. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1215. --libexecdir=DIR program executables [EPREFIX/libexec]
  1216. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1217. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1218. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1219. --libdir=DIR object code libraries [EPREFIX/lib]
  1220. --includedir=DIR C header files [PREFIX/include]
  1221. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1222. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1223. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1224. --infodir=DIR info documentation [DATAROOTDIR/info]
  1225. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1226. --mandir=DIR man documentation [DATAROOTDIR/man]
  1227. --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
  1228. --htmldir=DIR html documentation [DOCDIR]
  1229. --dvidir=DIR dvi documentation [DOCDIR]
  1230. --pdfdir=DIR pdf documentation [DOCDIR]
  1231. --psdir=DIR ps documentation [DOCDIR]
  1232. _ACEOF
  1233. cat <<\_ACEOF
  1234. Program names:
  1235. --program-prefix=PREFIX prepend PREFIX to installed program names
  1236. --program-suffix=SUFFIX append SUFFIX to installed program names
  1237. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1238. System types:
  1239. --build=BUILD configure for building on BUILD [guessed]
  1240. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1241. --target=TARGET configure for building compilers for TARGET [HOST]
  1242. _ACEOF
  1243. fi
  1244. if test -n "$ac_init_help"; then
  1245. case $ac_init_help in
  1246. short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
  1247. esac
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1254. --enable-intermodule build the library in one step
  1255. --enable-symvers enables symbol versioning of the shared library
  1256. --enable-maintainer-mode enable make rules and dependencies not useful
  1257. (and sometimes confusing) to the casual installer
  1258. --enable-multilib build many library versions (default)
  1259. --disable-dependency-tracking speeds up one-time build
  1260. --enable-dependency-tracking do not reject slow dependency extractors
  1261. --enable-shared[=PKGS] build shared libraries [default=yes]
  1262. --enable-static[=PKGS] build static libraries [default=yes]
  1263. --enable-fast-install[=PKGS]
  1264. optimize for fast installation [default=yes]
  1265. --disable-libtool-lock avoid locking (might break parallel builds)
  1266. --disable-largefile omit support for large files
  1267. Optional Packages:
  1268. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1269. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1270. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1271. --with-pic try to use only PIC/non-PIC objects [default=use
  1272. both]
  1273. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1274. Some influential environment variables:
  1275. CC C compiler command
  1276. CFLAGS C compiler flags
  1277. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1278. nonstandard directory <lib dir>
  1279. LIBS libraries to pass to the linker, e.g. -l<library>
  1280. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1281. you have headers in a nonstandard directory <include dir>
  1282. CPP C preprocessor
  1283. FC Fortran compiler command
  1284. FCFLAGS Fortran compiler flags
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to the package provider.
  1288. GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
  1289. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1290. _ACEOF
  1291. ac_status=$?
  1292. fi
  1293. if test "$ac_init_help" = "recursive"; then
  1294. # If there are subdirs, report their specific --help.
  1295. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1296. test -d "$ac_dir" ||
  1297. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1298. continue
  1299. ac_builddir=.
  1300. case "$ac_dir" in
  1301. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1302. *)
  1303. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1304. # A ".." for each directory in $ac_dir_suffix.
  1305. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1306. case $ac_top_builddir_sub in
  1307. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1308. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1309. esac ;;
  1310. esac
  1311. ac_abs_top_builddir=$ac_pwd
  1312. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1313. # for backward compatibility:
  1314. ac_top_builddir=$ac_top_build_prefix
  1315. case $srcdir in
  1316. .) # We are building in place.
  1317. ac_srcdir=.
  1318. ac_top_srcdir=$ac_top_builddir_sub
  1319. ac_abs_top_srcdir=$ac_pwd ;;
  1320. [\\/]* | ?:[\\/]* ) # Absolute name.
  1321. ac_srcdir=$srcdir$ac_dir_suffix;
  1322. ac_top_srcdir=$srcdir
  1323. ac_abs_top_srcdir=$srcdir ;;
  1324. *) # Relative name.
  1325. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1326. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1327. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1328. esac
  1329. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1330. cd "$ac_dir" || { ac_status=$?; continue; }
  1331. # Check for guested configure.
  1332. if test -f "$ac_srcdir/configure.gnu"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1335. elif test -f "$ac_srcdir/configure"; then
  1336. echo &&
  1337. $SHELL "$ac_srcdir/configure" --help=recursive
  1338. else
  1339. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1340. fi || ac_status=$?
  1341. cd "$ac_pwd" || { ac_status=$?; break; }
  1342. done
  1343. fi
  1344. test -n "$ac_init_help" && exit $ac_status
  1345. if $ac_init_version; then
  1346. cat <<\_ACEOF
  1347. GNU Fortran Runtime Library configure 0.3
  1348. generated by GNU Autoconf 2.64
  1349. Copyright (C) 2009 Free Software Foundation, Inc.
  1350. This configure script is free software; the Free Software Foundation
  1351. gives unlimited permission to copy, distribute and modify it.
  1352. _ACEOF
  1353. exit
  1354. fi
  1355. ## ------------------------ ##
  1356. ## Autoconf initialization. ##
  1357. ## ------------------------ ##
  1358. # ac_fn_c_try_compile LINENO
  1359. # --------------------------
  1360. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1361. ac_fn_c_try_compile ()
  1362. {
  1363. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1364. rm -f conftest.$ac_objext
  1365. if { { ac_try="$ac_compile"
  1366. case "(($ac_try" in
  1367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1368. *) ac_try_echo=$ac_try;;
  1369. esac
  1370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1371. $as_echo "$ac_try_echo"; } >&5
  1372. (eval "$ac_compile") 2>conftest.err
  1373. ac_status=$?
  1374. if test -s conftest.err; then
  1375. grep -v '^ *+' conftest.err >conftest.er1
  1376. cat conftest.er1 >&5
  1377. mv -f conftest.er1 conftest.err
  1378. fi
  1379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1380. test $ac_status = 0; } && {
  1381. test -z "$ac_c_werror_flag" ||
  1382. test ! -s conftest.err
  1383. } && test -s conftest.$ac_objext; then :
  1384. ac_retval=0
  1385. else
  1386. $as_echo "$as_me: failed program was:" >&5
  1387. sed 's/^/| /' conftest.$ac_ext >&5
  1388. ac_retval=1
  1389. fi
  1390. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1391. return $ac_retval
  1392. } # ac_fn_c_try_compile
  1393. # ac_fn_c_try_link LINENO
  1394. # -----------------------
  1395. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1396. ac_fn_c_try_link ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. rm -f conftest.$ac_objext conftest$ac_exeext
  1400. if { { ac_try="$ac_link"
  1401. case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_link") 2>conftest.err
  1408. ac_status=$?
  1409. if test -s conftest.err; then
  1410. grep -v '^ *+' conftest.err >conftest.er1
  1411. cat conftest.er1 >&5
  1412. mv -f conftest.er1 conftest.err
  1413. fi
  1414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1415. test $ac_status = 0; } && {
  1416. test -z "$ac_c_werror_flag" ||
  1417. test ! -s conftest.err
  1418. } && test -s conftest$ac_exeext && {
  1419. test "$cross_compiling" = yes ||
  1420. $as_test_x conftest$ac_exeext
  1421. }; then :
  1422. ac_retval=0
  1423. else
  1424. $as_echo "$as_me: failed program was:" >&5
  1425. sed 's/^/| /' conftest.$ac_ext >&5
  1426. ac_retval=1
  1427. fi
  1428. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1429. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1430. # interfere with the next link command; also delete a directory that is
  1431. # left behind by Apple's compiler. We do this before executing the actions.
  1432. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1433. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1434. return $ac_retval
  1435. } # ac_fn_c_try_link
  1436. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1437. # -------------------------------------------------------
  1438. # Tests whether HEADER exists and can be compiled using the include files in
  1439. # INCLUDES, setting the cache variable VAR accordingly.
  1440. ac_fn_c_check_header_compile ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1444. $as_echo_n "checking for $2... " >&6; }
  1445. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1446. $as_echo_n "(cached) " >&6
  1447. else
  1448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1449. /* end confdefs.h. */
  1450. $4
  1451. #include <$2>
  1452. _ACEOF
  1453. if ac_fn_c_try_compile "$LINENO"; then :
  1454. eval "$3=yes"
  1455. else
  1456. eval "$3=no"
  1457. fi
  1458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1459. fi
  1460. eval ac_res=\$$3
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1462. $as_echo "$ac_res" >&6; }
  1463. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1464. } # ac_fn_c_check_header_compile
  1465. # ac_fn_c_try_cpp LINENO
  1466. # ----------------------
  1467. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_cpp ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } >/dev/null && {
  1487. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. }; then :
  1490. ac_retval=0
  1491. else
  1492. $as_echo "$as_me: failed program was:" >&5
  1493. sed 's/^/| /' conftest.$ac_ext >&5
  1494. ac_retval=1
  1495. fi
  1496. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1497. return $ac_retval
  1498. } # ac_fn_c_try_cpp
  1499. # ac_fn_c_try_run LINENO
  1500. # ----------------------
  1501. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1502. # that executables *can* be run.
  1503. ac_fn_c_try_run ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if { { ac_try="$ac_link"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_link") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1517. { { case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_try") 2>&5
  1524. ac_status=$?
  1525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1526. test $ac_status = 0; }; }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: program exited with status $ac_status" >&5
  1530. $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532. ac_retval=$ac_status
  1533. fi
  1534. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1535. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1536. return $ac_retval
  1537. } # ac_fn_c_try_run
  1538. # ac_fn_c_check_func LINENO FUNC VAR
  1539. # ----------------------------------
  1540. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1541. ac_fn_c_check_func ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1545. $as_echo_n "checking for $2... " >&6; }
  1546. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1547. $as_echo_n "(cached) " >&6
  1548. else
  1549. if test x$gcc_no_link = xyes; then
  1550. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1551. fi
  1552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1553. /* end confdefs.h. */
  1554. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1555. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1556. #define $2 innocuous_$2
  1557. /* System header to define __stub macros and hopefully few prototypes,
  1558. which can conflict with char $2 (); below.
  1559. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1560. <limits.h> exists even on freestanding compilers. */
  1561. #ifdef __STDC__
  1562. # include <limits.h>
  1563. #else
  1564. # include <assert.h>
  1565. #endif
  1566. #undef $2
  1567. /* Override any GCC internal prototype to avoid an error.
  1568. Use char because int might match the return type of a GCC
  1569. builtin and then its argument prototype would still apply. */
  1570. #ifdef __cplusplus
  1571. extern "C"
  1572. #endif
  1573. char $2 ();
  1574. /* The GNU C library defines this for functions which it implements
  1575. to always fail with ENOSYS. Some functions are actually named
  1576. something starting with __ and the normal name is an alias. */
  1577. #if defined __stub_$2 || defined __stub___$2
  1578. choke me
  1579. #endif
  1580. int
  1581. main ()
  1582. {
  1583. return $2 ();
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_c_try_link "$LINENO"; then :
  1589. eval "$3=yes"
  1590. else
  1591. eval "$3=no"
  1592. fi
  1593. rm -f core conftest.err conftest.$ac_objext \
  1594. conftest$ac_exeext conftest.$ac_ext
  1595. fi
  1596. eval ac_res=\$$3
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. $as_echo "$ac_res" >&6; }
  1599. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1600. } # ac_fn_c_check_func
  1601. # ac_fn_fc_try_compile LINENO
  1602. # ---------------------------
  1603. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1604. ac_fn_fc_try_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. rm -f conftest.$ac_objext
  1608. if { { ac_try="$ac_compile"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. $as_echo "$ac_try_echo"; } >&5
  1615. (eval "$ac_compile") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && {
  1624. test -z "$ac_fc_werror_flag" ||
  1625. test ! -s conftest.err
  1626. } && test -s conftest.$ac_objext; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: failed program was:" >&5
  1630. sed 's/^/| /' conftest.$ac_ext >&5
  1631. ac_retval=1
  1632. fi
  1633. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1634. return $ac_retval
  1635. } # ac_fn_fc_try_compile
  1636. # ac_fn_fc_try_link LINENO
  1637. # ------------------------
  1638. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_fc_try_link ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. rm -f conftest.$ac_objext conftest$ac_exeext
  1643. if { { ac_try="$ac_link"
  1644. case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_link") 2>conftest.err
  1651. ac_status=$?
  1652. if test -s conftest.err; then
  1653. grep -v '^ *+' conftest.err >conftest.er1
  1654. cat conftest.er1 >&5
  1655. mv -f conftest.er1 conftest.err
  1656. fi
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && {
  1659. test -z "$ac_fc_werror_flag" ||
  1660. test ! -s conftest.err
  1661. } && test -s conftest$ac_exeext && {
  1662. test "$cross_compiling" = yes ||
  1663. $as_test_x conftest$ac_exeext
  1664. }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_retval=1
  1670. fi
  1671. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1672. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1673. # interfere with the next link command; also delete a directory that is
  1674. # left behind by Apple's compiler. We do this before executing the actions.
  1675. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1676. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1677. return $ac_retval
  1678. } # ac_fn_fc_try_link
  1679. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1680. # -------------------------------------------
  1681. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1682. # variable VAR accordingly.
  1683. ac_fn_c_check_type ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1689. $as_echo_n "(cached) " >&6
  1690. else
  1691. eval "$3=no"
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. $4
  1695. int
  1696. main ()
  1697. {
  1698. if (sizeof ($2))
  1699. return 0;
  1700. ;
  1701. return 0;
  1702. }
  1703. _ACEOF
  1704. if ac_fn_c_try_compile "$LINENO"; then :
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. int
  1709. main ()
  1710. {
  1711. if (sizeof (($2)))
  1712. return 0;
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_compile "$LINENO"; then :
  1718. else
  1719. eval "$3=yes"
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. fi
  1725. eval ac_res=\$$3
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1727. $as_echo "$ac_res" >&6; }
  1728. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1729. } # ac_fn_c_check_type
  1730. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1731. # -------------------------------------------------------
  1732. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1733. # the include files in INCLUDES and setting the cache variable VAR
  1734. # accordingly.
  1735. ac_fn_c_check_header_mongrel ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1740. $as_echo_n "checking for $2... " >&6; }
  1741. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1742. $as_echo_n "(cached) " >&6
  1743. fi
  1744. eval ac_res=\$$3
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1746. $as_echo "$ac_res" >&6; }
  1747. else
  1748. # Is the header compilable?
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1750. $as_echo_n "checking $2 usability... " >&6; }
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. $4
  1754. #include <$2>
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. ac_header_compiler=yes
  1758. else
  1759. ac_header_compiler=no
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1763. $as_echo "$ac_header_compiler" >&6; }
  1764. # Is the header present?
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1766. $as_echo_n "checking $2 presence... " >&6; }
  1767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1768. /* end confdefs.h. */
  1769. #include <$2>
  1770. _ACEOF
  1771. if ac_fn_c_try_cpp "$LINENO"; then :
  1772. ac_header_preproc=yes
  1773. else
  1774. ac_header_preproc=no
  1775. fi
  1776. rm -f conftest.err conftest.$ac_ext
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1778. $as_echo "$ac_header_preproc" >&6; }
  1779. # So? What about this header?
  1780. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1781. yes:no: )
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1783. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1785. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1786. ;;
  1787. no:yes:* )
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1789. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1791. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1793. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1795. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1797. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1798. ;;
  1799. esac
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1801. $as_echo_n "checking for $2... " >&6; }
  1802. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. eval "$3=\$ac_header_compiler"
  1806. fi
  1807. eval ac_res=\$$3
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1809. $as_echo "$ac_res" >&6; }
  1810. fi
  1811. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1812. } # ac_fn_c_check_header_mongrel
  1813. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1814. # --------------------------------------------
  1815. # Tries to find the compile-time value of EXPR in a program that includes
  1816. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1817. # computed
  1818. ac_fn_c_compute_int ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. if test "$cross_compiling" = yes; then
  1822. # Depending upon the size, compute the lo and hi bounds.
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. $4
  1826. int
  1827. main ()
  1828. {
  1829. static int test_array [1 - 2 * !(($2) >= 0)];
  1830. test_array [0] = 0
  1831. ;
  1832. return 0;
  1833. }
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. ac_lo=0 ac_mid=0
  1837. while :; do
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1845. test_array [0] = 0
  1846. ;
  1847. return 0;
  1848. }
  1849. _ACEOF
  1850. if ac_fn_c_try_compile "$LINENO"; then :
  1851. ac_hi=$ac_mid; break
  1852. else
  1853. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1854. if test $ac_lo -le $ac_mid; then
  1855. ac_lo= ac_hi=
  1856. break
  1857. fi
  1858. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1859. fi
  1860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1861. done
  1862. else
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. $4
  1866. int
  1867. main ()
  1868. {
  1869. static int test_array [1 - 2 * !(($2) < 0)];
  1870. test_array [0] = 0
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_c_try_compile "$LINENO"; then :
  1876. ac_hi=-1 ac_mid=-1
  1877. while :; do
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1885. test_array [0] = 0
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_compile "$LINENO"; then :
  1891. ac_lo=$ac_mid; break
  1892. else
  1893. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1894. if test $ac_mid -le $ac_hi; then
  1895. ac_lo= ac_hi=
  1896. break
  1897. fi
  1898. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1901. done
  1902. else
  1903. ac_lo= ac_hi=
  1904. fi
  1905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1906. fi
  1907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1908. # Binary search between lo and hi bounds.
  1909. while test "x$ac_lo" != "x$ac_hi"; do
  1910. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. int
  1915. main ()
  1916. {
  1917. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1918. test_array [0] = 0
  1919. ;
  1920. return 0;
  1921. }
  1922. _ACEOF
  1923. if ac_fn_c_try_compile "$LINENO"; then :
  1924. ac_hi=$ac_mid
  1925. else
  1926. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. done
  1930. case $ac_lo in #((
  1931. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1932. '') ac_retval=1 ;;
  1933. esac
  1934. else
  1935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1936. /* end confdefs.h. */
  1937. $4
  1938. static long int longval () { return $2; }
  1939. static unsigned long int ulongval () { return $2; }
  1940. #include <stdio.h>
  1941. #include <stdlib.h>
  1942. int
  1943. main ()
  1944. {
  1945. FILE *f = fopen ("conftest.val", "w");
  1946. if (! f)
  1947. return 1;
  1948. if (($2) < 0)
  1949. {
  1950. long int i = longval ();
  1951. if (i != ($2))
  1952. return 1;
  1953. fprintf (f, "%ld", i);
  1954. }
  1955. else
  1956. {
  1957. unsigned long int i = ulongval ();
  1958. if (i != ($2))
  1959. return 1;
  1960. fprintf (f, "%lu", i);
  1961. }
  1962. /* Do not output a trailing newline, as this causes \r\n confusion
  1963. on some platforms. */
  1964. return ferror (f) || fclose (f) != 0;
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_c_try_run "$LINENO"; then :
  1970. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1971. else
  1972. ac_retval=1
  1973. fi
  1974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1976. rm -f conftest.val
  1977. fi
  1978. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1979. return $ac_retval
  1980. } # ac_fn_c_compute_int
  1981. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1982. # ----------------------------------------------------
  1983. # Tries to find if the field MEMBER exists in type AGGR, after including
  1984. # INCLUDES, setting cache variable VAR accordingly.
  1985. ac_fn_c_check_member ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1989. $as_echo_n "checking for $2.$3... " >&6; }
  1990. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $5
  1996. int
  1997. main ()
  1998. {
  1999. static $2 ac_aggr;
  2000. if (ac_aggr.$3)
  2001. return 0;
  2002. ;
  2003. return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007. eval "$4=yes"
  2008. else
  2009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2010. /* end confdefs.h. */
  2011. $5
  2012. int
  2013. main ()
  2014. {
  2015. static $2 ac_aggr;
  2016. if (sizeof ac_aggr.$3)
  2017. return 0;
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. eval "$4=yes"
  2024. else
  2025. eval "$4=no"
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. fi
  2029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2030. fi
  2031. eval ac_res=\$$4
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2033. $as_echo "$ac_res" >&6; }
  2034. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2035. } # ac_fn_c_check_member
  2036. cat >config.log <<_ACEOF
  2037. This file contains any messages produced by compilers while
  2038. running configure, to aid debugging if configure makes a mistake.
  2039. It was created by GNU Fortran Runtime Library $as_me 0.3, which was
  2040. generated by GNU Autoconf 2.64. Invocation command line was
  2041. $ $0 $@
  2042. _ACEOF
  2043. exec 5>>config.log
  2044. {
  2045. cat <<_ASUNAME
  2046. ## --------- ##
  2047. ## Platform. ##
  2048. ## --------- ##
  2049. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2050. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2051. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2052. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2053. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2054. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2055. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2056. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2057. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2058. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2059. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2060. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2061. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2062. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2063. _ASUNAME
  2064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2065. for as_dir in $PATH
  2066. do
  2067. IFS=$as_save_IFS
  2068. test -z "$as_dir" && as_dir=.
  2069. $as_echo "PATH: $as_dir"
  2070. done
  2071. IFS=$as_save_IFS
  2072. } >&5
  2073. cat >&5 <<_ACEOF
  2074. ## ----------- ##
  2075. ## Core tests. ##
  2076. ## ----------- ##
  2077. _ACEOF
  2078. # Keep a trace of the command line.
  2079. # Strip out --no-create and --no-recursion so they do not pile up.
  2080. # Strip out --silent because we don't want to record it for future runs.
  2081. # Also quote any args containing shell meta-characters.
  2082. # Make two passes to allow for proper duplicate-argument suppression.
  2083. ac_configure_args=
  2084. ac_configure_args0=
  2085. ac_configure_args1=
  2086. ac_must_keep_next=false
  2087. for ac_pass in 1 2
  2088. do
  2089. for ac_arg
  2090. do
  2091. case $ac_arg in
  2092. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2094. | -silent | --silent | --silen | --sile | --sil)
  2095. continue ;;
  2096. *\'*)
  2097. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2098. esac
  2099. case $ac_pass in
  2100. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2101. 2)
  2102. as_fn_append ac_configure_args1 " '$ac_arg'"
  2103. if test $ac_must_keep_next = true; then
  2104. ac_must_keep_next=false # Got value, back to normal.
  2105. else
  2106. case $ac_arg in
  2107. *=* | --config-cache | -C | -disable-* | --disable-* \
  2108. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2109. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2110. | -with-* | --with-* | -without-* | --without-* | --x)
  2111. case "$ac_configure_args0 " in
  2112. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2113. esac
  2114. ;;
  2115. -* ) ac_must_keep_next=true ;;
  2116. esac
  2117. fi
  2118. as_fn_append ac_configure_args " '$ac_arg'"
  2119. ;;
  2120. esac
  2121. done
  2122. done
  2123. { ac_configure_args0=; unset ac_configure_args0;}
  2124. { ac_configure_args1=; unset ac_configure_args1;}
  2125. # When interrupted or exit'd, cleanup temporary files, and complete
  2126. # config.log. We remove comments because anyway the quotes in there
  2127. # would cause problems or look ugly.
  2128. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2129. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2130. trap 'exit_status=$?
  2131. # Save into config.log some information that might help in debugging.
  2132. {
  2133. echo
  2134. cat <<\_ASBOX
  2135. ## ---------------- ##
  2136. ## Cache variables. ##
  2137. ## ---------------- ##
  2138. _ASBOX
  2139. echo
  2140. # The following way of writing the cache mishandles newlines in values,
  2141. (
  2142. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2143. eval ac_val=\$$ac_var
  2144. case $ac_val in #(
  2145. *${as_nl}*)
  2146. case $ac_var in #(
  2147. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2148. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2149. esac
  2150. case $ac_var in #(
  2151. _ | IFS | as_nl) ;; #(
  2152. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2153. *) { eval $ac_var=; unset $ac_var;} ;;
  2154. esac ;;
  2155. esac
  2156. done
  2157. (set) 2>&1 |
  2158. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2159. *${as_nl}ac_space=\ *)
  2160. sed -n \
  2161. "s/'\''/'\''\\\\'\'''\''/g;
  2162. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2163. ;; #(
  2164. *)
  2165. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2166. ;;
  2167. esac |
  2168. sort
  2169. )
  2170. echo
  2171. cat <<\_ASBOX
  2172. ## ----------------- ##
  2173. ## Output variables. ##
  2174. ## ----------------- ##
  2175. _ASBOX
  2176. echo
  2177. for ac_var in $ac_subst_vars
  2178. do
  2179. eval ac_val=\$$ac_var
  2180. case $ac_val in
  2181. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2182. esac
  2183. $as_echo "$ac_var='\''$ac_val'\''"
  2184. done | sort
  2185. echo
  2186. if test -n "$ac_subst_files"; then
  2187. cat <<\_ASBOX
  2188. ## ------------------- ##
  2189. ## File substitutions. ##
  2190. ## ------------------- ##
  2191. _ASBOX
  2192. echo
  2193. for ac_var in $ac_subst_files
  2194. do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in
  2197. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2198. esac
  2199. $as_echo "$ac_var='\''$ac_val'\''"
  2200. done | sort
  2201. echo
  2202. fi
  2203. if test -s confdefs.h; then
  2204. cat <<\_ASBOX
  2205. ## ----------- ##
  2206. ## confdefs.h. ##
  2207. ## ----------- ##
  2208. _ASBOX
  2209. echo
  2210. cat confdefs.h
  2211. echo
  2212. fi
  2213. test "$ac_signal" != 0 &&
  2214. $as_echo "$as_me: caught signal $ac_signal"
  2215. $as_echo "$as_me: exit $exit_status"
  2216. } >&5
  2217. rm -f core *.core core.conftest.* &&
  2218. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2219. exit $exit_status
  2220. ' 0
  2221. for ac_signal in 1 2 13 15; do
  2222. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2223. done
  2224. ac_signal=0
  2225. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2226. rm -f -r conftest* confdefs.h
  2227. $as_echo "/* confdefs.h */" > confdefs.h
  2228. # Predefined preprocessor variables.
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_NAME "$PACKAGE_NAME"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_STRING "$PACKAGE_STRING"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2243. _ACEOF
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_URL "$PACKAGE_URL"
  2246. _ACEOF
  2247. # Let the site file select an alternate cache file if it wants to.
  2248. # Prefer an explicitly selected file to automatically selected ones.
  2249. ac_site_file1=NONE
  2250. ac_site_file2=NONE
  2251. if test -n "$CONFIG_SITE"; then
  2252. ac_site_file1=$CONFIG_SITE
  2253. elif test "x$prefix" != xNONE; then
  2254. ac_site_file1=$prefix/share/config.site
  2255. ac_site_file2=$prefix/etc/config.site
  2256. else
  2257. ac_site_file1=$ac_default_prefix/share/config.site
  2258. ac_site_file2=$ac_default_prefix/etc/config.site
  2259. fi
  2260. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2261. do
  2262. test "x$ac_site_file" = xNONE && continue
  2263. if test -r "$ac_site_file"; then
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2265. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2266. sed 's/^/| /' "$ac_site_file" >&5
  2267. . "$ac_site_file"
  2268. fi
  2269. done
  2270. if test -r "$cache_file"; then
  2271. # Some versions of bash will fail to source /dev/null (special
  2272. # files actually), so we avoid doing that.
  2273. if test -f "$cache_file"; then
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2275. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2276. case $cache_file in
  2277. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2278. *) . "./$cache_file";;
  2279. esac
  2280. fi
  2281. else
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2283. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2284. >$cache_file
  2285. fi
  2286. # Check that the precious variables saved in the cache have kept the same
  2287. # value.
  2288. ac_cache_corrupted=false
  2289. for ac_var in $ac_precious_vars; do
  2290. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2291. eval ac_new_set=\$ac_env_${ac_var}_set
  2292. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2293. eval ac_new_val=\$ac_env_${ac_var}_value
  2294. case $ac_old_set,$ac_new_set in
  2295. set,)
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2297. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2298. ac_cache_corrupted=: ;;
  2299. ,set)
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2301. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2302. ac_cache_corrupted=: ;;
  2303. ,);;
  2304. *)
  2305. if test "x$ac_old_val" != "x$ac_new_val"; then
  2306. # differences in whitespace do not lead to failure.
  2307. ac_old_val_w=`echo x $ac_old_val`
  2308. ac_new_val_w=`echo x $ac_new_val`
  2309. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2311. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2312. ac_cache_corrupted=:
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2315. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2316. eval $ac_var=\$ac_old_val
  2317. fi
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2319. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2321. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2322. fi;;
  2323. esac
  2324. # Pass precious variables to config.status.
  2325. if test "$ac_new_set" = set; then
  2326. case $ac_new_val in
  2327. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2328. *) ac_arg=$ac_var=$ac_new_val ;;
  2329. esac
  2330. case " $ac_configure_args " in
  2331. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2332. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2333. esac
  2334. fi
  2335. done
  2336. if $ac_cache_corrupted; then
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2338. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2340. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2341. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2342. fi
  2343. ## -------------------- ##
  2344. ## Main body of script. ##
  2345. ## -------------------- ##
  2346. ac_ext=c
  2347. ac_cpp='$CPP $CPPFLAGS'
  2348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2351. ac_config_headers="$ac_config_headers config.h"
  2352. ac_aux_dir=
  2353. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2354. for ac_t in install-sh install.sh shtool; do
  2355. if test -f "$ac_dir/$ac_t"; then
  2356. ac_aux_dir=$ac_dir
  2357. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2358. break 2
  2359. fi
  2360. done
  2361. done
  2362. if test -z "$ac_aux_dir"; then
  2363. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2364. fi
  2365. # These three variables are undocumented and unsupported,
  2366. # and are intended to be withdrawn in a future Autoconf release.
  2367. # They can cause serious problems if a builder's source tree is in a directory
  2368. # whose full name contains unusual characters.
  2369. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2370. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2371. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2372. # Make sure we can run config.sub.
  2373. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2374. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2376. $as_echo_n "checking build system type... " >&6; }
  2377. if test "${ac_cv_build+set}" = set; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. ac_build_alias=$build_alias
  2381. test "x$ac_build_alias" = x &&
  2382. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2383. test "x$ac_build_alias" = x &&
  2384. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2385. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2386. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2389. $as_echo "$ac_cv_build" >&6; }
  2390. case $ac_cv_build in
  2391. *-*-*) ;;
  2392. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2393. esac
  2394. build=$ac_cv_build
  2395. ac_save_IFS=$IFS; IFS='-'
  2396. set x $ac_cv_build
  2397. shift
  2398. build_cpu=$1
  2399. build_vendor=$2
  2400. shift; shift
  2401. # Remember, the first character of IFS is used to create $*,
  2402. # except with old shells:
  2403. build_os=$*
  2404. IFS=$ac_save_IFS
  2405. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2406. case ${build_alias} in
  2407. "") build_noncanonical=${build} ;;
  2408. *) build_noncanonical=${build_alias} ;;
  2409. esac
  2410. case ${host_alias} in
  2411. "") host_noncanonical=${build_noncanonical} ;;
  2412. *) host_noncanonical=${host_alias} ;;
  2413. esac
  2414. case ${target_alias} in
  2415. "") target_noncanonical=${host_noncanonical} ;;
  2416. *) target_noncanonical=${target_alias} ;;
  2417. esac
  2418. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2419. # have matching libraries, they should use host libraries: Makefile.tpl
  2420. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2421. # However, they still use the build modules, because the corresponding
  2422. # host modules (e.g. bison) are only built for the host when bootstrap
  2423. # finishes. So:
  2424. # - build_subdir is where we find build modules, and never changes.
  2425. # - build_libsubdir is where we find build libraries, and can be overridden.
  2426. # Prefix 'build-' so this never conflicts with target_subdir.
  2427. build_subdir="build-${build_noncanonical}"
  2428. # Check whether --with-build-libsubdir was given.
  2429. if test "${with_build_libsubdir+set}" = set; then :
  2430. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2431. else
  2432. build_libsubdir="$build_subdir"
  2433. fi
  2434. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2435. if ( test $srcdir = . && test -d gcc ) \
  2436. || test -d $srcdir/../host-${host_noncanonical}; then
  2437. host_subdir="host-${host_noncanonical}"
  2438. else
  2439. host_subdir=.
  2440. fi
  2441. # No prefix.
  2442. target_subdir=${target_noncanonical}
  2443. # -------
  2444. # Options
  2445. # -------
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2447. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2448. # Check whether --enable-version-specific-runtime-libs was given.
  2449. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2450. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2451. yes) version_specific_libs=yes ;;
  2452. no) version_specific_libs=no ;;
  2453. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2454. esac
  2455. else
  2456. version_specific_libs=no
  2457. fi
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2459. $as_echo "$version_specific_libs" >&6; }
  2460. # Build with intermodule optimisations
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
  2462. $as_echo_n "checking for --enable-intermodule... " >&6; }
  2463. # Check whether --enable-intermodule was given.
  2464. if test "${enable_intermodule+set}" = set; then :
  2465. enableval=$enable_intermodule; case "$enable_intermodule" in
  2466. yes) onestep="-onestep";;
  2467. *) onestep="";;
  2468. esac
  2469. else
  2470. onestep=""
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
  2473. $as_echo "$enable_intermodule" >&6; }
  2474. if test x$onestep = x-onestep; then
  2475. onestep_TRUE=
  2476. onestep_FALSE='#'
  2477. else
  2478. onestep_TRUE='#'
  2479. onestep_FALSE=
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-symvers" >&5
  2482. $as_echo_n "checking for --enable-symvers... " >&6; }
  2483. # Check whether --enable-symvers was given.
  2484. if test "${enable_symvers+set}" = set; then :
  2485. enableval=$enable_symvers; case "$enableval" in
  2486. yes) enable_symvers=yes ;;
  2487. no) enable_symvers=no ;;
  2488. *) as_fn_error "Unknown argument to enable/disable symbol versioning" "$LINENO" 5;;
  2489. esac
  2490. else
  2491. enable_symvers=""
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_symvers" >&5
  2494. $as_echo "$enable_symvers" >&6; }
  2495. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2496. #
  2497. # You will slowly go insane if you do not grok the following fact: when
  2498. # building this library, the top-level /target/ becomes the library's /host/.
  2499. #
  2500. # configure then causes --target to default to --host, exactly like any
  2501. # other package using autoconf. Therefore, 'target' and 'host' will
  2502. # always be the same. This makes sense both for native and cross compilers
  2503. # just think about it for a little while. :-)
  2504. #
  2505. # Also, if this library is being configured as part of a cross compiler, the
  2506. # top-level configure script will pass the "real" host as $with_cross_host.
  2507. #
  2508. # Do not delete or change the following two lines. For why, see
  2509. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2511. $as_echo_n "checking host system type... " >&6; }
  2512. if test "${ac_cv_host+set}" = set; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test "x$host_alias" = x; then
  2516. ac_cv_host=$ac_cv_build
  2517. else
  2518. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2519. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2523. $as_echo "$ac_cv_host" >&6; }
  2524. case $ac_cv_host in
  2525. *-*-*) ;;
  2526. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2527. esac
  2528. host=$ac_cv_host
  2529. ac_save_IFS=$IFS; IFS='-'
  2530. set x $ac_cv_host
  2531. shift
  2532. host_cpu=$1
  2533. host_vendor=$2
  2534. shift; shift
  2535. # Remember, the first character of IFS is used to create $*,
  2536. # except with old shells:
  2537. host_os=$*
  2538. IFS=$ac_save_IFS
  2539. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2541. $as_echo_n "checking target system type... " >&6; }
  2542. if test "${ac_cv_target+set}" = set; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test "x$target_alias" = x; then
  2546. ac_cv_target=$ac_cv_host
  2547. else
  2548. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2549. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2550. fi
  2551. fi
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2553. $as_echo "$ac_cv_target" >&6; }
  2554. case $ac_cv_target in
  2555. *-*-*) ;;
  2556. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2557. esac
  2558. target=$ac_cv_target
  2559. ac_save_IFS=$IFS; IFS='-'
  2560. set x $ac_cv_target
  2561. shift
  2562. target_cpu=$1
  2563. target_vendor=$2
  2564. shift; shift
  2565. # Remember, the first character of IFS is used to create $*,
  2566. # except with old shells:
  2567. target_os=$*
  2568. IFS=$ac_save_IFS
  2569. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2570. # The aliases save the names the user supplied, while $host etc.
  2571. # will get canonicalized.
  2572. test -n "$target_alias" &&
  2573. test "$program_prefix$program_suffix$program_transform_name" = \
  2574. NONENONEs,x,x, &&
  2575. program_prefix=${target_alias}-
  2576. target_alias=${target_alias-$host_alias}
  2577. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2578. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2579. # 1.9.6: minimum required version
  2580. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2581. # of other PACKAGE_* variables will, however, and there's nothing
  2582. # we can do about that; they come from AC_INIT).
  2583. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2584. # file in the top srcdir, etc, etc), so stop complaining.
  2585. # -Wall: turns on all automake warnings...
  2586. # -Wno-portability: ...except this one, since GNU make is required.
  2587. am__api_version='1.11'
  2588. # Find a good install program. We prefer a C program (faster),
  2589. # so one script is as good as another. But avoid the broken or
  2590. # incompatible versions:
  2591. # SysV /etc/install, /usr/sbin/install
  2592. # SunOS /usr/etc/install
  2593. # IRIX /sbin/install
  2594. # AIX /bin/install
  2595. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2596. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2597. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2598. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2599. # OS/2's system install, which has a completely different semantic
  2600. # ./install, which can be erroneously created by make from ./install.sh.
  2601. # Reject install programs that cannot install multiple files.
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2603. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2604. if test -z "$INSTALL"; then
  2605. if test "${ac_cv_path_install+set}" = set; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. # Account for people who put trailing slashes in PATH elements.
  2614. case $as_dir/ in #((
  2615. ./ | .// | /[cC]/* | \
  2616. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2617. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2618. /usr/ucb/* ) ;;
  2619. *)
  2620. # OSF1 and SCO ODT 3.0 have their own names for install.
  2621. # Don't use installbsd from OSF since it installs stuff as root
  2622. # by default.
  2623. for ac_prog in ginstall scoinst install; do
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2626. if test $ac_prog = install &&
  2627. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2628. # AIX install. It has an incompatible calling convention.
  2629. :
  2630. elif test $ac_prog = install &&
  2631. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2632. # program-specific install script used by HP pwplus--don't use.
  2633. :
  2634. else
  2635. rm -rf conftest.one conftest.two conftest.dir
  2636. echo one > conftest.one
  2637. echo two > conftest.two
  2638. mkdir conftest.dir
  2639. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2640. test -s conftest.one && test -s conftest.two &&
  2641. test -s conftest.dir/conftest.one &&
  2642. test -s conftest.dir/conftest.two
  2643. then
  2644. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2645. break 3
  2646. fi
  2647. fi
  2648. fi
  2649. done
  2650. done
  2651. ;;
  2652. esac
  2653. done
  2654. IFS=$as_save_IFS
  2655. rm -rf conftest.one conftest.two conftest.dir
  2656. fi
  2657. if test "${ac_cv_path_install+set}" = set; then
  2658. INSTALL=$ac_cv_path_install
  2659. else
  2660. # As a last resort, use the slow shell script. Don't cache a
  2661. # value for INSTALL within a source directory, because that will
  2662. # break other packages using the cache if that directory is
  2663. # removed, or if the value is a relative name.
  2664. INSTALL=$ac_install_sh
  2665. fi
  2666. fi
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2668. $as_echo "$INSTALL" >&6; }
  2669. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2670. # It thinks the first close brace ends the variable substitution.
  2671. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2672. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2673. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2675. $as_echo_n "checking whether build environment is sane... " >&6; }
  2676. # Just in case
  2677. sleep 1
  2678. echo timestamp > conftest.file
  2679. # Reject unsafe characters in $srcdir or the absolute working directory
  2680. # name. Accept space and tab only in the latter.
  2681. am_lf='
  2682. '
  2683. case `pwd` in
  2684. *[\\\"\#\$\&\'\`$am_lf]*)
  2685. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2686. esac
  2687. case $srcdir in
  2688. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2689. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2690. esac
  2691. # Do `set' in a subshell so we don't clobber the current shell's
  2692. # arguments. Must try -L first in case configure is actually a
  2693. # symlink; some systems play weird games with the mod time of symlinks
  2694. # (eg FreeBSD returns the mod time of the symlink's containing
  2695. # directory).
  2696. if (
  2697. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2698. if test "$*" = "X"; then
  2699. # -L didn't work.
  2700. set X `ls -t "$srcdir/configure" conftest.file`
  2701. fi
  2702. rm -f conftest.file
  2703. if test "$*" != "X $srcdir/configure conftest.file" \
  2704. && test "$*" != "X conftest.file $srcdir/configure"; then
  2705. # If neither matched, then we have a broken ls. This can happen
  2706. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2707. # broken ls alias from the environment. This has actually
  2708. # happened. Such a system could not be considered "sane".
  2709. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2710. alias in your environment" "$LINENO" 5
  2711. fi
  2712. test "$2" = conftest.file
  2713. )
  2714. then
  2715. # Ok.
  2716. :
  2717. else
  2718. as_fn_error "newly created file is older than distributed files!
  2719. Check your system clock" "$LINENO" 5
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2722. $as_echo "yes" >&6; }
  2723. test "$program_prefix" != NONE &&
  2724. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2725. # Use a double $ so make ignores it.
  2726. test "$program_suffix" != NONE &&
  2727. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2728. # Double any \ or $.
  2729. # By default was `s,x,x', remove it if useless.
  2730. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2731. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2732. # expand $ac_aux_dir to an absolute path
  2733. am_aux_dir=`cd $ac_aux_dir && pwd`
  2734. if test x"${MISSING+set}" != xset; then
  2735. case $am_aux_dir in
  2736. *\ * | *\ *)
  2737. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2738. *)
  2739. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2740. esac
  2741. fi
  2742. # Use eval to expand $SHELL
  2743. if eval "$MISSING --run true"; then
  2744. am_missing_run="$MISSING --run "
  2745. else
  2746. am_missing_run=
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2748. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2749. fi
  2750. if test x"${install_sh}" != xset; then
  2751. case $am_aux_dir in
  2752. *\ * | *\ *)
  2753. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2754. *)
  2755. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2756. esac
  2757. fi
  2758. # Installed binaries are usually stripped using `strip' when the user
  2759. # run `make install-strip'. However `strip' might not be the right
  2760. # tool to use in cross-compilation environments, therefore Automake
  2761. # will honor the `STRIP' environment variable to overrule this program.
  2762. if test "$cross_compiling" != no; then
  2763. if test -n "$ac_tool_prefix"; then
  2764. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2765. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2767. $as_echo_n "checking for $ac_word... " >&6; }
  2768. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2769. $as_echo_n "(cached) " >&6
  2770. else
  2771. if test -n "$STRIP"; then
  2772. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2773. else
  2774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2775. for as_dir in $PATH
  2776. do
  2777. IFS=$as_save_IFS
  2778. test -z "$as_dir" && as_dir=.
  2779. for ac_exec_ext in '' $ac_executable_extensions; do
  2780. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2781. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2783. break 2
  2784. fi
  2785. done
  2786. done
  2787. IFS=$as_save_IFS
  2788. fi
  2789. fi
  2790. STRIP=$ac_cv_prog_STRIP
  2791. if test -n "$STRIP"; then
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2793. $as_echo "$STRIP" >&6; }
  2794. else
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2796. $as_echo "no" >&6; }
  2797. fi
  2798. fi
  2799. if test -z "$ac_cv_prog_STRIP"; then
  2800. ac_ct_STRIP=$STRIP
  2801. # Extract the first word of "strip", so it can be a program name with args.
  2802. set dummy strip; ac_word=$2
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2804. $as_echo_n "checking for $ac_word... " >&6; }
  2805. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. if test -n "$ac_ct_STRIP"; then
  2809. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2810. else
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2818. ac_cv_prog_ac_ct_STRIP="strip"
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2820. break 2
  2821. fi
  2822. done
  2823. done
  2824. IFS=$as_save_IFS
  2825. fi
  2826. fi
  2827. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2828. if test -n "$ac_ct_STRIP"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2830. $as_echo "$ac_ct_STRIP" >&6; }
  2831. else
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2833. $as_echo "no" >&6; }
  2834. fi
  2835. if test "x$ac_ct_STRIP" = x; then
  2836. STRIP=":"
  2837. else
  2838. case $cross_compiling:$ac_tool_warned in
  2839. yes:)
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2842. ac_tool_warned=yes ;;
  2843. esac
  2844. STRIP=$ac_ct_STRIP
  2845. fi
  2846. else
  2847. STRIP="$ac_cv_prog_STRIP"
  2848. fi
  2849. fi
  2850. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2852. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2853. if test -z "$MKDIR_P"; then
  2854. if test "${ac_cv_path_mkdir+set}" = set; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_prog in mkdir gmkdir; do
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2865. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2866. 'mkdir (GNU coreutils) '* | \
  2867. 'mkdir (coreutils) '* | \
  2868. 'mkdir (fileutils) '4.1*)
  2869. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2870. break 3;;
  2871. esac
  2872. done
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. if test "${ac_cv_path_mkdir+set}" = set; then
  2878. MKDIR_P="$ac_cv_path_mkdir -p"
  2879. else
  2880. # As a last resort, use the slow shell script. Don't cache a
  2881. # value for MKDIR_P within a source directory, because that will
  2882. # break other packages using the cache if that directory is
  2883. # removed, or if the value is a relative name.
  2884. test -d ./--version && rmdir ./--version
  2885. MKDIR_P="$ac_install_sh -d"
  2886. fi
  2887. fi
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2889. $as_echo "$MKDIR_P" >&6; }
  2890. mkdir_p="$MKDIR_P"
  2891. case $mkdir_p in
  2892. [\\/$]* | ?:[\\/]*) ;;
  2893. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2894. esac
  2895. for ac_prog in gawk mawk nawk awk
  2896. do
  2897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2898. set dummy $ac_prog; ac_word=$2
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2900. $as_echo_n "checking for $ac_word... " >&6; }
  2901. if test "${ac_cv_prog_AWK+set}" = set; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. if test -n "$AWK"; then
  2905. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2914. ac_cv_prog_AWK="$ac_prog"
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. IFS=$as_save_IFS
  2921. fi
  2922. fi
  2923. AWK=$ac_cv_prog_AWK
  2924. if test -n "$AWK"; then
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2926. $as_echo "$AWK" >&6; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. fi
  2931. test -n "$AWK" && break
  2932. done
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2934. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2935. set x ${MAKE-make}
  2936. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2937. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. cat >conftest.make <<\_ACEOF
  2941. SHELL = /bin/sh
  2942. all:
  2943. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2944. _ACEOF
  2945. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2946. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2947. *@@@%%%=?*=@@@%%%*)
  2948. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2949. *)
  2950. eval ac_cv_prog_make_${ac_make}_set=no;;
  2951. esac
  2952. rm -f conftest.make
  2953. fi
  2954. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2956. $as_echo "yes" >&6; }
  2957. SET_MAKE=
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. SET_MAKE="MAKE=${MAKE-make}"
  2962. fi
  2963. rm -rf .tst 2>/dev/null
  2964. mkdir .tst 2>/dev/null
  2965. if test -d .tst; then
  2966. am__leading_dot=.
  2967. else
  2968. am__leading_dot=_
  2969. fi
  2970. rmdir .tst 2>/dev/null
  2971. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2972. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2973. # is not polluted with repeated "-I."
  2974. am__isrc=' -I$(srcdir)'
  2975. # test to see if srcdir already configured
  2976. if test -f $srcdir/config.status; then
  2977. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2978. fi
  2979. fi
  2980. # test whether we have cygpath
  2981. if test -z "$CYGPATH_W"; then
  2982. if (cygpath --version) >/dev/null 2>/dev/null; then
  2983. CYGPATH_W='cygpath -w'
  2984. else
  2985. CYGPATH_W=echo
  2986. fi
  2987. fi
  2988. # Define the identity of the package.
  2989. PACKAGE='libgfortran'
  2990. VERSION='0.3'
  2991. # Some tools Automake needs.
  2992. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2993. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2994. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2995. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2996. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2997. # We need awk for the "check" target. The system "awk" is bad on
  2998. # some platforms.
  2999. # Always define AMTAR for backward compatibility.
  3000. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3001. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3003. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3004. # Check whether --enable-maintainer-mode was given.
  3005. if test "${enable_maintainer_mode+set}" = set; then :
  3006. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3007. else
  3008. USE_MAINTAINER_MODE=no
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3011. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3012. if test $USE_MAINTAINER_MODE = yes; then
  3013. MAINTAINER_MODE_TRUE=
  3014. MAINTAINER_MODE_FALSE='#'
  3015. else
  3016. MAINTAINER_MODE_TRUE='#'
  3017. MAINTAINER_MODE_FALSE=
  3018. fi
  3019. MAINT=$MAINTAINER_MODE_TRUE
  3020. # Default to --enable-multilib
  3021. # Check whether --enable-multilib was given.
  3022. if test "${enable_multilib+set}" = set; then :
  3023. enableval=$enable_multilib; case "$enableval" in
  3024. yes) multilib=yes ;;
  3025. no) multilib=no ;;
  3026. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3027. esac
  3028. else
  3029. multilib=yes
  3030. fi
  3031. # We may get other options which we leave undocumented:
  3032. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3033. # See config-ml.in if you want the gory details.
  3034. if test "$srcdir" = "."; then
  3035. if test "$with_target_subdir" != "."; then
  3036. multi_basedir="$srcdir/$with_multisrctop../.."
  3037. else
  3038. multi_basedir="$srcdir/$with_multisrctop.."
  3039. fi
  3040. else
  3041. multi_basedir="$srcdir/.."
  3042. fi
  3043. # Even if the default multilib is not a cross compilation,
  3044. # it may be that some of the other multilibs are.
  3045. if test $cross_compiling = no && test $multilib = yes \
  3046. && test "x${with_multisubdir}" != x ; then
  3047. cross_compiling=maybe
  3048. fi
  3049. ac_config_commands="$ac_config_commands default-1"
  3050. # Handy for debugging:
  3051. #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
  3052. # Are we being configured with some form of cross compiler?
  3053. # NB: We don't actually need to know this just now, but when, say, a test
  3054. # suite is included, we'll have to know.
  3055. if test "$build" != "$host"; then
  3056. LIBGFOR_IS_NATIVE=false
  3057. else
  3058. LIBGFOR_IS_NATIVE=true
  3059. fi
  3060. # Calculate toolexeclibdir
  3061. # Also toolexecdir, though it's only used in toolexeclibdir
  3062. case ${version_specific_libs} in
  3063. yes)
  3064. # Need the gcc compiler version to know where to install libraries
  3065. # and header files if --enable-version-specific-runtime-libs option
  3066. # is selected.
  3067. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3068. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3069. ;;
  3070. no)
  3071. if test -n "$with_cross_host" &&
  3072. test x"$with_cross_host" != x"no"; then
  3073. # Install a library built with a cross compiler in tooldir, not libdir.
  3074. toolexecdir='$(exec_prefix)/$(target_alias)'
  3075. toolexeclibdir='$(toolexecdir)/lib'
  3076. else
  3077. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3078. toolexeclibdir='$(libdir)'
  3079. fi
  3080. multi_os_directory=`$CC -print-multi-os-directory`
  3081. case $multi_os_directory in
  3082. .) ;; # Avoid trailing /.
  3083. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3084. esac
  3085. ;;
  3086. esac
  3087. # Check the compiler.
  3088. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3089. # We must force CC to /not/ be precious variables; otherwise
  3090. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3091. # As a side effect, we have to subst CFLAGS ourselves.
  3092. ac_ext=c
  3093. ac_cpp='$CPP $CPPFLAGS'
  3094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3097. if test -n "$ac_tool_prefix"; then
  3098. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3099. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3101. $as_echo_n "checking for $ac_word... " >&6; }
  3102. if test "${ac_cv_prog_CC+set}" = set; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. if test -n "$CC"; then
  3106. ac_cv_prog_CC="$CC" # Let the user override the test.
  3107. else
  3108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3109. for as_dir in $PATH
  3110. do
  3111. IFS=$as_save_IFS
  3112. test -z "$as_dir" && as_dir=.
  3113. for ac_exec_ext in '' $ac_executable_extensions; do
  3114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3115. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3117. break 2
  3118. fi
  3119. done
  3120. done
  3121. IFS=$as_save_IFS
  3122. fi
  3123. fi
  3124. CC=$ac_cv_prog_CC
  3125. if test -n "$CC"; then
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3127. $as_echo "$CC" >&6; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3130. $as_echo "no" >&6; }
  3131. fi
  3132. fi
  3133. if test -z "$ac_cv_prog_CC"; then
  3134. ac_ct_CC=$CC
  3135. # Extract the first word of "gcc", so it can be a program name with args.
  3136. set dummy gcc; ac_word=$2
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3138. $as_echo_n "checking for $ac_word... " >&6; }
  3139. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. if test -n "$ac_ct_CC"; then
  3143. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3152. ac_cv_prog_ac_ct_CC="gcc"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. fi
  3160. fi
  3161. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3162. if test -n "$ac_ct_CC"; then
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3164. $as_echo "$ac_ct_CC" >&6; }
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. fi
  3169. if test "x$ac_ct_CC" = x; then
  3170. CC=""
  3171. else
  3172. case $cross_compiling:$ac_tool_warned in
  3173. yes:)
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3176. ac_tool_warned=yes ;;
  3177. esac
  3178. CC=$ac_ct_CC
  3179. fi
  3180. else
  3181. CC="$ac_cv_prog_CC"
  3182. fi
  3183. if test -z "$CC"; then
  3184. if test -n "$ac_tool_prefix"; then
  3185. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3186. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3188. $as_echo_n "checking for $ac_word... " >&6; }
  3189. if test "${ac_cv_prog_CC+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. if test -n "$CC"; then
  3193. ac_cv_prog_CC="$CC" # Let the user override the test.
  3194. else
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3202. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3204. break 2
  3205. fi
  3206. done
  3207. done
  3208. IFS=$as_save_IFS
  3209. fi
  3210. fi
  3211. CC=$ac_cv_prog_CC
  3212. if test -n "$CC"; then
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3214. $as_echo "$CC" >&6; }
  3215. else
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3217. $as_echo "no" >&6; }
  3218. fi
  3219. fi
  3220. fi
  3221. if test -z "$CC"; then
  3222. # Extract the first word of "cc", so it can be a program name with args.
  3223. set dummy cc; ac_word=$2
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3225. $as_echo_n "checking for $ac_word... " >&6; }
  3226. if test "${ac_cv_prog_CC+set}" = set; then :
  3227. $as_echo_n "(cached) " >&6
  3228. else
  3229. if test -n "$CC"; then
  3230. ac_cv_prog_CC="$CC" # Let the user override the test.
  3231. else
  3232. ac_prog_rejected=no
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3241. ac_prog_rejected=yes
  3242. continue
  3243. fi
  3244. ac_cv_prog_CC="cc"
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. if test $ac_prog_rejected = yes; then
  3252. # We found a bogon in the path, so make sure we never use it.
  3253. set dummy $ac_cv_prog_CC
  3254. shift
  3255. if test $# != 0; then
  3256. # We chose a different compiler from the bogus one.
  3257. # However, it has the same basename, so the bogon will be chosen
  3258. # first if we set CC to just the basename; use the full file name.
  3259. shift
  3260. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3261. fi
  3262. fi
  3263. fi
  3264. fi
  3265. CC=$ac_cv_prog_CC
  3266. if test -n "$CC"; then
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3268. $as_echo "$CC" >&6; }
  3269. else
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3271. $as_echo "no" >&6; }
  3272. fi
  3273. fi
  3274. if test -z "$CC"; then
  3275. if test -n "$ac_tool_prefix"; then
  3276. for ac_prog in cl.exe
  3277. do
  3278. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3279. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3281. $as_echo_n "checking for $ac_word... " >&6; }
  3282. if test "${ac_cv_prog_CC+set}" = set; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. if test -n "$CC"; then
  3286. ac_cv_prog_CC="$CC" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3295. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3297. break 2
  3298. fi
  3299. done
  3300. done
  3301. IFS=$as_save_IFS
  3302. fi
  3303. fi
  3304. CC=$ac_cv_prog_CC
  3305. if test -n "$CC"; then
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3307. $as_echo "$CC" >&6; }
  3308. else
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3310. $as_echo "no" >&6; }
  3311. fi
  3312. test -n "$CC" && break
  3313. done
  3314. fi
  3315. if test -z "$CC"; then
  3316. ac_ct_CC=$CC
  3317. for ac_prog in cl.exe
  3318. do
  3319. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3320. set dummy $ac_prog; ac_word=$2
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3322. $as_echo_n "checking for $ac_word... " >&6; }
  3323. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. if test -n "$ac_ct_CC"; then
  3327. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3328. else
  3329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3330. for as_dir in $PATH
  3331. do
  3332. IFS=$as_save_IFS
  3333. test -z "$as_dir" && as_dir=.
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3336. ac_cv_prog_ac_ct_CC="$ac_prog"
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3338. break 2
  3339. fi
  3340. done
  3341. done
  3342. IFS=$as_save_IFS
  3343. fi
  3344. fi
  3345. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3346. if test -n "$ac_ct_CC"; then
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3348. $as_echo "$ac_ct_CC" >&6; }
  3349. else
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3351. $as_echo "no" >&6; }
  3352. fi
  3353. test -n "$ac_ct_CC" && break
  3354. done
  3355. if test "x$ac_ct_CC" = x; then
  3356. CC=""
  3357. else
  3358. case $cross_compiling:$ac_tool_warned in
  3359. yes:)
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3362. ac_tool_warned=yes ;;
  3363. esac
  3364. CC=$ac_ct_CC
  3365. fi
  3366. fi
  3367. fi
  3368. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3370. as_fn_error "no acceptable C compiler found in \$PATH
  3371. See \`config.log' for more details." "$LINENO" 5; }
  3372. # Provide some information about the compiler.
  3373. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3374. set X $ac_compile
  3375. ac_compiler=$2
  3376. for ac_option in --version -v -V -qversion; do
  3377. { { ac_try="$ac_compiler $ac_option >&5"
  3378. case "(($ac_try" in
  3379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3380. *) ac_try_echo=$ac_try;;
  3381. esac
  3382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3383. $as_echo "$ac_try_echo"; } >&5
  3384. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3385. ac_status=$?
  3386. if test -s conftest.err; then
  3387. sed '10a\
  3388. ... rest of stderr output deleted ...
  3389. 10q' conftest.err >conftest.er1
  3390. cat conftest.er1 >&5
  3391. rm -f conftest.er1 conftest.err
  3392. fi
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3394. test $ac_status = 0; }
  3395. done
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. int
  3399. main ()
  3400. {
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. # FIXME: Cleanup?
  3406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3407. (eval $ac_link) 2>&5
  3408. ac_status=$?
  3409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3410. test $ac_status = 0; }; then :
  3411. gcc_no_link=no
  3412. else
  3413. gcc_no_link=yes
  3414. fi
  3415. if test x$gcc_no_link = xyes; then
  3416. # Setting cross_compile will disable run tests; it will
  3417. # also disable AC_CHECK_FILE but that's generally
  3418. # correct if we can't link.
  3419. cross_compiling=yes
  3420. EXEEXT=
  3421. else
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. ac_clean_files_save=$ac_clean_files
  3432. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3433. # Try to create an executable without -o first, disregard a.out.
  3434. # It will help us diagnose broken compilers, and finding out an intuition
  3435. # of exeext.
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3437. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3438. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3439. # The possible output files:
  3440. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3441. ac_rmfiles=
  3442. for ac_file in $ac_files
  3443. do
  3444. case $ac_file in
  3445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3446. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3447. esac
  3448. done
  3449. rm -f $ac_rmfiles
  3450. if { { ac_try="$ac_link_default"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3456. $as_echo "$ac_try_echo"; } >&5
  3457. (eval "$ac_link_default") 2>&5
  3458. ac_status=$?
  3459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3460. test $ac_status = 0; }; then :
  3461. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3462. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3463. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3464. # so that the user can short-circuit this test for compilers unknown to
  3465. # Autoconf.
  3466. for ac_file in $ac_files ''
  3467. do
  3468. test -f "$ac_file" || continue
  3469. case $ac_file in
  3470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3471. ;;
  3472. [ab].out )
  3473. # We found the default executable, but exeext='' is most
  3474. # certainly right.
  3475. break;;
  3476. *.* )
  3477. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3478. then :; else
  3479. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3480. fi
  3481. # We set ac_cv_exeext here because the later test for it is not
  3482. # safe: cross compilers may not add the suffix if given an `-o'
  3483. # argument, so we may need to know it at that point already.
  3484. # Even if this section looks crufty: it has the advantage of
  3485. # actually working.
  3486. break;;
  3487. * )
  3488. break;;
  3489. esac
  3490. done
  3491. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3492. else
  3493. ac_file=''
  3494. fi
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3496. $as_echo "$ac_file" >&6; }
  3497. if test -z "$ac_file"; then :
  3498. $as_echo "$as_me: failed program was:" >&5
  3499. sed 's/^/| /' conftest.$ac_ext >&5
  3500. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. { as_fn_set_status 77
  3503. as_fn_error "C compiler cannot create executables
  3504. See \`config.log' for more details." "$LINENO" 5; }; }
  3505. fi
  3506. ac_exeext=$ac_cv_exeext
  3507. # Check that the compiler produces executables we can run. If not, either
  3508. # the compiler is broken, or we cross compile.
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3510. $as_echo_n "checking whether the C compiler works... " >&6; }
  3511. # If not cross compiling, check that we can run a simple program.
  3512. if test "$cross_compiling" != yes; then
  3513. if { ac_try='./$ac_file'
  3514. { { case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3519. $as_echo "$ac_try_echo"; } >&5
  3520. (eval "$ac_try") 2>&5
  3521. ac_status=$?
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3523. test $ac_status = 0; }; }; then
  3524. cross_compiling=no
  3525. else
  3526. if test "$cross_compiling" = maybe; then
  3527. cross_compiling=yes
  3528. else
  3529. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3531. as_fn_error "cannot run C compiled programs.
  3532. If you meant to cross compile, use \`--host'.
  3533. See \`config.log' for more details." "$LINENO" 5; }
  3534. fi
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3538. $as_echo "yes" >&6; }
  3539. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3540. ac_clean_files=$ac_clean_files_save
  3541. # Check that the compiler produces executables we can run. If not, either
  3542. # the compiler is broken, or we cross compile.
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3544. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3546. $as_echo "$cross_compiling" >&6; }
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3548. $as_echo_n "checking for suffix of executables... " >&6; }
  3549. if { { ac_try="$ac_link"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. $as_echo "$ac_try_echo"; } >&5
  3556. (eval "$ac_link") 2>&5
  3557. ac_status=$?
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }; then :
  3560. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3561. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3562. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3563. # `rm'.
  3564. for ac_file in conftest.exe conftest conftest.*; do
  3565. test -f "$ac_file" || continue
  3566. case $ac_file in
  3567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3568. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3569. break;;
  3570. * ) break;;
  3571. esac
  3572. done
  3573. else
  3574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3576. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3577. See \`config.log' for more details." "$LINENO" 5; }
  3578. fi
  3579. rm -f conftest$ac_cv_exeext
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3581. $as_echo "$ac_cv_exeext" >&6; }
  3582. rm -f conftest.$ac_ext
  3583. EXEEXT=$ac_cv_exeext
  3584. ac_exeext=$EXEEXT
  3585. fi
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3587. $as_echo_n "checking for suffix of object files... " >&6; }
  3588. if test "${ac_cv_objext+set}" = set; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main ()
  3595. {
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. rm -f conftest.o conftest.obj
  3601. if { { ac_try="$ac_compile"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_compile") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; then :
  3612. for ac_file in conftest.o conftest.obj conftest.*; do
  3613. test -f "$ac_file" || continue;
  3614. case $ac_file in
  3615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3617. break;;
  3618. esac
  3619. done
  3620. else
  3621. $as_echo "$as_me: failed program was:" >&5
  3622. sed 's/^/| /' conftest.$ac_ext >&5
  3623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. as_fn_error "cannot compute suffix of object files: cannot compile
  3626. See \`config.log' for more details." "$LINENO" 5; }
  3627. fi
  3628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3631. $as_echo "$ac_cv_objext" >&6; }
  3632. OBJEXT=$ac_cv_objext
  3633. ac_objext=$OBJEXT
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3635. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3636. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. #ifndef __GNUC__
  3645. choke me
  3646. #endif
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_c_try_compile "$LINENO"; then :
  3652. ac_compiler_gnu=yes
  3653. else
  3654. ac_compiler_gnu=no
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3657. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3660. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3661. if test $ac_compiler_gnu = yes; then
  3662. GCC=yes
  3663. else
  3664. GCC=
  3665. fi
  3666. ac_test_CFLAGS=${CFLAGS+set}
  3667. ac_save_CFLAGS=$CFLAGS
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3669. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3670. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. ac_save_c_werror_flag=$ac_c_werror_flag
  3674. ac_c_werror_flag=yes
  3675. ac_cv_prog_cc_g=no
  3676. CFLAGS="-g"
  3677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3678. /* end confdefs.h. */
  3679. int
  3680. main ()
  3681. {
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. if ac_fn_c_try_compile "$LINENO"; then :
  3687. ac_cv_prog_cc_g=yes
  3688. else
  3689. CFLAGS=""
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. int
  3693. main ()
  3694. {
  3695. ;
  3696. return 0;
  3697. }
  3698. _ACEOF
  3699. if ac_fn_c_try_compile "$LINENO"; then :
  3700. else
  3701. ac_c_werror_flag=$ac_save_c_werror_flag
  3702. CFLAGS="-g"
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_c_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cc_g=yes
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. fi
  3719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3720. ac_c_werror_flag=$ac_save_c_werror_flag
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3723. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3724. if test "$ac_test_CFLAGS" = set; then
  3725. CFLAGS=$ac_save_CFLAGS
  3726. elif test $ac_cv_prog_cc_g = yes; then
  3727. if test "$GCC" = yes; then
  3728. CFLAGS="-g -O2"
  3729. else
  3730. CFLAGS="-g"
  3731. fi
  3732. else
  3733. if test "$GCC" = yes; then
  3734. CFLAGS="-O2"
  3735. else
  3736. CFLAGS=
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3740. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3741. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. ac_cv_prog_cc_c89=no
  3745. ac_save_CC=$CC
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. #include <stdarg.h>
  3749. #include <stdio.h>
  3750. #include <sys/types.h>
  3751. #include <sys/stat.h>
  3752. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3753. struct buf { int x; };
  3754. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3755. static char *e (p, i)
  3756. char **p;
  3757. int i;
  3758. {
  3759. return p[i];
  3760. }
  3761. static char *f (char * (*g) (char **, int), char **p, ...)
  3762. {
  3763. char *s;
  3764. va_list v;
  3765. va_start (v,p);
  3766. s = g (p, va_arg (v,int));
  3767. va_end (v);
  3768. return s;
  3769. }
  3770. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3771. function prototypes and stuff, but not '\xHH' hex character constants.
  3772. These don't provoke an error unfortunately, instead are silently treated
  3773. as 'x'. The following induces an error, until -std is added to get
  3774. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3775. array size at least. It's necessary to write '\x00'==0 to get something
  3776. that's true only with -std. */
  3777. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3778. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3779. inside strings and character constants. */
  3780. #define FOO(x) 'x'
  3781. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3782. int test (int i, double x);
  3783. struct s1 {int (*f) (int a);};
  3784. struct s2 {int (*f) (double a);};
  3785. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3786. int argc;
  3787. char **argv;
  3788. int
  3789. main ()
  3790. {
  3791. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3792. ;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3797. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3798. do
  3799. CC="$ac_save_CC $ac_arg"
  3800. if ac_fn_c_try_compile "$LINENO"; then :
  3801. ac_cv_prog_cc_c89=$ac_arg
  3802. fi
  3803. rm -f core conftest.err conftest.$ac_objext
  3804. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3805. done
  3806. rm -f conftest.$ac_ext
  3807. CC=$ac_save_CC
  3808. fi
  3809. # AC_CACHE_VAL
  3810. case "x$ac_cv_prog_cc_c89" in
  3811. x)
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3813. $as_echo "none needed" >&6; } ;;
  3814. xno)
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3816. $as_echo "unsupported" >&6; } ;;
  3817. *)
  3818. CC="$CC $ac_cv_prog_cc_c89"
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3820. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3821. esac
  3822. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3823. fi
  3824. ac_ext=c
  3825. ac_cpp='$CPP $CPPFLAGS'
  3826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3829. DEPDIR="${am__leading_dot}deps"
  3830. ac_config_commands="$ac_config_commands depfiles"
  3831. am_make=${MAKE-make}
  3832. cat > confinc << 'END'
  3833. am__doit:
  3834. @echo this is the am__doit target
  3835. .PHONY: am__doit
  3836. END
  3837. # If we don't find an include directive, just comment out the code.
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3839. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3840. am__include="#"
  3841. am__quote=
  3842. _am_result=none
  3843. # First try GNU make style include.
  3844. echo "include confinc" > confmf
  3845. # Ignore all kinds of additional output from `make'.
  3846. case `$am_make -s -f confmf 2> /dev/null` in #(
  3847. *the\ am__doit\ target*)
  3848. am__include=include
  3849. am__quote=
  3850. _am_result=GNU
  3851. ;;
  3852. esac
  3853. # Now try BSD make style include.
  3854. if test "$am__include" = "#"; then
  3855. echo '.include "confinc"' > confmf
  3856. case `$am_make -s -f confmf 2> /dev/null` in #(
  3857. *the\ am__doit\ target*)
  3858. am__include=.include
  3859. am__quote="\""
  3860. _am_result=BSD
  3861. ;;
  3862. esac
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3865. $as_echo "$_am_result" >&6; }
  3866. rm -f confinc confmf
  3867. # Check whether --enable-dependency-tracking was given.
  3868. if test "${enable_dependency_tracking+set}" = set; then :
  3869. enableval=$enable_dependency_tracking;
  3870. fi
  3871. if test "x$enable_dependency_tracking" != xno; then
  3872. am_depcomp="$ac_aux_dir/depcomp"
  3873. AMDEPBACKSLASH='\'
  3874. fi
  3875. if test "x$enable_dependency_tracking" != xno; then
  3876. AMDEP_TRUE=
  3877. AMDEP_FALSE='#'
  3878. else
  3879. AMDEP_TRUE='#'
  3880. AMDEP_FALSE=
  3881. fi
  3882. depcc="$CC" am_compiler_list=
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3884. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3885. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3889. # We make a subdir and do the tests there. Otherwise we can end up
  3890. # making bogus files that we don't know about and never remove. For
  3891. # instance it was reported that on HP-UX the gcc test will end up
  3892. # making a dummy file named `D' -- because `-MD' means `put the output
  3893. # in D'.
  3894. mkdir conftest.dir
  3895. # Copy depcomp to subdir because otherwise we won't find it if we're
  3896. # using a relative directory.
  3897. cp "$am_depcomp" conftest.dir
  3898. cd conftest.dir
  3899. # We will build objects and dependencies in a subdirectory because
  3900. # it helps to detect inapplicable dependency modes. For instance
  3901. # both Tru64's cc and ICC support -MD to output dependencies as a
  3902. # side effect of compilation, but ICC will put the dependencies in
  3903. # the current directory while Tru64 will put them in the object
  3904. # directory.
  3905. mkdir sub
  3906. am_cv_CC_dependencies_compiler_type=none
  3907. if test "$am_compiler_list" = ""; then
  3908. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3909. fi
  3910. am__universal=false
  3911. case " $depcc " in #(
  3912. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3913. esac
  3914. for depmode in $am_compiler_list; do
  3915. # Setup a source with many dependencies, because some compilers
  3916. # like to wrap large dependency lists on column 80 (with \), and
  3917. # we should not choose a depcomp mode which is confused by this.
  3918. #
  3919. # We need to recreate these files for each test, as the compiler may
  3920. # overwrite some of them when testing with obscure command lines.
  3921. # This happens at least with the AIX C compiler.
  3922. : > sub/conftest.c
  3923. for i in 1 2 3 4 5 6; do
  3924. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3925. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3926. # Solaris 8's {/usr,}/bin/sh.
  3927. touch sub/conftst$i.h
  3928. done
  3929. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3930. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3931. # mode. It turns out that the SunPro C++ compiler does not properly
  3932. # handle `-M -o', and we need to detect this. Also, some Intel
  3933. # versions had trouble with output in subdirs
  3934. am__obj=sub/conftest.${OBJEXT-o}
  3935. am__minus_obj="-o $am__obj"
  3936. case $depmode in
  3937. gcc)
  3938. # This depmode causes a compiler race in universal mode.
  3939. test "$am__universal" = false || continue
  3940. ;;
  3941. nosideeffect)
  3942. # after this tag, mechanisms are not by side-effect, so they'll
  3943. # only be used when explicitly requested
  3944. if test "x$enable_dependency_tracking" = xyes; then
  3945. continue
  3946. else
  3947. break
  3948. fi
  3949. ;;
  3950. msvisualcpp | msvcmsys)
  3951. # This compiler won't grok `-c -o', but also, the minuso test has
  3952. # not run yet. These depmodes are late enough in the game, and
  3953. # so weak that their functioning should not be impacted.
  3954. am__obj=conftest.${OBJEXT-o}
  3955. am__minus_obj=
  3956. ;;
  3957. none) break ;;
  3958. esac
  3959. if depmode=$depmode \
  3960. source=sub/conftest.c object=$am__obj \
  3961. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3962. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3963. >/dev/null 2>conftest.err &&
  3964. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3965. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3966. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3967. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3968. # icc doesn't choke on unknown options, it will just issue warnings
  3969. # or remarks (even with -Werror). So we grep stderr for any message
  3970. # that says an option was ignored or not supported.
  3971. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3972. # icc: Command line warning: ignoring option '-M'; no argument required
  3973. # The diagnosis changed in icc 8.0:
  3974. # icc: Command line remark: option '-MP' not supported
  3975. if (grep 'ignoring option' conftest.err ||
  3976. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3977. am_cv_CC_dependencies_compiler_type=$depmode
  3978. break
  3979. fi
  3980. fi
  3981. done
  3982. cd ..
  3983. rm -rf conftest.dir
  3984. else
  3985. am_cv_CC_dependencies_compiler_type=none
  3986. fi
  3987. fi
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3989. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3990. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3991. if
  3992. test "x$enable_dependency_tracking" != xno \
  3993. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3994. am__fastdepCC_TRUE=
  3995. am__fastdepCC_FALSE='#'
  3996. else
  3997. am__fastdepCC_TRUE='#'
  3998. am__fastdepCC_FALSE=
  3999. fi
  4000. # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
  4001. if test "x$GCC" = "xyes"; then
  4002. AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
  4003. ## We like to use C99 routines when available. This makes sure that
  4004. ## __STDC_VERSION__ is set such that libc includes make them available.
  4005. AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
  4006. ## Compile the following tests with the same system header contents
  4007. ## that we'll encounter when compiling our own source files.
  4008. CFLAGS="-std=gnu99 $CFLAGS"
  4009. fi
  4010. # Check for symbol versioning (copied from libssp).
  4011. if test "x$enable_symvers" == "xno"; then
  4012. gfortran_use_symver=no
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  4015. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  4016. cat > conftest.map <<EOF
  4017. FOO_1.0 {
  4018. global: *foo*; bar; local: *;
  4019. };
  4020. EOF
  4021. save_LDFLAGS="$LDFLAGS"
  4022. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  4023. if test x$gcc_no_link = xyes; then
  4024. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4025. fi
  4026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4027. /* end confdefs.h. */
  4028. int foo;
  4029. int
  4030. main ()
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_link "$LINENO"; then :
  4037. gfortran_use_symver=yes
  4038. else
  4039. gfortran_use_symver=no
  4040. fi
  4041. rm -f core conftest.err conftest.$ac_objext \
  4042. conftest$ac_exeext conftest.$ac_ext
  4043. LDFLAGS="$save_LDFLAGS"
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
  4046. $as_echo "$gfortran_use_symver" >&6; }
  4047. if test "x$gfortran_use_symver" = xyes; then
  4048. LIBGFOR_USE_SYMVER_TRUE=
  4049. LIBGFOR_USE_SYMVER_FALSE='#'
  4050. else
  4051. LIBGFOR_USE_SYMVER_TRUE='#'
  4052. LIBGFOR_USE_SYMVER_FALSE=
  4053. fi
  4054. # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
  4055. # similarly to how libstdc++ does it
  4056. ac_test_CFLAGS="${CFLAGS+set}"
  4057. ac_save_CFLAGS="$CFLAGS"
  4058. # Check for -ffunction-sections -fdata-sections
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
  4060. $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
  4061. CFLAGS='-Werror -ffunction-sections -fdata-sections'
  4062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4063. /* end confdefs.h. */
  4064. int
  4065. main ()
  4066. {
  4067. int foo;
  4068. ;
  4069. return 0;
  4070. }
  4071. _ACEOF
  4072. if ac_fn_c_try_compile "$LINENO"; then :
  4073. ac_fdsections=yes
  4074. else
  4075. ac_fdsections=no
  4076. fi
  4077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4078. if test "$ac_test_CFLAGS" = set; then
  4079. CFLAGS="$ac_save_CFLAGS"
  4080. else
  4081. # this is the suspicious part
  4082. CFLAGS=""
  4083. fi
  4084. if test x"$ac_fdsections" = x"yes"; then
  4085. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  4086. fi
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  4088. $as_echo "$ac_fdsections" >&6; }
  4089. # Find other programs we need.
  4090. if test -n "$ac_tool_prefix"; then
  4091. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4092. set dummy ${ac_tool_prefix}as; ac_word=$2
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4094. $as_echo_n "checking for $ac_word... " >&6; }
  4095. if test "${ac_cv_prog_AS+set}" = set; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. if test -n "$AS"; then
  4099. ac_cv_prog_AS="$AS" # Let the user override the test.
  4100. else
  4101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4102. for as_dir in $PATH
  4103. do
  4104. IFS=$as_save_IFS
  4105. test -z "$as_dir" && as_dir=.
  4106. for ac_exec_ext in '' $ac_executable_extensions; do
  4107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4108. ac_cv_prog_AS="${ac_tool_prefix}as"
  4109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4110. break 2
  4111. fi
  4112. done
  4113. done
  4114. IFS=$as_save_IFS
  4115. fi
  4116. fi
  4117. AS=$ac_cv_prog_AS
  4118. if test -n "$AS"; then
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4120. $as_echo "$AS" >&6; }
  4121. else
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4123. $as_echo "no" >&6; }
  4124. fi
  4125. fi
  4126. if test -z "$ac_cv_prog_AS"; then
  4127. ac_ct_AS=$AS
  4128. # Extract the first word of "as", so it can be a program name with args.
  4129. set dummy as; ac_word=$2
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4131. $as_echo_n "checking for $ac_word... " >&6; }
  4132. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. if test -n "$ac_ct_AS"; then
  4136. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4137. else
  4138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4139. for as_dir in $PATH
  4140. do
  4141. IFS=$as_save_IFS
  4142. test -z "$as_dir" && as_dir=.
  4143. for ac_exec_ext in '' $ac_executable_extensions; do
  4144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4145. ac_cv_prog_ac_ct_AS="as"
  4146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147. break 2
  4148. fi
  4149. done
  4150. done
  4151. IFS=$as_save_IFS
  4152. fi
  4153. fi
  4154. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4155. if test -n "$ac_ct_AS"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4157. $as_echo "$ac_ct_AS" >&6; }
  4158. else
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4160. $as_echo "no" >&6; }
  4161. fi
  4162. if test "x$ac_ct_AS" = x; then
  4163. AS=""
  4164. else
  4165. case $cross_compiling:$ac_tool_warned in
  4166. yes:)
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4168. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4169. ac_tool_warned=yes ;;
  4170. esac
  4171. AS=$ac_ct_AS
  4172. fi
  4173. else
  4174. AS="$ac_cv_prog_AS"
  4175. fi
  4176. if test -n "$ac_tool_prefix"; then
  4177. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4178. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4180. $as_echo_n "checking for $ac_word... " >&6; }
  4181. if test "${ac_cv_prog_AR+set}" = set; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. if test -n "$AR"; then
  4185. ac_cv_prog_AR="$AR" # Let the user override the test.
  4186. else
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH
  4189. do
  4190. IFS=$as_save_IFS
  4191. test -z "$as_dir" && as_dir=.
  4192. for ac_exec_ext in '' $ac_executable_extensions; do
  4193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4194. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4196. break 2
  4197. fi
  4198. done
  4199. done
  4200. IFS=$as_save_IFS
  4201. fi
  4202. fi
  4203. AR=$ac_cv_prog_AR
  4204. if test -n "$AR"; then
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4206. $as_echo "$AR" >&6; }
  4207. else
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4209. $as_echo "no" >&6; }
  4210. fi
  4211. fi
  4212. if test -z "$ac_cv_prog_AR"; then
  4213. ac_ct_AR=$AR
  4214. # Extract the first word of "ar", so it can be a program name with args.
  4215. set dummy ar; ac_word=$2
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4217. $as_echo_n "checking for $ac_word... " >&6; }
  4218. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. if test -n "$ac_ct_AR"; then
  4222. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4223. else
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_exec_ext in '' $ac_executable_extensions; do
  4230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4231. ac_cv_prog_ac_ct_AR="ar"
  4232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4233. break 2
  4234. fi
  4235. done
  4236. done
  4237. IFS=$as_save_IFS
  4238. fi
  4239. fi
  4240. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4241. if test -n "$ac_ct_AR"; then
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4243. $as_echo "$ac_ct_AR" >&6; }
  4244. else
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4246. $as_echo "no" >&6; }
  4247. fi
  4248. if test "x$ac_ct_AR" = x; then
  4249. AR=""
  4250. else
  4251. case $cross_compiling:$ac_tool_warned in
  4252. yes:)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4255. ac_tool_warned=yes ;;
  4256. esac
  4257. AR=$ac_ct_AR
  4258. fi
  4259. else
  4260. AR="$ac_cv_prog_AR"
  4261. fi
  4262. if test -n "$ac_tool_prefix"; then
  4263. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4264. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4266. $as_echo_n "checking for $ac_word... " >&6; }
  4267. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$RANLIB"; then
  4271. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4272. else
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. fi
  4288. fi
  4289. RANLIB=$ac_cv_prog_RANLIB
  4290. if test -n "$RANLIB"; then
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4292. $as_echo "$RANLIB" >&6; }
  4293. else
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4295. $as_echo "no" >&6; }
  4296. fi
  4297. fi
  4298. if test -z "$ac_cv_prog_RANLIB"; then
  4299. ac_ct_RANLIB=$RANLIB
  4300. # Extract the first word of "ranlib", so it can be a program name with args.
  4301. set dummy ranlib; ac_word=$2
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4303. $as_echo_n "checking for $ac_word... " >&6; }
  4304. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4305. $as_echo_n "(cached) " >&6
  4306. else
  4307. if test -n "$ac_ct_RANLIB"; then
  4308. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4309. else
  4310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4311. for as_dir in $PATH
  4312. do
  4313. IFS=$as_save_IFS
  4314. test -z "$as_dir" && as_dir=.
  4315. for ac_exec_ext in '' $ac_executable_extensions; do
  4316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4317. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4319. break 2
  4320. fi
  4321. done
  4322. done
  4323. IFS=$as_save_IFS
  4324. fi
  4325. fi
  4326. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4327. if test -n "$ac_ct_RANLIB"; then
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4329. $as_echo "$ac_ct_RANLIB" >&6; }
  4330. else
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4332. $as_echo "no" >&6; }
  4333. fi
  4334. if test "x$ac_ct_RANLIB" = x; then
  4335. RANLIB="ranlib-not-found-in-path-error"
  4336. else
  4337. case $cross_compiling:$ac_tool_warned in
  4338. yes:)
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4341. ac_tool_warned=yes ;;
  4342. esac
  4343. RANLIB=$ac_ct_RANLIB
  4344. fi
  4345. else
  4346. RANLIB="$ac_cv_prog_RANLIB"
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4349. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4350. set x ${MAKE-make}
  4351. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4352. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. cat >conftest.make <<\_ACEOF
  4356. SHELL = /bin/sh
  4357. all:
  4358. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4359. _ACEOF
  4360. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4361. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4362. *@@@%%%=?*=@@@%%%*)
  4363. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4364. *)
  4365. eval ac_cv_prog_make_${ac_make}_set=no;;
  4366. esac
  4367. rm -f conftest.make
  4368. fi
  4369. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4371. $as_echo "yes" >&6; }
  4372. SET_MAKE=
  4373. else
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4375. $as_echo "no" >&6; }
  4376. SET_MAKE="MAKE=${MAKE-make}"
  4377. fi
  4378. # Configure libtool
  4379. #AC_MSG_NOTICE([====== Starting libtool configuration])
  4380. enable_dlopen=yes
  4381. case `pwd` in
  4382. *\ * | *\ *)
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4384. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4385. esac
  4386. macro_version='2.2.7a'
  4387. macro_revision='1.3134'
  4388. ltmain="$ac_aux_dir/ltmain.sh"
  4389. # Backslashify metacharacters that are still active within
  4390. # double-quoted strings.
  4391. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4392. # Same as above, but do not quote variable references.
  4393. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4394. # Sed substitution to delay expansion of an escaped shell variable in a
  4395. # double_quote_subst'ed string.
  4396. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4397. # Sed substitution to delay expansion of an escaped single quote.
  4398. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4399. # Sed substitution to avoid accidental globbing in evaled expressions
  4400. no_glob_subst='s/\*/\\\*/g'
  4401. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4402. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4403. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4405. $as_echo_n "checking how to print strings... " >&6; }
  4406. # Test print first, because it will be a builtin if present.
  4407. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4408. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4409. ECHO='print -r --'
  4410. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4411. ECHO='printf %s\n'
  4412. else
  4413. # Use this function as a fallback that always works.
  4414. func_fallback_echo ()
  4415. {
  4416. eval 'cat <<_LTECHO_EOF
  4417. $1
  4418. _LTECHO_EOF'
  4419. }
  4420. ECHO='func_fallback_echo'
  4421. fi
  4422. # func_echo_all arg...
  4423. # Invoke $ECHO with all args, space-separated.
  4424. func_echo_all ()
  4425. {
  4426. $ECHO ""
  4427. }
  4428. case "$ECHO" in
  4429. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4430. $as_echo "printf" >&6; } ;;
  4431. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4432. $as_echo "print -r" >&6; } ;;
  4433. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4434. $as_echo "cat" >&6; } ;;
  4435. esac
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4437. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4438. if test "${ac_cv_path_SED+set}" = set; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4442. for ac_i in 1 2 3 4 5 6 7; do
  4443. ac_script="$ac_script$as_nl$ac_script"
  4444. done
  4445. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4446. { ac_script=; unset ac_script;}
  4447. if test -z "$SED"; then
  4448. ac_path_SED_found=false
  4449. # Loop through the user's path and test for each of PROGNAME-LIST
  4450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4451. for as_dir in $PATH
  4452. do
  4453. IFS=$as_save_IFS
  4454. test -z "$as_dir" && as_dir=.
  4455. for ac_prog in sed gsed; do
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4458. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4459. # Check for GNU ac_path_SED and select it if it is found.
  4460. # Check for GNU $ac_path_SED
  4461. case `"$ac_path_SED" --version 2>&1` in
  4462. *GNU*)
  4463. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4464. *)
  4465. ac_count=0
  4466. $as_echo_n 0123456789 >"conftest.in"
  4467. while :
  4468. do
  4469. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4470. mv "conftest.tmp" "conftest.in"
  4471. cp "conftest.in" "conftest.nl"
  4472. $as_echo '' >> "conftest.nl"
  4473. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4474. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4475. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4476. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4477. # Best one so far, save it but keep looking for a better one
  4478. ac_cv_path_SED="$ac_path_SED"
  4479. ac_path_SED_max=$ac_count
  4480. fi
  4481. # 10*(2^10) chars as input seems more than enough
  4482. test $ac_count -gt 10 && break
  4483. done
  4484. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4485. esac
  4486. $ac_path_SED_found && break 3
  4487. done
  4488. done
  4489. done
  4490. IFS=$as_save_IFS
  4491. if test -z "$ac_cv_path_SED"; then
  4492. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4493. fi
  4494. else
  4495. ac_cv_path_SED=$SED
  4496. fi
  4497. fi
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4499. $as_echo "$ac_cv_path_SED" >&6; }
  4500. SED="$ac_cv_path_SED"
  4501. rm -f conftest.sed
  4502. test -z "$SED" && SED=sed
  4503. Xsed="$SED -e 1s/^X//"
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4505. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4506. if test "${ac_cv_path_GREP+set}" = set; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. if test -z "$GREP"; then
  4510. ac_path_GREP_found=false
  4511. # Loop through the user's path and test for each of PROGNAME-LIST
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_prog in grep ggrep; do
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4520. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4521. # Check for GNU ac_path_GREP and select it if it is found.
  4522. # Check for GNU $ac_path_GREP
  4523. case `"$ac_path_GREP" --version 2>&1` in
  4524. *GNU*)
  4525. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4526. *)
  4527. ac_count=0
  4528. $as_echo_n 0123456789 >"conftest.in"
  4529. while :
  4530. do
  4531. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4532. mv "conftest.tmp" "conftest.in"
  4533. cp "conftest.in" "conftest.nl"
  4534. $as_echo 'GREP' >> "conftest.nl"
  4535. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4536. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4537. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4538. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4539. # Best one so far, save it but keep looking for a better one
  4540. ac_cv_path_GREP="$ac_path_GREP"
  4541. ac_path_GREP_max=$ac_count
  4542. fi
  4543. # 10*(2^10) chars as input seems more than enough
  4544. test $ac_count -gt 10 && break
  4545. done
  4546. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4547. esac
  4548. $ac_path_GREP_found && break 3
  4549. done
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. if test -z "$ac_cv_path_GREP"; then
  4554. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4555. fi
  4556. else
  4557. ac_cv_path_GREP=$GREP
  4558. fi
  4559. fi
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4561. $as_echo "$ac_cv_path_GREP" >&6; }
  4562. GREP="$ac_cv_path_GREP"
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4564. $as_echo_n "checking for egrep... " >&6; }
  4565. if test "${ac_cv_path_EGREP+set}" = set; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4569. then ac_cv_path_EGREP="$GREP -E"
  4570. else
  4571. if test -z "$EGREP"; then
  4572. ac_path_EGREP_found=false
  4573. # Loop through the user's path and test for each of PROGNAME-LIST
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_prog in egrep; do
  4580. for ac_exec_ext in '' $ac_executable_extensions; do
  4581. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4582. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4583. # Check for GNU ac_path_EGREP and select it if it is found.
  4584. # Check for GNU $ac_path_EGREP
  4585. case `"$ac_path_EGREP" --version 2>&1` in
  4586. *GNU*)
  4587. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4588. *)
  4589. ac_count=0
  4590. $as_echo_n 0123456789 >"conftest.in"
  4591. while :
  4592. do
  4593. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4594. mv "conftest.tmp" "conftest.in"
  4595. cp "conftest.in" "conftest.nl"
  4596. $as_echo 'EGREP' >> "conftest.nl"
  4597. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4598. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4599. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4600. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4601. # Best one so far, save it but keep looking for a better one
  4602. ac_cv_path_EGREP="$ac_path_EGREP"
  4603. ac_path_EGREP_max=$ac_count
  4604. fi
  4605. # 10*(2^10) chars as input seems more than enough
  4606. test $ac_count -gt 10 && break
  4607. done
  4608. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4609. esac
  4610. $ac_path_EGREP_found && break 3
  4611. done
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. if test -z "$ac_cv_path_EGREP"; then
  4616. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4617. fi
  4618. else
  4619. ac_cv_path_EGREP=$EGREP
  4620. fi
  4621. fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4624. $as_echo "$ac_cv_path_EGREP" >&6; }
  4625. EGREP="$ac_cv_path_EGREP"
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4627. $as_echo_n "checking for fgrep... " >&6; }
  4628. if test "${ac_cv_path_FGREP+set}" = set; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4632. then ac_cv_path_FGREP="$GREP -F"
  4633. else
  4634. if test -z "$FGREP"; then
  4635. ac_path_FGREP_found=false
  4636. # Loop through the user's path and test for each of PROGNAME-LIST
  4637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4639. do
  4640. IFS=$as_save_IFS
  4641. test -z "$as_dir" && as_dir=.
  4642. for ac_prog in fgrep; do
  4643. for ac_exec_ext in '' $ac_executable_extensions; do
  4644. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4645. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4646. # Check for GNU ac_path_FGREP and select it if it is found.
  4647. # Check for GNU $ac_path_FGREP
  4648. case `"$ac_path_FGREP" --version 2>&1` in
  4649. *GNU*)
  4650. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4651. *)
  4652. ac_count=0
  4653. $as_echo_n 0123456789 >"conftest.in"
  4654. while :
  4655. do
  4656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4657. mv "conftest.tmp" "conftest.in"
  4658. cp "conftest.in" "conftest.nl"
  4659. $as_echo 'FGREP' >> "conftest.nl"
  4660. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4663. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4664. # Best one so far, save it but keep looking for a better one
  4665. ac_cv_path_FGREP="$ac_path_FGREP"
  4666. ac_path_FGREP_max=$ac_count
  4667. fi
  4668. # 10*(2^10) chars as input seems more than enough
  4669. test $ac_count -gt 10 && break
  4670. done
  4671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4672. esac
  4673. $ac_path_FGREP_found && break 3
  4674. done
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. if test -z "$ac_cv_path_FGREP"; then
  4679. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4680. fi
  4681. else
  4682. ac_cv_path_FGREP=$FGREP
  4683. fi
  4684. fi
  4685. fi
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4687. $as_echo "$ac_cv_path_FGREP" >&6; }
  4688. FGREP="$ac_cv_path_FGREP"
  4689. test -z "$GREP" && GREP=grep
  4690. # Check whether --with-gnu-ld was given.
  4691. if test "${with_gnu_ld+set}" = set; then :
  4692. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4693. else
  4694. with_gnu_ld=no
  4695. fi
  4696. ac_prog=ld
  4697. if test "$GCC" = yes; then
  4698. # Check if gcc -print-prog-name=ld gives a path.
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4700. $as_echo_n "checking for ld used by $CC... " >&6; }
  4701. case $host in
  4702. *-*-mingw*)
  4703. # gcc leaves a trailing carriage return which upsets mingw
  4704. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4705. *)
  4706. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4707. esac
  4708. case $ac_prog in
  4709. # Accept absolute paths.
  4710. [\\/]* | ?:[\\/]*)
  4711. re_direlt='/[^/][^/]*/\.\./'
  4712. # Canonicalize the pathname of ld
  4713. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4714. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4715. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4716. done
  4717. test -z "$LD" && LD="$ac_prog"
  4718. ;;
  4719. "")
  4720. # If it fails, then pretend we aren't using GCC.
  4721. ac_prog=ld
  4722. ;;
  4723. *)
  4724. # If it is relative, then search for the first ld in PATH.
  4725. with_gnu_ld=unknown
  4726. ;;
  4727. esac
  4728. elif test "$with_gnu_ld" = yes; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4730. $as_echo_n "checking for GNU ld... " >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4733. $as_echo_n "checking for non-GNU ld... " >&6; }
  4734. fi
  4735. if test "${lt_cv_path_LD+set}" = set; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. if test -z "$LD"; then
  4739. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4740. for ac_dir in $PATH; do
  4741. IFS="$lt_save_ifs"
  4742. test -z "$ac_dir" && ac_dir=.
  4743. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4744. lt_cv_path_LD="$ac_dir/$ac_prog"
  4745. # Check to see if the program is GNU ld. I'd rather use --version,
  4746. # but apparently some variants of GNU ld only accept -v.
  4747. # Break only if it was the GNU/non-GNU ld that we prefer.
  4748. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4749. *GNU* | *'with BFD'*)
  4750. test "$with_gnu_ld" != no && break
  4751. ;;
  4752. *)
  4753. test "$with_gnu_ld" != yes && break
  4754. ;;
  4755. esac
  4756. fi
  4757. done
  4758. IFS="$lt_save_ifs"
  4759. else
  4760. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4761. fi
  4762. fi
  4763. LD="$lt_cv_path_LD"
  4764. if test -n "$LD"; then
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4766. $as_echo "$LD" >&6; }
  4767. else
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4769. $as_echo "no" >&6; }
  4770. fi
  4771. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4773. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4774. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4778. case `$LD -v 2>&1 </dev/null` in
  4779. *GNU* | *'with BFD'*)
  4780. lt_cv_prog_gnu_ld=yes
  4781. ;;
  4782. *)
  4783. lt_cv_prog_gnu_ld=no
  4784. ;;
  4785. esac
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4788. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4789. with_gnu_ld=$lt_cv_prog_gnu_ld
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4791. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4792. if test "${lt_cv_path_NM+set}" = set; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$NM"; then
  4796. # Let the user override the test.
  4797. lt_cv_path_NM="$NM"
  4798. else
  4799. lt_nm_to_check="${ac_tool_prefix}nm"
  4800. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4801. lt_nm_to_check="$lt_nm_to_check nm"
  4802. fi
  4803. for lt_tmp_nm in $lt_nm_to_check; do
  4804. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4805. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4806. IFS="$lt_save_ifs"
  4807. test -z "$ac_dir" && ac_dir=.
  4808. tmp_nm="$ac_dir/$lt_tmp_nm"
  4809. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4810. # Check to see if the nm accepts a BSD-compat flag.
  4811. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4812. # nm: unknown option "B" ignored
  4813. # Tru64's nm complains that /dev/null is an invalid object file
  4814. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4815. */dev/null* | *'Invalid file or object type'*)
  4816. lt_cv_path_NM="$tmp_nm -B"
  4817. break
  4818. ;;
  4819. *)
  4820. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4821. */dev/null*)
  4822. lt_cv_path_NM="$tmp_nm -p"
  4823. break
  4824. ;;
  4825. *)
  4826. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4827. continue # so that we can try to find one that supports BSD flags
  4828. ;;
  4829. esac
  4830. ;;
  4831. esac
  4832. fi
  4833. done
  4834. IFS="$lt_save_ifs"
  4835. done
  4836. : ${lt_cv_path_NM=no}
  4837. fi
  4838. fi
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4840. $as_echo "$lt_cv_path_NM" >&6; }
  4841. if test "$lt_cv_path_NM" != "no"; then
  4842. NM="$lt_cv_path_NM"
  4843. else
  4844. # Didn't find any BSD compatible name lister, look for dumpbin.
  4845. if test -n "$DUMPBIN"; then :
  4846. # Let the user override the test.
  4847. else
  4848. if test -n "$ac_tool_prefix"; then
  4849. for ac_prog in dumpbin "link -dump"
  4850. do
  4851. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4852. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4854. $as_echo_n "checking for $ac_word... " >&6; }
  4855. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. if test -n "$DUMPBIN"; then
  4859. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4860. else
  4861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4862. for as_dir in $PATH
  4863. do
  4864. IFS=$as_save_IFS
  4865. test -z "$as_dir" && as_dir=.
  4866. for ac_exec_ext in '' $ac_executable_extensions; do
  4867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4868. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4870. break 2
  4871. fi
  4872. done
  4873. done
  4874. IFS=$as_save_IFS
  4875. fi
  4876. fi
  4877. DUMPBIN=$ac_cv_prog_DUMPBIN
  4878. if test -n "$DUMPBIN"; then
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4880. $as_echo "$DUMPBIN" >&6; }
  4881. else
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4883. $as_echo "no" >&6; }
  4884. fi
  4885. test -n "$DUMPBIN" && break
  4886. done
  4887. fi
  4888. if test -z "$DUMPBIN"; then
  4889. ac_ct_DUMPBIN=$DUMPBIN
  4890. for ac_prog in dumpbin "link -dump"
  4891. do
  4892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4893. set dummy $ac_prog; ac_word=$2
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4895. $as_echo_n "checking for $ac_word... " >&6; }
  4896. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. if test -n "$ac_ct_DUMPBIN"; then
  4900. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4901. else
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH
  4904. do
  4905. IFS=$as_save_IFS
  4906. test -z "$as_dir" && as_dir=.
  4907. for ac_exec_ext in '' $ac_executable_extensions; do
  4908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4909. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4911. break 2
  4912. fi
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. fi
  4917. fi
  4918. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4919. if test -n "$ac_ct_DUMPBIN"; then
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4921. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; }
  4925. fi
  4926. test -n "$ac_ct_DUMPBIN" && break
  4927. done
  4928. if test "x$ac_ct_DUMPBIN" = x; then
  4929. DUMPBIN=":"
  4930. else
  4931. case $cross_compiling:$ac_tool_warned in
  4932. yes:)
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4935. ac_tool_warned=yes ;;
  4936. esac
  4937. DUMPBIN=$ac_ct_DUMPBIN
  4938. fi
  4939. fi
  4940. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4941. *COFF*)
  4942. DUMPBIN="$DUMPBIN -symbols"
  4943. ;;
  4944. *)
  4945. DUMPBIN=:
  4946. ;;
  4947. esac
  4948. fi
  4949. if test "$DUMPBIN" != ":"; then
  4950. NM="$DUMPBIN"
  4951. fi
  4952. fi
  4953. test -z "$NM" && NM=nm
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4955. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4956. if test "${lt_cv_nm_interface+set}" = set; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. lt_cv_nm_interface="BSD nm"
  4960. echo "int some_variable = 0;" > conftest.$ac_ext
  4961. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4962. (eval "$ac_compile" 2>conftest.err)
  4963. cat conftest.err >&5
  4964. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4965. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4966. cat conftest.err >&5
  4967. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4968. cat conftest.out >&5
  4969. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4970. lt_cv_nm_interface="MS dumpbin"
  4971. fi
  4972. rm -f conftest*
  4973. fi
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4975. $as_echo "$lt_cv_nm_interface" >&6; }
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4977. $as_echo_n "checking whether ln -s works... " >&6; }
  4978. LN_S=$as_ln_s
  4979. if test "$LN_S" = "ln -s"; then
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4981. $as_echo "yes" >&6; }
  4982. else
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4984. $as_echo "no, using $LN_S" >&6; }
  4985. fi
  4986. # find the maximum length of command line arguments
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4988. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4989. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. i=0
  4993. teststring="ABCD"
  4994. case $build_os in
  4995. msdosdjgpp*)
  4996. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4997. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4998. # during glob expansion). Even if it were fixed, the result of this
  4999. # check would be larger than it should be.
  5000. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5001. ;;
  5002. gnu*)
  5003. # Under GNU Hurd, this test is not required because there is
  5004. # no limit to the length of command line arguments.
  5005. # Libtool will interpret -1 as no limit whatsoever
  5006. lt_cv_sys_max_cmd_len=-1;
  5007. ;;
  5008. cygwin* | mingw* | cegcc*)
  5009. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5010. # about 5 minutes as the teststring grows exponentially.
  5011. # Worse, since 9x/ME are not pre-emptively multitasking,
  5012. # you end up with a "frozen" computer, even though with patience
  5013. # the test eventually succeeds (with a max line length of 256k).
  5014. # Instead, let's just punt: use the minimum linelength reported by
  5015. # all of the supported platforms: 8192 (on NT/2K/XP).
  5016. lt_cv_sys_max_cmd_len=8192;
  5017. ;;
  5018. mint*)
  5019. # On MiNT this can take a long time and run out of memory.
  5020. lt_cv_sys_max_cmd_len=8192;
  5021. ;;
  5022. amigaos*)
  5023. # On AmigaOS with pdksh, this test takes hours, literally.
  5024. # So we just punt and use a minimum line length of 8192.
  5025. lt_cv_sys_max_cmd_len=8192;
  5026. ;;
  5027. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5028. # This has been around since 386BSD, at least. Likely further.
  5029. if test -x /sbin/sysctl; then
  5030. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5031. elif test -x /usr/sbin/sysctl; then
  5032. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5033. else
  5034. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5035. fi
  5036. # And add a safety zone
  5037. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5038. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5039. ;;
  5040. interix*)
  5041. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5042. lt_cv_sys_max_cmd_len=196608
  5043. ;;
  5044. osf*)
  5045. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5046. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5047. # nice to cause kernel panics so lets avoid the loop below.
  5048. # First set a reasonable default.
  5049. lt_cv_sys_max_cmd_len=16384
  5050. #
  5051. if test -x /sbin/sysconfig; then
  5052. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5053. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5054. esac
  5055. fi
  5056. ;;
  5057. sco3.2v5*)
  5058. lt_cv_sys_max_cmd_len=102400
  5059. ;;
  5060. sysv5* | sco5v6* | sysv4.2uw2*)
  5061. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5062. if test -n "$kargmax"; then
  5063. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5064. else
  5065. lt_cv_sys_max_cmd_len=32768
  5066. fi
  5067. ;;
  5068. *)
  5069. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5070. if test -n "$lt_cv_sys_max_cmd_len"; then
  5071. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5072. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5073. else
  5074. # Make teststring a little bigger before we do anything with it.
  5075. # a 1K string should be a reasonable start.
  5076. for i in 1 2 3 4 5 6 7 8 ; do
  5077. teststring=$teststring$teststring
  5078. done
  5079. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5080. # If test is not a shell built-in, we'll probably end up computing a
  5081. # maximum length that is only half of the actual maximum length, but
  5082. # we can't tell.
  5083. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5084. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5085. test $i != 17 # 1/2 MB should be enough
  5086. do
  5087. i=`expr $i + 1`
  5088. teststring=$teststring$teststring
  5089. done
  5090. # Only check the string length outside the loop.
  5091. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5092. teststring=
  5093. # Add a significant safety factor because C++ compilers can tack on
  5094. # massive amounts of additional arguments before passing them to the
  5095. # linker. It appears as though 1/2 is a usable value.
  5096. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5097. fi
  5098. ;;
  5099. esac
  5100. fi
  5101. if test -n $lt_cv_sys_max_cmd_len ; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5103. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5106. $as_echo "none" >&6; }
  5107. fi
  5108. max_cmd_len=$lt_cv_sys_max_cmd_len
  5109. : ${CP="cp -f"}
  5110. : ${MV="mv -f"}
  5111. : ${RM="rm -f"}
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5113. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5114. # Try some XSI features
  5115. xsi_shell=no
  5116. ( _lt_dummy="a/b/c"
  5117. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5118. = c,a/b,, \
  5119. && eval 'test $(( 1 + 1 )) -eq 2 \
  5120. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5121. && xsi_shell=yes
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5123. $as_echo "$xsi_shell" >&6; }
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5125. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5126. lt_shell_append=no
  5127. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5128. >/dev/null 2>&1 \
  5129. && lt_shell_append=yes
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5131. $as_echo "$lt_shell_append" >&6; }
  5132. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5133. lt_unset=unset
  5134. else
  5135. lt_unset=false
  5136. fi
  5137. # test EBCDIC or ASCII
  5138. case `echo X|tr X '\101'` in
  5139. A) # ASCII based system
  5140. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5141. lt_SP2NL='tr \040 \012'
  5142. lt_NL2SP='tr \015\012 \040\040'
  5143. ;;
  5144. *) # EBCDIC based system
  5145. lt_SP2NL='tr \100 \n'
  5146. lt_NL2SP='tr \r\n \100\100'
  5147. ;;
  5148. esac
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5150. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5151. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. lt_cv_ld_reload_flag='-r'
  5155. fi
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5157. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5158. reload_flag=$lt_cv_ld_reload_flag
  5159. case $reload_flag in
  5160. "" | " "*) ;;
  5161. *) reload_flag=" $reload_flag" ;;
  5162. esac
  5163. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5164. case $host_os in
  5165. darwin*)
  5166. if test "$GCC" = yes; then
  5167. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5168. else
  5169. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5170. fi
  5171. ;;
  5172. esac
  5173. if test -n "$ac_tool_prefix"; then
  5174. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5175. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5177. $as_echo_n "checking for $ac_word... " >&6; }
  5178. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. if test -n "$OBJDUMP"; then
  5182. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5183. else
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5191. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. fi
  5199. fi
  5200. OBJDUMP=$ac_cv_prog_OBJDUMP
  5201. if test -n "$OBJDUMP"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5203. $as_echo "$OBJDUMP" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5206. $as_echo "no" >&6; }
  5207. fi
  5208. fi
  5209. if test -z "$ac_cv_prog_OBJDUMP"; then
  5210. ac_ct_OBJDUMP=$OBJDUMP
  5211. # Extract the first word of "objdump", so it can be a program name with args.
  5212. set dummy objdump; ac_word=$2
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5214. $as_echo_n "checking for $ac_word... " >&6; }
  5215. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$ac_ct_OBJDUMP"; then
  5219. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5220. else
  5221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5222. for as_dir in $PATH
  5223. do
  5224. IFS=$as_save_IFS
  5225. test -z "$as_dir" && as_dir=.
  5226. for ac_exec_ext in '' $ac_executable_extensions; do
  5227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5228. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5230. break 2
  5231. fi
  5232. done
  5233. done
  5234. IFS=$as_save_IFS
  5235. fi
  5236. fi
  5237. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5238. if test -n "$ac_ct_OBJDUMP"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5240. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. if test "x$ac_ct_OBJDUMP" = x; then
  5246. OBJDUMP="false"
  5247. else
  5248. case $cross_compiling:$ac_tool_warned in
  5249. yes:)
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5252. ac_tool_warned=yes ;;
  5253. esac
  5254. OBJDUMP=$ac_ct_OBJDUMP
  5255. fi
  5256. else
  5257. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5258. fi
  5259. test -z "$OBJDUMP" && OBJDUMP=objdump
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5261. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5262. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5266. lt_cv_file_magic_test_file=
  5267. lt_cv_deplibs_check_method='unknown'
  5268. # Need to set the preceding variable on all platforms that support
  5269. # interlibrary dependencies.
  5270. # 'none' -- dependencies not supported.
  5271. # `unknown' -- same as none, but documents that we really don't know.
  5272. # 'pass_all' -- all dependencies passed with no checks.
  5273. # 'test_compile' -- check by making test program.
  5274. # 'file_magic [[regex]]' -- check by looking for files in library path
  5275. # which responds to the $file_magic_cmd with a given extended regex.
  5276. # If you have `file' or equivalent on your system and you're not sure
  5277. # whether `pass_all' will *always* work, you probably want this one.
  5278. case $host_os in
  5279. aix[4-9]*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. beos*)
  5283. lt_cv_deplibs_check_method=pass_all
  5284. ;;
  5285. bsdi[45]*)
  5286. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5287. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5288. lt_cv_file_magic_test_file=/shlib/libc.so
  5289. ;;
  5290. cygwin*)
  5291. # func_win32_libid is a shell function defined in ltmain.sh
  5292. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5293. lt_cv_file_magic_cmd='func_win32_libid'
  5294. ;;
  5295. mingw* | pw32*)
  5296. # Base MSYS/MinGW do not provide the 'file' command needed by
  5297. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5298. # unless we find 'file', for example because we are cross-compiling.
  5299. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5300. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5301. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5302. lt_cv_file_magic_cmd='func_win32_libid'
  5303. else
  5304. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5305. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5306. fi
  5307. ;;
  5308. cegcc*)
  5309. # use the weaker test based on 'objdump'. See mingw*.
  5310. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5311. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5312. ;;
  5313. darwin* | rhapsody*)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. freebsd* | dragonfly*)
  5317. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5318. case $host_cpu in
  5319. i*86 )
  5320. # Not sure whether the presence of OpenBSD here was a mistake.
  5321. # Let's accept both of them until this is cleared up.
  5322. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5323. lt_cv_file_magic_cmd=/usr/bin/file
  5324. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5325. ;;
  5326. esac
  5327. else
  5328. lt_cv_deplibs_check_method=pass_all
  5329. fi
  5330. ;;
  5331. gnu*)
  5332. lt_cv_deplibs_check_method=pass_all
  5333. ;;
  5334. haiku*)
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. hpux10.20* | hpux11*)
  5338. lt_cv_file_magic_cmd=/usr/bin/file
  5339. case $host_cpu in
  5340. ia64*)
  5341. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5342. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5343. ;;
  5344. hppa*64*)
  5345. 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]'
  5346. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5347. ;;
  5348. *)
  5349. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5350. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5351. ;;
  5352. esac
  5353. ;;
  5354. interix[3-9]*)
  5355. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5356. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5357. ;;
  5358. irix5* | irix6* | nonstopux*)
  5359. case $LD in
  5360. *-32|*"-32 ") libmagic=32-bit;;
  5361. *-n32|*"-n32 ") libmagic=N32;;
  5362. *-64|*"-64 ") libmagic=64-bit;;
  5363. *) libmagic=never-match;;
  5364. esac
  5365. lt_cv_deplibs_check_method=pass_all
  5366. ;;
  5367. # This must be Linux ELF.
  5368. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5369. lt_cv_deplibs_check_method=pass_all
  5370. ;;
  5371. netbsd*)
  5372. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5373. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5374. else
  5375. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5376. fi
  5377. ;;
  5378. newos6*)
  5379. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5380. lt_cv_file_magic_cmd=/usr/bin/file
  5381. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5382. ;;
  5383. *nto* | *qnx*)
  5384. lt_cv_deplibs_check_method=pass_all
  5385. ;;
  5386. openbsd*)
  5387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5388. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5389. else
  5390. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5391. fi
  5392. ;;
  5393. osf3* | osf4* | osf5*)
  5394. lt_cv_deplibs_check_method=pass_all
  5395. ;;
  5396. rdos*)
  5397. lt_cv_deplibs_check_method=pass_all
  5398. ;;
  5399. solaris*)
  5400. lt_cv_deplibs_check_method=pass_all
  5401. ;;
  5402. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5403. lt_cv_deplibs_check_method=pass_all
  5404. ;;
  5405. sysv4 | sysv4.3*)
  5406. case $host_vendor in
  5407. motorola)
  5408. 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]'
  5409. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5410. ;;
  5411. ncr)
  5412. lt_cv_deplibs_check_method=pass_all
  5413. ;;
  5414. sequent)
  5415. lt_cv_file_magic_cmd='/bin/file'
  5416. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5417. ;;
  5418. sni)
  5419. lt_cv_file_magic_cmd='/bin/file'
  5420. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5421. lt_cv_file_magic_test_file=/lib/libc.so
  5422. ;;
  5423. siemens)
  5424. lt_cv_deplibs_check_method=pass_all
  5425. ;;
  5426. pc)
  5427. lt_cv_deplibs_check_method=pass_all
  5428. ;;
  5429. esac
  5430. ;;
  5431. tpf*)
  5432. lt_cv_deplibs_check_method=pass_all
  5433. ;;
  5434. esac
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5437. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5438. file_magic_cmd=$lt_cv_file_magic_cmd
  5439. deplibs_check_method=$lt_cv_deplibs_check_method
  5440. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5441. if test -n "$ac_tool_prefix"; then
  5442. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5443. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if test "${ac_cv_prog_AR+set}" = set; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$AR"; then
  5450. ac_cv_prog_AR="$AR" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. AR=$ac_cv_prog_AR
  5469. if test -n "$AR"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5471. $as_echo "$AR" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. fi
  5477. if test -z "$ac_cv_prog_AR"; then
  5478. ac_ct_AR=$AR
  5479. # Extract the first word of "ar", so it can be a program name with args.
  5480. set dummy ar; ac_word=$2
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5482. $as_echo_n "checking for $ac_word... " >&6; }
  5483. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -n "$ac_ct_AR"; then
  5487. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5488. else
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5496. ac_cv_prog_ac_ct_AR="ar"
  5497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. fi
  5504. fi
  5505. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5506. if test -n "$ac_ct_AR"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5508. $as_echo "$ac_ct_AR" >&6; }
  5509. else
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. $as_echo "no" >&6; }
  5512. fi
  5513. if test "x$ac_ct_AR" = x; then
  5514. AR="false"
  5515. else
  5516. case $cross_compiling:$ac_tool_warned in
  5517. yes:)
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5520. ac_tool_warned=yes ;;
  5521. esac
  5522. AR=$ac_ct_AR
  5523. fi
  5524. else
  5525. AR="$ac_cv_prog_AR"
  5526. fi
  5527. test -z "$AR" && AR=ar
  5528. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5529. if test -n "$ac_tool_prefix"; then
  5530. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5531. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5533. $as_echo_n "checking for $ac_word... " >&6; }
  5534. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. if test -n "$STRIP"; then
  5538. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5539. else
  5540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5541. for as_dir in $PATH
  5542. do
  5543. IFS=$as_save_IFS
  5544. test -z "$as_dir" && as_dir=.
  5545. for ac_exec_ext in '' $ac_executable_extensions; do
  5546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5547. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5549. break 2
  5550. fi
  5551. done
  5552. done
  5553. IFS=$as_save_IFS
  5554. fi
  5555. fi
  5556. STRIP=$ac_cv_prog_STRIP
  5557. if test -n "$STRIP"; then
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5559. $as_echo "$STRIP" >&6; }
  5560. else
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5562. $as_echo "no" >&6; }
  5563. fi
  5564. fi
  5565. if test -z "$ac_cv_prog_STRIP"; then
  5566. ac_ct_STRIP=$STRIP
  5567. # Extract the first word of "strip", so it can be a program name with args.
  5568. set dummy strip; ac_word=$2
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5570. $as_echo_n "checking for $ac_word... " >&6; }
  5571. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. if test -n "$ac_ct_STRIP"; then
  5575. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. test -z "$as_dir" && as_dir=.
  5582. for ac_exec_ext in '' $ac_executable_extensions; do
  5583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5584. ac_cv_prog_ac_ct_STRIP="strip"
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5586. break 2
  5587. fi
  5588. done
  5589. done
  5590. IFS=$as_save_IFS
  5591. fi
  5592. fi
  5593. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5594. if test -n "$ac_ct_STRIP"; then
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5596. $as_echo "$ac_ct_STRIP" >&6; }
  5597. else
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5599. $as_echo "no" >&6; }
  5600. fi
  5601. if test "x$ac_ct_STRIP" = x; then
  5602. STRIP=":"
  5603. else
  5604. case $cross_compiling:$ac_tool_warned in
  5605. yes:)
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5608. ac_tool_warned=yes ;;
  5609. esac
  5610. STRIP=$ac_ct_STRIP
  5611. fi
  5612. else
  5613. STRIP="$ac_cv_prog_STRIP"
  5614. fi
  5615. test -z "$STRIP" && STRIP=:
  5616. if test -n "$ac_tool_prefix"; then
  5617. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5618. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$RANLIB"; then
  5625. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5634. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. RANLIB=$ac_cv_prog_RANLIB
  5644. if test -n "$RANLIB"; then
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5646. $as_echo "$RANLIB" >&6; }
  5647. else
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. fi
  5652. if test -z "$ac_cv_prog_RANLIB"; then
  5653. ac_ct_RANLIB=$RANLIB
  5654. # Extract the first word of "ranlib", so it can be a program name with args.
  5655. set dummy ranlib; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$ac_ct_RANLIB"; then
  5662. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5671. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5681. if test -n "$ac_ct_RANLIB"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5683. $as_echo "$ac_ct_RANLIB" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. if test "x$ac_ct_RANLIB" = x; then
  5689. RANLIB=":"
  5690. else
  5691. case $cross_compiling:$ac_tool_warned in
  5692. yes:)
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5695. ac_tool_warned=yes ;;
  5696. esac
  5697. RANLIB=$ac_ct_RANLIB
  5698. fi
  5699. else
  5700. RANLIB="$ac_cv_prog_RANLIB"
  5701. fi
  5702. test -z "$RANLIB" && RANLIB=:
  5703. # Determine commands to create old-style static archives.
  5704. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5705. old_postinstall_cmds='chmod 644 $oldlib'
  5706. old_postuninstall_cmds=
  5707. if test -n "$RANLIB"; then
  5708. case $host_os in
  5709. openbsd*)
  5710. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5711. ;;
  5712. *)
  5713. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5714. ;;
  5715. esac
  5716. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5717. fi
  5718. case $host_os in
  5719. darwin*)
  5720. lock_old_archive_extraction=yes ;;
  5721. *)
  5722. lock_old_archive_extraction=no ;;
  5723. esac
  5724. # If no C compiler was specified, use CC.
  5725. LTCC=${LTCC-"$CC"}
  5726. # If no C compiler flags were specified, use CFLAGS.
  5727. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5728. # Allow CC to be a program name with arguments.
  5729. compiler=$CC
  5730. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5732. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5733. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. # These are sane defaults that work on at least a few old systems.
  5737. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5738. # Character class describing NM global symbol codes.
  5739. symcode='[BCDEGRST]'
  5740. # Regexp to match symbols that can be accessed directly from C.
  5741. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5742. # Define system-specific variables.
  5743. case $host_os in
  5744. aix*)
  5745. symcode='[BCDT]'
  5746. ;;
  5747. cygwin* | mingw* | pw32* | cegcc*)
  5748. symcode='[ABCDGISTW]'
  5749. ;;
  5750. hpux*)
  5751. if test "$host_cpu" = ia64; then
  5752. symcode='[ABCDEGRST]'
  5753. fi
  5754. ;;
  5755. irix* | nonstopux*)
  5756. symcode='[BCDEGRST]'
  5757. ;;
  5758. osf*)
  5759. symcode='[BCDEGQRST]'
  5760. ;;
  5761. solaris*)
  5762. symcode='[BDRT]'
  5763. ;;
  5764. sco3.2v5*)
  5765. symcode='[DT]'
  5766. ;;
  5767. sysv4.2uw2*)
  5768. symcode='[DT]'
  5769. ;;
  5770. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5771. symcode='[ABDT]'
  5772. ;;
  5773. sysv4)
  5774. symcode='[DFNSTU]'
  5775. ;;
  5776. esac
  5777. # If we're using GNU nm, then use its standard symbol codes.
  5778. case `$NM -V 2>&1` in
  5779. *GNU* | *'with BFD'*)
  5780. symcode='[ABCDGIRSTW]' ;;
  5781. esac
  5782. # Transform an extracted symbol line into a proper C declaration.
  5783. # Some systems (esp. on ia64) link data and code symbols differently,
  5784. # so use this general approach.
  5785. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5786. # Transform an extracted symbol line into symbol name and symbol address
  5787. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5788. 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'"
  5789. # Handle CRLF in mingw tool chain
  5790. opt_cr=
  5791. case $build_os in
  5792. mingw*)
  5793. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5794. ;;
  5795. esac
  5796. # Try without a prefix underscore, then with it.
  5797. for ac_symprfx in "" "_"; do
  5798. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5799. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5800. # Write the raw and C identifiers.
  5801. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5802. # Fake it for dumpbin and say T for any non-static function
  5803. # and D for any global variable.
  5804. # Also find C++ and __fastcall symbols from MSVC++,
  5805. # which start with @ or ?.
  5806. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5807. " {last_section=section; section=\$ 3};"\
  5808. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5809. " \$ 0!~/External *\|/{next};"\
  5810. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5811. " {if(hide[section]) next};"\
  5812. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5813. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5814. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5815. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5816. " ' prfx=^$ac_symprfx"
  5817. else
  5818. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5819. fi
  5820. # Check to see that the pipe works correctly.
  5821. pipe_works=no
  5822. rm -f conftest*
  5823. cat > conftest.$ac_ext <<_LT_EOF
  5824. #ifdef __cplusplus
  5825. extern "C" {
  5826. #endif
  5827. char nm_test_var;
  5828. void nm_test_func(void);
  5829. void nm_test_func(void){}
  5830. #ifdef __cplusplus
  5831. }
  5832. #endif
  5833. int main(){nm_test_var='a';nm_test_func();return(0);}
  5834. _LT_EOF
  5835. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5836. (eval $ac_compile) 2>&5
  5837. ac_status=$?
  5838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5839. test $ac_status = 0; }; then
  5840. # Now try to grab the symbols.
  5841. nlist=conftest.nm
  5842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5843. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5846. test $ac_status = 0; } && test -s "$nlist"; then
  5847. # Try sorting and uniquifying the output.
  5848. if sort "$nlist" | uniq > "$nlist"T; then
  5849. mv -f "$nlist"T "$nlist"
  5850. else
  5851. rm -f "$nlist"T
  5852. fi
  5853. # Make sure that we snagged all the symbols we need.
  5854. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5855. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5856. cat <<_LT_EOF > conftest.$ac_ext
  5857. #ifdef __cplusplus
  5858. extern "C" {
  5859. #endif
  5860. _LT_EOF
  5861. # Now generate the symbol file.
  5862. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5863. cat <<_LT_EOF >> conftest.$ac_ext
  5864. /* The mapping between symbol names and symbols. */
  5865. const struct {
  5866. const char *name;
  5867. void *address;
  5868. }
  5869. lt__PROGRAM__LTX_preloaded_symbols[] =
  5870. {
  5871. { "@PROGRAM@", (void *) 0 },
  5872. _LT_EOF
  5873. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5874. cat <<\_LT_EOF >> conftest.$ac_ext
  5875. {0, (void *) 0}
  5876. };
  5877. /* This works around a problem in FreeBSD linker */
  5878. #ifdef FREEBSD_WORKAROUND
  5879. static const void *lt_preloaded_setup() {
  5880. return lt__PROGRAM__LTX_preloaded_symbols;
  5881. }
  5882. #endif
  5883. #ifdef __cplusplus
  5884. }
  5885. #endif
  5886. _LT_EOF
  5887. # Now try linking the two files.
  5888. mv conftest.$ac_objext conftstm.$ac_objext
  5889. lt_save_LIBS="$LIBS"
  5890. lt_save_CFLAGS="$CFLAGS"
  5891. LIBS="conftstm.$ac_objext"
  5892. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5893. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5894. (eval $ac_link) 2>&5
  5895. ac_status=$?
  5896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5897. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5898. pipe_works=yes
  5899. fi
  5900. LIBS="$lt_save_LIBS"
  5901. CFLAGS="$lt_save_CFLAGS"
  5902. else
  5903. echo "cannot find nm_test_func in $nlist" >&5
  5904. fi
  5905. else
  5906. echo "cannot find nm_test_var in $nlist" >&5
  5907. fi
  5908. else
  5909. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5910. fi
  5911. else
  5912. echo "$progname: failed program was:" >&5
  5913. cat conftest.$ac_ext >&5
  5914. fi
  5915. rm -rf conftest* conftst*
  5916. # Do not use the global_symbol_pipe unless it works.
  5917. if test "$pipe_works" = yes; then
  5918. break
  5919. else
  5920. lt_cv_sys_global_symbol_pipe=
  5921. fi
  5922. done
  5923. fi
  5924. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5925. lt_cv_sys_global_symbol_to_cdecl=
  5926. fi
  5927. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5929. $as_echo "failed" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5932. $as_echo "ok" >&6; }
  5933. fi
  5934. # Check whether --enable-libtool-lock was given.
  5935. if test "${enable_libtool_lock+set}" = set; then :
  5936. enableval=$enable_libtool_lock;
  5937. fi
  5938. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5939. # Some flags need to be propagated to the compiler or linker for good
  5940. # libtool support.
  5941. case $host in
  5942. ia64-*-hpux*)
  5943. # Find out which ABI we are using.
  5944. echo 'int i;' > conftest.$ac_ext
  5945. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5946. (eval $ac_compile) 2>&5
  5947. ac_status=$?
  5948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5949. test $ac_status = 0; }; then
  5950. case `/usr/bin/file conftest.$ac_objext` in
  5951. *ELF-32*)
  5952. HPUX_IA64_MODE="32"
  5953. ;;
  5954. *ELF-64*)
  5955. HPUX_IA64_MODE="64"
  5956. ;;
  5957. esac
  5958. fi
  5959. rm -rf conftest*
  5960. ;;
  5961. *-*-irix6*)
  5962. # Find out which ABI we are using.
  5963. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5968. test $ac_status = 0; }; then
  5969. if test "$lt_cv_prog_gnu_ld" = yes; then
  5970. case `/usr/bin/file conftest.$ac_objext` in
  5971. *32-bit*)
  5972. LD="${LD-ld} -melf32bsmip"
  5973. ;;
  5974. *N32*)
  5975. LD="${LD-ld} -melf32bmipn32"
  5976. ;;
  5977. *64-bit*)
  5978. LD="${LD-ld} -melf64bmip"
  5979. ;;
  5980. esac
  5981. else
  5982. case `/usr/bin/file conftest.$ac_objext` in
  5983. *32-bit*)
  5984. LD="${LD-ld} -32"
  5985. ;;
  5986. *N32*)
  5987. LD="${LD-ld} -n32"
  5988. ;;
  5989. *64-bit*)
  5990. LD="${LD-ld} -64"
  5991. ;;
  5992. esac
  5993. fi
  5994. fi
  5995. rm -rf conftest*
  5996. ;;
  5997. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5998. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5999. # Find out which ABI we are using.
  6000. echo 'int i;' > conftest.$ac_ext
  6001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6002. (eval $ac_compile) 2>&5
  6003. ac_status=$?
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6005. test $ac_status = 0; }; then
  6006. case `/usr/bin/file conftest.o` in
  6007. *32-bit*)
  6008. case $host in
  6009. x86_64-*kfreebsd*-gnu)
  6010. LD="${LD-ld} -m elf_i386_fbsd"
  6011. ;;
  6012. x86_64-*linux*)
  6013. LD="${LD-ld} -m elf_i386"
  6014. ;;
  6015. ppc64-*linux*|powerpc64-*linux*)
  6016. LD="${LD-ld} -m elf32ppclinux"
  6017. ;;
  6018. s390x-*linux*)
  6019. LD="${LD-ld} -m elf_s390"
  6020. ;;
  6021. sparc64-*linux*)
  6022. LD="${LD-ld} -m elf32_sparc"
  6023. ;;
  6024. esac
  6025. ;;
  6026. *64-bit*)
  6027. case $host in
  6028. x86_64-*kfreebsd*-gnu)
  6029. LD="${LD-ld} -m elf_x86_64_fbsd"
  6030. ;;
  6031. x86_64-*linux*)
  6032. LD="${LD-ld} -m elf_x86_64"
  6033. ;;
  6034. ppc*-*linux*|powerpc*-*linux*)
  6035. LD="${LD-ld} -m elf64ppc"
  6036. ;;
  6037. s390*-*linux*|s390*-*tpf*)
  6038. LD="${LD-ld} -m elf64_s390"
  6039. ;;
  6040. sparc*-*linux*)
  6041. LD="${LD-ld} -m elf64_sparc"
  6042. ;;
  6043. esac
  6044. ;;
  6045. esac
  6046. fi
  6047. rm -rf conftest*
  6048. ;;
  6049. *-*-sco3.2v5*)
  6050. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6051. SAVE_CFLAGS="$CFLAGS"
  6052. CFLAGS="$CFLAGS -belf"
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6054. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6055. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. ac_ext=c
  6059. ac_cpp='$CPP $CPPFLAGS'
  6060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6063. if test x$gcc_no_link = xyes; then
  6064. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6065. fi
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. lt_cv_cc_needs_belf=yes
  6077. else
  6078. lt_cv_cc_needs_belf=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. ac_ext=c
  6083. ac_cpp='$CPP $CPPFLAGS'
  6084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6089. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6090. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6091. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6092. CFLAGS="$SAVE_CFLAGS"
  6093. fi
  6094. ;;
  6095. sparc*-*solaris*)
  6096. # Find out which ABI we are using.
  6097. echo 'int i;' > conftest.$ac_ext
  6098. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6099. (eval $ac_compile) 2>&5
  6100. ac_status=$?
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6102. test $ac_status = 0; }; then
  6103. case `/usr/bin/file conftest.o` in
  6104. *64-bit*)
  6105. case $lt_cv_prog_gnu_ld in
  6106. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6107. *)
  6108. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6109. LD="${LD-ld} -64"
  6110. fi
  6111. ;;
  6112. esac
  6113. ;;
  6114. esac
  6115. fi
  6116. rm -rf conftest*
  6117. ;;
  6118. esac
  6119. need_locks="$enable_libtool_lock"
  6120. case $host_os in
  6121. rhapsody* | darwin*)
  6122. if test -n "$ac_tool_prefix"; then
  6123. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6124. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6126. $as_echo_n "checking for $ac_word... " >&6; }
  6127. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. if test -n "$DSYMUTIL"; then
  6131. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6132. else
  6133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6134. for as_dir in $PATH
  6135. do
  6136. IFS=$as_save_IFS
  6137. test -z "$as_dir" && as_dir=.
  6138. for ac_exec_ext in '' $ac_executable_extensions; do
  6139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6140. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6142. break 2
  6143. fi
  6144. done
  6145. done
  6146. IFS=$as_save_IFS
  6147. fi
  6148. fi
  6149. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6150. if test -n "$DSYMUTIL"; then
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6152. $as_echo "$DSYMUTIL" >&6; }
  6153. else
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6155. $as_echo "no" >&6; }
  6156. fi
  6157. fi
  6158. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6159. ac_ct_DSYMUTIL=$DSYMUTIL
  6160. # Extract the first word of "dsymutil", so it can be a program name with args.
  6161. set dummy dsymutil; ac_word=$2
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6163. $as_echo_n "checking for $ac_word... " >&6; }
  6164. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. if test -n "$ac_ct_DSYMUTIL"; then
  6168. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6169. else
  6170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6171. for as_dir in $PATH
  6172. do
  6173. IFS=$as_save_IFS
  6174. test -z "$as_dir" && as_dir=.
  6175. for ac_exec_ext in '' $ac_executable_extensions; do
  6176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6177. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6179. break 2
  6180. fi
  6181. done
  6182. done
  6183. IFS=$as_save_IFS
  6184. fi
  6185. fi
  6186. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6187. if test -n "$ac_ct_DSYMUTIL"; then
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6189. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6190. else
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6192. $as_echo "no" >&6; }
  6193. fi
  6194. if test "x$ac_ct_DSYMUTIL" = x; then
  6195. DSYMUTIL=":"
  6196. else
  6197. case $cross_compiling:$ac_tool_warned in
  6198. yes:)
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6201. ac_tool_warned=yes ;;
  6202. esac
  6203. DSYMUTIL=$ac_ct_DSYMUTIL
  6204. fi
  6205. else
  6206. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$NMEDIT"; then
  6217. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6226. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. NMEDIT=$ac_cv_prog_NMEDIT
  6236. if test -n "$NMEDIT"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6238. $as_echo "$NMEDIT" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_NMEDIT"; then
  6245. ac_ct_NMEDIT=$NMEDIT
  6246. # Extract the first word of "nmedit", so it can be a program name with args.
  6247. set dummy nmedit; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_NMEDIT"; then
  6254. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6273. if test -n "$ac_ct_NMEDIT"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6275. $as_echo "$ac_ct_NMEDIT" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_NMEDIT" = x; then
  6281. NMEDIT=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. NMEDIT=$ac_ct_NMEDIT
  6290. fi
  6291. else
  6292. NMEDIT="$ac_cv_prog_NMEDIT"
  6293. fi
  6294. if test -n "$ac_tool_prefix"; then
  6295. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6296. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$LIPO"; then
  6303. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6312. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. LIPO=$ac_cv_prog_LIPO
  6322. if test -n "$LIPO"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6324. $as_echo "$LIPO" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. fi
  6330. if test -z "$ac_cv_prog_LIPO"; then
  6331. ac_ct_LIPO=$LIPO
  6332. # Extract the first word of "lipo", so it can be a program name with args.
  6333. set dummy lipo; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. if test -n "$ac_ct_LIPO"; then
  6340. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6341. else
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_exec_ext in '' $ac_executable_extensions; do
  6348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6349. ac_cv_prog_ac_ct_LIPO="lipo"
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6351. break 2
  6352. fi
  6353. done
  6354. done
  6355. IFS=$as_save_IFS
  6356. fi
  6357. fi
  6358. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6359. if test -n "$ac_ct_LIPO"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6361. $as_echo "$ac_ct_LIPO" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. if test "x$ac_ct_LIPO" = x; then
  6367. LIPO=":"
  6368. else
  6369. case $cross_compiling:$ac_tool_warned in
  6370. yes:)
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6373. ac_tool_warned=yes ;;
  6374. esac
  6375. LIPO=$ac_ct_LIPO
  6376. fi
  6377. else
  6378. LIPO="$ac_cv_prog_LIPO"
  6379. fi
  6380. if test -n "$ac_tool_prefix"; then
  6381. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6382. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$OTOOL"; then
  6389. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6398. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. OTOOL=$ac_cv_prog_OTOOL
  6408. if test -n "$OTOOL"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6410. $as_echo "$OTOOL" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. fi
  6416. if test -z "$ac_cv_prog_OTOOL"; then
  6417. ac_ct_OTOOL=$OTOOL
  6418. # Extract the first word of "otool", so it can be a program name with args.
  6419. set dummy otool; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$ac_ct_OTOOL"; then
  6426. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_prog_ac_ct_OTOOL="otool"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6445. if test -n "$ac_ct_OTOOL"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6447. $as_echo "$ac_ct_OTOOL" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. if test "x$ac_ct_OTOOL" = x; then
  6453. OTOOL=":"
  6454. else
  6455. case $cross_compiling:$ac_tool_warned in
  6456. yes:)
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6459. ac_tool_warned=yes ;;
  6460. esac
  6461. OTOOL=$ac_ct_OTOOL
  6462. fi
  6463. else
  6464. OTOOL="$ac_cv_prog_OTOOL"
  6465. fi
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$OTOOL64"; then
  6475. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6484. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. OTOOL64=$ac_cv_prog_OTOOL64
  6494. if test -n "$OTOOL64"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6496. $as_echo "$OTOOL64" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_OTOOL64"; then
  6503. ac_ct_OTOOL64=$OTOOL64
  6504. # Extract the first word of "otool64", so it can be a program name with args.
  6505. set dummy otool64; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_OTOOL64"; then
  6512. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6521. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6531. if test -n "$ac_ct_OTOOL64"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6533. $as_echo "$ac_ct_OTOOL64" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_OTOOL64" = x; then
  6539. OTOOL64=":"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. OTOOL64=$ac_ct_OTOOL64
  6548. fi
  6549. else
  6550. OTOOL64="$ac_cv_prog_OTOOL64"
  6551. fi
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6553. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6554. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. lt_cv_apple_cc_single_mod=no
  6558. if test -z "${LT_MULTI_MODULE}"; then
  6559. # By default we will add the -single_module flag. You can override
  6560. # by either setting the environment variable LT_MULTI_MODULE
  6561. # non-empty at configure time, or by adding -multi_module to the
  6562. # link flags.
  6563. rm -rf libconftest.dylib*
  6564. echo "int foo(void){return 1;}" > conftest.c
  6565. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6566. -dynamiclib -Wl,-single_module conftest.c" >&5
  6567. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6568. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6569. _lt_result=$?
  6570. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6571. lt_cv_apple_cc_single_mod=yes
  6572. else
  6573. cat conftest.err >&5
  6574. fi
  6575. rm -rf libconftest.dylib*
  6576. rm -f conftest.*
  6577. fi
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6580. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6582. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6583. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. lt_cv_ld_exported_symbols_list=no
  6587. save_LDFLAGS=$LDFLAGS
  6588. echo "_main" > conftest.sym
  6589. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6590. if test x$gcc_no_link = xyes; then
  6591. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6592. fi
  6593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6594. /* end confdefs.h. */
  6595. int
  6596. main ()
  6597. {
  6598. ;
  6599. return 0;
  6600. }
  6601. _ACEOF
  6602. if ac_fn_c_try_link "$LINENO"; then :
  6603. lt_cv_ld_exported_symbols_list=yes
  6604. else
  6605. lt_cv_ld_exported_symbols_list=no
  6606. fi
  6607. rm -f core conftest.err conftest.$ac_objext \
  6608. conftest$ac_exeext conftest.$ac_ext
  6609. LDFLAGS="$save_LDFLAGS"
  6610. fi
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6612. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6614. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6615. if test "${lt_cv_ld_force_load+set}" = set; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. lt_cv_ld_force_load=no
  6619. cat > conftest.c << _LT_EOF
  6620. int forced_loaded() { return 2;}
  6621. _LT_EOF
  6622. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6623. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6624. echo "$AR cru libconftest.a conftest.o" >&5
  6625. $AR cru libconftest.a conftest.o 2>&5
  6626. cat > conftest.c << _LT_EOF
  6627. int main() { return 0;}
  6628. _LT_EOF
  6629. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6630. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6631. _lt_result=$?
  6632. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6633. lt_cv_ld_force_load=yes
  6634. else
  6635. cat conftest.err >&5
  6636. fi
  6637. rm -f conftest.err libconftest.a conftest conftest.c
  6638. rm -rf conftest.dSYM
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6641. $as_echo "$lt_cv_ld_force_load" >&6; }
  6642. case $host_os in
  6643. rhapsody* | darwin1.[012])
  6644. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6645. darwin1.*)
  6646. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6647. darwin*) # darwin 5.x on
  6648. # if running on 10.5 or later, the deployment target defaults
  6649. # to the OS version, if on x86, and 10.4, the deployment
  6650. # target defaults to 10.4. Don't you love it?
  6651. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6652. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6653. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6654. 10.[012]*)
  6655. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6656. 10.*)
  6657. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6658. esac
  6659. ;;
  6660. esac
  6661. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6662. _lt_dar_single_mod='$single_module'
  6663. fi
  6664. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6665. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6666. else
  6667. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6668. fi
  6669. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6670. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6671. else
  6672. _lt_dsymutil=
  6673. fi
  6674. ;;
  6675. esac
  6676. ac_ext=c
  6677. ac_cpp='$CPP $CPPFLAGS'
  6678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6682. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6683. # On Suns, sometimes $CPP names a directory.
  6684. if test -n "$CPP" && test -d "$CPP"; then
  6685. CPP=
  6686. fi
  6687. if test -z "$CPP"; then
  6688. if test "${ac_cv_prog_CPP+set}" = set; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. # Double quotes because CPP needs to be expanded
  6692. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6693. do
  6694. ac_preproc_ok=false
  6695. for ac_c_preproc_warn_flag in '' yes
  6696. do
  6697. # Use a header file that comes with gcc, so configuring glibc
  6698. # with a fresh cross-compiler works.
  6699. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6700. # <limits.h> exists even on freestanding compilers.
  6701. # On the NeXT, cc -E runs the code through the compiler's parser,
  6702. # not just through cpp. "Syntax error" is here to catch this case.
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. #ifdef __STDC__
  6706. # include <limits.h>
  6707. #else
  6708. # include <assert.h>
  6709. #endif
  6710. Syntax error
  6711. _ACEOF
  6712. if ac_fn_c_try_cpp "$LINENO"; then :
  6713. else
  6714. # Broken: fails on valid input.
  6715. continue
  6716. fi
  6717. rm -f conftest.err conftest.$ac_ext
  6718. # OK, works on sane cases. Now check whether nonexistent headers
  6719. # can be detected and how.
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. #include <ac_nonexistent.h>
  6723. _ACEOF
  6724. if ac_fn_c_try_cpp "$LINENO"; then :
  6725. # Broken: success on invalid input.
  6726. continue
  6727. else
  6728. # Passes both tests.
  6729. ac_preproc_ok=:
  6730. break
  6731. fi
  6732. rm -f conftest.err conftest.$ac_ext
  6733. done
  6734. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6735. rm -f conftest.err conftest.$ac_ext
  6736. if $ac_preproc_ok; then :
  6737. break
  6738. fi
  6739. done
  6740. ac_cv_prog_CPP=$CPP
  6741. fi
  6742. CPP=$ac_cv_prog_CPP
  6743. else
  6744. ac_cv_prog_CPP=$CPP
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6747. $as_echo "$CPP" >&6; }
  6748. ac_preproc_ok=false
  6749. for ac_c_preproc_warn_flag in '' yes
  6750. do
  6751. # Use a header file that comes with gcc, so configuring glibc
  6752. # with a fresh cross-compiler works.
  6753. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6754. # <limits.h> exists even on freestanding compilers.
  6755. # On the NeXT, cc -E runs the code through the compiler's parser,
  6756. # not just through cpp. "Syntax error" is here to catch this case.
  6757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6758. /* end confdefs.h. */
  6759. #ifdef __STDC__
  6760. # include <limits.h>
  6761. #else
  6762. # include <assert.h>
  6763. #endif
  6764. Syntax error
  6765. _ACEOF
  6766. if ac_fn_c_try_cpp "$LINENO"; then :
  6767. else
  6768. # Broken: fails on valid input.
  6769. continue
  6770. fi
  6771. rm -f conftest.err conftest.$ac_ext
  6772. # OK, works on sane cases. Now check whether nonexistent headers
  6773. # can be detected and how.
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. #include <ac_nonexistent.h>
  6777. _ACEOF
  6778. if ac_fn_c_try_cpp "$LINENO"; then :
  6779. # Broken: success on invalid input.
  6780. continue
  6781. else
  6782. # Passes both tests.
  6783. ac_preproc_ok=:
  6784. break
  6785. fi
  6786. rm -f conftest.err conftest.$ac_ext
  6787. done
  6788. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6789. rm -f conftest.err conftest.$ac_ext
  6790. if $ac_preproc_ok; then :
  6791. else
  6792. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6794. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6795. See \`config.log' for more details." "$LINENO" 5; }
  6796. fi
  6797. ac_ext=c
  6798. ac_cpp='$CPP $CPPFLAGS'
  6799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6803. $as_echo_n "checking for ANSI C header files... " >&6; }
  6804. if test "${ac_cv_header_stdc+set}" = set; then :
  6805. $as_echo_n "(cached) " >&6
  6806. else
  6807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h. */
  6809. #include <stdlib.h>
  6810. #include <stdarg.h>
  6811. #include <string.h>
  6812. #include <float.h>
  6813. int
  6814. main ()
  6815. {
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. if ac_fn_c_try_compile "$LINENO"; then :
  6821. ac_cv_header_stdc=yes
  6822. else
  6823. ac_cv_header_stdc=no
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. if test $ac_cv_header_stdc = yes; then
  6827. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. #include <string.h>
  6831. _ACEOF
  6832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6833. $EGREP "memchr" >/dev/null 2>&1; then :
  6834. else
  6835. ac_cv_header_stdc=no
  6836. fi
  6837. rm -f conftest*
  6838. fi
  6839. if test $ac_cv_header_stdc = yes; then
  6840. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. #include <stdlib.h>
  6844. _ACEOF
  6845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6846. $EGREP "free" >/dev/null 2>&1; then :
  6847. else
  6848. ac_cv_header_stdc=no
  6849. fi
  6850. rm -f conftest*
  6851. fi
  6852. if test $ac_cv_header_stdc = yes; then
  6853. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6854. if test "$cross_compiling" = yes; then :
  6855. :
  6856. else
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. #include <ctype.h>
  6860. #include <stdlib.h>
  6861. #if ((' ' & 0x0FF) == 0x020)
  6862. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6863. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6864. #else
  6865. # define ISLOWER(c) \
  6866. (('a' <= (c) && (c) <= 'i') \
  6867. || ('j' <= (c) && (c) <= 'r') \
  6868. || ('s' <= (c) && (c) <= 'z'))
  6869. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6870. #endif
  6871. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6872. int
  6873. main ()
  6874. {
  6875. int i;
  6876. for (i = 0; i < 256; i++)
  6877. if (XOR (islower (i), ISLOWER (i))
  6878. || toupper (i) != TOUPPER (i))
  6879. return 2;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_run "$LINENO"; then :
  6884. else
  6885. ac_cv_header_stdc=no
  6886. fi
  6887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6888. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6889. fi
  6890. fi
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6893. $as_echo "$ac_cv_header_stdc" >&6; }
  6894. if test $ac_cv_header_stdc = yes; then
  6895. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6896. fi
  6897. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6898. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6899. inttypes.h stdint.h unistd.h
  6900. do :
  6901. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6902. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6903. "
  6904. eval as_val=\$$as_ac_Header
  6905. if test "x$as_val" = x""yes; then :
  6906. cat >>confdefs.h <<_ACEOF
  6907. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6908. _ACEOF
  6909. fi
  6910. done
  6911. for ac_header in dlfcn.h
  6912. do :
  6913. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6914. "
  6915. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6916. cat >>confdefs.h <<_ACEOF
  6917. #define HAVE_DLFCN_H 1
  6918. _ACEOF
  6919. fi
  6920. done
  6921. # Set options
  6922. enable_win32_dll=no
  6923. # Check whether --enable-shared was given.
  6924. if test "${enable_shared+set}" = set; then :
  6925. enableval=$enable_shared; p=${PACKAGE-default}
  6926. case $enableval in
  6927. yes) enable_shared=yes ;;
  6928. no) enable_shared=no ;;
  6929. *)
  6930. enable_shared=no
  6931. # Look at the argument we got. We use all the common list separators.
  6932. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6933. for pkg in $enableval; do
  6934. IFS="$lt_save_ifs"
  6935. if test "X$pkg" = "X$p"; then
  6936. enable_shared=yes
  6937. fi
  6938. done
  6939. IFS="$lt_save_ifs"
  6940. ;;
  6941. esac
  6942. else
  6943. enable_shared=yes
  6944. fi
  6945. # Check whether --enable-static was given.
  6946. if test "${enable_static+set}" = set; then :
  6947. enableval=$enable_static; p=${PACKAGE-default}
  6948. case $enableval in
  6949. yes) enable_static=yes ;;
  6950. no) enable_static=no ;;
  6951. *)
  6952. enable_static=no
  6953. # Look at the argument we got. We use all the common list separators.
  6954. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6955. for pkg in $enableval; do
  6956. IFS="$lt_save_ifs"
  6957. if test "X$pkg" = "X$p"; then
  6958. enable_static=yes
  6959. fi
  6960. done
  6961. IFS="$lt_save_ifs"
  6962. ;;
  6963. esac
  6964. else
  6965. enable_static=yes
  6966. fi
  6967. # Check whether --with-pic was given.
  6968. if test "${with_pic+set}" = set; then :
  6969. withval=$with_pic; pic_mode="$withval"
  6970. else
  6971. pic_mode=default
  6972. fi
  6973. test -z "$pic_mode" && pic_mode=default
  6974. # Check whether --enable-fast-install was given.
  6975. if test "${enable_fast_install+set}" = set; then :
  6976. enableval=$enable_fast_install; p=${PACKAGE-default}
  6977. case $enableval in
  6978. yes) enable_fast_install=yes ;;
  6979. no) enable_fast_install=no ;;
  6980. *)
  6981. enable_fast_install=no
  6982. # Look at the argument we got. We use all the common list separators.
  6983. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6984. for pkg in $enableval; do
  6985. IFS="$lt_save_ifs"
  6986. if test "X$pkg" = "X$p"; then
  6987. enable_fast_install=yes
  6988. fi
  6989. done
  6990. IFS="$lt_save_ifs"
  6991. ;;
  6992. esac
  6993. else
  6994. enable_fast_install=yes
  6995. fi
  6996. # This can be used to rebuild libtool when needed
  6997. LIBTOOL_DEPS="$ltmain"
  6998. # Always use our own libtool.
  6999. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7000. test -z "$LN_S" && LN_S="ln -s"
  7001. if test -n "${ZSH_VERSION+set}" ; then
  7002. setopt NO_GLOB_SUBST
  7003. fi
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7005. $as_echo_n "checking for objdir... " >&6; }
  7006. if test "${lt_cv_objdir+set}" = set; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. rm -f .libs 2>/dev/null
  7010. mkdir .libs 2>/dev/null
  7011. if test -d .libs; then
  7012. lt_cv_objdir=.libs
  7013. else
  7014. # MS-DOS does not allow filenames that begin with a dot.
  7015. lt_cv_objdir=_libs
  7016. fi
  7017. rmdir .libs 2>/dev/null
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7020. $as_echo "$lt_cv_objdir" >&6; }
  7021. objdir=$lt_cv_objdir
  7022. cat >>confdefs.h <<_ACEOF
  7023. #define LT_OBJDIR "$lt_cv_objdir/"
  7024. _ACEOF
  7025. case $host_os in
  7026. aix3*)
  7027. # AIX sometimes has problems with the GCC collect2 program. For some
  7028. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7029. # vanish in a puff of smoke.
  7030. if test "X${COLLECT_NAMES+set}" != Xset; then
  7031. COLLECT_NAMES=
  7032. export COLLECT_NAMES
  7033. fi
  7034. ;;
  7035. esac
  7036. # Global variables:
  7037. ofile=libtool
  7038. can_build_shared=yes
  7039. # All known linkers require a `.a' archive for static linking (except MSVC,
  7040. # which needs '.lib').
  7041. libext=a
  7042. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7043. old_CC="$CC"
  7044. old_CFLAGS="$CFLAGS"
  7045. # Set sane defaults for various variables
  7046. test -z "$CC" && CC=cc
  7047. test -z "$LTCC" && LTCC=$CC
  7048. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7049. test -z "$LD" && LD=ld
  7050. test -z "$ac_objext" && ac_objext=o
  7051. for cc_temp in $compiler""; do
  7052. case $cc_temp in
  7053. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7054. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7055. \-*) ;;
  7056. *) break;;
  7057. esac
  7058. done
  7059. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7076. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS="$lt_save_ifs"
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f $ac_dir/${ac_tool_prefix}file; then
  7082. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS="$lt_save_ifs"
  7109. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7134. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS="$lt_save_ifs"
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f $ac_dir/file; then
  7140. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS="$lt_save_ifs"
  7167. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC="$CC"
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test "$GCC" = yes; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7281. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7282. if test "$GCC" = yes; then
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_static='-static'
  7285. case $host_os in
  7286. aix*)
  7287. # All AIX code is PIC.
  7288. if test "$host_cpu" = ia64; then
  7289. # AIX 5 now supports IA64 processor
  7290. lt_prog_compiler_static='-Bstatic'
  7291. fi
  7292. ;;
  7293. amigaos*)
  7294. case $host_cpu in
  7295. powerpc)
  7296. # see comment about AmigaOS4 .so support
  7297. lt_prog_compiler_pic='-fPIC'
  7298. ;;
  7299. m68k)
  7300. # FIXME: we need at least 68020 code to build shared libraries, but
  7301. # adding the `-m68020' flag to GCC prevents building anything better,
  7302. # like `-m68040'.
  7303. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7304. ;;
  7305. esac
  7306. ;;
  7307. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7308. # PIC is the default for these OSes.
  7309. ;;
  7310. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7311. # This hack is so that the source file can tell whether it is being
  7312. # built for inclusion in a dll (and should export symbols for example).
  7313. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7314. # (--disable-auto-import) libraries
  7315. lt_prog_compiler_pic='-DDLL_EXPORT'
  7316. ;;
  7317. darwin* | rhapsody*)
  7318. # PIC is the default on this platform
  7319. # Common symbols not allowed in MH_DYLIB files
  7320. lt_prog_compiler_pic='-fno-common'
  7321. ;;
  7322. haiku*)
  7323. # PIC is the default for Haiku.
  7324. # The "-static" flag exists, but is broken.
  7325. lt_prog_compiler_static=
  7326. ;;
  7327. hpux*)
  7328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7330. # sets the default TLS model and affects inlining.
  7331. case $host_cpu in
  7332. hppa*64*)
  7333. # +Z the default
  7334. ;;
  7335. *)
  7336. lt_prog_compiler_pic='-fPIC'
  7337. ;;
  7338. esac
  7339. ;;
  7340. interix[3-9]*)
  7341. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7342. # Instead, we relocate shared libraries at runtime.
  7343. ;;
  7344. msdosdjgpp*)
  7345. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7346. # on systems that don't support them.
  7347. lt_prog_compiler_can_build_shared=no
  7348. enable_shared=no
  7349. ;;
  7350. *nto* | *qnx*)
  7351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7352. # it will coredump.
  7353. lt_prog_compiler_pic='-fPIC -shared'
  7354. ;;
  7355. sysv4*MP*)
  7356. if test -d /usr/nec; then
  7357. lt_prog_compiler_pic=-Kconform_pic
  7358. fi
  7359. ;;
  7360. *)
  7361. lt_prog_compiler_pic='-fPIC'
  7362. ;;
  7363. esac
  7364. case $cc_basename in
  7365. nvcc*) # Cuda Compiler Driver 2.2
  7366. lt_prog_compiler_wl='-Xlinker '
  7367. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7368. ;;
  7369. esac
  7370. else
  7371. # PORTME Check for flag to pass linker flags through the system compiler.
  7372. case $host_os in
  7373. aix*)
  7374. lt_prog_compiler_wl='-Wl,'
  7375. if test "$host_cpu" = ia64; then
  7376. # AIX 5 now supports IA64 processor
  7377. lt_prog_compiler_static='-Bstatic'
  7378. else
  7379. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7380. fi
  7381. ;;
  7382. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7383. # This hack is so that the source file can tell whether it is being
  7384. # built for inclusion in a dll (and should export symbols for example).
  7385. lt_prog_compiler_pic='-DDLL_EXPORT'
  7386. ;;
  7387. hpux9* | hpux10* | hpux11*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7390. # not for PA HP-UX.
  7391. case $host_cpu in
  7392. hppa*64*|ia64*)
  7393. # +Z the default
  7394. ;;
  7395. *)
  7396. lt_prog_compiler_pic='+Z'
  7397. ;;
  7398. esac
  7399. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7400. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7401. ;;
  7402. irix5* | irix6* | nonstopux*)
  7403. lt_prog_compiler_wl='-Wl,'
  7404. # PIC (with -KPIC) is the default.
  7405. lt_prog_compiler_static='-non_shared'
  7406. ;;
  7407. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7408. case $cc_basename in
  7409. # old Intel for x86_64 which still supported -KPIC.
  7410. ecc*)
  7411. lt_prog_compiler_wl='-Wl,'
  7412. lt_prog_compiler_pic='-KPIC'
  7413. lt_prog_compiler_static='-static'
  7414. ;;
  7415. # icc used to be incompatible with GCC.
  7416. # ICC 10 doesn't accept -KPIC any more.
  7417. icc* | ifort*)
  7418. lt_prog_compiler_wl='-Wl,'
  7419. lt_prog_compiler_pic='-fPIC'
  7420. lt_prog_compiler_static='-static'
  7421. ;;
  7422. # Lahey Fortran 8.1.
  7423. lf95*)
  7424. lt_prog_compiler_wl='-Wl,'
  7425. lt_prog_compiler_pic='--shared'
  7426. lt_prog_compiler_static='--static'
  7427. ;;
  7428. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7429. # Portland Group compilers (*not* the Pentium gcc compiler,
  7430. # which looks to be a dead project)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. lt_prog_compiler_pic='-fpic'
  7433. lt_prog_compiler_static='-Bstatic'
  7434. ;;
  7435. ccc*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. # All Alpha code is PIC.
  7438. lt_prog_compiler_static='-non_shared'
  7439. ;;
  7440. xl* | bgxl* | bgf* | mpixl*)
  7441. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-qpic'
  7444. lt_prog_compiler_static='-qstaticlink'
  7445. ;;
  7446. *)
  7447. case `$CC -V 2>&1 | sed 5q` in
  7448. *Sun\ F* | *Sun*Fortran*)
  7449. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7450. lt_prog_compiler_pic='-KPIC'
  7451. lt_prog_compiler_static='-Bstatic'
  7452. lt_prog_compiler_wl=''
  7453. ;;
  7454. *Sun\ C*)
  7455. # Sun C 5.9
  7456. lt_prog_compiler_pic='-KPIC'
  7457. lt_prog_compiler_static='-Bstatic'
  7458. lt_prog_compiler_wl='-Wl,'
  7459. ;;
  7460. esac
  7461. ;;
  7462. esac
  7463. ;;
  7464. newsos6)
  7465. lt_prog_compiler_pic='-KPIC'
  7466. lt_prog_compiler_static='-Bstatic'
  7467. ;;
  7468. *nto* | *qnx*)
  7469. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7470. # it will coredump.
  7471. lt_prog_compiler_pic='-fPIC -shared'
  7472. ;;
  7473. osf3* | osf4* | osf5*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. # All OSF/1 code is PIC.
  7476. lt_prog_compiler_static='-non_shared'
  7477. ;;
  7478. rdos*)
  7479. lt_prog_compiler_static='-non_shared'
  7480. ;;
  7481. solaris*)
  7482. lt_prog_compiler_pic='-KPIC'
  7483. lt_prog_compiler_static='-Bstatic'
  7484. case $cc_basename in
  7485. f77* | f90* | f95*)
  7486. lt_prog_compiler_wl='-Qoption ld ';;
  7487. *)
  7488. lt_prog_compiler_wl='-Wl,';;
  7489. esac
  7490. ;;
  7491. sunos4*)
  7492. lt_prog_compiler_wl='-Qoption ld '
  7493. lt_prog_compiler_pic='-PIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. ;;
  7496. sysv4 | sysv4.2uw2* | sysv4.3*)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_pic='-KPIC'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. ;;
  7501. sysv4*MP*)
  7502. if test -d /usr/nec ;then
  7503. lt_prog_compiler_pic='-Kconform_pic'
  7504. lt_prog_compiler_static='-Bstatic'
  7505. fi
  7506. ;;
  7507. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7508. lt_prog_compiler_wl='-Wl,'
  7509. lt_prog_compiler_pic='-KPIC'
  7510. lt_prog_compiler_static='-Bstatic'
  7511. ;;
  7512. unicos*)
  7513. lt_prog_compiler_wl='-Wl,'
  7514. lt_prog_compiler_can_build_shared=no
  7515. ;;
  7516. uts4*)
  7517. lt_prog_compiler_pic='-pic'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. ;;
  7520. *)
  7521. lt_prog_compiler_can_build_shared=no
  7522. ;;
  7523. esac
  7524. fi
  7525. case $host_os in
  7526. # For platforms which do not support PIC, -DPIC is meaningless:
  7527. *djgpp*)
  7528. lt_prog_compiler_pic=
  7529. ;;
  7530. *)
  7531. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7532. ;;
  7533. esac
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7535. $as_echo "$lt_prog_compiler_pic" >&6; }
  7536. #
  7537. # Check to make sure the PIC flag actually works.
  7538. #
  7539. if test -n "$lt_prog_compiler_pic"; then
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7541. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7542. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7543. $as_echo_n "(cached) " >&6
  7544. else
  7545. lt_cv_prog_compiler_pic_works=no
  7546. ac_outfile=conftest.$ac_objext
  7547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7548. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7549. # Insert the option either (1) after the last *FLAGS variable, or
  7550. # (2) before a word containing "conftest.", or (3) at the end.
  7551. # Note that $ac_compile itself does not contain backslashes and begins
  7552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7553. # The option is referenced via a variable to avoid confusing sed.
  7554. lt_compile=`echo "$ac_compile" | $SED \
  7555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7557. -e 's:$: $lt_compiler_flag:'`
  7558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7559. (eval "$lt_compile" 2>conftest.err)
  7560. ac_status=$?
  7561. cat conftest.err >&5
  7562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7563. if (exit $ac_status) && test -s "$ac_outfile"; then
  7564. # The compiler can only warn and ignore the option if not recognized
  7565. # So say no if there are warnings other than the usual output.
  7566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7567. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7568. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7569. lt_cv_prog_compiler_pic_works=yes
  7570. fi
  7571. fi
  7572. $RM conftest*
  7573. fi
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7575. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7576. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7577. case $lt_prog_compiler_pic in
  7578. "" | " "*) ;;
  7579. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7580. esac
  7581. else
  7582. lt_prog_compiler_pic=
  7583. lt_prog_compiler_can_build_shared=no
  7584. fi
  7585. fi
  7586. #
  7587. # Check to make sure the static flag actually works.
  7588. #
  7589. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7591. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7592. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7593. $as_echo_n "(cached) " >&6
  7594. else
  7595. lt_cv_prog_compiler_static_works=no
  7596. save_LDFLAGS="$LDFLAGS"
  7597. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7598. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7599. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7600. # The linker can only warn and ignore the option if not recognized
  7601. # So say no if there are warnings
  7602. if test -s conftest.err; then
  7603. # Append any errors to the config.log.
  7604. cat conftest.err 1>&5
  7605. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7606. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7607. if diff conftest.exp conftest.er2 >/dev/null; then
  7608. lt_cv_prog_compiler_static_works=yes
  7609. fi
  7610. else
  7611. lt_cv_prog_compiler_static_works=yes
  7612. fi
  7613. fi
  7614. $RM -r conftest*
  7615. LDFLAGS="$save_LDFLAGS"
  7616. fi
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7618. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7619. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7620. :
  7621. else
  7622. lt_prog_compiler_static=
  7623. fi
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7625. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7626. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7627. $as_echo_n "(cached) " >&6
  7628. else
  7629. lt_cv_prog_compiler_c_o=no
  7630. $RM -r conftest 2>/dev/null
  7631. mkdir conftest
  7632. cd conftest
  7633. mkdir out
  7634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7635. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7636. # Insert the option either (1) after the last *FLAGS variable, or
  7637. # (2) before a word containing "conftest.", or (3) at the end.
  7638. # Note that $ac_compile itself does not contain backslashes and begins
  7639. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7640. lt_compile=`echo "$ac_compile" | $SED \
  7641. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7642. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7643. -e 's:$: $lt_compiler_flag:'`
  7644. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7645. (eval "$lt_compile" 2>out/conftest.err)
  7646. ac_status=$?
  7647. cat out/conftest.err >&5
  7648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7649. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7650. then
  7651. # The compiler can only warn and ignore the option if not recognized
  7652. # So say no if there are warnings
  7653. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7654. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7655. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7656. lt_cv_prog_compiler_c_o=yes
  7657. fi
  7658. fi
  7659. chmod u+w . 2>&5
  7660. $RM conftest*
  7661. # SGI C++ compiler will create directory out/ii_files/ for
  7662. # template instantiation
  7663. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7664. $RM out/* && rmdir out
  7665. cd ..
  7666. $RM -r conftest
  7667. $RM conftest*
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7670. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7672. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7673. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7674. $as_echo_n "(cached) " >&6
  7675. else
  7676. lt_cv_prog_compiler_c_o=no
  7677. $RM -r conftest 2>/dev/null
  7678. mkdir conftest
  7679. cd conftest
  7680. mkdir out
  7681. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7682. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7683. # Insert the option either (1) after the last *FLAGS variable, or
  7684. # (2) before a word containing "conftest.", or (3) at the end.
  7685. # Note that $ac_compile itself does not contain backslashes and begins
  7686. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7687. lt_compile=`echo "$ac_compile" | $SED \
  7688. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7690. -e 's:$: $lt_compiler_flag:'`
  7691. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7692. (eval "$lt_compile" 2>out/conftest.err)
  7693. ac_status=$?
  7694. cat out/conftest.err >&5
  7695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7696. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7697. then
  7698. # The compiler can only warn and ignore the option if not recognized
  7699. # So say no if there are warnings
  7700. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7701. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7702. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7703. lt_cv_prog_compiler_c_o=yes
  7704. fi
  7705. fi
  7706. chmod u+w . 2>&5
  7707. $RM conftest*
  7708. # SGI C++ compiler will create directory out/ii_files/ for
  7709. # template instantiation
  7710. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7711. $RM out/* && rmdir out
  7712. cd ..
  7713. $RM -r conftest
  7714. $RM conftest*
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7717. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7718. hard_links="nottested"
  7719. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7720. # do not overwrite the value of need_locks provided by the user
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7722. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7723. hard_links=yes
  7724. $RM conftest*
  7725. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7726. touch conftest.a
  7727. ln conftest.a conftest.b 2>&5 || hard_links=no
  7728. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7730. $as_echo "$hard_links" >&6; }
  7731. if test "$hard_links" = no; then
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7733. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7734. need_locks=warn
  7735. fi
  7736. else
  7737. need_locks=no
  7738. fi
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7740. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7741. runpath_var=
  7742. allow_undefined_flag=
  7743. always_export_symbols=no
  7744. archive_cmds=
  7745. archive_expsym_cmds=
  7746. compiler_needs_object=no
  7747. enable_shared_with_static_runtimes=no
  7748. export_dynamic_flag_spec=
  7749. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7750. hardcode_automatic=no
  7751. hardcode_direct=no
  7752. hardcode_direct_absolute=no
  7753. hardcode_libdir_flag_spec=
  7754. hardcode_libdir_flag_spec_ld=
  7755. hardcode_libdir_separator=
  7756. hardcode_minus_L=no
  7757. hardcode_shlibpath_var=unsupported
  7758. inherit_rpath=no
  7759. link_all_deplibs=unknown
  7760. module_cmds=
  7761. module_expsym_cmds=
  7762. old_archive_from_new_cmds=
  7763. old_archive_from_expsyms_cmds=
  7764. thread_safe_flag_spec=
  7765. whole_archive_flag_spec=
  7766. # include_expsyms should be a list of space-separated symbols to be *always*
  7767. # included in the symbol list
  7768. include_expsyms=
  7769. # exclude_expsyms can be an extended regexp of symbols to exclude
  7770. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7771. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7772. # as well as any symbol that contains `d'.
  7773. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7774. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7775. # platforms (ab)use it in PIC code, but their linkers get confused if
  7776. # the symbol is explicitly referenced. Since portable code cannot
  7777. # rely on this symbol name, it's probably fine to never include it in
  7778. # preloaded symbol tables.
  7779. # Exclude shared library initialization/finalization symbols.
  7780. extract_expsyms_cmds=
  7781. case $host_os in
  7782. cygwin* | mingw* | pw32* | cegcc*)
  7783. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7784. # When not using gcc, we currently assume that we are using
  7785. # Microsoft Visual C++.
  7786. if test "$GCC" != yes; then
  7787. with_gnu_ld=no
  7788. fi
  7789. ;;
  7790. interix*)
  7791. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7792. with_gnu_ld=yes
  7793. ;;
  7794. openbsd*)
  7795. with_gnu_ld=no
  7796. ;;
  7797. esac
  7798. ld_shlibs=yes
  7799. # On some targets, GNU ld is compatible enough with the native linker
  7800. # that we're better off using the native interface for both.
  7801. lt_use_gnu_ld_interface=no
  7802. if test "$with_gnu_ld" = yes; then
  7803. case $host_os in
  7804. aix*)
  7805. # The AIX port of GNU ld has always aspired to compatibility
  7806. # with the native linker. However, as the warning in the GNU ld
  7807. # block says, versions before 2.19.5* couldn't really create working
  7808. # shared libraries, regardless of the interface used.
  7809. case `$LD -v 2>&1` in
  7810. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7811. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7812. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7813. *)
  7814. lt_use_gnu_ld_interface=yes
  7815. ;;
  7816. esac
  7817. ;;
  7818. *)
  7819. lt_use_gnu_ld_interface=yes
  7820. ;;
  7821. esac
  7822. fi
  7823. if test "$lt_use_gnu_ld_interface" = yes; then
  7824. # If archive_cmds runs LD, not CC, wlarc should be empty
  7825. wlarc='${wl}'
  7826. # Set some defaults for GNU ld with shared library support. These
  7827. # are reset later if shared libraries are not supported. Putting them
  7828. # here allows them to be overridden if necessary.
  7829. runpath_var=LD_RUN_PATH
  7830. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7831. export_dynamic_flag_spec='${wl}--export-dynamic'
  7832. # ancient GNU ld didn't support --whole-archive et. al.
  7833. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7834. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7835. else
  7836. whole_archive_flag_spec=
  7837. fi
  7838. supports_anon_versioning=no
  7839. case `$LD -v 2>&1` in
  7840. *GNU\ gold*) supports_anon_versioning=yes ;;
  7841. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7842. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7843. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7844. *\ 2.11.*) ;; # other 2.11 versions
  7845. *) supports_anon_versioning=yes ;;
  7846. esac
  7847. # See if GNU ld supports shared libraries.
  7848. case $host_os in
  7849. aix[3-9]*)
  7850. # On AIX/PPC, the GNU linker is very broken
  7851. if test "$host_cpu" != ia64; then
  7852. ld_shlibs=no
  7853. cat <<_LT_EOF 1>&2
  7854. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7855. *** to be unable to reliably create shared libraries on AIX.
  7856. *** Therefore, libtool is disabling shared libraries support. If you
  7857. *** really care for shared libraries, you may want to install binutils
  7858. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7859. *** You will then need to restart the configuration process.
  7860. _LT_EOF
  7861. fi
  7862. ;;
  7863. amigaos*)
  7864. case $host_cpu in
  7865. powerpc)
  7866. # see comment about AmigaOS4 .so support
  7867. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7868. archive_expsym_cmds=''
  7869. ;;
  7870. m68k)
  7871. 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)'
  7872. hardcode_libdir_flag_spec='-L$libdir'
  7873. hardcode_minus_L=yes
  7874. ;;
  7875. esac
  7876. ;;
  7877. beos*)
  7878. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7879. allow_undefined_flag=unsupported
  7880. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7881. # support --undefined. This deserves some investigation. FIXME
  7882. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7883. else
  7884. ld_shlibs=no
  7885. fi
  7886. ;;
  7887. cygwin* | mingw* | pw32* | cegcc*)
  7888. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7889. # as there is no search path for DLLs.
  7890. hardcode_libdir_flag_spec='-L$libdir'
  7891. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7892. allow_undefined_flag=unsupported
  7893. always_export_symbols=no
  7894. enable_shared_with_static_runtimes=yes
  7895. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7896. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7897. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7898. # If the export-symbols file already is a .def file (1st line
  7899. # is EXPORTS), use it as is; otherwise, prepend...
  7900. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7901. cp $export_symbols $output_objdir/$soname.def;
  7902. else
  7903. echo EXPORTS > $output_objdir/$soname.def;
  7904. cat $export_symbols >> $output_objdir/$soname.def;
  7905. fi~
  7906. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7907. else
  7908. ld_shlibs=no
  7909. fi
  7910. ;;
  7911. haiku*)
  7912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7913. link_all_deplibs=yes
  7914. ;;
  7915. interix[3-9]*)
  7916. hardcode_direct=no
  7917. hardcode_shlibpath_var=no
  7918. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7919. export_dynamic_flag_spec='${wl}-E'
  7920. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7921. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7922. # default) and relocated if they conflict, which is a slow very memory
  7923. # consuming and fragmenting process. To avoid this, we pick a random,
  7924. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7925. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7926. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7927. 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'
  7928. ;;
  7929. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7930. tmp_diet=no
  7931. if test "$host_os" = linux-dietlibc; then
  7932. case $cc_basename in
  7933. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7934. esac
  7935. fi
  7936. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7937. && test "$tmp_diet" = no
  7938. then
  7939. tmp_addflag=
  7940. tmp_sharedflag='-shared'
  7941. case $cc_basename,$host_cpu in
  7942. pgcc*) # Portland Group C compiler
  7943. 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'
  7944. tmp_addflag=' $pic_flag'
  7945. ;;
  7946. pgf77* | pgf90* | pgf95* | pgfortran*)
  7947. # Portland Group f77 and f90 compilers
  7948. 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'
  7949. tmp_addflag=' $pic_flag -Mnomain' ;;
  7950. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7951. tmp_addflag=' -i_dynamic' ;;
  7952. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7953. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7954. ifc* | ifort*) # Intel Fortran compiler
  7955. tmp_addflag=' -nofor_main' ;;
  7956. lf95*) # Lahey Fortran 8.1
  7957. whole_archive_flag_spec=
  7958. tmp_sharedflag='--shared' ;;
  7959. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7960. tmp_sharedflag='-qmkshrobj'
  7961. tmp_addflag= ;;
  7962. nvcc*) # Cuda Compiler Driver 2.2
  7963. 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'
  7964. compiler_needs_object=yes
  7965. ;;
  7966. esac
  7967. case `$CC -V 2>&1 | sed 5q` in
  7968. *Sun\ C*) # Sun C 5.9
  7969. 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'
  7970. compiler_needs_object=yes
  7971. tmp_sharedflag='-G' ;;
  7972. *Sun\ F*) # Sun Fortran 8.3
  7973. tmp_sharedflag='-G' ;;
  7974. esac
  7975. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. if test "x$supports_anon_versioning" = xyes; then
  7977. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7978. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7979. echo "local: *; };" >> $output_objdir/$libname.ver~
  7980. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7981. fi
  7982. case $cc_basename in
  7983. xlf* | bgf* | bgxlf* | mpixlf*)
  7984. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7985. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7986. hardcode_libdir_flag_spec=
  7987. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7988. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7989. if test "x$supports_anon_versioning" = xyes; then
  7990. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7991. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7992. echo "local: *; };" >> $output_objdir/$libname.ver~
  7993. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7994. fi
  7995. ;;
  7996. esac
  7997. else
  7998. ld_shlibs=no
  7999. fi
  8000. ;;
  8001. netbsd*)
  8002. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8003. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8004. wlarc=
  8005. else
  8006. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8007. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8008. fi
  8009. ;;
  8010. solaris*)
  8011. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8012. ld_shlibs=no
  8013. cat <<_LT_EOF 1>&2
  8014. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8015. *** create shared libraries on Solaris systems. Therefore, libtool
  8016. *** is disabling shared libraries support. We urge you to upgrade GNU
  8017. *** binutils to release 2.9.1 or newer. Another option is to modify
  8018. *** your PATH or compiler configuration so that the native linker is
  8019. *** used, and then restart.
  8020. _LT_EOF
  8021. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8022. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8023. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8024. else
  8025. ld_shlibs=no
  8026. fi
  8027. ;;
  8028. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8029. case `$LD -v 2>&1` in
  8030. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8031. ld_shlibs=no
  8032. cat <<_LT_EOF 1>&2
  8033. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8034. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8035. *** is disabling shared libraries support. We urge you to upgrade GNU
  8036. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8037. *** your PATH or compiler configuration so that the native linker is
  8038. *** used, and then restart.
  8039. _LT_EOF
  8040. ;;
  8041. *)
  8042. # For security reasons, it is highly recommended that you always
  8043. # use absolute paths for naming shared libraries, and exclude the
  8044. # DT_RUNPATH tag from executables and libraries. But doing so
  8045. # requires that you compile everything twice, which is a pain.
  8046. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8047. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8048. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8049. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8050. else
  8051. ld_shlibs=no
  8052. fi
  8053. ;;
  8054. esac
  8055. ;;
  8056. sunos4*)
  8057. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8058. wlarc=
  8059. hardcode_direct=yes
  8060. hardcode_shlibpath_var=no
  8061. ;;
  8062. *)
  8063. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8064. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8065. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8066. else
  8067. ld_shlibs=no
  8068. fi
  8069. ;;
  8070. esac
  8071. if test "$ld_shlibs" = no; then
  8072. runpath_var=
  8073. hardcode_libdir_flag_spec=
  8074. export_dynamic_flag_spec=
  8075. whole_archive_flag_spec=
  8076. fi
  8077. else
  8078. # PORTME fill in a description of your system's linker (not GNU ld)
  8079. case $host_os in
  8080. aix3*)
  8081. allow_undefined_flag=unsupported
  8082. always_export_symbols=yes
  8083. 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'
  8084. # Note: this linker hardcodes the directories in LIBPATH if there
  8085. # are no directories specified by -L.
  8086. hardcode_minus_L=yes
  8087. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8088. # Neither direct hardcoding nor static linking is supported with a
  8089. # broken collect2.
  8090. hardcode_direct=unsupported
  8091. fi
  8092. ;;
  8093. aix[4-9]*)
  8094. if test "$host_cpu" = ia64; then
  8095. # On IA64, the linker does run time linking by default, so we don't
  8096. # have to do anything special.
  8097. aix_use_runtimelinking=no
  8098. exp_sym_flag='-Bexport'
  8099. no_entry_flag=""
  8100. else
  8101. # If we're using GNU nm, then we don't want the "-C" option.
  8102. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8103. # Also, AIX nm treats weak defined symbols like other global
  8104. # defined symbols, whereas GNU nm marks them as "W".
  8105. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8106. 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'
  8107. else
  8108. 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'
  8109. fi
  8110. aix_use_runtimelinking=no
  8111. # Test if we are trying to use run time linking or normal
  8112. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8113. # need to do runtime linking.
  8114. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8115. for ld_flag in $LDFLAGS; do
  8116. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8117. aix_use_runtimelinking=yes
  8118. break
  8119. fi
  8120. done
  8121. ;;
  8122. esac
  8123. exp_sym_flag='-bexport'
  8124. no_entry_flag='-bnoentry'
  8125. fi
  8126. # When large executables or shared objects are built, AIX ld can
  8127. # have problems creating the table of contents. If linking a library
  8128. # or program results in "error TOC overflow" add -mminimal-toc to
  8129. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8130. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8131. archive_cmds=''
  8132. hardcode_direct=yes
  8133. hardcode_direct_absolute=yes
  8134. hardcode_libdir_separator=':'
  8135. link_all_deplibs=yes
  8136. file_list_spec='${wl}-f,'
  8137. if test "$GCC" = yes; then
  8138. case $host_os in aix4.[012]|aix4.[012].*)
  8139. # We only want to do this on AIX 4.2 and lower, the check
  8140. # below for broken collect2 doesn't work under 4.3+
  8141. collect2name=`${CC} -print-prog-name=collect2`
  8142. if test -f "$collect2name" &&
  8143. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8144. then
  8145. # We have reworked collect2
  8146. :
  8147. else
  8148. # We have old collect2
  8149. hardcode_direct=unsupported
  8150. # It fails to find uninstalled libraries when the uninstalled
  8151. # path is not listed in the libpath. Setting hardcode_minus_L
  8152. # to unsupported forces relinking
  8153. hardcode_minus_L=yes
  8154. hardcode_libdir_flag_spec='-L$libdir'
  8155. hardcode_libdir_separator=
  8156. fi
  8157. ;;
  8158. esac
  8159. shared_flag='-shared'
  8160. if test "$aix_use_runtimelinking" = yes; then
  8161. shared_flag="$shared_flag "'${wl}-G'
  8162. fi
  8163. else
  8164. # not using gcc
  8165. if test "$host_cpu" = ia64; then
  8166. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8167. # chokes on -Wl,-G. The following line is correct:
  8168. shared_flag='-G'
  8169. else
  8170. if test "$aix_use_runtimelinking" = yes; then
  8171. shared_flag='${wl}-G'
  8172. else
  8173. shared_flag='${wl}-bM:SRE'
  8174. fi
  8175. fi
  8176. fi
  8177. export_dynamic_flag_spec='${wl}-bexpall'
  8178. # It seems that -bexpall does not export symbols beginning with
  8179. # underscore (_), so it is better to generate a list of symbols to export.
  8180. always_export_symbols=yes
  8181. if test "$aix_use_runtimelinking" = yes; then
  8182. # Warning - without using the other runtime loading flags (-brtl),
  8183. # -berok will link without error, but may produce a broken library.
  8184. allow_undefined_flag='-berok'
  8185. # Determine the default libpath from the value encoded in an
  8186. # empty executable.
  8187. if test x$gcc_no_link = xyes; then
  8188. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8189. fi
  8190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8191. /* end confdefs.h. */
  8192. int
  8193. main ()
  8194. {
  8195. ;
  8196. return 0;
  8197. }
  8198. _ACEOF
  8199. if ac_fn_c_try_link "$LINENO"; then :
  8200. lt_aix_libpath_sed='
  8201. /Import File Strings/,/^$/ {
  8202. /^0/ {
  8203. s/^0 *\(.*\)$/\1/
  8204. p
  8205. }
  8206. }'
  8207. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8208. # Check for a 64-bit object if we didn't find anything.
  8209. if test -z "$aix_libpath"; then
  8210. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8211. fi
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext \
  8214. conftest$ac_exeext conftest.$ac_ext
  8215. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8216. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8217. 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"
  8218. else
  8219. if test "$host_cpu" = ia64; then
  8220. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8221. allow_undefined_flag="-z nodefs"
  8222. 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"
  8223. else
  8224. # Determine the default libpath from the value encoded in an
  8225. # empty executable.
  8226. if test x$gcc_no_link = xyes; then
  8227. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8228. fi
  8229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8230. /* end confdefs.h. */
  8231. int
  8232. main ()
  8233. {
  8234. ;
  8235. return 0;
  8236. }
  8237. _ACEOF
  8238. if ac_fn_c_try_link "$LINENO"; then :
  8239. lt_aix_libpath_sed='
  8240. /Import File Strings/,/^$/ {
  8241. /^0/ {
  8242. s/^0 *\(.*\)$/\1/
  8243. p
  8244. }
  8245. }'
  8246. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8247. # Check for a 64-bit object if we didn't find anything.
  8248. if test -z "$aix_libpath"; then
  8249. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8250. fi
  8251. fi
  8252. rm -f core conftest.err conftest.$ac_objext \
  8253. conftest$ac_exeext conftest.$ac_ext
  8254. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8255. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8256. # Warning - without using the other run time loading flags,
  8257. # -berok will link without error, but may produce a broken library.
  8258. no_undefined_flag=' ${wl}-bernotok'
  8259. allow_undefined_flag=' ${wl}-berok'
  8260. if test "$with_gnu_ld" = yes; then
  8261. # We only use this code for GNU lds that support --whole-archive.
  8262. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8263. else
  8264. # Exported symbols can be pulled into shared objects from archives
  8265. whole_archive_flag_spec='$convenience'
  8266. fi
  8267. archive_cmds_need_lc=yes
  8268. # This is similar to how AIX traditionally builds its shared libraries.
  8269. 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'
  8270. fi
  8271. fi
  8272. ;;
  8273. amigaos*)
  8274. case $host_cpu in
  8275. powerpc)
  8276. # see comment about AmigaOS4 .so support
  8277. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8278. archive_expsym_cmds=''
  8279. ;;
  8280. m68k)
  8281. 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)'
  8282. hardcode_libdir_flag_spec='-L$libdir'
  8283. hardcode_minus_L=yes
  8284. ;;
  8285. esac
  8286. ;;
  8287. bsdi[45]*)
  8288. export_dynamic_flag_spec=-rdynamic
  8289. ;;
  8290. cygwin* | mingw* | pw32* | cegcc*)
  8291. # When not using gcc, we currently assume that we are using
  8292. # Microsoft Visual C++.
  8293. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8294. # no search path for DLLs.
  8295. hardcode_libdir_flag_spec=' '
  8296. allow_undefined_flag=unsupported
  8297. # Tell ltmain to make .lib files, not .a files.
  8298. libext=lib
  8299. # Tell ltmain to make .dll files, not .so files.
  8300. shrext_cmds=".dll"
  8301. # FIXME: Setting linknames here is a bad hack.
  8302. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8303. # The linker will automatically build a .lib file if we build a DLL.
  8304. old_archive_from_new_cmds='true'
  8305. # FIXME: Should let the user specify the lib program.
  8306. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8307. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8308. enable_shared_with_static_runtimes=yes
  8309. ;;
  8310. darwin* | rhapsody*)
  8311. archive_cmds_need_lc=no
  8312. hardcode_direct=no
  8313. hardcode_automatic=yes
  8314. hardcode_shlibpath_var=unsupported
  8315. if test "$lt_cv_ld_force_load" = "yes"; then
  8316. 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\"`'
  8317. else
  8318. whole_archive_flag_spec=''
  8319. fi
  8320. link_all_deplibs=yes
  8321. allow_undefined_flag="$_lt_dar_allow_undefined"
  8322. case $cc_basename in
  8323. ifort*) _lt_dar_can_shared=yes ;;
  8324. *) _lt_dar_can_shared=$GCC ;;
  8325. esac
  8326. if test "$_lt_dar_can_shared" = "yes"; then
  8327. output_verbose_link_cmd=func_echo_all
  8328. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8329. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8330. 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}"
  8331. 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}"
  8332. else
  8333. ld_shlibs=no
  8334. fi
  8335. ;;
  8336. dgux*)
  8337. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8338. hardcode_libdir_flag_spec='-L$libdir'
  8339. hardcode_shlibpath_var=no
  8340. ;;
  8341. freebsd1*)
  8342. ld_shlibs=no
  8343. ;;
  8344. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8345. # support. Future versions do this automatically, but an explicit c++rt0.o
  8346. # does not break anything, and helps significantly (at the cost of a little
  8347. # extra space).
  8348. freebsd2.2*)
  8349. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8350. hardcode_libdir_flag_spec='-R$libdir'
  8351. hardcode_direct=yes
  8352. hardcode_shlibpath_var=no
  8353. ;;
  8354. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8355. freebsd2*)
  8356. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8357. hardcode_direct=yes
  8358. hardcode_minus_L=yes
  8359. hardcode_shlibpath_var=no
  8360. ;;
  8361. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8362. freebsd* | dragonfly*)
  8363. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8364. hardcode_libdir_flag_spec='-R$libdir'
  8365. hardcode_direct=yes
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. hpux9*)
  8369. if test "$GCC" = yes; then
  8370. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8371. else
  8372. 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'
  8373. fi
  8374. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8375. hardcode_libdir_separator=:
  8376. hardcode_direct=yes
  8377. # hardcode_minus_L: Not really in the search PATH,
  8378. # but as the default location of the library.
  8379. hardcode_minus_L=yes
  8380. export_dynamic_flag_spec='${wl}-E'
  8381. ;;
  8382. hpux10*)
  8383. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8384. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8385. else
  8386. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8387. fi
  8388. if test "$with_gnu_ld" = no; then
  8389. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8390. hardcode_libdir_flag_spec_ld='+b $libdir'
  8391. hardcode_libdir_separator=:
  8392. hardcode_direct=yes
  8393. hardcode_direct_absolute=yes
  8394. export_dynamic_flag_spec='${wl}-E'
  8395. # hardcode_minus_L: Not really in the search PATH,
  8396. # but as the default location of the library.
  8397. hardcode_minus_L=yes
  8398. fi
  8399. ;;
  8400. hpux11*)
  8401. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8402. case $host_cpu in
  8403. hppa*64*)
  8404. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. ;;
  8406. ia64*)
  8407. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8408. ;;
  8409. *)
  8410. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8411. ;;
  8412. esac
  8413. else
  8414. case $host_cpu in
  8415. hppa*64*)
  8416. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8417. ;;
  8418. ia64*)
  8419. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8420. ;;
  8421. *)
  8422. # Older versions of the 11.00 compiler do not understand -b yet
  8423. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8425. $as_echo_n "checking if $CC understands -b... " >&6; }
  8426. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8427. $as_echo_n "(cached) " >&6
  8428. else
  8429. lt_cv_prog_compiler__b=no
  8430. save_LDFLAGS="$LDFLAGS"
  8431. LDFLAGS="$LDFLAGS -b"
  8432. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8433. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8434. # The linker can only warn and ignore the option if not recognized
  8435. # So say no if there are warnings
  8436. if test -s conftest.err; then
  8437. # Append any errors to the config.log.
  8438. cat conftest.err 1>&5
  8439. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8440. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8441. if diff conftest.exp conftest.er2 >/dev/null; then
  8442. lt_cv_prog_compiler__b=yes
  8443. fi
  8444. else
  8445. lt_cv_prog_compiler__b=yes
  8446. fi
  8447. fi
  8448. $RM -r conftest*
  8449. LDFLAGS="$save_LDFLAGS"
  8450. fi
  8451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8452. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8453. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8454. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8455. else
  8456. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8457. fi
  8458. ;;
  8459. esac
  8460. fi
  8461. if test "$with_gnu_ld" = no; then
  8462. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8463. hardcode_libdir_separator=:
  8464. case $host_cpu in
  8465. hppa*64*|ia64*)
  8466. hardcode_direct=no
  8467. hardcode_shlibpath_var=no
  8468. ;;
  8469. *)
  8470. hardcode_direct=yes
  8471. hardcode_direct_absolute=yes
  8472. export_dynamic_flag_spec='${wl}-E'
  8473. # hardcode_minus_L: Not really in the search PATH,
  8474. # but as the default location of the library.
  8475. hardcode_minus_L=yes
  8476. ;;
  8477. esac
  8478. fi
  8479. ;;
  8480. irix5* | irix6* | nonstopux*)
  8481. if test "$GCC" = yes; then
  8482. archive_cmds='$CC -shared $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'
  8483. # Try to use the -exported_symbol ld option, if it does not
  8484. # work, assume that -exports_file does not work either and
  8485. # implicitly export all symbols.
  8486. save_LDFLAGS="$LDFLAGS"
  8487. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8488. if test x$gcc_no_link = xyes; then
  8489. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8490. fi
  8491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8492. /* end confdefs.h. */
  8493. int foo(void) {}
  8494. _ACEOF
  8495. if ac_fn_c_try_link "$LINENO"; then :
  8496. archive_expsym_cmds='$CC -shared $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'
  8497. fi
  8498. rm -f core conftest.err conftest.$ac_objext \
  8499. conftest$ac_exeext conftest.$ac_ext
  8500. LDFLAGS="$save_LDFLAGS"
  8501. else
  8502. 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'
  8503. 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'
  8504. fi
  8505. archive_cmds_need_lc='no'
  8506. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8507. hardcode_libdir_separator=:
  8508. inherit_rpath=yes
  8509. link_all_deplibs=yes
  8510. ;;
  8511. netbsd*)
  8512. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8513. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8514. else
  8515. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8516. fi
  8517. hardcode_libdir_flag_spec='-R$libdir'
  8518. hardcode_direct=yes
  8519. hardcode_shlibpath_var=no
  8520. ;;
  8521. newsos6)
  8522. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. hardcode_direct=yes
  8524. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8525. hardcode_libdir_separator=:
  8526. hardcode_shlibpath_var=no
  8527. ;;
  8528. *nto* | *qnx*)
  8529. ;;
  8530. openbsd*)
  8531. if test -f /usr/libexec/ld.so; then
  8532. hardcode_direct=yes
  8533. hardcode_shlibpath_var=no
  8534. hardcode_direct_absolute=yes
  8535. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8536. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8538. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8539. export_dynamic_flag_spec='${wl}-E'
  8540. else
  8541. case $host_os in
  8542. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8543. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_libdir_flag_spec='-R$libdir'
  8545. ;;
  8546. *)
  8547. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8548. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8549. ;;
  8550. esac
  8551. fi
  8552. else
  8553. ld_shlibs=no
  8554. fi
  8555. ;;
  8556. os2*)
  8557. hardcode_libdir_flag_spec='-L$libdir'
  8558. hardcode_minus_L=yes
  8559. allow_undefined_flag=unsupported
  8560. 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'
  8561. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8562. ;;
  8563. osf3*)
  8564. if test "$GCC" = yes; then
  8565. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8566. 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'
  8567. else
  8568. allow_undefined_flag=' -expect_unresolved \*'
  8569. 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'
  8570. fi
  8571. archive_cmds_need_lc='no'
  8572. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8573. hardcode_libdir_separator=:
  8574. ;;
  8575. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8576. if test "$GCC" = yes; then
  8577. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8578. archive_cmds='$CC -shared${allow_undefined_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'
  8579. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8580. else
  8581. allow_undefined_flag=' -expect_unresolved \*'
  8582. 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'
  8583. 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~
  8584. $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'
  8585. # Both c and cxx compiler support -rpath directly
  8586. hardcode_libdir_flag_spec='-rpath $libdir'
  8587. fi
  8588. archive_cmds_need_lc='no'
  8589. hardcode_libdir_separator=:
  8590. ;;
  8591. solaris*)
  8592. no_undefined_flag=' -z defs'
  8593. if test "$GCC" = yes; then
  8594. wlarc='${wl}'
  8595. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8596. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8597. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8598. else
  8599. case `$CC -V 2>&1` in
  8600. *"Compilers 5.0"*)
  8601. wlarc=''
  8602. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8604. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8605. ;;
  8606. *)
  8607. wlarc='${wl}'
  8608. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8609. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8610. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8611. ;;
  8612. esac
  8613. fi
  8614. hardcode_libdir_flag_spec='-R$libdir'
  8615. hardcode_shlibpath_var=no
  8616. case $host_os in
  8617. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8618. *)
  8619. # The compiler driver will combine and reorder linker options,
  8620. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8621. # but is careful enough not to reorder.
  8622. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8623. if test "$GCC" = yes; then
  8624. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8625. else
  8626. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8627. fi
  8628. ;;
  8629. esac
  8630. link_all_deplibs=yes
  8631. ;;
  8632. sunos4*)
  8633. if test "x$host_vendor" = xsequent; then
  8634. # Use $CC to link under sequent, because it throws in some extra .o
  8635. # files that make .init and .fini sections work.
  8636. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8637. else
  8638. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8639. fi
  8640. hardcode_libdir_flag_spec='-L$libdir'
  8641. hardcode_direct=yes
  8642. hardcode_minus_L=yes
  8643. hardcode_shlibpath_var=no
  8644. ;;
  8645. sysv4)
  8646. case $host_vendor in
  8647. sni)
  8648. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8649. hardcode_direct=yes # is this really true???
  8650. ;;
  8651. siemens)
  8652. ## LD is ld it makes a PLAMLIB
  8653. ## CC just makes a GrossModule.
  8654. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8655. reload_cmds='$CC -r -o $output$reload_objs'
  8656. hardcode_direct=no
  8657. ;;
  8658. motorola)
  8659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8660. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8661. ;;
  8662. esac
  8663. runpath_var='LD_RUN_PATH'
  8664. hardcode_shlibpath_var=no
  8665. ;;
  8666. sysv4.3*)
  8667. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8668. hardcode_shlibpath_var=no
  8669. export_dynamic_flag_spec='-Bexport'
  8670. ;;
  8671. sysv4*MP*)
  8672. if test -d /usr/nec; then
  8673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8674. hardcode_shlibpath_var=no
  8675. runpath_var=LD_RUN_PATH
  8676. hardcode_runpath_var=yes
  8677. ld_shlibs=yes
  8678. fi
  8679. ;;
  8680. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8681. no_undefined_flag='${wl}-z,text'
  8682. archive_cmds_need_lc=no
  8683. hardcode_shlibpath_var=no
  8684. runpath_var='LD_RUN_PATH'
  8685. if test "$GCC" = yes; then
  8686. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8687. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8688. else
  8689. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8690. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8691. fi
  8692. ;;
  8693. sysv5* | sco3.2v5* | sco5v6*)
  8694. # Note: We can NOT use -z defs as we might desire, because we do not
  8695. # link with -lc, and that would cause any symbols used from libc to
  8696. # always be unresolved, which means just about no library would
  8697. # ever link correctly. If we're not using GNU ld we use -z text
  8698. # though, which does catch some bad symbols but isn't as heavy-handed
  8699. # as -z defs.
  8700. no_undefined_flag='${wl}-z,text'
  8701. allow_undefined_flag='${wl}-z,nodefs'
  8702. archive_cmds_need_lc=no
  8703. hardcode_shlibpath_var=no
  8704. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8705. hardcode_libdir_separator=':'
  8706. link_all_deplibs=yes
  8707. export_dynamic_flag_spec='${wl}-Bexport'
  8708. runpath_var='LD_RUN_PATH'
  8709. if test "$GCC" = yes; then
  8710. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8711. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8712. else
  8713. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8714. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. fi
  8716. ;;
  8717. uts4*)
  8718. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8719. hardcode_libdir_flag_spec='-L$libdir'
  8720. hardcode_shlibpath_var=no
  8721. ;;
  8722. *)
  8723. ld_shlibs=no
  8724. ;;
  8725. esac
  8726. if test x$host_vendor = xsni; then
  8727. case $host in
  8728. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8729. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8730. ;;
  8731. esac
  8732. fi
  8733. fi
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8735. $as_echo "$ld_shlibs" >&6; }
  8736. test "$ld_shlibs" = no && can_build_shared=no
  8737. with_gnu_ld=$with_gnu_ld
  8738. #
  8739. # Do we need to explicitly link libc?
  8740. #
  8741. case "x$archive_cmds_need_lc" in
  8742. x|xyes)
  8743. # Assume -lc should be added
  8744. archive_cmds_need_lc=yes
  8745. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8746. case $archive_cmds in
  8747. *'~'*)
  8748. # FIXME: we may have to deal with multi-command sequences.
  8749. ;;
  8750. '$CC '*)
  8751. # Test whether the compiler implicitly links with -lc since on some
  8752. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8753. # to ld, don't add -lc before -lgcc.
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8755. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8756. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8757. $as_echo_n "(cached) " >&6
  8758. else
  8759. $RM conftest*
  8760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8762. (eval $ac_compile) 2>&5
  8763. ac_status=$?
  8764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8765. test $ac_status = 0; } 2>conftest.err; then
  8766. soname=conftest
  8767. lib=conftest
  8768. libobjs=conftest.$ac_objext
  8769. deplibs=
  8770. wl=$lt_prog_compiler_wl
  8771. pic_flag=$lt_prog_compiler_pic
  8772. compiler_flags=-v
  8773. linker_flags=-v
  8774. verstring=
  8775. output_objdir=.
  8776. libname=conftest
  8777. lt_save_allow_undefined_flag=$allow_undefined_flag
  8778. allow_undefined_flag=
  8779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8780. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8781. ac_status=$?
  8782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8783. test $ac_status = 0; }
  8784. then
  8785. lt_cv_archive_cmds_need_lc=no
  8786. else
  8787. lt_cv_archive_cmds_need_lc=yes
  8788. fi
  8789. allow_undefined_flag=$lt_save_allow_undefined_flag
  8790. else
  8791. cat conftest.err 1>&5
  8792. fi
  8793. $RM conftest*
  8794. fi
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8796. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8797. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8798. ;;
  8799. esac
  8800. fi
  8801. ;;
  8802. esac
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8804. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8805. if test "$GCC" = yes; then
  8806. case $host_os in
  8807. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8808. *) lt_awk_arg="/^libraries:/" ;;
  8809. esac
  8810. case $host_os in
  8811. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8812. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8813. esac
  8814. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8815. case $lt_search_path_spec in
  8816. *\;*)
  8817. # if the path contains ";" then we assume it to be the separator
  8818. # otherwise default to the standard path separator (i.e. ":") - it is
  8819. # assumed that no part of a normal pathname contains ";" but that should
  8820. # okay in the real world where ";" in dirpaths is itself problematic.
  8821. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8822. ;;
  8823. *)
  8824. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8825. ;;
  8826. esac
  8827. # Ok, now we have the path, separated by spaces, we can step through it
  8828. # and add multilib dir if necessary.
  8829. lt_tmp_lt_search_path_spec=
  8830. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8831. for lt_sys_path in $lt_search_path_spec; do
  8832. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8833. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8834. else
  8835. test -d "$lt_sys_path" && \
  8836. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8837. fi
  8838. done
  8839. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8840. BEGIN {RS=" "; FS="/|\n";} {
  8841. lt_foo="";
  8842. lt_count=0;
  8843. for (lt_i = NF; lt_i > 0; lt_i--) {
  8844. if ($lt_i != "" && $lt_i != ".") {
  8845. if ($lt_i == "..") {
  8846. lt_count++;
  8847. } else {
  8848. if (lt_count == 0) {
  8849. lt_foo="/" $lt_i lt_foo;
  8850. } else {
  8851. lt_count--;
  8852. }
  8853. }
  8854. }
  8855. }
  8856. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8857. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8858. }'`
  8859. # AWK program above erroneously prepends '/' to C:/dos/paths
  8860. # for these hosts.
  8861. case $host_os in
  8862. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8863. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8864. esac
  8865. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8866. else
  8867. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8868. fi
  8869. library_names_spec=
  8870. libname_spec='lib$name'
  8871. soname_spec=
  8872. shrext_cmds=".so"
  8873. postinstall_cmds=
  8874. postuninstall_cmds=
  8875. finish_cmds=
  8876. finish_eval=
  8877. shlibpath_var=
  8878. shlibpath_overrides_runpath=unknown
  8879. version_type=none
  8880. dynamic_linker="$host_os ld.so"
  8881. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8882. need_lib_prefix=unknown
  8883. hardcode_into_libs=no
  8884. # when you set need_version to no, make sure it does not cause -set_version
  8885. # flags to be left without arguments
  8886. need_version=unknown
  8887. case $host_os in
  8888. aix3*)
  8889. version_type=linux
  8890. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8891. shlibpath_var=LIBPATH
  8892. # AIX 3 has no versioning support, so we append a major version to the name.
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. ;;
  8895. aix[4-9]*)
  8896. version_type=linux
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. hardcode_into_libs=yes
  8900. if test "$host_cpu" = ia64; then
  8901. # AIX 5 supports IA64
  8902. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8903. shlibpath_var=LD_LIBRARY_PATH
  8904. else
  8905. # With GCC up to 2.95.x, collect2 would create an import file
  8906. # for dependence libraries. The import file would start with
  8907. # the line `#! .'. This would cause the generated library to
  8908. # depend on `.', always an invalid library. This was fixed in
  8909. # development snapshots of GCC prior to 3.0.
  8910. case $host_os in
  8911. aix4 | aix4.[01] | aix4.[01].*)
  8912. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8913. echo ' yes '
  8914. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8915. :
  8916. else
  8917. can_build_shared=no
  8918. fi
  8919. ;;
  8920. esac
  8921. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8922. # soname into executable. Probably we can add versioning support to
  8923. # collect2, so additional links can be useful in future.
  8924. if test "$aix_use_runtimelinking" = yes; then
  8925. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8926. # instead of lib<name>.a to let people know that these are not
  8927. # typical AIX shared libraries.
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. else
  8930. # We preserve .a as extension for shared libraries through AIX4.2
  8931. # and later when we are not doing run time linking.
  8932. library_names_spec='${libname}${release}.a $libname.a'
  8933. soname_spec='${libname}${release}${shared_ext}$major'
  8934. fi
  8935. shlibpath_var=LIBPATH
  8936. fi
  8937. ;;
  8938. amigaos*)
  8939. case $host_cpu in
  8940. powerpc)
  8941. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8942. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8944. ;;
  8945. m68k)
  8946. library_names_spec='$libname.ixlibrary $libname.a'
  8947. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8948. 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'
  8949. ;;
  8950. esac
  8951. ;;
  8952. beos*)
  8953. library_names_spec='${libname}${shared_ext}'
  8954. dynamic_linker="$host_os ld.so"
  8955. shlibpath_var=LIBRARY_PATH
  8956. ;;
  8957. bsdi[45]*)
  8958. version_type=linux
  8959. need_version=no
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8963. shlibpath_var=LD_LIBRARY_PATH
  8964. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8965. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8966. # the default ld.so.conf also contains /usr/contrib/lib and
  8967. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8968. # libtool to hard-code these into programs
  8969. ;;
  8970. cygwin* | mingw* | pw32* | cegcc*)
  8971. version_type=windows
  8972. shrext_cmds=".dll"
  8973. need_version=no
  8974. need_lib_prefix=no
  8975. case $GCC,$host_os in
  8976. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8977. library_names_spec='$libname.dll.a'
  8978. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8979. postinstall_cmds='base_file=`basename \${file}`~
  8980. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8981. dldir=$destdir/`dirname \$dlpath`~
  8982. test -d \$dldir || mkdir -p \$dldir~
  8983. $install_prog $dir/$dlname \$dldir/$dlname~
  8984. chmod a+x \$dldir/$dlname~
  8985. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8986. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8987. fi'
  8988. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8989. dlpath=$dir/\$dldll~
  8990. $RM \$dlpath'
  8991. shlibpath_overrides_runpath=yes
  8992. case $host_os in
  8993. cygwin*)
  8994. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8995. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8996. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8997. ;;
  8998. mingw* | cegcc*)
  8999. # MinGW DLLs use traditional 'lib' prefix
  9000. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9001. ;;
  9002. pw32*)
  9003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9004. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9005. ;;
  9006. esac
  9007. ;;
  9008. *)
  9009. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9010. ;;
  9011. esac
  9012. dynamic_linker='Win32 ld.exe'
  9013. # FIXME: first we should search . and the directory the executable is in
  9014. shlibpath_var=PATH
  9015. ;;
  9016. darwin* | rhapsody*)
  9017. dynamic_linker="$host_os dyld"
  9018. version_type=darwin
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9022. soname_spec='${libname}${release}${major}$shared_ext'
  9023. shlibpath_overrides_runpath=yes
  9024. shlibpath_var=DYLD_LIBRARY_PATH
  9025. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9026. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9027. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9028. ;;
  9029. dgux*)
  9030. version_type=linux
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9034. soname_spec='${libname}${release}${shared_ext}$major'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. ;;
  9037. freebsd1*)
  9038. dynamic_linker=no
  9039. ;;
  9040. freebsd* | dragonfly*)
  9041. # DragonFly does not have aout. When/if they implement a new
  9042. # versioning mechanism, adjust this.
  9043. if test -x /usr/bin/objformat; then
  9044. objformat=`/usr/bin/objformat`
  9045. else
  9046. case $host_os in
  9047. freebsd[123]*) objformat=aout ;;
  9048. *) objformat=elf ;;
  9049. esac
  9050. fi
  9051. version_type=freebsd-$objformat
  9052. case $version_type in
  9053. freebsd-elf*)
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9055. need_version=no
  9056. need_lib_prefix=no
  9057. ;;
  9058. freebsd-*)
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9060. need_version=yes
  9061. ;;
  9062. esac
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. case $host_os in
  9065. freebsd2*)
  9066. shlibpath_overrides_runpath=yes
  9067. ;;
  9068. freebsd3.[01]* | freebsdelf3.[01]*)
  9069. shlibpath_overrides_runpath=yes
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9073. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. *) # from 4.6 on, and DragonFly
  9078. shlibpath_overrides_runpath=yes
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. esac
  9082. ;;
  9083. gnu*)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. hardcode_into_libs=yes
  9091. ;;
  9092. haiku*)
  9093. version_type=linux
  9094. need_lib_prefix=no
  9095. need_version=no
  9096. dynamic_linker="$host_os runtime_loader"
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. shlibpath_var=LIBRARY_PATH
  9100. shlibpath_overrides_runpath=yes
  9101. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9102. hardcode_into_libs=yes
  9103. ;;
  9104. hpux9* | hpux10* | hpux11*)
  9105. # Give a soname corresponding to the major version so that dld.sl refuses to
  9106. # link against other versions.
  9107. version_type=sunos
  9108. need_lib_prefix=no
  9109. need_version=no
  9110. case $host_cpu in
  9111. ia64*)
  9112. shrext_cmds='.so'
  9113. hardcode_into_libs=yes
  9114. dynamic_linker="$host_os dld.so"
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. if test "X$HPUX_IA64_MODE" = X32; then
  9120. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9121. else
  9122. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9123. fi
  9124. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9125. ;;
  9126. hppa*64*)
  9127. shrext_cmds='.sl'
  9128. hardcode_into_libs=yes
  9129. dynamic_linker="$host_os dld.sl"
  9130. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9131. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9133. soname_spec='${libname}${release}${shared_ext}$major'
  9134. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9135. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9136. ;;
  9137. *)
  9138. shrext_cmds='.sl'
  9139. dynamic_linker="$host_os dld.sl"
  9140. shlibpath_var=SHLIB_PATH
  9141. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. ;;
  9145. esac
  9146. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9147. postinstall_cmds='chmod 555 $lib'
  9148. # or fails outright, so override atomically:
  9149. install_override_mode=555
  9150. ;;
  9151. interix[3-9]*)
  9152. version_type=linux
  9153. need_lib_prefix=no
  9154. need_version=no
  9155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9156. soname_spec='${libname}${release}${shared_ext}$major'
  9157. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. shlibpath_overrides_runpath=no
  9160. hardcode_into_libs=yes
  9161. ;;
  9162. irix5* | irix6* | nonstopux*)
  9163. case $host_os in
  9164. nonstopux*) version_type=nonstopux ;;
  9165. *)
  9166. if test "$lt_cv_prog_gnu_ld" = yes; then
  9167. version_type=linux
  9168. else
  9169. version_type=irix
  9170. fi ;;
  9171. esac
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9176. case $host_os in
  9177. irix5* | nonstopux*)
  9178. libsuff= shlibsuff=
  9179. ;;
  9180. *)
  9181. case $LD in # libtool.m4 will add one of these switches to LD
  9182. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9183. libsuff= shlibsuff= libmagic=32-bit;;
  9184. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9185. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9186. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9187. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9188. *) libsuff= shlibsuff= libmagic=never-match;;
  9189. esac
  9190. ;;
  9191. esac
  9192. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9193. shlibpath_overrides_runpath=no
  9194. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9195. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9196. hardcode_into_libs=yes
  9197. ;;
  9198. # No shared lib support for Linux oldld, aout, or coff.
  9199. linux*oldld* | linux*aout* | linux*coff*)
  9200. dynamic_linker=no
  9201. ;;
  9202. # This must be Linux ELF.
  9203. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9204. version_type=linux
  9205. need_lib_prefix=no
  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 -n $libdir'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. shlibpath_overrides_runpath=no
  9212. # Some binutils ld are patched to set DT_RUNPATH
  9213. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9214. $as_echo_n "(cached) " >&6
  9215. else
  9216. lt_cv_shlibpath_overrides_runpath=no
  9217. save_LDFLAGS=$LDFLAGS
  9218. save_libdir=$libdir
  9219. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9220. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9221. if test x$gcc_no_link = xyes; then
  9222. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9223. fi
  9224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9225. /* end confdefs.h. */
  9226. int
  9227. main ()
  9228. {
  9229. ;
  9230. return 0;
  9231. }
  9232. _ACEOF
  9233. if ac_fn_c_try_link "$LINENO"; then :
  9234. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9235. lt_cv_shlibpath_overrides_runpath=yes
  9236. fi
  9237. fi
  9238. rm -f core conftest.err conftest.$ac_objext \
  9239. conftest$ac_exeext conftest.$ac_ext
  9240. LDFLAGS=$save_LDFLAGS
  9241. libdir=$save_libdir
  9242. fi
  9243. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9244. # This implies no fast_install, which is unacceptable.
  9245. # Some rework will be needed to allow for fast_install
  9246. # before this can be enabled.
  9247. hardcode_into_libs=yes
  9248. # Append ld.so.conf contents to the search path
  9249. if test -f /etc/ld.so.conf; then
  9250. 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' ' '`
  9251. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9252. fi
  9253. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9254. # powerpc, because MkLinux only supported shared libraries with the
  9255. # GNU dynamic linker. Since this was broken with cross compilers,
  9256. # most powerpc-linux boxes support dynamic linking these days and
  9257. # people can always --disable-shared, the test was removed, and we
  9258. # assume the GNU/Linux dynamic linker is in use.
  9259. dynamic_linker='GNU/Linux ld.so'
  9260. ;;
  9261. netbsd*)
  9262. version_type=sunos
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9267. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9268. dynamic_linker='NetBSD (a.out) ld.so'
  9269. else
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. dynamic_linker='NetBSD ld.elf_so'
  9273. fi
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=yes
  9276. hardcode_into_libs=yes
  9277. ;;
  9278. newsos6)
  9279. version_type=linux
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=yes
  9283. ;;
  9284. *nto* | *qnx*)
  9285. version_type=qnx
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. shlibpath_overrides_runpath=no
  9292. hardcode_into_libs=yes
  9293. dynamic_linker='ldqnx.so'
  9294. ;;
  9295. openbsd*)
  9296. version_type=sunos
  9297. sys_lib_dlsearch_path_spec="/usr/lib"
  9298. need_lib_prefix=no
  9299. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9300. case $host_os in
  9301. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9302. *) need_version=no ;;
  9303. esac
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9305. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9306. shlibpath_var=LD_LIBRARY_PATH
  9307. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9308. case $host_os in
  9309. openbsd2.[89] | openbsd2.[89].*)
  9310. shlibpath_overrides_runpath=no
  9311. ;;
  9312. *)
  9313. shlibpath_overrides_runpath=yes
  9314. ;;
  9315. esac
  9316. else
  9317. shlibpath_overrides_runpath=yes
  9318. fi
  9319. ;;
  9320. os2*)
  9321. libname_spec='$name'
  9322. shrext_cmds=".dll"
  9323. need_lib_prefix=no
  9324. library_names_spec='$libname${shared_ext} $libname.a'
  9325. dynamic_linker='OS/2 ld.exe'
  9326. shlibpath_var=LIBPATH
  9327. ;;
  9328. osf3* | osf4* | osf5*)
  9329. version_type=osf
  9330. need_lib_prefix=no
  9331. need_version=no
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9336. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9337. ;;
  9338. rdos*)
  9339. dynamic_linker=no
  9340. ;;
  9341. solaris*)
  9342. version_type=linux
  9343. need_lib_prefix=no
  9344. need_version=no
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. shlibpath_overrides_runpath=yes
  9349. hardcode_into_libs=yes
  9350. # ldd complains unless libraries are executable
  9351. postinstall_cmds='chmod +x $lib'
  9352. ;;
  9353. sunos4*)
  9354. version_type=sunos
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9356. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. shlibpath_overrides_runpath=yes
  9359. if test "$with_gnu_ld" = yes; then
  9360. need_lib_prefix=no
  9361. fi
  9362. need_version=yes
  9363. ;;
  9364. sysv4 | sysv4.3*)
  9365. version_type=linux
  9366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9367. soname_spec='${libname}${release}${shared_ext}$major'
  9368. shlibpath_var=LD_LIBRARY_PATH
  9369. case $host_vendor in
  9370. sni)
  9371. shlibpath_overrides_runpath=no
  9372. need_lib_prefix=no
  9373. runpath_var=LD_RUN_PATH
  9374. ;;
  9375. siemens)
  9376. need_lib_prefix=no
  9377. ;;
  9378. motorola)
  9379. need_lib_prefix=no
  9380. need_version=no
  9381. shlibpath_overrides_runpath=no
  9382. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9383. ;;
  9384. esac
  9385. ;;
  9386. sysv4*MP*)
  9387. if test -d /usr/nec ;then
  9388. version_type=linux
  9389. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9390. soname_spec='$libname${shared_ext}.$major'
  9391. shlibpath_var=LD_LIBRARY_PATH
  9392. fi
  9393. ;;
  9394. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9395. version_type=freebsd-elf
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. shlibpath_overrides_runpath=yes
  9402. hardcode_into_libs=yes
  9403. if test "$with_gnu_ld" = yes; then
  9404. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9405. else
  9406. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9407. case $host_os in
  9408. sco3.2v5*)
  9409. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9410. ;;
  9411. esac
  9412. fi
  9413. sys_lib_dlsearch_path_spec='/usr/lib'
  9414. ;;
  9415. tpf*)
  9416. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9417. version_type=linux
  9418. need_lib_prefix=no
  9419. need_version=no
  9420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9421. shlibpath_var=LD_LIBRARY_PATH
  9422. shlibpath_overrides_runpath=no
  9423. hardcode_into_libs=yes
  9424. ;;
  9425. uts4*)
  9426. version_type=linux
  9427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9428. soname_spec='${libname}${release}${shared_ext}$major'
  9429. shlibpath_var=LD_LIBRARY_PATH
  9430. ;;
  9431. *)
  9432. dynamic_linker=no
  9433. ;;
  9434. esac
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9436. $as_echo "$dynamic_linker" >&6; }
  9437. test "$dynamic_linker" = no && can_build_shared=no
  9438. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9439. if test "$GCC" = yes; then
  9440. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9441. fi
  9442. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9443. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9444. fi
  9445. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9446. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9449. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9450. hardcode_action=
  9451. if test -n "$hardcode_libdir_flag_spec" ||
  9452. test -n "$runpath_var" ||
  9453. test "X$hardcode_automatic" = "Xyes" ; then
  9454. # We can hardcode non-existent directories.
  9455. if test "$hardcode_direct" != no &&
  9456. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9457. # have to relink, otherwise we might link with an installed library
  9458. # when we should be linking with a yet-to-be-installed one
  9459. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9460. test "$hardcode_minus_L" != no; then
  9461. # Linking always hardcodes the temporary library directory.
  9462. hardcode_action=relink
  9463. else
  9464. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9465. hardcode_action=immediate
  9466. fi
  9467. else
  9468. # We cannot hardcode anything, or else we can only hardcode existing
  9469. # directories.
  9470. hardcode_action=unsupported
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9473. $as_echo "$hardcode_action" >&6; }
  9474. if test "$hardcode_action" = relink ||
  9475. test "$inherit_rpath" = yes; then
  9476. # Fast installation is not supported
  9477. enable_fast_install=no
  9478. elif test "$shlibpath_overrides_runpath" = yes ||
  9479. test "$enable_shared" = no; then
  9480. # Fast installation is not necessary
  9481. enable_fast_install=needless
  9482. fi
  9483. if test "x$enable_dlopen" != xyes; then
  9484. enable_dlopen=unknown
  9485. enable_dlopen_self=unknown
  9486. enable_dlopen_self_static=unknown
  9487. else
  9488. lt_cv_dlopen=no
  9489. lt_cv_dlopen_libs=
  9490. case $host_os in
  9491. beos*)
  9492. lt_cv_dlopen="load_add_on"
  9493. lt_cv_dlopen_libs=
  9494. lt_cv_dlopen_self=yes
  9495. ;;
  9496. mingw* | pw32* | cegcc*)
  9497. lt_cv_dlopen="LoadLibrary"
  9498. lt_cv_dlopen_libs=
  9499. ;;
  9500. cygwin*)
  9501. lt_cv_dlopen="dlopen"
  9502. lt_cv_dlopen_libs=
  9503. ;;
  9504. darwin*)
  9505. # if libdl is installed we need to link against it
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9507. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9508. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldl $LIBS"
  9513. if test x$gcc_no_link = xyes; then
  9514. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9515. fi
  9516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9517. /* end confdefs.h. */
  9518. /* Override any GCC internal prototype to avoid an error.
  9519. Use char because int might match the return type of a GCC
  9520. builtin and then its argument prototype would still apply. */
  9521. #ifdef __cplusplus
  9522. extern "C"
  9523. #endif
  9524. char dlopen ();
  9525. int
  9526. main ()
  9527. {
  9528. return dlopen ();
  9529. ;
  9530. return 0;
  9531. }
  9532. _ACEOF
  9533. if ac_fn_c_try_link "$LINENO"; then :
  9534. ac_cv_lib_dl_dlopen=yes
  9535. else
  9536. ac_cv_lib_dl_dlopen=no
  9537. fi
  9538. rm -f core conftest.err conftest.$ac_objext \
  9539. conftest$ac_exeext conftest.$ac_ext
  9540. LIBS=$ac_check_lib_save_LIBS
  9541. fi
  9542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9543. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9544. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9545. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9546. else
  9547. lt_cv_dlopen="dyld"
  9548. lt_cv_dlopen_libs=
  9549. lt_cv_dlopen_self=yes
  9550. fi
  9551. ;;
  9552. *)
  9553. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9554. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9555. lt_cv_dlopen="shl_load"
  9556. else
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9558. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9559. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9560. $as_echo_n "(cached) " >&6
  9561. else
  9562. ac_check_lib_save_LIBS=$LIBS
  9563. LIBS="-ldld $LIBS"
  9564. if test x$gcc_no_link = xyes; then
  9565. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9566. fi
  9567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9568. /* end confdefs.h. */
  9569. /* Override any GCC internal prototype to avoid an error.
  9570. Use char because int might match the return type of a GCC
  9571. builtin and then its argument prototype would still apply. */
  9572. #ifdef __cplusplus
  9573. extern "C"
  9574. #endif
  9575. char shl_load ();
  9576. int
  9577. main ()
  9578. {
  9579. return shl_load ();
  9580. ;
  9581. return 0;
  9582. }
  9583. _ACEOF
  9584. if ac_fn_c_try_link "$LINENO"; then :
  9585. ac_cv_lib_dld_shl_load=yes
  9586. else
  9587. ac_cv_lib_dld_shl_load=no
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. LIBS=$ac_check_lib_save_LIBS
  9592. fi
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9594. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9595. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9596. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9597. else
  9598. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9599. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9600. lt_cv_dlopen="dlopen"
  9601. else
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9603. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9604. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9605. $as_echo_n "(cached) " >&6
  9606. else
  9607. ac_check_lib_save_LIBS=$LIBS
  9608. LIBS="-ldl $LIBS"
  9609. if test x$gcc_no_link = xyes; then
  9610. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9611. fi
  9612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9613. /* end confdefs.h. */
  9614. /* Override any GCC internal prototype to avoid an error.
  9615. Use char because int might match the return type of a GCC
  9616. builtin and then its argument prototype would still apply. */
  9617. #ifdef __cplusplus
  9618. extern "C"
  9619. #endif
  9620. char dlopen ();
  9621. int
  9622. main ()
  9623. {
  9624. return dlopen ();
  9625. ;
  9626. return 0;
  9627. }
  9628. _ACEOF
  9629. if ac_fn_c_try_link "$LINENO"; then :
  9630. ac_cv_lib_dl_dlopen=yes
  9631. else
  9632. ac_cv_lib_dl_dlopen=no
  9633. fi
  9634. rm -f core conftest.err conftest.$ac_objext \
  9635. conftest$ac_exeext conftest.$ac_ext
  9636. LIBS=$ac_check_lib_save_LIBS
  9637. fi
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9639. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9640. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9641. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9642. else
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9644. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9645. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9646. $as_echo_n "(cached) " >&6
  9647. else
  9648. ac_check_lib_save_LIBS=$LIBS
  9649. LIBS="-lsvld $LIBS"
  9650. if test x$gcc_no_link = xyes; then
  9651. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9652. fi
  9653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9654. /* end confdefs.h. */
  9655. /* Override any GCC internal prototype to avoid an error.
  9656. Use char because int might match the return type of a GCC
  9657. builtin and then its argument prototype would still apply. */
  9658. #ifdef __cplusplus
  9659. extern "C"
  9660. #endif
  9661. char dlopen ();
  9662. int
  9663. main ()
  9664. {
  9665. return dlopen ();
  9666. ;
  9667. return 0;
  9668. }
  9669. _ACEOF
  9670. if ac_fn_c_try_link "$LINENO"; then :
  9671. ac_cv_lib_svld_dlopen=yes
  9672. else
  9673. ac_cv_lib_svld_dlopen=no
  9674. fi
  9675. rm -f core conftest.err conftest.$ac_objext \
  9676. conftest$ac_exeext conftest.$ac_ext
  9677. LIBS=$ac_check_lib_save_LIBS
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9680. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9681. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9682. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9683. else
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9685. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9686. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9687. $as_echo_n "(cached) " >&6
  9688. else
  9689. ac_check_lib_save_LIBS=$LIBS
  9690. LIBS="-ldld $LIBS"
  9691. if test x$gcc_no_link = xyes; then
  9692. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9693. fi
  9694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9695. /* end confdefs.h. */
  9696. /* Override any GCC internal prototype to avoid an error.
  9697. Use char because int might match the return type of a GCC
  9698. builtin and then its argument prototype would still apply. */
  9699. #ifdef __cplusplus
  9700. extern "C"
  9701. #endif
  9702. char dld_link ();
  9703. int
  9704. main ()
  9705. {
  9706. return dld_link ();
  9707. ;
  9708. return 0;
  9709. }
  9710. _ACEOF
  9711. if ac_fn_c_try_link "$LINENO"; then :
  9712. ac_cv_lib_dld_dld_link=yes
  9713. else
  9714. ac_cv_lib_dld_dld_link=no
  9715. fi
  9716. rm -f core conftest.err conftest.$ac_objext \
  9717. conftest$ac_exeext conftest.$ac_ext
  9718. LIBS=$ac_check_lib_save_LIBS
  9719. fi
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9721. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9722. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9723. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9724. fi
  9725. fi
  9726. fi
  9727. fi
  9728. fi
  9729. fi
  9730. ;;
  9731. esac
  9732. if test "x$lt_cv_dlopen" != xno; then
  9733. enable_dlopen=yes
  9734. else
  9735. enable_dlopen=no
  9736. fi
  9737. case $lt_cv_dlopen in
  9738. dlopen)
  9739. save_CPPFLAGS="$CPPFLAGS"
  9740. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9741. save_LDFLAGS="$LDFLAGS"
  9742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9743. save_LIBS="$LIBS"
  9744. LIBS="$lt_cv_dlopen_libs $LIBS"
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9746. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9747. if test "${lt_cv_dlopen_self+set}" = set; then :
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. if test "$cross_compiling" = yes; then :
  9751. lt_cv_dlopen_self=cross
  9752. else
  9753. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9754. lt_status=$lt_dlunknown
  9755. cat > conftest.$ac_ext <<_LT_EOF
  9756. #line 11331 "configure"
  9757. #include "confdefs.h"
  9758. #if HAVE_DLFCN_H
  9759. #include <dlfcn.h>
  9760. #endif
  9761. #include <stdio.h>
  9762. #ifdef RTLD_GLOBAL
  9763. # define LT_DLGLOBAL RTLD_GLOBAL
  9764. #else
  9765. # ifdef DL_GLOBAL
  9766. # define LT_DLGLOBAL DL_GLOBAL
  9767. # else
  9768. # define LT_DLGLOBAL 0
  9769. # endif
  9770. #endif
  9771. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9772. find out it does not work in some platform. */
  9773. #ifndef LT_DLLAZY_OR_NOW
  9774. # ifdef RTLD_LAZY
  9775. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9776. # else
  9777. # ifdef DL_LAZY
  9778. # define LT_DLLAZY_OR_NOW DL_LAZY
  9779. # else
  9780. # ifdef RTLD_NOW
  9781. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9782. # else
  9783. # ifdef DL_NOW
  9784. # define LT_DLLAZY_OR_NOW DL_NOW
  9785. # else
  9786. # define LT_DLLAZY_OR_NOW 0
  9787. # endif
  9788. # endif
  9789. # endif
  9790. # endif
  9791. #endif
  9792. /* When -fvisbility=hidden is used, assume the code has been annotated
  9793. correspondingly for the symbols needed. */
  9794. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9795. void fnord () __attribute__((visibility("default")));
  9796. #endif
  9797. void fnord () { int i=42; }
  9798. int main ()
  9799. {
  9800. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9801. int status = $lt_dlunknown;
  9802. if (self)
  9803. {
  9804. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9805. else
  9806. {
  9807. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9808. else puts (dlerror ());
  9809. }
  9810. /* dlclose (self); */
  9811. }
  9812. else
  9813. puts (dlerror ());
  9814. return status;
  9815. }
  9816. _LT_EOF
  9817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9818. (eval $ac_link) 2>&5
  9819. ac_status=$?
  9820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9821. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9822. (./conftest; exit; ) >&5 2>/dev/null
  9823. lt_status=$?
  9824. case x$lt_status in
  9825. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9826. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9827. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9828. esac
  9829. else :
  9830. # compilation failed
  9831. lt_cv_dlopen_self=no
  9832. fi
  9833. fi
  9834. rm -fr conftest*
  9835. fi
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9837. $as_echo "$lt_cv_dlopen_self" >&6; }
  9838. if test "x$lt_cv_dlopen_self" = xyes; then
  9839. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9841. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9842. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9843. $as_echo_n "(cached) " >&6
  9844. else
  9845. if test "$cross_compiling" = yes; then :
  9846. lt_cv_dlopen_self_static=cross
  9847. else
  9848. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9849. lt_status=$lt_dlunknown
  9850. cat > conftest.$ac_ext <<_LT_EOF
  9851. #line 11437 "configure"
  9852. #include "confdefs.h"
  9853. #if HAVE_DLFCN_H
  9854. #include <dlfcn.h>
  9855. #endif
  9856. #include <stdio.h>
  9857. #ifdef RTLD_GLOBAL
  9858. # define LT_DLGLOBAL RTLD_GLOBAL
  9859. #else
  9860. # ifdef DL_GLOBAL
  9861. # define LT_DLGLOBAL DL_GLOBAL
  9862. # else
  9863. # define LT_DLGLOBAL 0
  9864. # endif
  9865. #endif
  9866. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9867. find out it does not work in some platform. */
  9868. #ifndef LT_DLLAZY_OR_NOW
  9869. # ifdef RTLD_LAZY
  9870. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9871. # else
  9872. # ifdef DL_LAZY
  9873. # define LT_DLLAZY_OR_NOW DL_LAZY
  9874. # else
  9875. # ifdef RTLD_NOW
  9876. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9877. # else
  9878. # ifdef DL_NOW
  9879. # define LT_DLLAZY_OR_NOW DL_NOW
  9880. # else
  9881. # define LT_DLLAZY_OR_NOW 0
  9882. # endif
  9883. # endif
  9884. # endif
  9885. # endif
  9886. #endif
  9887. /* When -fvisbility=hidden is used, assume the code has been annotated
  9888. correspondingly for the symbols needed. */
  9889. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9890. void fnord () __attribute__((visibility("default")));
  9891. #endif
  9892. void fnord () { int i=42; }
  9893. int main ()
  9894. {
  9895. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9896. int status = $lt_dlunknown;
  9897. if (self)
  9898. {
  9899. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9900. else
  9901. {
  9902. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9903. else puts (dlerror ());
  9904. }
  9905. /* dlclose (self); */
  9906. }
  9907. else
  9908. puts (dlerror ());
  9909. return status;
  9910. }
  9911. _LT_EOF
  9912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9913. (eval $ac_link) 2>&5
  9914. ac_status=$?
  9915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9916. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9917. (./conftest; exit; ) >&5 2>/dev/null
  9918. lt_status=$?
  9919. case x$lt_status in
  9920. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9921. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9922. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9923. esac
  9924. else :
  9925. # compilation failed
  9926. lt_cv_dlopen_self_static=no
  9927. fi
  9928. fi
  9929. rm -fr conftest*
  9930. fi
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9932. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9933. fi
  9934. CPPFLAGS="$save_CPPFLAGS"
  9935. LDFLAGS="$save_LDFLAGS"
  9936. LIBS="$save_LIBS"
  9937. ;;
  9938. esac
  9939. case $lt_cv_dlopen_self in
  9940. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9941. *) enable_dlopen_self=unknown ;;
  9942. esac
  9943. case $lt_cv_dlopen_self_static in
  9944. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9945. *) enable_dlopen_self_static=unknown ;;
  9946. esac
  9947. fi
  9948. striplib=
  9949. old_striplib=
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9951. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9952. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9953. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9954. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9956. $as_echo "yes" >&6; }
  9957. else
  9958. # FIXME - insert some real tests, host_os isn't really good enough
  9959. case $host_os in
  9960. darwin*)
  9961. if test -n "$STRIP" ; then
  9962. striplib="$STRIP -x"
  9963. old_striplib="$STRIP -S"
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9965. $as_echo "yes" >&6; }
  9966. else
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9968. $as_echo "no" >&6; }
  9969. fi
  9970. ;;
  9971. *)
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9973. $as_echo "no" >&6; }
  9974. ;;
  9975. esac
  9976. fi
  9977. # Report which library types will actually be built
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9979. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9981. $as_echo "$can_build_shared" >&6; }
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9983. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9984. test "$can_build_shared" = "no" && enable_shared=no
  9985. # On AIX, shared libraries and static libraries use the same namespace, and
  9986. # are all built from PIC.
  9987. case $host_os in
  9988. aix3*)
  9989. test "$enable_shared" = yes && enable_static=no
  9990. if test -n "$RANLIB"; then
  9991. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9992. postinstall_cmds='$RANLIB $lib'
  9993. fi
  9994. ;;
  9995. aix[4-9]*)
  9996. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9997. test "$enable_shared" = yes && enable_static=no
  9998. fi
  9999. ;;
  10000. esac
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10002. $as_echo "$enable_shared" >&6; }
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10004. $as_echo_n "checking whether to build static libraries... " >&6; }
  10005. # Make sure either enable_shared or enable_static is yes.
  10006. test "$enable_shared" = yes || enable_static=yes
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10008. $as_echo "$enable_static" >&6; }
  10009. fi
  10010. ac_ext=c
  10011. ac_cpp='$CPP $CPPFLAGS'
  10012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10015. CC="$lt_save_CC"
  10016. ac_config_commands="$ac_config_commands libtool"
  10017. # Only expand once:
  10018. #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
  10019. # We need gfortran to compile parts of the library
  10020. #AC_PROG_FC(gfortran)
  10021. FC="$GFORTRAN"
  10022. ac_ext=${ac_fc_srcext-f}
  10023. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10024. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10025. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10026. if test -n "$ac_tool_prefix"; then
  10027. for ac_prog in gfortran
  10028. do
  10029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10032. $as_echo_n "checking for $ac_word... " >&6; }
  10033. if test "${ac_cv_prog_FC+set}" = set; then :
  10034. $as_echo_n "(cached) " >&6
  10035. else
  10036. if test -n "$FC"; then
  10037. ac_cv_prog_FC="$FC" # Let the user override the test.
  10038. else
  10039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10040. for as_dir in $PATH
  10041. do
  10042. IFS=$as_save_IFS
  10043. test -z "$as_dir" && as_dir=.
  10044. for ac_exec_ext in '' $ac_executable_extensions; do
  10045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10046. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  10047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10048. break 2
  10049. fi
  10050. done
  10051. done
  10052. IFS=$as_save_IFS
  10053. fi
  10054. fi
  10055. FC=$ac_cv_prog_FC
  10056. if test -n "$FC"; then
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
  10058. $as_echo "$FC" >&6; }
  10059. else
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10061. $as_echo "no" >&6; }
  10062. fi
  10063. test -n "$FC" && break
  10064. done
  10065. fi
  10066. if test -z "$FC"; then
  10067. ac_ct_FC=$FC
  10068. for ac_prog in gfortran
  10069. do
  10070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10071. set dummy $ac_prog; ac_word=$2
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10073. $as_echo_n "checking for $ac_word... " >&6; }
  10074. if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. if test -n "$ac_ct_FC"; then
  10078. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  10079. else
  10080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10081. for as_dir in $PATH
  10082. do
  10083. IFS=$as_save_IFS
  10084. test -z "$as_dir" && as_dir=.
  10085. for ac_exec_ext in '' $ac_executable_extensions; do
  10086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10087. ac_cv_prog_ac_ct_FC="$ac_prog"
  10088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10089. break 2
  10090. fi
  10091. done
  10092. done
  10093. IFS=$as_save_IFS
  10094. fi
  10095. fi
  10096. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  10097. if test -n "$ac_ct_FC"; then
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
  10099. $as_echo "$ac_ct_FC" >&6; }
  10100. else
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10102. $as_echo "no" >&6; }
  10103. fi
  10104. test -n "$ac_ct_FC" && break
  10105. done
  10106. if test "x$ac_ct_FC" = x; then
  10107. FC=""
  10108. else
  10109. case $cross_compiling:$ac_tool_warned in
  10110. yes:)
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10113. ac_tool_warned=yes ;;
  10114. esac
  10115. FC=$ac_ct_FC
  10116. fi
  10117. fi
  10118. # Provide some information about the compiler.
  10119. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
  10120. set X $ac_compile
  10121. ac_compiler=$2
  10122. for ac_option in --version -v -V -qversion; do
  10123. { { ac_try="$ac_compiler $ac_option >&5"
  10124. case "(($ac_try" in
  10125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10126. *) ac_try_echo=$ac_try;;
  10127. esac
  10128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10129. $as_echo "$ac_try_echo"; } >&5
  10130. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10131. ac_status=$?
  10132. if test -s conftest.err; then
  10133. sed '10a\
  10134. ... rest of stderr output deleted ...
  10135. 10q' conftest.err >conftest.er1
  10136. cat conftest.er1 >&5
  10137. rm -f conftest.er1 conftest.err
  10138. fi
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10140. test $ac_status = 0; }
  10141. done
  10142. rm -f a.out
  10143. # If we don't use `.F' as extension, the preprocessor is not run on the
  10144. # input file. (Note that this only needs to work for GNU compilers.)
  10145. ac_save_ext=$ac_ext
  10146. ac_ext=F
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
  10148. $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
  10149. if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  10150. $as_echo_n "(cached) " >&6
  10151. else
  10152. cat > conftest.$ac_ext <<_ACEOF
  10153. program main
  10154. #ifndef __GNUC__
  10155. choke me
  10156. #endif
  10157. end
  10158. _ACEOF
  10159. if ac_fn_fc_try_compile "$LINENO"; then :
  10160. ac_compiler_gnu=yes
  10161. else
  10162. ac_compiler_gnu=no
  10163. fi
  10164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10165. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  10166. fi
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
  10168. $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
  10169. ac_ext=$ac_save_ext
  10170. ac_test_FCFLAGS=${FCFLAGS+set}
  10171. ac_save_FCFLAGS=$FCFLAGS
  10172. FCFLAGS=
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
  10174. $as_echo_n "checking whether $FC accepts -g... " >&6; }
  10175. if test "${ac_cv_prog_fc_g+set}" = set; then :
  10176. $as_echo_n "(cached) " >&6
  10177. else
  10178. FCFLAGS=-g
  10179. cat > conftest.$ac_ext <<_ACEOF
  10180. program main
  10181. end
  10182. _ACEOF
  10183. if ac_fn_fc_try_compile "$LINENO"; then :
  10184. ac_cv_prog_fc_g=yes
  10185. else
  10186. ac_cv_prog_fc_g=no
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10189. fi
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
  10191. $as_echo "$ac_cv_prog_fc_g" >&6; }
  10192. if test "$ac_test_FCFLAGS" = set; then
  10193. FCFLAGS=$ac_save_FCFLAGS
  10194. elif test $ac_cv_prog_fc_g = yes; then
  10195. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10196. FCFLAGS="-g -O2"
  10197. else
  10198. FCFLAGS="-g"
  10199. fi
  10200. else
  10201. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10202. FCFLAGS="-O2"
  10203. else
  10204. FCFLAGS=
  10205. fi
  10206. fi
  10207. ac_ext=c
  10208. ac_cpp='$CPP $CPPFLAGS'
  10209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10212. ac_ext=${ac_fc_srcext-f}
  10213. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10214. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10215. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10216. if test -z "$FC" || test "X$FC" = "Xno"; then
  10217. _lt_disable_FC=yes
  10218. fi
  10219. archive_cmds_need_lc_FC=no
  10220. allow_undefined_flag_FC=
  10221. always_export_symbols_FC=no
  10222. archive_expsym_cmds_FC=
  10223. export_dynamic_flag_spec_FC=
  10224. hardcode_direct_FC=no
  10225. hardcode_direct_absolute_FC=no
  10226. hardcode_libdir_flag_spec_FC=
  10227. hardcode_libdir_flag_spec_ld_FC=
  10228. hardcode_libdir_separator_FC=
  10229. hardcode_minus_L_FC=no
  10230. hardcode_automatic_FC=no
  10231. inherit_rpath_FC=no
  10232. module_cmds_FC=
  10233. module_expsym_cmds_FC=
  10234. link_all_deplibs_FC=unknown
  10235. old_archive_cmds_FC=$old_archive_cmds
  10236. reload_flag_FC=$reload_flag
  10237. reload_cmds_FC=$reload_cmds
  10238. no_undefined_flag_FC=
  10239. whole_archive_flag_spec_FC=
  10240. enable_shared_with_static_runtimes_FC=no
  10241. # Source file extension for fc test sources.
  10242. ac_ext=${ac_fc_srcext-f}
  10243. # Object file extension for compiled fc test sources.
  10244. objext=o
  10245. objext_FC=$objext
  10246. # No sense in running all these tests if we already determined that
  10247. # the FC compiler isn't working. Some variables (like enable_shared)
  10248. # are currently assumed to apply to all compilers on this platform,
  10249. # and will be corrupted by setting them based on a non-working compiler.
  10250. if test "$_lt_disable_FC" != yes; then
  10251. # Code to be used in simple compile tests
  10252. lt_simple_compile_test_code="\
  10253. subroutine t
  10254. return
  10255. end
  10256. "
  10257. # Code to be used in simple link tests
  10258. lt_simple_link_test_code="\
  10259. program t
  10260. end
  10261. "
  10262. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10263. # If no C compiler was specified, use CC.
  10264. LTCC=${LTCC-"$CC"}
  10265. # If no C compiler flags were specified, use CFLAGS.
  10266. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10267. # Allow CC to be a program name with arguments.
  10268. compiler=$CC
  10269. # save warnings/boilerplate of simple test code
  10270. ac_outfile=conftest.$ac_objext
  10271. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10272. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10273. _lt_compiler_boilerplate=`cat conftest.err`
  10274. $RM conftest*
  10275. ac_outfile=conftest.$ac_objext
  10276. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10277. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10278. _lt_linker_boilerplate=`cat conftest.err`
  10279. $RM -r conftest*
  10280. # Allow CC to be a program name with arguments.
  10281. lt_save_CC="$CC"
  10282. lt_save_GCC=$GCC
  10283. CC=${FC-"f95"}
  10284. compiler=$CC
  10285. GCC=$ac_cv_fc_compiler_gnu
  10286. compiler_FC=$CC
  10287. for cc_temp in $compiler""; do
  10288. case $cc_temp in
  10289. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10290. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10291. \-*) ;;
  10292. *) break;;
  10293. esac
  10294. done
  10295. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10296. if test -n "$compiler"; then
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10298. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10300. $as_echo "$can_build_shared" >&6; }
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10302. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10303. test "$can_build_shared" = "no" && enable_shared=no
  10304. # On AIX, shared libraries and static libraries use the same namespace, and
  10305. # are all built from PIC.
  10306. case $host_os in
  10307. aix3*)
  10308. test "$enable_shared" = yes && enable_static=no
  10309. if test -n "$RANLIB"; then
  10310. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10311. postinstall_cmds='$RANLIB $lib'
  10312. fi
  10313. ;;
  10314. aix[4-9]*)
  10315. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10316. test "$enable_shared" = yes && enable_static=no
  10317. fi
  10318. ;;
  10319. esac
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10321. $as_echo "$enable_shared" >&6; }
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10323. $as_echo_n "checking whether to build static libraries... " >&6; }
  10324. # Make sure either enable_shared or enable_static is yes.
  10325. test "$enable_shared" = yes || enable_static=yes
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10327. $as_echo "$enable_static" >&6; }
  10328. GCC_FC="$ac_cv_fc_compiler_gnu"
  10329. LD_FC="$LD"
  10330. ## CAVEAT EMPTOR:
  10331. ## There is no encapsulation within the following macros, do not change
  10332. ## the running order or otherwise move them around unless you know exactly
  10333. ## what you are doing...
  10334. # Dependencies to place before and after the object being linked:
  10335. predep_objects_FC=
  10336. postdep_objects_FC=
  10337. predeps_FC=
  10338. postdeps_FC=
  10339. compiler_lib_search_path_FC=
  10340. cat > conftest.$ac_ext <<_LT_EOF
  10341. subroutine foo
  10342. implicit none
  10343. integer a
  10344. a=0
  10345. return
  10346. end
  10347. _LT_EOF
  10348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10349. (eval $ac_compile) 2>&5
  10350. ac_status=$?
  10351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10352. test $ac_status = 0; }; then
  10353. # Parse the compiler output and extract the necessary
  10354. # objects, libraries and library flags.
  10355. # Sentinel used to keep track of whether or not we are before
  10356. # the conftest object file.
  10357. pre_test_object_deps_done=no
  10358. for p in `eval "$output_verbose_link_cmd"`; do
  10359. case $p in
  10360. -L* | -R* | -l*)
  10361. # Some compilers place space between "-{L,R}" and the path.
  10362. # Remove the space.
  10363. if test $p = "-L" ||
  10364. test $p = "-R"; then
  10365. prev=$p
  10366. continue
  10367. else
  10368. prev=
  10369. fi
  10370. if test "$pre_test_object_deps_done" = no; then
  10371. case $p in
  10372. -L* | -R*)
  10373. # Internal compiler library paths should come after those
  10374. # provided the user. The postdeps already come after the
  10375. # user supplied libs so there is no need to process them.
  10376. if test -z "$compiler_lib_search_path_FC"; then
  10377. compiler_lib_search_path_FC="${prev}${p}"
  10378. else
  10379. compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
  10380. fi
  10381. ;;
  10382. # The "-l" case would never come before the object being
  10383. # linked, so don't bother handling this case.
  10384. esac
  10385. else
  10386. if test -z "$postdeps_FC"; then
  10387. postdeps_FC="${prev}${p}"
  10388. else
  10389. postdeps_FC="${postdeps_FC} ${prev}${p}"
  10390. fi
  10391. fi
  10392. ;;
  10393. *.$objext)
  10394. # This assumes that the test object file only shows up
  10395. # once in the compiler output.
  10396. if test "$p" = "conftest.$objext"; then
  10397. pre_test_object_deps_done=yes
  10398. continue
  10399. fi
  10400. if test "$pre_test_object_deps_done" = no; then
  10401. if test -z "$predep_objects_FC"; then
  10402. predep_objects_FC="$p"
  10403. else
  10404. predep_objects_FC="$predep_objects_FC $p"
  10405. fi
  10406. else
  10407. if test -z "$postdep_objects_FC"; then
  10408. postdep_objects_FC="$p"
  10409. else
  10410. postdep_objects_FC="$postdep_objects_FC $p"
  10411. fi
  10412. fi
  10413. ;;
  10414. *) ;; # Ignore the rest.
  10415. esac
  10416. done
  10417. # Clean up.
  10418. rm -f a.out a.exe
  10419. else
  10420. echo "libtool.m4: error: problem compiling FC test program"
  10421. fi
  10422. $RM -f confest.$objext
  10423. # PORTME: override above test on systems where it is broken
  10424. case " $postdeps_FC " in
  10425. *" -lc "*) archive_cmds_need_lc_FC=no ;;
  10426. esac
  10427. compiler_lib_search_dirs_FC=
  10428. if test -n "${compiler_lib_search_path_FC}"; then
  10429. compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10430. fi
  10431. lt_prog_compiler_wl_FC=
  10432. lt_prog_compiler_pic_FC=
  10433. lt_prog_compiler_static_FC=
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10435. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10436. if test "$GCC" = yes; then
  10437. lt_prog_compiler_wl_FC='-Wl,'
  10438. lt_prog_compiler_static_FC='-static'
  10439. case $host_os in
  10440. aix*)
  10441. # All AIX code is PIC.
  10442. if test "$host_cpu" = ia64; then
  10443. # AIX 5 now supports IA64 processor
  10444. lt_prog_compiler_static_FC='-Bstatic'
  10445. fi
  10446. ;;
  10447. amigaos*)
  10448. case $host_cpu in
  10449. powerpc)
  10450. # see comment about AmigaOS4 .so support
  10451. lt_prog_compiler_pic_FC='-fPIC'
  10452. ;;
  10453. m68k)
  10454. # FIXME: we need at least 68020 code to build shared libraries, but
  10455. # adding the `-m68020' flag to GCC prevents building anything better,
  10456. # like `-m68040'.
  10457. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
  10458. ;;
  10459. esac
  10460. ;;
  10461. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10462. # PIC is the default for these OSes.
  10463. ;;
  10464. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10465. # This hack is so that the source file can tell whether it is being
  10466. # built for inclusion in a dll (and should export symbols for example).
  10467. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10468. # (--disable-auto-import) libraries
  10469. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10470. ;;
  10471. darwin* | rhapsody*)
  10472. # PIC is the default on this platform
  10473. # Common symbols not allowed in MH_DYLIB files
  10474. lt_prog_compiler_pic_FC='-fno-common'
  10475. ;;
  10476. haiku*)
  10477. # PIC is the default for Haiku.
  10478. # The "-static" flag exists, but is broken.
  10479. lt_prog_compiler_static_FC=
  10480. ;;
  10481. hpux*)
  10482. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10483. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10484. # sets the default TLS model and affects inlining.
  10485. case $host_cpu in
  10486. hppa*64*)
  10487. # +Z the default
  10488. ;;
  10489. *)
  10490. lt_prog_compiler_pic_FC='-fPIC'
  10491. ;;
  10492. esac
  10493. ;;
  10494. interix[3-9]*)
  10495. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10496. # Instead, we relocate shared libraries at runtime.
  10497. ;;
  10498. msdosdjgpp*)
  10499. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10500. # on systems that don't support them.
  10501. lt_prog_compiler_can_build_shared_FC=no
  10502. enable_shared=no
  10503. ;;
  10504. *nto* | *qnx*)
  10505. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10506. # it will coredump.
  10507. lt_prog_compiler_pic_FC='-fPIC -shared'
  10508. ;;
  10509. sysv4*MP*)
  10510. if test -d /usr/nec; then
  10511. lt_prog_compiler_pic_FC=-Kconform_pic
  10512. fi
  10513. ;;
  10514. *)
  10515. lt_prog_compiler_pic_FC='-fPIC'
  10516. ;;
  10517. esac
  10518. case $cc_basename in
  10519. nvcc*) # Cuda Compiler Driver 2.2
  10520. lt_prog_compiler_wl_FC='-Xlinker '
  10521. lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
  10522. ;;
  10523. esac
  10524. else
  10525. # PORTME Check for flag to pass linker flags through the system compiler.
  10526. case $host_os in
  10527. aix*)
  10528. lt_prog_compiler_wl_FC='-Wl,'
  10529. if test "$host_cpu" = ia64; then
  10530. # AIX 5 now supports IA64 processor
  10531. lt_prog_compiler_static_FC='-Bstatic'
  10532. else
  10533. lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
  10534. fi
  10535. ;;
  10536. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10537. # This hack is so that the source file can tell whether it is being
  10538. # built for inclusion in a dll (and should export symbols for example).
  10539. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10540. ;;
  10541. hpux9* | hpux10* | hpux11*)
  10542. lt_prog_compiler_wl_FC='-Wl,'
  10543. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10544. # not for PA HP-UX.
  10545. case $host_cpu in
  10546. hppa*64*|ia64*)
  10547. # +Z the default
  10548. ;;
  10549. *)
  10550. lt_prog_compiler_pic_FC='+Z'
  10551. ;;
  10552. esac
  10553. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10554. lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
  10555. ;;
  10556. irix5* | irix6* | nonstopux*)
  10557. lt_prog_compiler_wl_FC='-Wl,'
  10558. # PIC (with -KPIC) is the default.
  10559. lt_prog_compiler_static_FC='-non_shared'
  10560. ;;
  10561. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10562. case $cc_basename in
  10563. # old Intel for x86_64 which still supported -KPIC.
  10564. ecc*)
  10565. lt_prog_compiler_wl_FC='-Wl,'
  10566. lt_prog_compiler_pic_FC='-KPIC'
  10567. lt_prog_compiler_static_FC='-static'
  10568. ;;
  10569. # icc used to be incompatible with GCC.
  10570. # ICC 10 doesn't accept -KPIC any more.
  10571. icc* | ifort*)
  10572. lt_prog_compiler_wl_FC='-Wl,'
  10573. lt_prog_compiler_pic_FC='-fPIC'
  10574. lt_prog_compiler_static_FC='-static'
  10575. ;;
  10576. # Lahey Fortran 8.1.
  10577. lf95*)
  10578. lt_prog_compiler_wl_FC='-Wl,'
  10579. lt_prog_compiler_pic_FC='--shared'
  10580. lt_prog_compiler_static_FC='--static'
  10581. ;;
  10582. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10583. # Portland Group compilers (*not* the Pentium gcc compiler,
  10584. # which looks to be a dead project)
  10585. lt_prog_compiler_wl_FC='-Wl,'
  10586. lt_prog_compiler_pic_FC='-fpic'
  10587. lt_prog_compiler_static_FC='-Bstatic'
  10588. ;;
  10589. ccc*)
  10590. lt_prog_compiler_wl_FC='-Wl,'
  10591. # All Alpha code is PIC.
  10592. lt_prog_compiler_static_FC='-non_shared'
  10593. ;;
  10594. xl* | bgxl* | bgf* | mpixl*)
  10595. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10596. lt_prog_compiler_wl_FC='-Wl,'
  10597. lt_prog_compiler_pic_FC='-qpic'
  10598. lt_prog_compiler_static_FC='-qstaticlink'
  10599. ;;
  10600. *)
  10601. case `$CC -V 2>&1 | sed 5q` in
  10602. *Sun\ F* | *Sun*Fortran*)
  10603. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10604. lt_prog_compiler_pic_FC='-KPIC'
  10605. lt_prog_compiler_static_FC='-Bstatic'
  10606. lt_prog_compiler_wl_FC=''
  10607. ;;
  10608. *Sun\ C*)
  10609. # Sun C 5.9
  10610. lt_prog_compiler_pic_FC='-KPIC'
  10611. lt_prog_compiler_static_FC='-Bstatic'
  10612. lt_prog_compiler_wl_FC='-Wl,'
  10613. ;;
  10614. esac
  10615. ;;
  10616. esac
  10617. ;;
  10618. newsos6)
  10619. lt_prog_compiler_pic_FC='-KPIC'
  10620. lt_prog_compiler_static_FC='-Bstatic'
  10621. ;;
  10622. *nto* | *qnx*)
  10623. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10624. # it will coredump.
  10625. lt_prog_compiler_pic_FC='-fPIC -shared'
  10626. ;;
  10627. osf3* | osf4* | osf5*)
  10628. lt_prog_compiler_wl_FC='-Wl,'
  10629. # All OSF/1 code is PIC.
  10630. lt_prog_compiler_static_FC='-non_shared'
  10631. ;;
  10632. rdos*)
  10633. lt_prog_compiler_static_FC='-non_shared'
  10634. ;;
  10635. solaris*)
  10636. lt_prog_compiler_pic_FC='-KPIC'
  10637. lt_prog_compiler_static_FC='-Bstatic'
  10638. case $cc_basename in
  10639. f77* | f90* | f95*)
  10640. lt_prog_compiler_wl_FC='-Qoption ld ';;
  10641. *)
  10642. lt_prog_compiler_wl_FC='-Wl,';;
  10643. esac
  10644. ;;
  10645. sunos4*)
  10646. lt_prog_compiler_wl_FC='-Qoption ld '
  10647. lt_prog_compiler_pic_FC='-PIC'
  10648. lt_prog_compiler_static_FC='-Bstatic'
  10649. ;;
  10650. sysv4 | sysv4.2uw2* | sysv4.3*)
  10651. lt_prog_compiler_wl_FC='-Wl,'
  10652. lt_prog_compiler_pic_FC='-KPIC'
  10653. lt_prog_compiler_static_FC='-Bstatic'
  10654. ;;
  10655. sysv4*MP*)
  10656. if test -d /usr/nec ;then
  10657. lt_prog_compiler_pic_FC='-Kconform_pic'
  10658. lt_prog_compiler_static_FC='-Bstatic'
  10659. fi
  10660. ;;
  10661. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10662. lt_prog_compiler_wl_FC='-Wl,'
  10663. lt_prog_compiler_pic_FC='-KPIC'
  10664. lt_prog_compiler_static_FC='-Bstatic'
  10665. ;;
  10666. unicos*)
  10667. lt_prog_compiler_wl_FC='-Wl,'
  10668. lt_prog_compiler_can_build_shared_FC=no
  10669. ;;
  10670. uts4*)
  10671. lt_prog_compiler_pic_FC='-pic'
  10672. lt_prog_compiler_static_FC='-Bstatic'
  10673. ;;
  10674. *)
  10675. lt_prog_compiler_can_build_shared_FC=no
  10676. ;;
  10677. esac
  10678. fi
  10679. case $host_os in
  10680. # For platforms which do not support PIC, -DPIC is meaningless:
  10681. *djgpp*)
  10682. lt_prog_compiler_pic_FC=
  10683. ;;
  10684. *)
  10685. lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
  10686. ;;
  10687. esac
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
  10689. $as_echo "$lt_prog_compiler_pic_FC" >&6; }
  10690. #
  10691. # Check to make sure the PIC flag actually works.
  10692. #
  10693. if test -n "$lt_prog_compiler_pic_FC"; then
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
  10695. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
  10696. if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. lt_cv_prog_compiler_pic_works_FC=no
  10700. ac_outfile=conftest.$ac_objext
  10701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10702. lt_compiler_flag="$lt_prog_compiler_pic_FC"
  10703. # Insert the option either (1) after the last *FLAGS variable, or
  10704. # (2) before a word containing "conftest.", or (3) at the end.
  10705. # Note that $ac_compile itself does not contain backslashes and begins
  10706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10707. # The option is referenced via a variable to avoid confusing sed.
  10708. lt_compile=`echo "$ac_compile" | $SED \
  10709. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10711. -e 's:$: $lt_compiler_flag:'`
  10712. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10713. (eval "$lt_compile" 2>conftest.err)
  10714. ac_status=$?
  10715. cat conftest.err >&5
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. if (exit $ac_status) && test -s "$ac_outfile"; then
  10718. # The compiler can only warn and ignore the option if not recognized
  10719. # So say no if there are warnings other than the usual output.
  10720. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10721. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10722. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10723. lt_cv_prog_compiler_pic_works_FC=yes
  10724. fi
  10725. fi
  10726. $RM conftest*
  10727. fi
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
  10729. $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
  10730. if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
  10731. case $lt_prog_compiler_pic_FC in
  10732. "" | " "*) ;;
  10733. *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
  10734. esac
  10735. else
  10736. lt_prog_compiler_pic_FC=
  10737. lt_prog_compiler_can_build_shared_FC=no
  10738. fi
  10739. fi
  10740. #
  10741. # Check to make sure the static flag actually works.
  10742. #
  10743. wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10745. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10746. if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
  10747. $as_echo_n "(cached) " >&6
  10748. else
  10749. lt_cv_prog_compiler_static_works_FC=no
  10750. save_LDFLAGS="$LDFLAGS"
  10751. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10752. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10753. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10754. # The linker can only warn and ignore the option if not recognized
  10755. # So say no if there are warnings
  10756. if test -s conftest.err; then
  10757. # Append any errors to the config.log.
  10758. cat conftest.err 1>&5
  10759. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10761. if diff conftest.exp conftest.er2 >/dev/null; then
  10762. lt_cv_prog_compiler_static_works_FC=yes
  10763. fi
  10764. else
  10765. lt_cv_prog_compiler_static_works_FC=yes
  10766. fi
  10767. fi
  10768. $RM -r conftest*
  10769. LDFLAGS="$save_LDFLAGS"
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
  10772. $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
  10773. if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
  10774. :
  10775. else
  10776. lt_prog_compiler_static_FC=
  10777. fi
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10779. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10780. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10781. $as_echo_n "(cached) " >&6
  10782. else
  10783. lt_cv_prog_compiler_c_o_FC=no
  10784. $RM -r conftest 2>/dev/null
  10785. mkdir conftest
  10786. cd conftest
  10787. mkdir out
  10788. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10789. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10790. # Insert the option either (1) after the last *FLAGS variable, or
  10791. # (2) before a word containing "conftest.", or (3) at the end.
  10792. # Note that $ac_compile itself does not contain backslashes and begins
  10793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10794. lt_compile=`echo "$ac_compile" | $SED \
  10795. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10797. -e 's:$: $lt_compiler_flag:'`
  10798. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10799. (eval "$lt_compile" 2>out/conftest.err)
  10800. ac_status=$?
  10801. cat out/conftest.err >&5
  10802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10803. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10804. then
  10805. # The compiler can only warn and ignore the option if not recognized
  10806. # So say no if there are warnings
  10807. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10808. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10809. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10810. lt_cv_prog_compiler_c_o_FC=yes
  10811. fi
  10812. fi
  10813. chmod u+w . 2>&5
  10814. $RM conftest*
  10815. # SGI C++ compiler will create directory out/ii_files/ for
  10816. # template instantiation
  10817. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10818. $RM out/* && rmdir out
  10819. cd ..
  10820. $RM -r conftest
  10821. $RM conftest*
  10822. fi
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10824. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10826. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10827. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10828. $as_echo_n "(cached) " >&6
  10829. else
  10830. lt_cv_prog_compiler_c_o_FC=no
  10831. $RM -r conftest 2>/dev/null
  10832. mkdir conftest
  10833. cd conftest
  10834. mkdir out
  10835. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10836. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10837. # Insert the option either (1) after the last *FLAGS variable, or
  10838. # (2) before a word containing "conftest.", or (3) at the end.
  10839. # Note that $ac_compile itself does not contain backslashes and begins
  10840. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10841. lt_compile=`echo "$ac_compile" | $SED \
  10842. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10844. -e 's:$: $lt_compiler_flag:'`
  10845. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10846. (eval "$lt_compile" 2>out/conftest.err)
  10847. ac_status=$?
  10848. cat out/conftest.err >&5
  10849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10850. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10851. then
  10852. # The compiler can only warn and ignore the option if not recognized
  10853. # So say no if there are warnings
  10854. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10855. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10856. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10857. lt_cv_prog_compiler_c_o_FC=yes
  10858. fi
  10859. fi
  10860. chmod u+w . 2>&5
  10861. $RM conftest*
  10862. # SGI C++ compiler will create directory out/ii_files/ for
  10863. # template instantiation
  10864. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10865. $RM out/* && rmdir out
  10866. cd ..
  10867. $RM -r conftest
  10868. $RM conftest*
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10871. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10872. hard_links="nottested"
  10873. if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
  10874. # do not overwrite the value of need_locks provided by the user
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10876. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10877. hard_links=yes
  10878. $RM conftest*
  10879. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10880. touch conftest.a
  10881. ln conftest.a conftest.b 2>&5 || hard_links=no
  10882. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10884. $as_echo "$hard_links" >&6; }
  10885. if test "$hard_links" = no; then
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10887. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10888. need_locks=warn
  10889. fi
  10890. else
  10891. need_locks=no
  10892. fi
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10894. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10895. runpath_var=
  10896. allow_undefined_flag_FC=
  10897. always_export_symbols_FC=no
  10898. archive_cmds_FC=
  10899. archive_expsym_cmds_FC=
  10900. compiler_needs_object_FC=no
  10901. enable_shared_with_static_runtimes_FC=no
  10902. export_dynamic_flag_spec_FC=
  10903. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10904. hardcode_automatic_FC=no
  10905. hardcode_direct_FC=no
  10906. hardcode_direct_absolute_FC=no
  10907. hardcode_libdir_flag_spec_FC=
  10908. hardcode_libdir_flag_spec_ld_FC=
  10909. hardcode_libdir_separator_FC=
  10910. hardcode_minus_L_FC=no
  10911. hardcode_shlibpath_var_FC=unsupported
  10912. inherit_rpath_FC=no
  10913. link_all_deplibs_FC=unknown
  10914. module_cmds_FC=
  10915. module_expsym_cmds_FC=
  10916. old_archive_from_new_cmds_FC=
  10917. old_archive_from_expsyms_cmds_FC=
  10918. thread_safe_flag_spec_FC=
  10919. whole_archive_flag_spec_FC=
  10920. # include_expsyms should be a list of space-separated symbols to be *always*
  10921. # included in the symbol list
  10922. include_expsyms_FC=
  10923. # exclude_expsyms can be an extended regexp of symbols to exclude
  10924. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10925. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10926. # as well as any symbol that contains `d'.
  10927. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10928. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10929. # platforms (ab)use it in PIC code, but their linkers get confused if
  10930. # the symbol is explicitly referenced. Since portable code cannot
  10931. # rely on this symbol name, it's probably fine to never include it in
  10932. # preloaded symbol tables.
  10933. # Exclude shared library initialization/finalization symbols.
  10934. extract_expsyms_cmds=
  10935. case $host_os in
  10936. cygwin* | mingw* | pw32* | cegcc*)
  10937. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10938. # When not using gcc, we currently assume that we are using
  10939. # Microsoft Visual C++.
  10940. if test "$GCC" != yes; then
  10941. with_gnu_ld=no
  10942. fi
  10943. ;;
  10944. interix*)
  10945. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10946. with_gnu_ld=yes
  10947. ;;
  10948. openbsd*)
  10949. with_gnu_ld=no
  10950. ;;
  10951. esac
  10952. ld_shlibs_FC=yes
  10953. # On some targets, GNU ld is compatible enough with the native linker
  10954. # that we're better off using the native interface for both.
  10955. lt_use_gnu_ld_interface=no
  10956. if test "$with_gnu_ld" = yes; then
  10957. case $host_os in
  10958. aix*)
  10959. # The AIX port of GNU ld has always aspired to compatibility
  10960. # with the native linker. However, as the warning in the GNU ld
  10961. # block says, versions before 2.19.5* couldn't really create working
  10962. # shared libraries, regardless of the interface used.
  10963. case `$LD -v 2>&1` in
  10964. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10965. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10966. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10967. *)
  10968. lt_use_gnu_ld_interface=yes
  10969. ;;
  10970. esac
  10971. ;;
  10972. *)
  10973. lt_use_gnu_ld_interface=yes
  10974. ;;
  10975. esac
  10976. fi
  10977. if test "$lt_use_gnu_ld_interface" = yes; then
  10978. # If archive_cmds runs LD, not CC, wlarc should be empty
  10979. wlarc='${wl}'
  10980. # Set some defaults for GNU ld with shared library support. These
  10981. # are reset later if shared libraries are not supported. Putting them
  10982. # here allows them to be overridden if necessary.
  10983. runpath_var=LD_RUN_PATH
  10984. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  10985. export_dynamic_flag_spec_FC='${wl}--export-dynamic'
  10986. # ancient GNU ld didn't support --whole-archive et. al.
  10987. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10988. whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10989. else
  10990. whole_archive_flag_spec_FC=
  10991. fi
  10992. supports_anon_versioning=no
  10993. case `$LD -v 2>&1` in
  10994. *GNU\ gold*) supports_anon_versioning=yes ;;
  10995. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10996. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10997. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10998. *\ 2.11.*) ;; # other 2.11 versions
  10999. *) supports_anon_versioning=yes ;;
  11000. esac
  11001. # See if GNU ld supports shared libraries.
  11002. case $host_os in
  11003. aix[3-9]*)
  11004. # On AIX/PPC, the GNU linker is very broken
  11005. if test "$host_cpu" != ia64; then
  11006. ld_shlibs_FC=no
  11007. cat <<_LT_EOF 1>&2
  11008. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11009. *** to be unable to reliably create shared libraries on AIX.
  11010. *** Therefore, libtool is disabling shared libraries support. If you
  11011. *** really care for shared libraries, you may want to install binutils
  11012. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11013. *** You will then need to restart the configuration process.
  11014. _LT_EOF
  11015. fi
  11016. ;;
  11017. amigaos*)
  11018. case $host_cpu in
  11019. powerpc)
  11020. # see comment about AmigaOS4 .so support
  11021. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11022. archive_expsym_cmds_FC=''
  11023. ;;
  11024. m68k)
  11025. archive_cmds_FC='$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)'
  11026. hardcode_libdir_flag_spec_FC='-L$libdir'
  11027. hardcode_minus_L_FC=yes
  11028. ;;
  11029. esac
  11030. ;;
  11031. beos*)
  11032. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11033. allow_undefined_flag_FC=unsupported
  11034. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11035. # support --undefined. This deserves some investigation. FIXME
  11036. archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11037. else
  11038. ld_shlibs_FC=no
  11039. fi
  11040. ;;
  11041. cygwin* | mingw* | pw32* | cegcc*)
  11042. # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
  11043. # as there is no search path for DLLs.
  11044. hardcode_libdir_flag_spec_FC='-L$libdir'
  11045. export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
  11046. allow_undefined_flag_FC=unsupported
  11047. always_export_symbols_FC=no
  11048. enable_shared_with_static_runtimes_FC=yes
  11049. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11050. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11051. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11052. # If the export-symbols file already is a .def file (1st line
  11053. # is EXPORTS), use it as is; otherwise, prepend...
  11054. archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11055. cp $export_symbols $output_objdir/$soname.def;
  11056. else
  11057. echo EXPORTS > $output_objdir/$soname.def;
  11058. cat $export_symbols >> $output_objdir/$soname.def;
  11059. fi~
  11060. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11061. else
  11062. ld_shlibs_FC=no
  11063. fi
  11064. ;;
  11065. haiku*)
  11066. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11067. link_all_deplibs_FC=yes
  11068. ;;
  11069. interix[3-9]*)
  11070. hardcode_direct_FC=no
  11071. hardcode_shlibpath_var_FC=no
  11072. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11073. export_dynamic_flag_spec_FC='${wl}-E'
  11074. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11075. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11076. # default) and relocated if they conflict, which is a slow very memory
  11077. # consuming and fragmenting process. To avoid this, we pick a random,
  11078. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11079. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11080. archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11081. archive_expsym_cmds_FC='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'
  11082. ;;
  11083. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11084. tmp_diet=no
  11085. if test "$host_os" = linux-dietlibc; then
  11086. case $cc_basename in
  11087. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11088. esac
  11089. fi
  11090. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11091. && test "$tmp_diet" = no
  11092. then
  11093. tmp_addflag=
  11094. tmp_sharedflag='-shared'
  11095. case $cc_basename,$host_cpu in
  11096. pgcc*) # Portland Group C compiler
  11097. whole_archive_flag_spec_FC='${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'
  11098. tmp_addflag=' $pic_flag'
  11099. ;;
  11100. pgf77* | pgf90* | pgf95* | pgfortran*)
  11101. # Portland Group f77 and f90 compilers
  11102. whole_archive_flag_spec_FC='${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'
  11103. tmp_addflag=' $pic_flag -Mnomain' ;;
  11104. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11105. tmp_addflag=' -i_dynamic' ;;
  11106. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11107. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11108. ifc* | ifort*) # Intel Fortran compiler
  11109. tmp_addflag=' -nofor_main' ;;
  11110. lf95*) # Lahey Fortran 8.1
  11111. whole_archive_flag_spec_FC=
  11112. tmp_sharedflag='--shared' ;;
  11113. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11114. tmp_sharedflag='-qmkshrobj'
  11115. tmp_addflag= ;;
  11116. nvcc*) # Cuda Compiler Driver 2.2
  11117. whole_archive_flag_spec_FC='${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'
  11118. compiler_needs_object_FC=yes
  11119. ;;
  11120. esac
  11121. case `$CC -V 2>&1 | sed 5q` in
  11122. *Sun\ C*) # Sun C 5.9
  11123. whole_archive_flag_spec_FC='${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'
  11124. compiler_needs_object_FC=yes
  11125. tmp_sharedflag='-G' ;;
  11126. *Sun\ F*) # Sun Fortran 8.3
  11127. tmp_sharedflag='-G' ;;
  11128. esac
  11129. archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11130. if test "x$supports_anon_versioning" = xyes; then
  11131. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11132. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11133. echo "local: *; };" >> $output_objdir/$libname.ver~
  11134. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11135. fi
  11136. case $cc_basename in
  11137. xlf* | bgf* | bgxlf* | mpixlf*)
  11138. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11139. whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
  11140. hardcode_libdir_flag_spec_FC=
  11141. hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
  11142. archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11143. if test "x$supports_anon_versioning" = xyes; then
  11144. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11146. echo "local: *; };" >> $output_objdir/$libname.ver~
  11147. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11148. fi
  11149. ;;
  11150. esac
  11151. else
  11152. ld_shlibs_FC=no
  11153. fi
  11154. ;;
  11155. netbsd*)
  11156. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11157. archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11158. wlarc=
  11159. else
  11160. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11161. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11162. fi
  11163. ;;
  11164. solaris*)
  11165. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11166. ld_shlibs_FC=no
  11167. cat <<_LT_EOF 1>&2
  11168. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11169. *** create shared libraries on Solaris systems. Therefore, libtool
  11170. *** is disabling shared libraries support. We urge you to upgrade GNU
  11171. *** binutils to release 2.9.1 or newer. Another option is to modify
  11172. *** your PATH or compiler configuration so that the native linker is
  11173. *** used, and then restart.
  11174. _LT_EOF
  11175. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11176. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11177. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11178. else
  11179. ld_shlibs_FC=no
  11180. fi
  11181. ;;
  11182. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11183. case `$LD -v 2>&1` in
  11184. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11185. ld_shlibs_FC=no
  11186. cat <<_LT_EOF 1>&2
  11187. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11188. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11189. *** is disabling shared libraries support. We urge you to upgrade GNU
  11190. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11191. *** your PATH or compiler configuration so that the native linker is
  11192. *** used, and then restart.
  11193. _LT_EOF
  11194. ;;
  11195. *)
  11196. # For security reasons, it is highly recommended that you always
  11197. # use absolute paths for naming shared libraries, and exclude the
  11198. # DT_RUNPATH tag from executables and libraries. But doing so
  11199. # requires that you compile everything twice, which is a pain.
  11200. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11201. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11202. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11203. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11204. else
  11205. ld_shlibs_FC=no
  11206. fi
  11207. ;;
  11208. esac
  11209. ;;
  11210. sunos4*)
  11211. archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11212. wlarc=
  11213. hardcode_direct_FC=yes
  11214. hardcode_shlibpath_var_FC=no
  11215. ;;
  11216. *)
  11217. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11218. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11219. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11220. else
  11221. ld_shlibs_FC=no
  11222. fi
  11223. ;;
  11224. esac
  11225. if test "$ld_shlibs_FC" = no; then
  11226. runpath_var=
  11227. hardcode_libdir_flag_spec_FC=
  11228. export_dynamic_flag_spec_FC=
  11229. whole_archive_flag_spec_FC=
  11230. fi
  11231. else
  11232. # PORTME fill in a description of your system's linker (not GNU ld)
  11233. case $host_os in
  11234. aix3*)
  11235. allow_undefined_flag_FC=unsupported
  11236. always_export_symbols_FC=yes
  11237. archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11238. # Note: this linker hardcodes the directories in LIBPATH if there
  11239. # are no directories specified by -L.
  11240. hardcode_minus_L_FC=yes
  11241. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11242. # Neither direct hardcoding nor static linking is supported with a
  11243. # broken collect2.
  11244. hardcode_direct_FC=unsupported
  11245. fi
  11246. ;;
  11247. aix[4-9]*)
  11248. if test "$host_cpu" = ia64; then
  11249. # On IA64, the linker does run time linking by default, so we don't
  11250. # have to do anything special.
  11251. aix_use_runtimelinking=no
  11252. exp_sym_flag='-Bexport'
  11253. no_entry_flag=""
  11254. else
  11255. # If we're using GNU nm, then we don't want the "-C" option.
  11256. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11257. # Also, AIX nm treats weak defined symbols like other global
  11258. # defined symbols, whereas GNU nm marks them as "W".
  11259. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11260. export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11261. else
  11262. export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11263. fi
  11264. aix_use_runtimelinking=no
  11265. # Test if we are trying to use run time linking or normal
  11266. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11267. # need to do runtime linking.
  11268. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11269. for ld_flag in $LDFLAGS; do
  11270. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11271. aix_use_runtimelinking=yes
  11272. break
  11273. fi
  11274. done
  11275. ;;
  11276. esac
  11277. exp_sym_flag='-bexport'
  11278. no_entry_flag='-bnoentry'
  11279. fi
  11280. # When large executables or shared objects are built, AIX ld can
  11281. # have problems creating the table of contents. If linking a library
  11282. # or program results in "error TOC overflow" add -mminimal-toc to
  11283. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11284. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11285. archive_cmds_FC=''
  11286. hardcode_direct_FC=yes
  11287. hardcode_direct_absolute_FC=yes
  11288. hardcode_libdir_separator_FC=':'
  11289. link_all_deplibs_FC=yes
  11290. file_list_spec_FC='${wl}-f,'
  11291. if test "$GCC" = yes; then
  11292. case $host_os in aix4.[012]|aix4.[012].*)
  11293. # We only want to do this on AIX 4.2 and lower, the check
  11294. # below for broken collect2 doesn't work under 4.3+
  11295. collect2name=`${CC} -print-prog-name=collect2`
  11296. if test -f "$collect2name" &&
  11297. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11298. then
  11299. # We have reworked collect2
  11300. :
  11301. else
  11302. # We have old collect2
  11303. hardcode_direct_FC=unsupported
  11304. # It fails to find uninstalled libraries when the uninstalled
  11305. # path is not listed in the libpath. Setting hardcode_minus_L
  11306. # to unsupported forces relinking
  11307. hardcode_minus_L_FC=yes
  11308. hardcode_libdir_flag_spec_FC='-L$libdir'
  11309. hardcode_libdir_separator_FC=
  11310. fi
  11311. ;;
  11312. esac
  11313. shared_flag='-shared'
  11314. if test "$aix_use_runtimelinking" = yes; then
  11315. shared_flag="$shared_flag "'${wl}-G'
  11316. fi
  11317. else
  11318. # not using gcc
  11319. if test "$host_cpu" = ia64; then
  11320. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11321. # chokes on -Wl,-G. The following line is correct:
  11322. shared_flag='-G'
  11323. else
  11324. if test "$aix_use_runtimelinking" = yes; then
  11325. shared_flag='${wl}-G'
  11326. else
  11327. shared_flag='${wl}-bM:SRE'
  11328. fi
  11329. fi
  11330. fi
  11331. export_dynamic_flag_spec_FC='${wl}-bexpall'
  11332. # It seems that -bexpall does not export symbols beginning with
  11333. # underscore (_), so it is better to generate a list of symbols to export.
  11334. always_export_symbols_FC=yes
  11335. if test "$aix_use_runtimelinking" = yes; then
  11336. # Warning - without using the other runtime loading flags (-brtl),
  11337. # -berok will link without error, but may produce a broken library.
  11338. allow_undefined_flag_FC='-berok'
  11339. # Determine the default libpath from the value encoded in an
  11340. # empty executable.
  11341. if test x$gcc_no_link = xyes; then
  11342. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11343. fi
  11344. cat > conftest.$ac_ext <<_ACEOF
  11345. program main
  11346. end
  11347. _ACEOF
  11348. if ac_fn_fc_try_link "$LINENO"; then :
  11349. lt_aix_libpath_sed='
  11350. /Import File Strings/,/^$/ {
  11351. /^0/ {
  11352. s/^0 *\(.*\)$/\1/
  11353. p
  11354. }
  11355. }'
  11356. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11357. # Check for a 64-bit object if we didn't find anything.
  11358. if test -z "$aix_libpath"; then
  11359. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11360. fi
  11361. fi
  11362. rm -f core conftest.err conftest.$ac_objext \
  11363. conftest$ac_exeext conftest.$ac_ext
  11364. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11365. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11366. archive_expsym_cmds_FC='$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"
  11367. else
  11368. if test "$host_cpu" = ia64; then
  11369. hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
  11370. allow_undefined_flag_FC="-z nodefs"
  11371. archive_expsym_cmds_FC="\$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"
  11372. else
  11373. # Determine the default libpath from the value encoded in an
  11374. # empty executable.
  11375. if test x$gcc_no_link = xyes; then
  11376. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11377. fi
  11378. cat > conftest.$ac_ext <<_ACEOF
  11379. program main
  11380. end
  11381. _ACEOF
  11382. if ac_fn_fc_try_link "$LINENO"; then :
  11383. lt_aix_libpath_sed='
  11384. /Import File Strings/,/^$/ {
  11385. /^0/ {
  11386. s/^0 *\(.*\)$/\1/
  11387. p
  11388. }
  11389. }'
  11390. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11391. # Check for a 64-bit object if we didn't find anything.
  11392. if test -z "$aix_libpath"; then
  11393. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11394. fi
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext \
  11397. conftest$ac_exeext conftest.$ac_ext
  11398. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11399. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11400. # Warning - without using the other run time loading flags,
  11401. # -berok will link without error, but may produce a broken library.
  11402. no_undefined_flag_FC=' ${wl}-bernotok'
  11403. allow_undefined_flag_FC=' ${wl}-berok'
  11404. if test "$with_gnu_ld" = yes; then
  11405. # We only use this code for GNU lds that support --whole-archive.
  11406. whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11407. else
  11408. # Exported symbols can be pulled into shared objects from archives
  11409. whole_archive_flag_spec_FC='$convenience'
  11410. fi
  11411. archive_cmds_need_lc_FC=yes
  11412. # This is similar to how AIX traditionally builds its shared libraries.
  11413. archive_expsym_cmds_FC="\$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'
  11414. fi
  11415. fi
  11416. ;;
  11417. amigaos*)
  11418. case $host_cpu in
  11419. powerpc)
  11420. # see comment about AmigaOS4 .so support
  11421. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11422. archive_expsym_cmds_FC=''
  11423. ;;
  11424. m68k)
  11425. archive_cmds_FC='$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)'
  11426. hardcode_libdir_flag_spec_FC='-L$libdir'
  11427. hardcode_minus_L_FC=yes
  11428. ;;
  11429. esac
  11430. ;;
  11431. bsdi[45]*)
  11432. export_dynamic_flag_spec_FC=-rdynamic
  11433. ;;
  11434. cygwin* | mingw* | pw32* | cegcc*)
  11435. # When not using gcc, we currently assume that we are using
  11436. # Microsoft Visual C++.
  11437. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11438. # no search path for DLLs.
  11439. hardcode_libdir_flag_spec_FC=' '
  11440. allow_undefined_flag_FC=unsupported
  11441. # Tell ltmain to make .lib files, not .a files.
  11442. libext=lib
  11443. # Tell ltmain to make .dll files, not .so files.
  11444. shrext_cmds=".dll"
  11445. # FIXME: Setting linknames here is a bad hack.
  11446. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11447. # The linker will automatically build a .lib file if we build a DLL.
  11448. old_archive_from_new_cmds_FC='true'
  11449. # FIXME: Should let the user specify the lib program.
  11450. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11451. fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
  11452. enable_shared_with_static_runtimes_FC=yes
  11453. ;;
  11454. darwin* | rhapsody*)
  11455. archive_cmds_need_lc_FC=no
  11456. hardcode_direct_FC=no
  11457. hardcode_automatic_FC=yes
  11458. hardcode_shlibpath_var_FC=unsupported
  11459. if test "$lt_cv_ld_force_load" = "yes"; then
  11460. whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11461. else
  11462. whole_archive_flag_spec_FC=''
  11463. fi
  11464. link_all_deplibs_FC=yes
  11465. allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  11466. case $cc_basename in
  11467. ifort*) _lt_dar_can_shared=yes ;;
  11468. *) _lt_dar_can_shared=$GCC ;;
  11469. esac
  11470. if test "$_lt_dar_can_shared" = "yes"; then
  11471. output_verbose_link_cmd=func_echo_all
  11472. archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11473. module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11474. archive_expsym_cmds_FC="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}"
  11475. module_expsym_cmds_FC="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}"
  11476. else
  11477. ld_shlibs_FC=no
  11478. fi
  11479. ;;
  11480. dgux*)
  11481. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11482. hardcode_libdir_flag_spec_FC='-L$libdir'
  11483. hardcode_shlibpath_var_FC=no
  11484. ;;
  11485. freebsd1*)
  11486. ld_shlibs_FC=no
  11487. ;;
  11488. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11489. # support. Future versions do this automatically, but an explicit c++rt0.o
  11490. # does not break anything, and helps significantly (at the cost of a little
  11491. # extra space).
  11492. freebsd2.2*)
  11493. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11494. hardcode_libdir_flag_spec_FC='-R$libdir'
  11495. hardcode_direct_FC=yes
  11496. hardcode_shlibpath_var_FC=no
  11497. ;;
  11498. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11499. freebsd2*)
  11500. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11501. hardcode_direct_FC=yes
  11502. hardcode_minus_L_FC=yes
  11503. hardcode_shlibpath_var_FC=no
  11504. ;;
  11505. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11506. freebsd* | dragonfly*)
  11507. archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11508. hardcode_libdir_flag_spec_FC='-R$libdir'
  11509. hardcode_direct_FC=yes
  11510. hardcode_shlibpath_var_FC=no
  11511. ;;
  11512. hpux9*)
  11513. if test "$GCC" = yes; then
  11514. archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11515. else
  11516. archive_cmds_FC='$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'
  11517. fi
  11518. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11519. hardcode_libdir_separator_FC=:
  11520. hardcode_direct_FC=yes
  11521. # hardcode_minus_L: Not really in the search PATH,
  11522. # but as the default location of the library.
  11523. hardcode_minus_L_FC=yes
  11524. export_dynamic_flag_spec_FC='${wl}-E'
  11525. ;;
  11526. hpux10*)
  11527. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11528. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11529. else
  11530. archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11531. fi
  11532. if test "$with_gnu_ld" = no; then
  11533. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11534. hardcode_libdir_flag_spec_ld_FC='+b $libdir'
  11535. hardcode_libdir_separator_FC=:
  11536. hardcode_direct_FC=yes
  11537. hardcode_direct_absolute_FC=yes
  11538. export_dynamic_flag_spec_FC='${wl}-E'
  11539. # hardcode_minus_L: Not really in the search PATH,
  11540. # but as the default location of the library.
  11541. hardcode_minus_L_FC=yes
  11542. fi
  11543. ;;
  11544. hpux11*)
  11545. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11546. case $host_cpu in
  11547. hppa*64*)
  11548. archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11549. ;;
  11550. ia64*)
  11551. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11552. ;;
  11553. *)
  11554. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11555. ;;
  11556. esac
  11557. else
  11558. case $host_cpu in
  11559. hppa*64*)
  11560. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11561. ;;
  11562. ia64*)
  11563. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11564. ;;
  11565. *)
  11566. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11567. ;;
  11568. esac
  11569. fi
  11570. if test "$with_gnu_ld" = no; then
  11571. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11572. hardcode_libdir_separator_FC=:
  11573. case $host_cpu in
  11574. hppa*64*|ia64*)
  11575. hardcode_direct_FC=no
  11576. hardcode_shlibpath_var_FC=no
  11577. ;;
  11578. *)
  11579. hardcode_direct_FC=yes
  11580. hardcode_direct_absolute_FC=yes
  11581. export_dynamic_flag_spec_FC='${wl}-E'
  11582. # hardcode_minus_L: Not really in the search PATH,
  11583. # but as the default location of the library.
  11584. hardcode_minus_L_FC=yes
  11585. ;;
  11586. esac
  11587. fi
  11588. ;;
  11589. irix5* | irix6* | nonstopux*)
  11590. if test "$GCC" = yes; then
  11591. archive_cmds_FC='$CC -shared $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'
  11592. # Try to use the -exported_symbol ld option, if it does not
  11593. # work, assume that -exports_file does not work either and
  11594. # implicitly export all symbols.
  11595. save_LDFLAGS="$LDFLAGS"
  11596. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11597. if test x$gcc_no_link = xyes; then
  11598. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11599. fi
  11600. cat > conftest.$ac_ext <<_ACEOF
  11601. int foo(void) {}
  11602. _ACEOF
  11603. if ac_fn_fc_try_link "$LINENO"; then :
  11604. archive_expsym_cmds_FC='$CC -shared $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'
  11605. fi
  11606. rm -f core conftest.err conftest.$ac_objext \
  11607. conftest$ac_exeext conftest.$ac_ext
  11608. LDFLAGS="$save_LDFLAGS"
  11609. else
  11610. archive_cmds_FC='$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'
  11611. archive_expsym_cmds_FC='$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'
  11612. fi
  11613. archive_cmds_need_lc_FC='no'
  11614. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11615. hardcode_libdir_separator_FC=:
  11616. inherit_rpath_FC=yes
  11617. link_all_deplibs_FC=yes
  11618. ;;
  11619. netbsd*)
  11620. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11621. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11622. else
  11623. archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11624. fi
  11625. hardcode_libdir_flag_spec_FC='-R$libdir'
  11626. hardcode_direct_FC=yes
  11627. hardcode_shlibpath_var_FC=no
  11628. ;;
  11629. newsos6)
  11630. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11631. hardcode_direct_FC=yes
  11632. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11633. hardcode_libdir_separator_FC=:
  11634. hardcode_shlibpath_var_FC=no
  11635. ;;
  11636. *nto* | *qnx*)
  11637. ;;
  11638. openbsd*)
  11639. if test -f /usr/libexec/ld.so; then
  11640. hardcode_direct_FC=yes
  11641. hardcode_shlibpath_var_FC=no
  11642. hardcode_direct_absolute_FC=yes
  11643. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11644. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11645. archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11646. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11647. export_dynamic_flag_spec_FC='${wl}-E'
  11648. else
  11649. case $host_os in
  11650. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11651. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11652. hardcode_libdir_flag_spec_FC='-R$libdir'
  11653. ;;
  11654. *)
  11655. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11656. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11657. ;;
  11658. esac
  11659. fi
  11660. else
  11661. ld_shlibs_FC=no
  11662. fi
  11663. ;;
  11664. os2*)
  11665. hardcode_libdir_flag_spec_FC='-L$libdir'
  11666. hardcode_minus_L_FC=yes
  11667. allow_undefined_flag_FC=unsupported
  11668. archive_cmds_FC='$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'
  11669. old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11670. ;;
  11671. osf3*)
  11672. if test "$GCC" = yes; then
  11673. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11674. archive_cmds_FC='$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'
  11675. else
  11676. allow_undefined_flag_FC=' -expect_unresolved \*'
  11677. archive_cmds_FC='$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'
  11678. fi
  11679. archive_cmds_need_lc_FC='no'
  11680. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11681. hardcode_libdir_separator_FC=:
  11682. ;;
  11683. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11684. if test "$GCC" = yes; then
  11685. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11686. archive_cmds_FC='$CC -shared${allow_undefined_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'
  11687. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11688. else
  11689. allow_undefined_flag_FC=' -expect_unresolved \*'
  11690. archive_cmds_FC='$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'
  11691. archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11692. $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'
  11693. # Both c and cxx compiler support -rpath directly
  11694. hardcode_libdir_flag_spec_FC='-rpath $libdir'
  11695. fi
  11696. archive_cmds_need_lc_FC='no'
  11697. hardcode_libdir_separator_FC=:
  11698. ;;
  11699. solaris*)
  11700. no_undefined_flag_FC=' -z defs'
  11701. if test "$GCC" = yes; then
  11702. wlarc='${wl}'
  11703. archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11704. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11705. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11706. else
  11707. case `$CC -V 2>&1` in
  11708. *"Compilers 5.0"*)
  11709. wlarc=''
  11710. archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11711. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11712. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11713. ;;
  11714. *)
  11715. wlarc='${wl}'
  11716. archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11717. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11718. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11719. ;;
  11720. esac
  11721. fi
  11722. hardcode_libdir_flag_spec_FC='-R$libdir'
  11723. hardcode_shlibpath_var_FC=no
  11724. case $host_os in
  11725. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11726. *)
  11727. # The compiler driver will combine and reorder linker options,
  11728. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11729. # but is careful enough not to reorder.
  11730. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11731. if test "$GCC" = yes; then
  11732. whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11733. else
  11734. whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
  11735. fi
  11736. ;;
  11737. esac
  11738. link_all_deplibs_FC=yes
  11739. ;;
  11740. sunos4*)
  11741. if test "x$host_vendor" = xsequent; then
  11742. # Use $CC to link under sequent, because it throws in some extra .o
  11743. # files that make .init and .fini sections work.
  11744. archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11745. else
  11746. archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11747. fi
  11748. hardcode_libdir_flag_spec_FC='-L$libdir'
  11749. hardcode_direct_FC=yes
  11750. hardcode_minus_L_FC=yes
  11751. hardcode_shlibpath_var_FC=no
  11752. ;;
  11753. sysv4)
  11754. case $host_vendor in
  11755. sni)
  11756. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11757. hardcode_direct_FC=yes # is this really true???
  11758. ;;
  11759. siemens)
  11760. ## LD is ld it makes a PLAMLIB
  11761. ## CC just makes a GrossModule.
  11762. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11763. reload_cmds_FC='$CC -r -o $output$reload_objs'
  11764. hardcode_direct_FC=no
  11765. ;;
  11766. motorola)
  11767. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11768. hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
  11769. ;;
  11770. esac
  11771. runpath_var='LD_RUN_PATH'
  11772. hardcode_shlibpath_var_FC=no
  11773. ;;
  11774. sysv4.3*)
  11775. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11776. hardcode_shlibpath_var_FC=no
  11777. export_dynamic_flag_spec_FC='-Bexport'
  11778. ;;
  11779. sysv4*MP*)
  11780. if test -d /usr/nec; then
  11781. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11782. hardcode_shlibpath_var_FC=no
  11783. runpath_var=LD_RUN_PATH
  11784. hardcode_runpath_var=yes
  11785. ld_shlibs_FC=yes
  11786. fi
  11787. ;;
  11788. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11789. no_undefined_flag_FC='${wl}-z,text'
  11790. archive_cmds_need_lc_FC=no
  11791. hardcode_shlibpath_var_FC=no
  11792. runpath_var='LD_RUN_PATH'
  11793. if test "$GCC" = yes; then
  11794. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11795. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. else
  11797. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. fi
  11800. ;;
  11801. sysv5* | sco3.2v5* | sco5v6*)
  11802. # Note: We can NOT use -z defs as we might desire, because we do not
  11803. # link with -lc, and that would cause any symbols used from libc to
  11804. # always be unresolved, which means just about no library would
  11805. # ever link correctly. If we're not using GNU ld we use -z text
  11806. # though, which does catch some bad symbols but isn't as heavy-handed
  11807. # as -z defs.
  11808. no_undefined_flag_FC='${wl}-z,text'
  11809. allow_undefined_flag_FC='${wl}-z,nodefs'
  11810. archive_cmds_need_lc_FC=no
  11811. hardcode_shlibpath_var_FC=no
  11812. hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
  11813. hardcode_libdir_separator_FC=':'
  11814. link_all_deplibs_FC=yes
  11815. export_dynamic_flag_spec_FC='${wl}-Bexport'
  11816. runpath_var='LD_RUN_PATH'
  11817. if test "$GCC" = yes; then
  11818. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. else
  11821. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11822. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11823. fi
  11824. ;;
  11825. uts4*)
  11826. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11827. hardcode_libdir_flag_spec_FC='-L$libdir'
  11828. hardcode_shlibpath_var_FC=no
  11829. ;;
  11830. *)
  11831. ld_shlibs_FC=no
  11832. ;;
  11833. esac
  11834. if test x$host_vendor = xsni; then
  11835. case $host in
  11836. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11837. export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
  11838. ;;
  11839. esac
  11840. fi
  11841. fi
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
  11843. $as_echo "$ld_shlibs_FC" >&6; }
  11844. test "$ld_shlibs_FC" = no && can_build_shared=no
  11845. with_gnu_ld_FC=$with_gnu_ld
  11846. #
  11847. # Do we need to explicitly link libc?
  11848. #
  11849. case "x$archive_cmds_need_lc_FC" in
  11850. x|xyes)
  11851. # Assume -lc should be added
  11852. archive_cmds_need_lc_FC=yes
  11853. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11854. case $archive_cmds_FC in
  11855. *'~'*)
  11856. # FIXME: we may have to deal with multi-command sequences.
  11857. ;;
  11858. '$CC '*)
  11859. # Test whether the compiler implicitly links with -lc since on some
  11860. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11861. # to ld, don't add -lc before -lgcc.
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11863. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11864. if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
  11865. $as_echo_n "(cached) " >&6
  11866. else
  11867. $RM conftest*
  11868. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11869. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11870. (eval $ac_compile) 2>&5
  11871. ac_status=$?
  11872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11873. test $ac_status = 0; } 2>conftest.err; then
  11874. soname=conftest
  11875. lib=conftest
  11876. libobjs=conftest.$ac_objext
  11877. deplibs=
  11878. wl=$lt_prog_compiler_wl_FC
  11879. pic_flag=$lt_prog_compiler_pic_FC
  11880. compiler_flags=-v
  11881. linker_flags=-v
  11882. verstring=
  11883. output_objdir=.
  11884. libname=conftest
  11885. lt_save_allow_undefined_flag=$allow_undefined_flag_FC
  11886. allow_undefined_flag_FC=
  11887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11888. (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11889. ac_status=$?
  11890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11891. test $ac_status = 0; }
  11892. then
  11893. lt_cv_archive_cmds_need_lc_FC=no
  11894. else
  11895. lt_cv_archive_cmds_need_lc_FC=yes
  11896. fi
  11897. allow_undefined_flag_FC=$lt_save_allow_undefined_flag
  11898. else
  11899. cat conftest.err 1>&5
  11900. fi
  11901. $RM conftest*
  11902. fi
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
  11904. $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
  11905. archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
  11906. ;;
  11907. esac
  11908. fi
  11909. ;;
  11910. esac
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11912. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11913. library_names_spec=
  11914. libname_spec='lib$name'
  11915. soname_spec=
  11916. shrext_cmds=".so"
  11917. postinstall_cmds=
  11918. postuninstall_cmds=
  11919. finish_cmds=
  11920. finish_eval=
  11921. shlibpath_var=
  11922. shlibpath_overrides_runpath=unknown
  11923. version_type=none
  11924. dynamic_linker="$host_os ld.so"
  11925. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11926. need_lib_prefix=unknown
  11927. hardcode_into_libs=no
  11928. # when you set need_version to no, make sure it does not cause -set_version
  11929. # flags to be left without arguments
  11930. need_version=unknown
  11931. case $host_os in
  11932. aix3*)
  11933. version_type=linux
  11934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11935. shlibpath_var=LIBPATH
  11936. # AIX 3 has no versioning support, so we append a major version to the name.
  11937. soname_spec='${libname}${release}${shared_ext}$major'
  11938. ;;
  11939. aix[4-9]*)
  11940. version_type=linux
  11941. need_lib_prefix=no
  11942. need_version=no
  11943. hardcode_into_libs=yes
  11944. if test "$host_cpu" = ia64; then
  11945. # AIX 5 supports IA64
  11946. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11947. shlibpath_var=LD_LIBRARY_PATH
  11948. else
  11949. # With GCC up to 2.95.x, collect2 would create an import file
  11950. # for dependence libraries. The import file would start with
  11951. # the line `#! .'. This would cause the generated library to
  11952. # depend on `.', always an invalid library. This was fixed in
  11953. # development snapshots of GCC prior to 3.0.
  11954. case $host_os in
  11955. aix4 | aix4.[01] | aix4.[01].*)
  11956. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11957. echo ' yes '
  11958. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11959. :
  11960. else
  11961. can_build_shared=no
  11962. fi
  11963. ;;
  11964. esac
  11965. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11966. # soname into executable. Probably we can add versioning support to
  11967. # collect2, so additional links can be useful in future.
  11968. if test "$aix_use_runtimelinking" = yes; then
  11969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11970. # instead of lib<name>.a to let people know that these are not
  11971. # typical AIX shared libraries.
  11972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11973. else
  11974. # We preserve .a as extension for shared libraries through AIX4.2
  11975. # and later when we are not doing run time linking.
  11976. library_names_spec='${libname}${release}.a $libname.a'
  11977. soname_spec='${libname}${release}${shared_ext}$major'
  11978. fi
  11979. shlibpath_var=LIBPATH
  11980. fi
  11981. ;;
  11982. amigaos*)
  11983. case $host_cpu in
  11984. powerpc)
  11985. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11986. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11988. ;;
  11989. m68k)
  11990. library_names_spec='$libname.ixlibrary $libname.a'
  11991. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11992. 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'
  11993. ;;
  11994. esac
  11995. ;;
  11996. beos*)
  11997. library_names_spec='${libname}${shared_ext}'
  11998. dynamic_linker="$host_os ld.so"
  11999. shlibpath_var=LIBRARY_PATH
  12000. ;;
  12001. bsdi[45]*)
  12002. version_type=linux
  12003. need_version=no
  12004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12005. soname_spec='${libname}${release}${shared_ext}$major'
  12006. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12007. shlibpath_var=LD_LIBRARY_PATH
  12008. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12009. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12010. # the default ld.so.conf also contains /usr/contrib/lib and
  12011. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12012. # libtool to hard-code these into programs
  12013. ;;
  12014. cygwin* | mingw* | pw32* | cegcc*)
  12015. version_type=windows
  12016. shrext_cmds=".dll"
  12017. need_version=no
  12018. need_lib_prefix=no
  12019. case $GCC,$host_os in
  12020. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12021. library_names_spec='$libname.dll.a'
  12022. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12023. postinstall_cmds='base_file=`basename \${file}`~
  12024. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12025. dldir=$destdir/`dirname \$dlpath`~
  12026. test -d \$dldir || mkdir -p \$dldir~
  12027. $install_prog $dir/$dlname \$dldir/$dlname~
  12028. chmod a+x \$dldir/$dlname~
  12029. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12030. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12031. fi'
  12032. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12033. dlpath=$dir/\$dldll~
  12034. $RM \$dlpath'
  12035. shlibpath_overrides_runpath=yes
  12036. case $host_os in
  12037. cygwin*)
  12038. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12039. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12040. ;;
  12041. mingw* | cegcc*)
  12042. # MinGW DLLs use traditional 'lib' prefix
  12043. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12044. ;;
  12045. pw32*)
  12046. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12047. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12048. ;;
  12049. esac
  12050. ;;
  12051. *)
  12052. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12053. ;;
  12054. esac
  12055. dynamic_linker='Win32 ld.exe'
  12056. # FIXME: first we should search . and the directory the executable is in
  12057. shlibpath_var=PATH
  12058. ;;
  12059. darwin* | rhapsody*)
  12060. dynamic_linker="$host_os dyld"
  12061. version_type=darwin
  12062. need_lib_prefix=no
  12063. need_version=no
  12064. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12065. soname_spec='${libname}${release}${major}$shared_ext'
  12066. shlibpath_overrides_runpath=yes
  12067. shlibpath_var=DYLD_LIBRARY_PATH
  12068. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12069. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12070. ;;
  12071. dgux*)
  12072. version_type=linux
  12073. need_lib_prefix=no
  12074. need_version=no
  12075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12076. soname_spec='${libname}${release}${shared_ext}$major'
  12077. shlibpath_var=LD_LIBRARY_PATH
  12078. ;;
  12079. freebsd1*)
  12080. dynamic_linker=no
  12081. ;;
  12082. freebsd* | dragonfly*)
  12083. # DragonFly does not have aout. When/if they implement a new
  12084. # versioning mechanism, adjust this.
  12085. if test -x /usr/bin/objformat; then
  12086. objformat=`/usr/bin/objformat`
  12087. else
  12088. case $host_os in
  12089. freebsd[123]*) objformat=aout ;;
  12090. *) objformat=elf ;;
  12091. esac
  12092. fi
  12093. version_type=freebsd-$objformat
  12094. case $version_type in
  12095. freebsd-elf*)
  12096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12097. need_version=no
  12098. need_lib_prefix=no
  12099. ;;
  12100. freebsd-*)
  12101. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12102. need_version=yes
  12103. ;;
  12104. esac
  12105. shlibpath_var=LD_LIBRARY_PATH
  12106. case $host_os in
  12107. freebsd2*)
  12108. shlibpath_overrides_runpath=yes
  12109. ;;
  12110. freebsd3.[01]* | freebsdelf3.[01]*)
  12111. shlibpath_overrides_runpath=yes
  12112. hardcode_into_libs=yes
  12113. ;;
  12114. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12115. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12116. shlibpath_overrides_runpath=no
  12117. hardcode_into_libs=yes
  12118. ;;
  12119. *) # from 4.6 on, and DragonFly
  12120. shlibpath_overrides_runpath=yes
  12121. hardcode_into_libs=yes
  12122. ;;
  12123. esac
  12124. ;;
  12125. gnu*)
  12126. version_type=linux
  12127. need_lib_prefix=no
  12128. need_version=no
  12129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12130. soname_spec='${libname}${release}${shared_ext}$major'
  12131. shlibpath_var=LD_LIBRARY_PATH
  12132. hardcode_into_libs=yes
  12133. ;;
  12134. haiku*)
  12135. version_type=linux
  12136. need_lib_prefix=no
  12137. need_version=no
  12138. dynamic_linker="$host_os runtime_loader"
  12139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12140. soname_spec='${libname}${release}${shared_ext}$major'
  12141. shlibpath_var=LIBRARY_PATH
  12142. shlibpath_overrides_runpath=yes
  12143. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12144. hardcode_into_libs=yes
  12145. ;;
  12146. hpux9* | hpux10* | hpux11*)
  12147. # Give a soname corresponding to the major version so that dld.sl refuses to
  12148. # link against other versions.
  12149. version_type=sunos
  12150. need_lib_prefix=no
  12151. need_version=no
  12152. case $host_cpu in
  12153. ia64*)
  12154. shrext_cmds='.so'
  12155. hardcode_into_libs=yes
  12156. dynamic_linker="$host_os dld.so"
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. if test "X$HPUX_IA64_MODE" = X32; then
  12162. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12163. else
  12164. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12165. fi
  12166. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12167. ;;
  12168. hppa*64*)
  12169. shrext_cmds='.sl'
  12170. hardcode_into_libs=yes
  12171. dynamic_linker="$host_os dld.sl"
  12172. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12175. soname_spec='${libname}${release}${shared_ext}$major'
  12176. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12177. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12178. ;;
  12179. *)
  12180. shrext_cmds='.sl'
  12181. dynamic_linker="$host_os dld.sl"
  12182. shlibpath_var=SHLIB_PATH
  12183. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12185. soname_spec='${libname}${release}${shared_ext}$major'
  12186. ;;
  12187. esac
  12188. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12189. postinstall_cmds='chmod 555 $lib'
  12190. # or fails outright, so override atomically:
  12191. install_override_mode=555
  12192. ;;
  12193. interix[3-9]*)
  12194. version_type=linux
  12195. need_lib_prefix=no
  12196. need_version=no
  12197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12198. soname_spec='${libname}${release}${shared_ext}$major'
  12199. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12200. shlibpath_var=LD_LIBRARY_PATH
  12201. shlibpath_overrides_runpath=no
  12202. hardcode_into_libs=yes
  12203. ;;
  12204. irix5* | irix6* | nonstopux*)
  12205. case $host_os in
  12206. nonstopux*) version_type=nonstopux ;;
  12207. *)
  12208. if test "$lt_cv_prog_gnu_ld" = yes; then
  12209. version_type=linux
  12210. else
  12211. version_type=irix
  12212. fi ;;
  12213. esac
  12214. need_lib_prefix=no
  12215. need_version=no
  12216. soname_spec='${libname}${release}${shared_ext}$major'
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12218. case $host_os in
  12219. irix5* | nonstopux*)
  12220. libsuff= shlibsuff=
  12221. ;;
  12222. *)
  12223. case $LD in # libtool.m4 will add one of these switches to LD
  12224. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12225. libsuff= shlibsuff= libmagic=32-bit;;
  12226. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12227. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12228. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12229. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12230. *) libsuff= shlibsuff= libmagic=never-match;;
  12231. esac
  12232. ;;
  12233. esac
  12234. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12235. shlibpath_overrides_runpath=no
  12236. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12237. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12238. hardcode_into_libs=yes
  12239. ;;
  12240. # No shared lib support for Linux oldld, aout, or coff.
  12241. linux*oldld* | linux*aout* | linux*coff*)
  12242. dynamic_linker=no
  12243. ;;
  12244. # This must be Linux ELF.
  12245. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12246. version_type=linux
  12247. need_lib_prefix=no
  12248. need_version=no
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12250. soname_spec='${libname}${release}${shared_ext}$major'
  12251. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12252. shlibpath_var=LD_LIBRARY_PATH
  12253. shlibpath_overrides_runpath=no
  12254. # Some binutils ld are patched to set DT_RUNPATH
  12255. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12256. $as_echo_n "(cached) " >&6
  12257. else
  12258. lt_cv_shlibpath_overrides_runpath=no
  12259. save_LDFLAGS=$LDFLAGS
  12260. save_libdir=$libdir
  12261. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
  12262. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  12263. if test x$gcc_no_link = xyes; then
  12264. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12265. fi
  12266. cat > conftest.$ac_ext <<_ACEOF
  12267. program main
  12268. end
  12269. _ACEOF
  12270. if ac_fn_fc_try_link "$LINENO"; then :
  12271. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12272. lt_cv_shlibpath_overrides_runpath=yes
  12273. fi
  12274. fi
  12275. rm -f core conftest.err conftest.$ac_objext \
  12276. conftest$ac_exeext conftest.$ac_ext
  12277. LDFLAGS=$save_LDFLAGS
  12278. libdir=$save_libdir
  12279. fi
  12280. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12281. # This implies no fast_install, which is unacceptable.
  12282. # Some rework will be needed to allow for fast_install
  12283. # before this can be enabled.
  12284. hardcode_into_libs=yes
  12285. # Append ld.so.conf contents to the search path
  12286. if test -f /etc/ld.so.conf; then
  12287. 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' ' '`
  12288. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12289. fi
  12290. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12291. # powerpc, because MkLinux only supported shared libraries with the
  12292. # GNU dynamic linker. Since this was broken with cross compilers,
  12293. # most powerpc-linux boxes support dynamic linking these days and
  12294. # people can always --disable-shared, the test was removed, and we
  12295. # assume the GNU/Linux dynamic linker is in use.
  12296. dynamic_linker='GNU/Linux ld.so'
  12297. ;;
  12298. netbsd*)
  12299. version_type=sunos
  12300. need_lib_prefix=no
  12301. need_version=no
  12302. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12305. dynamic_linker='NetBSD (a.out) ld.so'
  12306. else
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. dynamic_linker='NetBSD ld.elf_so'
  12310. fi
  12311. shlibpath_var=LD_LIBRARY_PATH
  12312. shlibpath_overrides_runpath=yes
  12313. hardcode_into_libs=yes
  12314. ;;
  12315. newsos6)
  12316. version_type=linux
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. shlibpath_overrides_runpath=yes
  12320. ;;
  12321. *nto* | *qnx*)
  12322. version_type=qnx
  12323. need_lib_prefix=no
  12324. need_version=no
  12325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12326. soname_spec='${libname}${release}${shared_ext}$major'
  12327. shlibpath_var=LD_LIBRARY_PATH
  12328. shlibpath_overrides_runpath=no
  12329. hardcode_into_libs=yes
  12330. dynamic_linker='ldqnx.so'
  12331. ;;
  12332. openbsd*)
  12333. version_type=sunos
  12334. sys_lib_dlsearch_path_spec="/usr/lib"
  12335. need_lib_prefix=no
  12336. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12337. case $host_os in
  12338. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12339. *) need_version=no ;;
  12340. esac
  12341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12343. shlibpath_var=LD_LIBRARY_PATH
  12344. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12345. case $host_os in
  12346. openbsd2.[89] | openbsd2.[89].*)
  12347. shlibpath_overrides_runpath=no
  12348. ;;
  12349. *)
  12350. shlibpath_overrides_runpath=yes
  12351. ;;
  12352. esac
  12353. else
  12354. shlibpath_overrides_runpath=yes
  12355. fi
  12356. ;;
  12357. os2*)
  12358. libname_spec='$name'
  12359. shrext_cmds=".dll"
  12360. need_lib_prefix=no
  12361. library_names_spec='$libname${shared_ext} $libname.a'
  12362. dynamic_linker='OS/2 ld.exe'
  12363. shlibpath_var=LIBPATH
  12364. ;;
  12365. osf3* | osf4* | osf5*)
  12366. version_type=osf
  12367. need_lib_prefix=no
  12368. need_version=no
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12373. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12374. ;;
  12375. rdos*)
  12376. dynamic_linker=no
  12377. ;;
  12378. solaris*)
  12379. version_type=linux
  12380. need_lib_prefix=no
  12381. need_version=no
  12382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12383. soname_spec='${libname}${release}${shared_ext}$major'
  12384. shlibpath_var=LD_LIBRARY_PATH
  12385. shlibpath_overrides_runpath=yes
  12386. hardcode_into_libs=yes
  12387. # ldd complains unless libraries are executable
  12388. postinstall_cmds='chmod +x $lib'
  12389. ;;
  12390. sunos4*)
  12391. version_type=sunos
  12392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12393. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12394. shlibpath_var=LD_LIBRARY_PATH
  12395. shlibpath_overrides_runpath=yes
  12396. if test "$with_gnu_ld" = yes; then
  12397. need_lib_prefix=no
  12398. fi
  12399. need_version=yes
  12400. ;;
  12401. sysv4 | sysv4.3*)
  12402. version_type=linux
  12403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12404. soname_spec='${libname}${release}${shared_ext}$major'
  12405. shlibpath_var=LD_LIBRARY_PATH
  12406. case $host_vendor in
  12407. sni)
  12408. shlibpath_overrides_runpath=no
  12409. need_lib_prefix=no
  12410. runpath_var=LD_RUN_PATH
  12411. ;;
  12412. siemens)
  12413. need_lib_prefix=no
  12414. ;;
  12415. motorola)
  12416. need_lib_prefix=no
  12417. need_version=no
  12418. shlibpath_overrides_runpath=no
  12419. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12420. ;;
  12421. esac
  12422. ;;
  12423. sysv4*MP*)
  12424. if test -d /usr/nec ;then
  12425. version_type=linux
  12426. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12427. soname_spec='$libname${shared_ext}.$major'
  12428. shlibpath_var=LD_LIBRARY_PATH
  12429. fi
  12430. ;;
  12431. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12432. version_type=freebsd-elf
  12433. need_lib_prefix=no
  12434. need_version=no
  12435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12436. soname_spec='${libname}${release}${shared_ext}$major'
  12437. shlibpath_var=LD_LIBRARY_PATH
  12438. shlibpath_overrides_runpath=yes
  12439. hardcode_into_libs=yes
  12440. if test "$with_gnu_ld" = yes; then
  12441. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12442. else
  12443. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12444. case $host_os in
  12445. sco3.2v5*)
  12446. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12447. ;;
  12448. esac
  12449. fi
  12450. sys_lib_dlsearch_path_spec='/usr/lib'
  12451. ;;
  12452. tpf*)
  12453. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12454. version_type=linux
  12455. need_lib_prefix=no
  12456. need_version=no
  12457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12458. shlibpath_var=LD_LIBRARY_PATH
  12459. shlibpath_overrides_runpath=no
  12460. hardcode_into_libs=yes
  12461. ;;
  12462. uts4*)
  12463. version_type=linux
  12464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12465. soname_spec='${libname}${release}${shared_ext}$major'
  12466. shlibpath_var=LD_LIBRARY_PATH
  12467. ;;
  12468. *)
  12469. dynamic_linker=no
  12470. ;;
  12471. esac
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12473. $as_echo "$dynamic_linker" >&6; }
  12474. test "$dynamic_linker" = no && can_build_shared=no
  12475. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12476. if test "$GCC" = yes; then
  12477. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12478. fi
  12479. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12480. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12481. fi
  12482. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12483. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12484. fi
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12486. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12487. hardcode_action_FC=
  12488. if test -n "$hardcode_libdir_flag_spec_FC" ||
  12489. test -n "$runpath_var_FC" ||
  12490. test "X$hardcode_automatic_FC" = "Xyes" ; then
  12491. # We can hardcode non-existent directories.
  12492. if test "$hardcode_direct_FC" != no &&
  12493. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12494. # have to relink, otherwise we might link with an installed library
  12495. # when we should be linking with a yet-to-be-installed one
  12496. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
  12497. test "$hardcode_minus_L_FC" != no; then
  12498. # Linking always hardcodes the temporary library directory.
  12499. hardcode_action_FC=relink
  12500. else
  12501. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12502. hardcode_action_FC=immediate
  12503. fi
  12504. else
  12505. # We cannot hardcode anything, or else we can only hardcode existing
  12506. # directories.
  12507. hardcode_action_FC=unsupported
  12508. fi
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
  12510. $as_echo "$hardcode_action_FC" >&6; }
  12511. if test "$hardcode_action_FC" = relink ||
  12512. test "$inherit_rpath_FC" = yes; then
  12513. # Fast installation is not supported
  12514. enable_fast_install=no
  12515. elif test "$shlibpath_overrides_runpath" = yes ||
  12516. test "$enable_shared" = no; then
  12517. # Fast installation is not necessary
  12518. enable_fast_install=needless
  12519. fi
  12520. fi # test -n "$compiler"
  12521. GCC=$lt_save_GCC
  12522. CC="$lt_save_CC"
  12523. fi # test "$_lt_disable_FC" != yes
  12524. ac_ext=c
  12525. ac_cpp='$CPP $CPPFLAGS'
  12526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12529. # extra LD Flags which are required for targets
  12530. case "${host}" in
  12531. *-darwin*)
  12532. # Darwin needs -single_module when linking libgfortran
  12533. extra_ldflags_libgfortran=-Wl,-single_module
  12534. ;;
  12535. esac
  12536. # We need a working compiler at that point, otherwise give a clear
  12537. # error message and bail out.
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
  12539. $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
  12540. ac_ext=${ac_fc_srcext-f}
  12541. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  12542. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  12543. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  12544. cat > conftest.$ac_ext <<_ACEOF
  12545. program foo
  12546. real, parameter :: bar = sin (12.34 / 2.5)
  12547. end program foo
  12548. _ACEOF
  12549. if ac_fn_fc_try_compile "$LINENO"; then :
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12551. $as_echo "yes" >&6; }
  12552. else
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12554. $as_echo "no" >&6; }
  12555. as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
  12556. fi
  12557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12558. ac_ext=c
  12559. ac_cpp='$CPP $CPPFLAGS'
  12560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12563. # Check whether --enable-largefile was given.
  12564. if test "${enable_largefile+set}" = set; then :
  12565. enableval=$enable_largefile;
  12566. fi
  12567. if test "$enable_largefile" != no; then
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12569. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12570. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  12571. $as_echo_n "(cached) " >&6
  12572. else
  12573. ac_cv_sys_largefile_CC=no
  12574. if test "$GCC" != yes; then
  12575. ac_save_CC=$CC
  12576. while :; do
  12577. # IRIX 6.2 and later do not support large files by default,
  12578. # so use the C compiler's -n32 option if that helps.
  12579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. /* end confdefs.h. */
  12581. #include <sys/types.h>
  12582. /* Check that off_t can represent 2**63 - 1 correctly.
  12583. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12584. since some C++ compilers masquerading as C compilers
  12585. incorrectly reject 9223372036854775807. */
  12586. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12587. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12588. && LARGE_OFF_T % 2147483647 == 1)
  12589. ? 1 : -1];
  12590. int
  12591. main ()
  12592. {
  12593. ;
  12594. return 0;
  12595. }
  12596. _ACEOF
  12597. if ac_fn_c_try_compile "$LINENO"; then :
  12598. break
  12599. fi
  12600. rm -f core conftest.err conftest.$ac_objext
  12601. CC="$CC -n32"
  12602. if ac_fn_c_try_compile "$LINENO"; then :
  12603. ac_cv_sys_largefile_CC=' -n32'; break
  12604. fi
  12605. rm -f core conftest.err conftest.$ac_objext
  12606. break
  12607. done
  12608. CC=$ac_save_CC
  12609. rm -f conftest.$ac_ext
  12610. fi
  12611. fi
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12613. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12614. if test "$ac_cv_sys_largefile_CC" != no; then
  12615. CC=$CC$ac_cv_sys_largefile_CC
  12616. fi
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12618. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12619. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. while :; do
  12623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12624. /* end confdefs.h. */
  12625. #include <sys/types.h>
  12626. /* Check that off_t can represent 2**63 - 1 correctly.
  12627. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12628. since some C++ compilers masquerading as C compilers
  12629. incorrectly reject 9223372036854775807. */
  12630. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12631. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12632. && LARGE_OFF_T % 2147483647 == 1)
  12633. ? 1 : -1];
  12634. int
  12635. main ()
  12636. {
  12637. ;
  12638. return 0;
  12639. }
  12640. _ACEOF
  12641. if ac_fn_c_try_compile "$LINENO"; then :
  12642. ac_cv_sys_file_offset_bits=no; break
  12643. fi
  12644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12646. /* end confdefs.h. */
  12647. #define _FILE_OFFSET_BITS 64
  12648. #include <sys/types.h>
  12649. /* Check that off_t can represent 2**63 - 1 correctly.
  12650. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12651. since some C++ compilers masquerading as C compilers
  12652. incorrectly reject 9223372036854775807. */
  12653. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12654. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12655. && LARGE_OFF_T % 2147483647 == 1)
  12656. ? 1 : -1];
  12657. int
  12658. main ()
  12659. {
  12660. ;
  12661. return 0;
  12662. }
  12663. _ACEOF
  12664. if ac_fn_c_try_compile "$LINENO"; then :
  12665. ac_cv_sys_file_offset_bits=64; break
  12666. fi
  12667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12668. ac_cv_sys_file_offset_bits=unknown
  12669. break
  12670. done
  12671. fi
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12673. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12674. case $ac_cv_sys_file_offset_bits in #(
  12675. no | unknown) ;;
  12676. *)
  12677. cat >>confdefs.h <<_ACEOF
  12678. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12679. _ACEOF
  12680. ;;
  12681. esac
  12682. rm -rf conftest*
  12683. if test $ac_cv_sys_file_offset_bits = unknown; then
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12685. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12686. if test "${ac_cv_sys_large_files+set}" = set; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. while :; do
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. #include <sys/types.h>
  12693. /* Check that off_t can represent 2**63 - 1 correctly.
  12694. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12695. since some C++ compilers masquerading as C compilers
  12696. incorrectly reject 9223372036854775807. */
  12697. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12698. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12699. && LARGE_OFF_T % 2147483647 == 1)
  12700. ? 1 : -1];
  12701. int
  12702. main ()
  12703. {
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. if ac_fn_c_try_compile "$LINENO"; then :
  12709. ac_cv_sys_large_files=no; break
  12710. fi
  12711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #define _LARGE_FILES 1
  12715. #include <sys/types.h>
  12716. /* Check that off_t can represent 2**63 - 1 correctly.
  12717. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12718. since some C++ compilers masquerading as C compilers
  12719. incorrectly reject 9223372036854775807. */
  12720. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12721. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12722. && LARGE_OFF_T % 2147483647 == 1)
  12723. ? 1 : -1];
  12724. int
  12725. main ()
  12726. {
  12727. ;
  12728. return 0;
  12729. }
  12730. _ACEOF
  12731. if ac_fn_c_try_compile "$LINENO"; then :
  12732. ac_cv_sys_large_files=1; break
  12733. fi
  12734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12735. ac_cv_sys_large_files=unknown
  12736. break
  12737. done
  12738. fi
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12740. $as_echo "$ac_cv_sys_large_files" >&6; }
  12741. case $ac_cv_sys_large_files in #(
  12742. no | unknown) ;;
  12743. *)
  12744. cat >>confdefs.h <<_ACEOF
  12745. #define _LARGE_FILES $ac_cv_sys_large_files
  12746. _ACEOF
  12747. ;;
  12748. esac
  12749. rm -rf conftest*
  12750. fi
  12751. fi
  12752. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12753. if test "x$ac_cv_type_off_t" = x""yes; then :
  12754. else
  12755. cat >>confdefs.h <<_ACEOF
  12756. #define off_t long int
  12757. _ACEOF
  12758. fi
  12759. # check header files
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12761. $as_echo_n "checking for ANSI C header files... " >&6; }
  12762. if test "${ac_cv_header_stdc+set}" = set; then :
  12763. $as_echo_n "(cached) " >&6
  12764. else
  12765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12766. /* end confdefs.h. */
  12767. #include <stdlib.h>
  12768. #include <stdarg.h>
  12769. #include <string.h>
  12770. #include <float.h>
  12771. int
  12772. main ()
  12773. {
  12774. ;
  12775. return 0;
  12776. }
  12777. _ACEOF
  12778. if ac_fn_c_try_compile "$LINENO"; then :
  12779. ac_cv_header_stdc=yes
  12780. else
  12781. ac_cv_header_stdc=no
  12782. fi
  12783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12784. if test $ac_cv_header_stdc = yes; then
  12785. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12787. /* end confdefs.h. */
  12788. #include <string.h>
  12789. _ACEOF
  12790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12791. $EGREP "memchr" >/dev/null 2>&1; then :
  12792. else
  12793. ac_cv_header_stdc=no
  12794. fi
  12795. rm -f conftest*
  12796. fi
  12797. if test $ac_cv_header_stdc = yes; then
  12798. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12800. /* end confdefs.h. */
  12801. #include <stdlib.h>
  12802. _ACEOF
  12803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12804. $EGREP "free" >/dev/null 2>&1; then :
  12805. else
  12806. ac_cv_header_stdc=no
  12807. fi
  12808. rm -f conftest*
  12809. fi
  12810. if test $ac_cv_header_stdc = yes; then
  12811. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12812. if test "$cross_compiling" = yes; then :
  12813. :
  12814. else
  12815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12816. /* end confdefs.h. */
  12817. #include <ctype.h>
  12818. #include <stdlib.h>
  12819. #if ((' ' & 0x0FF) == 0x020)
  12820. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12821. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12822. #else
  12823. # define ISLOWER(c) \
  12824. (('a' <= (c) && (c) <= 'i') \
  12825. || ('j' <= (c) && (c) <= 'r') \
  12826. || ('s' <= (c) && (c) <= 'z'))
  12827. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12828. #endif
  12829. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12830. int
  12831. main ()
  12832. {
  12833. int i;
  12834. for (i = 0; i < 256; i++)
  12835. if (XOR (islower (i), ISLOWER (i))
  12836. || toupper (i) != TOUPPER (i))
  12837. return 2;
  12838. return 0;
  12839. }
  12840. _ACEOF
  12841. if ac_fn_c_try_run "$LINENO"; then :
  12842. else
  12843. ac_cv_header_stdc=no
  12844. fi
  12845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12847. fi
  12848. fi
  12849. fi
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12851. $as_echo "$ac_cv_header_stdc" >&6; }
  12852. if test $ac_cv_header_stdc = yes; then
  12853. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12854. fi
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12856. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12857. if test "${ac_cv_header_time+set}" = set; then :
  12858. $as_echo_n "(cached) " >&6
  12859. else
  12860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12861. /* end confdefs.h. */
  12862. #include <sys/types.h>
  12863. #include <sys/time.h>
  12864. #include <time.h>
  12865. int
  12866. main ()
  12867. {
  12868. if ((struct tm *) 0)
  12869. return 0;
  12870. ;
  12871. return 0;
  12872. }
  12873. _ACEOF
  12874. if ac_fn_c_try_compile "$LINENO"; then :
  12875. ac_cv_header_time=yes
  12876. else
  12877. ac_cv_header_time=no
  12878. fi
  12879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12880. fi
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12882. $as_echo "$ac_cv_header_time" >&6; }
  12883. if test $ac_cv_header_time = yes; then
  12884. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12885. fi
  12886. for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
  12887. do :
  12888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12889. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12890. eval as_val=\$$as_ac_Header
  12891. if test "x$as_val" = x""yes; then :
  12892. cat >>confdefs.h <<_ACEOF
  12893. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12894. _ACEOF
  12895. fi
  12896. done
  12897. for ac_header in time.h sys/time.h sys/times.h sys/resource.h
  12898. do :
  12899. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12900. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12901. eval as_val=\$$as_ac_Header
  12902. if test "x$as_val" = x""yes; then :
  12903. cat >>confdefs.h <<_ACEOF
  12904. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12905. _ACEOF
  12906. fi
  12907. done
  12908. for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
  12909. do :
  12910. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12911. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12912. eval as_val=\$$as_ac_Header
  12913. if test "x$as_val" = x""yes; then :
  12914. cat >>confdefs.h <<_ACEOF
  12915. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12916. _ACEOF
  12917. fi
  12918. done
  12919. for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
  12920. do :
  12921. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12922. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12923. eval as_val=\$$as_ac_Header
  12924. if test "x$as_val" = x""yes; then :
  12925. cat >>confdefs.h <<_ACEOF
  12926. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12927. _ACEOF
  12928. fi
  12929. done
  12930. ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
  12931. if test "x$ac_cv_header_complex_h" = x""yes; then :
  12932. $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
  12933. fi
  12934. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  12935. acx_cv_header_stdint=stddef.h
  12936. acx_cv_header_stdint_kind="(already complete)"
  12937. for i in stdint.h $inttype_headers; do
  12938. unset ac_cv_type_uintptr_t
  12939. unset ac_cv_type_uintmax_t
  12940. unset ac_cv_type_int_least32_t
  12941. unset ac_cv_type_int_fast32_t
  12942. unset ac_cv_type_uint64_t
  12943. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  12944. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  12945. #include <$i>
  12946. "
  12947. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  12948. acx_cv_header_stdint=$i
  12949. else
  12950. continue
  12951. fi
  12952. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  12953. #include <$i>
  12954. "
  12955. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  12956. else
  12957. acx_cv_header_stdint_kind="(mostly complete)"
  12958. fi
  12959. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  12960. #include <$i>
  12961. "
  12962. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  12963. else
  12964. acx_cv_header_stdint_kind="(mostly complete)"
  12965. fi
  12966. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  12967. #include <$i>
  12968. "
  12969. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  12970. else
  12971. acx_cv_header_stdint_kind="(mostly complete)"
  12972. fi
  12973. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12974. #include <$i>
  12975. "
  12976. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  12977. else
  12978. acx_cv_header_stdint_kind="(lacks uint64_t)"
  12979. fi
  12980. break
  12981. done
  12982. if test "$acx_cv_header_stdint" = stddef.h; then
  12983. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  12984. for i in stdint.h $inttype_headers; do
  12985. unset ac_cv_type_uintptr_t
  12986. unset ac_cv_type_uint32_t
  12987. unset ac_cv_type_uint64_t
  12988. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  12989. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  12990. #include <$i>
  12991. "
  12992. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  12993. acx_cv_header_stdint=$i
  12994. else
  12995. continue
  12996. fi
  12997. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12998. #include <$i>
  12999. "
  13000. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13001. fi
  13002. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13003. #include <$i>
  13004. "
  13005. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13006. fi
  13007. break
  13008. done
  13009. fi
  13010. if test "$acx_cv_header_stdint" = stddef.h; then
  13011. acx_cv_header_stdint_kind="(u_intXX_t style)"
  13012. for i in sys/types.h $inttype_headers; do
  13013. unset ac_cv_type_u_int32_t
  13014. unset ac_cv_type_u_int64_t
  13015. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  13016. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  13017. #include <$i>
  13018. "
  13019. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  13020. acx_cv_header_stdint=$i
  13021. else
  13022. continue
  13023. fi
  13024. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  13025. #include <$i>
  13026. "
  13027. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  13028. fi
  13029. break
  13030. done
  13031. fi
  13032. if test "$acx_cv_header_stdint" = stddef.h; then
  13033. acx_cv_header_stdint_kind="(using manual detection)"
  13034. fi
  13035. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  13036. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  13037. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  13038. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  13039. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  13040. # ----------------- Summarize what we found so far
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  13042. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  13043. case `$as_basename -- gstdint.h ||
  13044. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  13045. Xgstdint.h : 'X\(//\)$' \| \
  13046. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  13047. $as_echo X/gstdint.h |
  13048. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13049. s//\1/
  13050. q
  13051. }
  13052. /^X\/\(\/\/\)$/{
  13053. s//\1/
  13054. q
  13055. }
  13056. /^X\/\(\/\).*/{
  13057. s//\1/
  13058. q
  13059. }
  13060. s/.*/./; q'` in
  13061. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13062. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13063. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13064. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13065. *) ;;
  13066. esac
  13067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  13068. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  13069. # ----------------- done included file, check C basic types --------
  13070. # Lacking an uintptr_t? Test size of void *
  13071. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  13072. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  13073. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13074. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13075. # This bug is HP SR number 8606223364.
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13077. $as_echo_n "checking size of void *... " >&6; }
  13078. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13079. $as_echo_n "(cached) " >&6
  13080. else
  13081. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13082. else
  13083. if test "$ac_cv_type_void_p" = yes; then
  13084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13086. { as_fn_set_status 77
  13087. as_fn_error "cannot compute sizeof (void *)
  13088. See \`config.log' for more details." "$LINENO" 5; }; }
  13089. else
  13090. ac_cv_sizeof_void_p=0
  13091. fi
  13092. fi
  13093. fi
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13095. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13096. cat >>confdefs.h <<_ACEOF
  13097. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13098. _ACEOF
  13099. ;;
  13100. esac
  13101. # Lacking an uint64_t? Test size of long
  13102. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  13103. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  13104. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13105. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13106. # This bug is HP SR number 8606223364.
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13108. $as_echo_n "checking size of long... " >&6; }
  13109. if test "${ac_cv_sizeof_long+set}" = set; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13113. else
  13114. if test "$ac_cv_type_long" = yes; then
  13115. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13116. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13117. { as_fn_set_status 77
  13118. as_fn_error "cannot compute sizeof (long)
  13119. See \`config.log' for more details." "$LINENO" 5; }; }
  13120. else
  13121. ac_cv_sizeof_long=0
  13122. fi
  13123. fi
  13124. fi
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13126. $as_echo "$ac_cv_sizeof_long" >&6; }
  13127. cat >>confdefs.h <<_ACEOF
  13128. #define SIZEOF_LONG $ac_cv_sizeof_long
  13129. _ACEOF
  13130. ;;
  13131. esac
  13132. if test $acx_cv_header_stdint = stddef.h; then
  13133. # Lacking a good header? Test size of everything and deduce all types.
  13134. # The cast to long int works around a bug in the HP C Compiler
  13135. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13136. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13137. # This bug is HP SR number 8606223364.
  13138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13139. $as_echo_n "checking size of int... " >&6; }
  13140. if test "${ac_cv_sizeof_int+set}" = set; then :
  13141. $as_echo_n "(cached) " >&6
  13142. else
  13143. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13144. else
  13145. if test "$ac_cv_type_int" = yes; then
  13146. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13148. { as_fn_set_status 77
  13149. as_fn_error "cannot compute sizeof (int)
  13150. See \`config.log' for more details." "$LINENO" 5; }; }
  13151. else
  13152. ac_cv_sizeof_int=0
  13153. fi
  13154. fi
  13155. fi
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13157. $as_echo "$ac_cv_sizeof_int" >&6; }
  13158. cat >>confdefs.h <<_ACEOF
  13159. #define SIZEOF_INT $ac_cv_sizeof_int
  13160. _ACEOF
  13161. # The cast to long int works around a bug in the HP C Compiler
  13162. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13163. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13164. # This bug is HP SR number 8606223364.
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  13166. $as_echo_n "checking size of short... " >&6; }
  13167. if test "${ac_cv_sizeof_short+set}" = set; then :
  13168. $as_echo_n "(cached) " >&6
  13169. else
  13170. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  13171. else
  13172. if test "$ac_cv_type_short" = yes; then
  13173. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13174. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13175. { as_fn_set_status 77
  13176. as_fn_error "cannot compute sizeof (short)
  13177. See \`config.log' for more details." "$LINENO" 5; }; }
  13178. else
  13179. ac_cv_sizeof_short=0
  13180. fi
  13181. fi
  13182. fi
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  13184. $as_echo "$ac_cv_sizeof_short" >&6; }
  13185. cat >>confdefs.h <<_ACEOF
  13186. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13187. _ACEOF
  13188. # The cast to long int works around a bug in the HP C Compiler
  13189. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13190. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13191. # This bug is HP SR number 8606223364.
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  13193. $as_echo_n "checking size of char... " >&6; }
  13194. if test "${ac_cv_sizeof_char+set}" = set; then :
  13195. $as_echo_n "(cached) " >&6
  13196. else
  13197. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  13198. else
  13199. if test "$ac_cv_type_char" = yes; then
  13200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13202. { as_fn_set_status 77
  13203. as_fn_error "cannot compute sizeof (char)
  13204. See \`config.log' for more details." "$LINENO" 5; }; }
  13205. else
  13206. ac_cv_sizeof_char=0
  13207. fi
  13208. fi
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  13211. $as_echo "$ac_cv_sizeof_char" >&6; }
  13212. cat >>confdefs.h <<_ACEOF
  13213. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13214. _ACEOF
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  13216. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  13217. case "$ac_cv_sizeof_char" in
  13218. 1) acx_cv_type_int8_t=char ;;
  13219. *) { as_fn_set_status please report a bug
  13220. as_fn_error "no 8-bit type" "$LINENO" 5; }
  13221. esac
  13222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  13223. $as_echo "$acx_cv_type_int8_t" >&6; }
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  13225. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  13226. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13227. 2:*) acx_cv_type_int16_t=int ;;
  13228. *:2) acx_cv_type_int16_t=short ;;
  13229. *) { as_fn_set_status please report a bug
  13230. as_fn_error "no 16-bit type" "$LINENO" 5; }
  13231. esac
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  13233. $as_echo "$acx_cv_type_int16_t" >&6; }
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  13235. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  13236. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13237. 4:*) acx_cv_type_int32_t=int ;;
  13238. *:4) acx_cv_type_int32_t=long ;;
  13239. *) { as_fn_set_status please report a bug
  13240. as_fn_error "no 32-bit type" "$LINENO" 5; }
  13241. esac
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  13243. $as_echo "$acx_cv_type_int32_t" >&6; }
  13244. fi
  13245. # These tests are here to make the output prettier
  13246. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13247. case "$ac_cv_sizeof_long" in
  13248. 8) acx_cv_type_int64_t=long ;;
  13249. esac
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  13251. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13253. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  13254. fi
  13255. # Now we can use the above types
  13256. if test "$ac_cv_type_uintptr_t" != yes; then
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  13258. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  13259. case $ac_cv_sizeof_void_p in
  13260. 2) acx_cv_type_intptr_t=int16_t ;;
  13261. 4) acx_cv_type_intptr_t=int32_t ;;
  13262. 8) acx_cv_type_intptr_t=int64_t ;;
  13263. *) { as_fn_set_status please report a bug
  13264. as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
  13265. esac
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  13267. $as_echo "$acx_cv_type_intptr_t" >&6; }
  13268. fi
  13269. # ----------------- done all checks, emit header -------------
  13270. ac_config_commands="$ac_config_commands gstdint.h"
  13271. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  13272. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
  13273. cat >>confdefs.h <<_ACEOF
  13274. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  13275. _ACEOF
  13276. fi
  13277. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  13278. if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
  13279. cat >>confdefs.h <<_ACEOF
  13280. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  13281. _ACEOF
  13282. fi
  13283. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  13284. if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
  13285. cat >>confdefs.h <<_ACEOF
  13286. #define HAVE_STRUCT_STAT_ST_RDEV 1
  13287. _ACEOF
  13288. fi
  13289. # Check for library functions.
  13290. for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
  13291. do :
  13292. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13293. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13294. eval as_val=\$$as_ac_var
  13295. if test "x$as_val" = x""yes; then :
  13296. cat >>confdefs.h <<_ACEOF
  13297. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13298. _ACEOF
  13299. fi
  13300. done
  13301. for ac_func in chdir strerror getlogin gethostname kill link symlink perror
  13302. do :
  13303. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13304. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13305. eval as_val=\$$as_ac_var
  13306. if test "x$as_val" = x""yes; then :
  13307. cat >>confdefs.h <<_ACEOF
  13308. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13309. _ACEOF
  13310. fi
  13311. done
  13312. for ac_func in sleep time ttyname signal alarm ctime clock access fork vfork execl
  13313. do :
  13314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13315. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13316. eval as_val=\$$as_ac_var
  13317. if test "x$as_val" = x""yes; then :
  13318. cat >>confdefs.h <<_ACEOF
  13319. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13320. _ACEOF
  13321. fi
  13322. done
  13323. for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
  13324. do :
  13325. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13326. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13327. eval as_val=\$$as_ac_var
  13328. if test "x$as_val" = x""yes; then :
  13329. cat >>confdefs.h <<_ACEOF
  13330. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13331. _ACEOF
  13332. fi
  13333. done
  13334. for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
  13335. do :
  13336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13338. eval as_val=\$$as_ac_var
  13339. if test "x$as_val" = x""yes; then :
  13340. cat >>confdefs.h <<_ACEOF
  13341. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13342. _ACEOF
  13343. fi
  13344. done
  13345. for ac_func in localtime_r gmtime_r
  13346. do :
  13347. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13348. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13349. eval as_val=\$$as_ac_var
  13350. if test "x$as_val" = x""yes; then :
  13351. cat >>confdefs.h <<_ACEOF
  13352. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13353. _ACEOF
  13354. fi
  13355. done
  13356. # Check for glibc backtrace functions
  13357. for ac_func in backtrace backtrace_symbols
  13358. do :
  13359. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13360. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13361. eval as_val=\$$as_ac_var
  13362. if test "x$as_val" = x""yes; then :
  13363. cat >>confdefs.h <<_ACEOF
  13364. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13365. _ACEOF
  13366. fi
  13367. done
  13368. # Check for types
  13369. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  13370. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  13371. cat >>confdefs.h <<_ACEOF
  13372. #define HAVE_INTPTR_T 1
  13373. _ACEOF
  13374. fi
  13375. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  13376. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13377. cat >>confdefs.h <<_ACEOF
  13378. #define HAVE_UINTPTR_T 1
  13379. _ACEOF
  13380. fi
  13381. # Check libc for getgid, getpid, getuid
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
  13383. $as_echo_n "checking for getgid in -lc... " >&6; }
  13384. if test "${ac_cv_lib_c_getgid+set}" = set; then :
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. ac_check_lib_save_LIBS=$LIBS
  13388. LIBS="-lc $LIBS"
  13389. if test x$gcc_no_link = xyes; then
  13390. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13391. fi
  13392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13393. /* end confdefs.h. */
  13394. /* Override any GCC internal prototype to avoid an error.
  13395. Use char because int might match the return type of a GCC
  13396. builtin and then its argument prototype would still apply. */
  13397. #ifdef __cplusplus
  13398. extern "C"
  13399. #endif
  13400. char getgid ();
  13401. int
  13402. main ()
  13403. {
  13404. return getgid ();
  13405. ;
  13406. return 0;
  13407. }
  13408. _ACEOF
  13409. if ac_fn_c_try_link "$LINENO"; then :
  13410. ac_cv_lib_c_getgid=yes
  13411. else
  13412. ac_cv_lib_c_getgid=no
  13413. fi
  13414. rm -f core conftest.err conftest.$ac_objext \
  13415. conftest$ac_exeext conftest.$ac_ext
  13416. LIBS=$ac_check_lib_save_LIBS
  13417. fi
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
  13419. $as_echo "$ac_cv_lib_c_getgid" >&6; }
  13420. if test "x$ac_cv_lib_c_getgid" = x""yes; then :
  13421. $as_echo "#define HAVE_GETGID 1" >>confdefs.h
  13422. fi
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
  13424. $as_echo_n "checking for getpid in -lc... " >&6; }
  13425. if test "${ac_cv_lib_c_getpid+set}" = set; then :
  13426. $as_echo_n "(cached) " >&6
  13427. else
  13428. ac_check_lib_save_LIBS=$LIBS
  13429. LIBS="-lc $LIBS"
  13430. if test x$gcc_no_link = xyes; then
  13431. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13432. fi
  13433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13434. /* end confdefs.h. */
  13435. /* Override any GCC internal prototype to avoid an error.
  13436. Use char because int might match the return type of a GCC
  13437. builtin and then its argument prototype would still apply. */
  13438. #ifdef __cplusplus
  13439. extern "C"
  13440. #endif
  13441. char getpid ();
  13442. int
  13443. main ()
  13444. {
  13445. return getpid ();
  13446. ;
  13447. return 0;
  13448. }
  13449. _ACEOF
  13450. if ac_fn_c_try_link "$LINENO"; then :
  13451. ac_cv_lib_c_getpid=yes
  13452. else
  13453. ac_cv_lib_c_getpid=no
  13454. fi
  13455. rm -f core conftest.err conftest.$ac_objext \
  13456. conftest$ac_exeext conftest.$ac_ext
  13457. LIBS=$ac_check_lib_save_LIBS
  13458. fi
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
  13460. $as_echo "$ac_cv_lib_c_getpid" >&6; }
  13461. if test "x$ac_cv_lib_c_getpid" = x""yes; then :
  13462. $as_echo "#define HAVE_GETPID 1" >>confdefs.h
  13463. fi
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5
  13465. $as_echo_n "checking for getppid in -lc... " >&6; }
  13466. if test "${ac_cv_lib_c_getppid+set}" = set; then :
  13467. $as_echo_n "(cached) " >&6
  13468. else
  13469. ac_check_lib_save_LIBS=$LIBS
  13470. LIBS="-lc $LIBS"
  13471. if test x$gcc_no_link = xyes; then
  13472. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13473. fi
  13474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13475. /* end confdefs.h. */
  13476. /* Override any GCC internal prototype to avoid an error.
  13477. Use char because int might match the return type of a GCC
  13478. builtin and then its argument prototype would still apply. */
  13479. #ifdef __cplusplus
  13480. extern "C"
  13481. #endif
  13482. char getppid ();
  13483. int
  13484. main ()
  13485. {
  13486. return getppid ();
  13487. ;
  13488. return 0;
  13489. }
  13490. _ACEOF
  13491. if ac_fn_c_try_link "$LINENO"; then :
  13492. ac_cv_lib_c_getppid=yes
  13493. else
  13494. ac_cv_lib_c_getppid=no
  13495. fi
  13496. rm -f core conftest.err conftest.$ac_objext \
  13497. conftest$ac_exeext conftest.$ac_ext
  13498. LIBS=$ac_check_lib_save_LIBS
  13499. fi
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getppid" >&5
  13501. $as_echo "$ac_cv_lib_c_getppid" >&6; }
  13502. if test "x$ac_cv_lib_c_getppid" = x""yes; then :
  13503. $as_echo "#define HAVE_GETPPID 1" >>confdefs.h
  13504. fi
  13505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
  13506. $as_echo_n "checking for getuid in -lc... " >&6; }
  13507. if test "${ac_cv_lib_c_getuid+set}" = set; then :
  13508. $as_echo_n "(cached) " >&6
  13509. else
  13510. ac_check_lib_save_LIBS=$LIBS
  13511. LIBS="-lc $LIBS"
  13512. if test x$gcc_no_link = xyes; then
  13513. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13514. fi
  13515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13516. /* end confdefs.h. */
  13517. /* Override any GCC internal prototype to avoid an error.
  13518. Use char because int might match the return type of a GCC
  13519. builtin and then its argument prototype would still apply. */
  13520. #ifdef __cplusplus
  13521. extern "C"
  13522. #endif
  13523. char getuid ();
  13524. int
  13525. main ()
  13526. {
  13527. return getuid ();
  13528. ;
  13529. return 0;
  13530. }
  13531. _ACEOF
  13532. if ac_fn_c_try_link "$LINENO"; then :
  13533. ac_cv_lib_c_getuid=yes
  13534. else
  13535. ac_cv_lib_c_getuid=no
  13536. fi
  13537. rm -f core conftest.err conftest.$ac_objext \
  13538. conftest$ac_exeext conftest.$ac_ext
  13539. LIBS=$ac_check_lib_save_LIBS
  13540. fi
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
  13542. $as_echo "$ac_cv_lib_c_getuid" >&6; }
  13543. if test "x$ac_cv_lib_c_getuid" = x""yes; then :
  13544. $as_echo "#define HAVE_GETUID 1" >>confdefs.h
  13545. fi
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5
  13547. $as_echo_n "checking for geteuid in -lc... " >&6; }
  13548. if test "${ac_cv_lib_c_geteuid+set}" = set; then :
  13549. $as_echo_n "(cached) " >&6
  13550. else
  13551. ac_check_lib_save_LIBS=$LIBS
  13552. LIBS="-lc $LIBS"
  13553. if test x$gcc_no_link = xyes; then
  13554. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13555. fi
  13556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13557. /* end confdefs.h. */
  13558. /* Override any GCC internal prototype to avoid an error.
  13559. Use char because int might match the return type of a GCC
  13560. builtin and then its argument prototype would still apply. */
  13561. #ifdef __cplusplus
  13562. extern "C"
  13563. #endif
  13564. char geteuid ();
  13565. int
  13566. main ()
  13567. {
  13568. return geteuid ();
  13569. ;
  13570. return 0;
  13571. }
  13572. _ACEOF
  13573. if ac_fn_c_try_link "$LINENO"; then :
  13574. ac_cv_lib_c_geteuid=yes
  13575. else
  13576. ac_cv_lib_c_geteuid=no
  13577. fi
  13578. rm -f core conftest.err conftest.$ac_objext \
  13579. conftest$ac_exeext conftest.$ac_ext
  13580. LIBS=$ac_check_lib_save_LIBS
  13581. fi
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_geteuid" >&5
  13583. $as_echo "$ac_cv_lib_c_geteuid" >&6; }
  13584. if test "x$ac_cv_lib_c_geteuid" = x""yes; then :
  13585. $as_echo "#define HAVE_GETEUID 1" >>confdefs.h
  13586. fi
  13587. # Check for C99 (and other IEEE) math functions
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
  13589. $as_echo_n "checking for acosf in -lm... " >&6; }
  13590. if test "${ac_cv_lib_m_acosf+set}" = set; then :
  13591. $as_echo_n "(cached) " >&6
  13592. else
  13593. ac_check_lib_save_LIBS=$LIBS
  13594. LIBS="-lm $LIBS"
  13595. if test x$gcc_no_link = xyes; then
  13596. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13597. fi
  13598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13599. /* end confdefs.h. */
  13600. /* Override any GCC internal prototype to avoid an error.
  13601. Use char because int might match the return type of a GCC
  13602. builtin and then its argument prototype would still apply. */
  13603. #ifdef __cplusplus
  13604. extern "C"
  13605. #endif
  13606. char acosf ();
  13607. int
  13608. main ()
  13609. {
  13610. return acosf ();
  13611. ;
  13612. return 0;
  13613. }
  13614. _ACEOF
  13615. if ac_fn_c_try_link "$LINENO"; then :
  13616. ac_cv_lib_m_acosf=yes
  13617. else
  13618. ac_cv_lib_m_acosf=no
  13619. fi
  13620. rm -f core conftest.err conftest.$ac_objext \
  13621. conftest$ac_exeext conftest.$ac_ext
  13622. LIBS=$ac_check_lib_save_LIBS
  13623. fi
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5
  13625. $as_echo "$ac_cv_lib_m_acosf" >&6; }
  13626. if test "x$ac_cv_lib_m_acosf" = x""yes; then :
  13627. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  13628. fi
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
  13630. $as_echo_n "checking for acos in -lm... " >&6; }
  13631. if test "${ac_cv_lib_m_acos+set}" = set; then :
  13632. $as_echo_n "(cached) " >&6
  13633. else
  13634. ac_check_lib_save_LIBS=$LIBS
  13635. LIBS="-lm $LIBS"
  13636. if test x$gcc_no_link = xyes; then
  13637. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13638. fi
  13639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13640. /* end confdefs.h. */
  13641. /* Override any GCC internal prototype to avoid an error.
  13642. Use char because int might match the return type of a GCC
  13643. builtin and then its argument prototype would still apply. */
  13644. #ifdef __cplusplus
  13645. extern "C"
  13646. #endif
  13647. char acos ();
  13648. int
  13649. main ()
  13650. {
  13651. return acos ();
  13652. ;
  13653. return 0;
  13654. }
  13655. _ACEOF
  13656. if ac_fn_c_try_link "$LINENO"; then :
  13657. ac_cv_lib_m_acos=yes
  13658. else
  13659. ac_cv_lib_m_acos=no
  13660. fi
  13661. rm -f core conftest.err conftest.$ac_objext \
  13662. conftest$ac_exeext conftest.$ac_ext
  13663. LIBS=$ac_check_lib_save_LIBS
  13664. fi
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
  13666. $as_echo "$ac_cv_lib_m_acos" >&6; }
  13667. if test "x$ac_cv_lib_m_acos" = x""yes; then :
  13668. $as_echo "#define HAVE_ACOS 1" >>confdefs.h
  13669. fi
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
  13671. $as_echo_n "checking for acosl in -lm... " >&6; }
  13672. if test "${ac_cv_lib_m_acosl+set}" = set; then :
  13673. $as_echo_n "(cached) " >&6
  13674. else
  13675. ac_check_lib_save_LIBS=$LIBS
  13676. LIBS="-lm $LIBS"
  13677. if test x$gcc_no_link = xyes; then
  13678. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13679. fi
  13680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13681. /* end confdefs.h. */
  13682. /* Override any GCC internal prototype to avoid an error.
  13683. Use char because int might match the return type of a GCC
  13684. builtin and then its argument prototype would still apply. */
  13685. #ifdef __cplusplus
  13686. extern "C"
  13687. #endif
  13688. char acosl ();
  13689. int
  13690. main ()
  13691. {
  13692. return acosl ();
  13693. ;
  13694. return 0;
  13695. }
  13696. _ACEOF
  13697. if ac_fn_c_try_link "$LINENO"; then :
  13698. ac_cv_lib_m_acosl=yes
  13699. else
  13700. ac_cv_lib_m_acosl=no
  13701. fi
  13702. rm -f core conftest.err conftest.$ac_objext \
  13703. conftest$ac_exeext conftest.$ac_ext
  13704. LIBS=$ac_check_lib_save_LIBS
  13705. fi
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5
  13707. $as_echo "$ac_cv_lib_m_acosl" >&6; }
  13708. if test "x$ac_cv_lib_m_acosl" = x""yes; then :
  13709. $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
  13712. $as_echo_n "checking for acoshf in -lm... " >&6; }
  13713. if test "${ac_cv_lib_m_acoshf+set}" = set; then :
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. ac_check_lib_save_LIBS=$LIBS
  13717. LIBS="-lm $LIBS"
  13718. if test x$gcc_no_link = xyes; then
  13719. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13720. fi
  13721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13722. /* end confdefs.h. */
  13723. /* Override any GCC internal prototype to avoid an error.
  13724. Use char because int might match the return type of a GCC
  13725. builtin and then its argument prototype would still apply. */
  13726. #ifdef __cplusplus
  13727. extern "C"
  13728. #endif
  13729. char acoshf ();
  13730. int
  13731. main ()
  13732. {
  13733. return acoshf ();
  13734. ;
  13735. return 0;
  13736. }
  13737. _ACEOF
  13738. if ac_fn_c_try_link "$LINENO"; then :
  13739. ac_cv_lib_m_acoshf=yes
  13740. else
  13741. ac_cv_lib_m_acoshf=no
  13742. fi
  13743. rm -f core conftest.err conftest.$ac_objext \
  13744. conftest$ac_exeext conftest.$ac_ext
  13745. LIBS=$ac_check_lib_save_LIBS
  13746. fi
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5
  13748. $as_echo "$ac_cv_lib_m_acoshf" >&6; }
  13749. if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
  13750. $as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
  13751. fi
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
  13753. $as_echo_n "checking for acosh in -lm... " >&6; }
  13754. if test "${ac_cv_lib_m_acosh+set}" = set; then :
  13755. $as_echo_n "(cached) " >&6
  13756. else
  13757. ac_check_lib_save_LIBS=$LIBS
  13758. LIBS="-lm $LIBS"
  13759. if test x$gcc_no_link = xyes; then
  13760. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13761. fi
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. /* Override any GCC internal prototype to avoid an error.
  13765. Use char because int might match the return type of a GCC
  13766. builtin and then its argument prototype would still apply. */
  13767. #ifdef __cplusplus
  13768. extern "C"
  13769. #endif
  13770. char acosh ();
  13771. int
  13772. main ()
  13773. {
  13774. return acosh ();
  13775. ;
  13776. return 0;
  13777. }
  13778. _ACEOF
  13779. if ac_fn_c_try_link "$LINENO"; then :
  13780. ac_cv_lib_m_acosh=yes
  13781. else
  13782. ac_cv_lib_m_acosh=no
  13783. fi
  13784. rm -f core conftest.err conftest.$ac_objext \
  13785. conftest$ac_exeext conftest.$ac_ext
  13786. LIBS=$ac_check_lib_save_LIBS
  13787. fi
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
  13789. $as_echo "$ac_cv_lib_m_acosh" >&6; }
  13790. if test "x$ac_cv_lib_m_acosh" = x""yes; then :
  13791. $as_echo "#define HAVE_ACOSH 1" >>confdefs.h
  13792. fi
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
  13794. $as_echo_n "checking for acoshl in -lm... " >&6; }
  13795. if test "${ac_cv_lib_m_acoshl+set}" = set; then :
  13796. $as_echo_n "(cached) " >&6
  13797. else
  13798. ac_check_lib_save_LIBS=$LIBS
  13799. LIBS="-lm $LIBS"
  13800. if test x$gcc_no_link = xyes; then
  13801. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13802. fi
  13803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13804. /* end confdefs.h. */
  13805. /* Override any GCC internal prototype to avoid an error.
  13806. Use char because int might match the return type of a GCC
  13807. builtin and then its argument prototype would still apply. */
  13808. #ifdef __cplusplus
  13809. extern "C"
  13810. #endif
  13811. char acoshl ();
  13812. int
  13813. main ()
  13814. {
  13815. return acoshl ();
  13816. ;
  13817. return 0;
  13818. }
  13819. _ACEOF
  13820. if ac_fn_c_try_link "$LINENO"; then :
  13821. ac_cv_lib_m_acoshl=yes
  13822. else
  13823. ac_cv_lib_m_acoshl=no
  13824. fi
  13825. rm -f core conftest.err conftest.$ac_objext \
  13826. conftest$ac_exeext conftest.$ac_ext
  13827. LIBS=$ac_check_lib_save_LIBS
  13828. fi
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5
  13830. $as_echo "$ac_cv_lib_m_acoshl" >&6; }
  13831. if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
  13832. $as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
  13833. fi
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
  13835. $as_echo_n "checking for asinf in -lm... " >&6; }
  13836. if test "${ac_cv_lib_m_asinf+set}" = set; then :
  13837. $as_echo_n "(cached) " >&6
  13838. else
  13839. ac_check_lib_save_LIBS=$LIBS
  13840. LIBS="-lm $LIBS"
  13841. if test x$gcc_no_link = xyes; then
  13842. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13843. fi
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. /* Override any GCC internal prototype to avoid an error.
  13847. Use char because int might match the return type of a GCC
  13848. builtin and then its argument prototype would still apply. */
  13849. #ifdef __cplusplus
  13850. extern "C"
  13851. #endif
  13852. char asinf ();
  13853. int
  13854. main ()
  13855. {
  13856. return asinf ();
  13857. ;
  13858. return 0;
  13859. }
  13860. _ACEOF
  13861. if ac_fn_c_try_link "$LINENO"; then :
  13862. ac_cv_lib_m_asinf=yes
  13863. else
  13864. ac_cv_lib_m_asinf=no
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext \
  13867. conftest$ac_exeext conftest.$ac_ext
  13868. LIBS=$ac_check_lib_save_LIBS
  13869. fi
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5
  13871. $as_echo "$ac_cv_lib_m_asinf" >&6; }
  13872. if test "x$ac_cv_lib_m_asinf" = x""yes; then :
  13873. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
  13876. $as_echo_n "checking for asin in -lm... " >&6; }
  13877. if test "${ac_cv_lib_m_asin+set}" = set; then :
  13878. $as_echo_n "(cached) " >&6
  13879. else
  13880. ac_check_lib_save_LIBS=$LIBS
  13881. LIBS="-lm $LIBS"
  13882. if test x$gcc_no_link = xyes; then
  13883. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13884. fi
  13885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13886. /* end confdefs.h. */
  13887. /* Override any GCC internal prototype to avoid an error.
  13888. Use char because int might match the return type of a GCC
  13889. builtin and then its argument prototype would still apply. */
  13890. #ifdef __cplusplus
  13891. extern "C"
  13892. #endif
  13893. char asin ();
  13894. int
  13895. main ()
  13896. {
  13897. return asin ();
  13898. ;
  13899. return 0;
  13900. }
  13901. _ACEOF
  13902. if ac_fn_c_try_link "$LINENO"; then :
  13903. ac_cv_lib_m_asin=yes
  13904. else
  13905. ac_cv_lib_m_asin=no
  13906. fi
  13907. rm -f core conftest.err conftest.$ac_objext \
  13908. conftest$ac_exeext conftest.$ac_ext
  13909. LIBS=$ac_check_lib_save_LIBS
  13910. fi
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
  13912. $as_echo "$ac_cv_lib_m_asin" >&6; }
  13913. if test "x$ac_cv_lib_m_asin" = x""yes; then :
  13914. $as_echo "#define HAVE_ASIN 1" >>confdefs.h
  13915. fi
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
  13917. $as_echo_n "checking for asinl in -lm... " >&6; }
  13918. if test "${ac_cv_lib_m_asinl+set}" = set; then :
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. ac_check_lib_save_LIBS=$LIBS
  13922. LIBS="-lm $LIBS"
  13923. if test x$gcc_no_link = xyes; then
  13924. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13925. fi
  13926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13927. /* end confdefs.h. */
  13928. /* Override any GCC internal prototype to avoid an error.
  13929. Use char because int might match the return type of a GCC
  13930. builtin and then its argument prototype would still apply. */
  13931. #ifdef __cplusplus
  13932. extern "C"
  13933. #endif
  13934. char asinl ();
  13935. int
  13936. main ()
  13937. {
  13938. return asinl ();
  13939. ;
  13940. return 0;
  13941. }
  13942. _ACEOF
  13943. if ac_fn_c_try_link "$LINENO"; then :
  13944. ac_cv_lib_m_asinl=yes
  13945. else
  13946. ac_cv_lib_m_asinl=no
  13947. fi
  13948. rm -f core conftest.err conftest.$ac_objext \
  13949. conftest$ac_exeext conftest.$ac_ext
  13950. LIBS=$ac_check_lib_save_LIBS
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5
  13953. $as_echo "$ac_cv_lib_m_asinl" >&6; }
  13954. if test "x$ac_cv_lib_m_asinl" = x""yes; then :
  13955. $as_echo "#define HAVE_ASINL 1" >>confdefs.h
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
  13958. $as_echo_n "checking for asinhf in -lm... " >&6; }
  13959. if test "${ac_cv_lib_m_asinhf+set}" = set; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. ac_check_lib_save_LIBS=$LIBS
  13963. LIBS="-lm $LIBS"
  13964. if test x$gcc_no_link = xyes; then
  13965. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13966. fi
  13967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13968. /* end confdefs.h. */
  13969. /* Override any GCC internal prototype to avoid an error.
  13970. Use char because int might match the return type of a GCC
  13971. builtin and then its argument prototype would still apply. */
  13972. #ifdef __cplusplus
  13973. extern "C"
  13974. #endif
  13975. char asinhf ();
  13976. int
  13977. main ()
  13978. {
  13979. return asinhf ();
  13980. ;
  13981. return 0;
  13982. }
  13983. _ACEOF
  13984. if ac_fn_c_try_link "$LINENO"; then :
  13985. ac_cv_lib_m_asinhf=yes
  13986. else
  13987. ac_cv_lib_m_asinhf=no
  13988. fi
  13989. rm -f core conftest.err conftest.$ac_objext \
  13990. conftest$ac_exeext conftest.$ac_ext
  13991. LIBS=$ac_check_lib_save_LIBS
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5
  13994. $as_echo "$ac_cv_lib_m_asinhf" >&6; }
  13995. if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
  13996. $as_echo "#define HAVE_ASINHF 1" >>confdefs.h
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
  13999. $as_echo_n "checking for asinh in -lm... " >&6; }
  14000. if test "${ac_cv_lib_m_asinh+set}" = set; then :
  14001. $as_echo_n "(cached) " >&6
  14002. else
  14003. ac_check_lib_save_LIBS=$LIBS
  14004. LIBS="-lm $LIBS"
  14005. if test x$gcc_no_link = xyes; then
  14006. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14007. fi
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. /* Override any GCC internal prototype to avoid an error.
  14011. Use char because int might match the return type of a GCC
  14012. builtin and then its argument prototype would still apply. */
  14013. #ifdef __cplusplus
  14014. extern "C"
  14015. #endif
  14016. char asinh ();
  14017. int
  14018. main ()
  14019. {
  14020. return asinh ();
  14021. ;
  14022. return 0;
  14023. }
  14024. _ACEOF
  14025. if ac_fn_c_try_link "$LINENO"; then :
  14026. ac_cv_lib_m_asinh=yes
  14027. else
  14028. ac_cv_lib_m_asinh=no
  14029. fi
  14030. rm -f core conftest.err conftest.$ac_objext \
  14031. conftest$ac_exeext conftest.$ac_ext
  14032. LIBS=$ac_check_lib_save_LIBS
  14033. fi
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
  14035. $as_echo "$ac_cv_lib_m_asinh" >&6; }
  14036. if test "x$ac_cv_lib_m_asinh" = x""yes; then :
  14037. $as_echo "#define HAVE_ASINH 1" >>confdefs.h
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
  14040. $as_echo_n "checking for asinhl in -lm... " >&6; }
  14041. if test "${ac_cv_lib_m_asinhl+set}" = set; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. ac_check_lib_save_LIBS=$LIBS
  14045. LIBS="-lm $LIBS"
  14046. if test x$gcc_no_link = xyes; then
  14047. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14048. fi
  14049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14050. /* end confdefs.h. */
  14051. /* Override any GCC internal prototype to avoid an error.
  14052. Use char because int might match the return type of a GCC
  14053. builtin and then its argument prototype would still apply. */
  14054. #ifdef __cplusplus
  14055. extern "C"
  14056. #endif
  14057. char asinhl ();
  14058. int
  14059. main ()
  14060. {
  14061. return asinhl ();
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_link "$LINENO"; then :
  14067. ac_cv_lib_m_asinhl=yes
  14068. else
  14069. ac_cv_lib_m_asinhl=no
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext \
  14072. conftest$ac_exeext conftest.$ac_ext
  14073. LIBS=$ac_check_lib_save_LIBS
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5
  14076. $as_echo "$ac_cv_lib_m_asinhl" >&6; }
  14077. if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
  14078. $as_echo "#define HAVE_ASINHL 1" >>confdefs.h
  14079. fi
  14080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
  14081. $as_echo_n "checking for atan2f in -lm... " >&6; }
  14082. if test "${ac_cv_lib_m_atan2f+set}" = set; then :
  14083. $as_echo_n "(cached) " >&6
  14084. else
  14085. ac_check_lib_save_LIBS=$LIBS
  14086. LIBS="-lm $LIBS"
  14087. if test x$gcc_no_link = xyes; then
  14088. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14089. fi
  14090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. /* end confdefs.h. */
  14092. /* Override any GCC internal prototype to avoid an error.
  14093. Use char because int might match the return type of a GCC
  14094. builtin and then its argument prototype would still apply. */
  14095. #ifdef __cplusplus
  14096. extern "C"
  14097. #endif
  14098. char atan2f ();
  14099. int
  14100. main ()
  14101. {
  14102. return atan2f ();
  14103. ;
  14104. return 0;
  14105. }
  14106. _ACEOF
  14107. if ac_fn_c_try_link "$LINENO"; then :
  14108. ac_cv_lib_m_atan2f=yes
  14109. else
  14110. ac_cv_lib_m_atan2f=no
  14111. fi
  14112. rm -f core conftest.err conftest.$ac_objext \
  14113. conftest$ac_exeext conftest.$ac_ext
  14114. LIBS=$ac_check_lib_save_LIBS
  14115. fi
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5
  14117. $as_echo "$ac_cv_lib_m_atan2f" >&6; }
  14118. if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
  14119. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
  14122. $as_echo_n "checking for atan2 in -lm... " >&6; }
  14123. if test "${ac_cv_lib_m_atan2+set}" = set; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. ac_check_lib_save_LIBS=$LIBS
  14127. LIBS="-lm $LIBS"
  14128. if test x$gcc_no_link = xyes; then
  14129. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14130. fi
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. /* Override any GCC internal prototype to avoid an error.
  14134. Use char because int might match the return type of a GCC
  14135. builtin and then its argument prototype would still apply. */
  14136. #ifdef __cplusplus
  14137. extern "C"
  14138. #endif
  14139. char atan2 ();
  14140. int
  14141. main ()
  14142. {
  14143. return atan2 ();
  14144. ;
  14145. return 0;
  14146. }
  14147. _ACEOF
  14148. if ac_fn_c_try_link "$LINENO"; then :
  14149. ac_cv_lib_m_atan2=yes
  14150. else
  14151. ac_cv_lib_m_atan2=no
  14152. fi
  14153. rm -f core conftest.err conftest.$ac_objext \
  14154. conftest$ac_exeext conftest.$ac_ext
  14155. LIBS=$ac_check_lib_save_LIBS
  14156. fi
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
  14158. $as_echo "$ac_cv_lib_m_atan2" >&6; }
  14159. if test "x$ac_cv_lib_m_atan2" = x""yes; then :
  14160. $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
  14161. fi
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
  14163. $as_echo_n "checking for atan2l in -lm... " >&6; }
  14164. if test "${ac_cv_lib_m_atan2l+set}" = set; then :
  14165. $as_echo_n "(cached) " >&6
  14166. else
  14167. ac_check_lib_save_LIBS=$LIBS
  14168. LIBS="-lm $LIBS"
  14169. if test x$gcc_no_link = xyes; then
  14170. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14171. fi
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. /* Override any GCC internal prototype to avoid an error.
  14175. Use char because int might match the return type of a GCC
  14176. builtin and then its argument prototype would still apply. */
  14177. #ifdef __cplusplus
  14178. extern "C"
  14179. #endif
  14180. char atan2l ();
  14181. int
  14182. main ()
  14183. {
  14184. return atan2l ();
  14185. ;
  14186. return 0;
  14187. }
  14188. _ACEOF
  14189. if ac_fn_c_try_link "$LINENO"; then :
  14190. ac_cv_lib_m_atan2l=yes
  14191. else
  14192. ac_cv_lib_m_atan2l=no
  14193. fi
  14194. rm -f core conftest.err conftest.$ac_objext \
  14195. conftest$ac_exeext conftest.$ac_ext
  14196. LIBS=$ac_check_lib_save_LIBS
  14197. fi
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5
  14199. $as_echo "$ac_cv_lib_m_atan2l" >&6; }
  14200. if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
  14201. $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
  14202. fi
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
  14204. $as_echo_n "checking for atanf in -lm... " >&6; }
  14205. if test "${ac_cv_lib_m_atanf+set}" = set; then :
  14206. $as_echo_n "(cached) " >&6
  14207. else
  14208. ac_check_lib_save_LIBS=$LIBS
  14209. LIBS="-lm $LIBS"
  14210. if test x$gcc_no_link = xyes; then
  14211. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14212. fi
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. /* Override any GCC internal prototype to avoid an error.
  14216. Use char because int might match the return type of a GCC
  14217. builtin and then its argument prototype would still apply. */
  14218. #ifdef __cplusplus
  14219. extern "C"
  14220. #endif
  14221. char atanf ();
  14222. int
  14223. main ()
  14224. {
  14225. return atanf ();
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. if ac_fn_c_try_link "$LINENO"; then :
  14231. ac_cv_lib_m_atanf=yes
  14232. else
  14233. ac_cv_lib_m_atanf=no
  14234. fi
  14235. rm -f core conftest.err conftest.$ac_objext \
  14236. conftest$ac_exeext conftest.$ac_ext
  14237. LIBS=$ac_check_lib_save_LIBS
  14238. fi
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5
  14240. $as_echo "$ac_cv_lib_m_atanf" >&6; }
  14241. if test "x$ac_cv_lib_m_atanf" = x""yes; then :
  14242. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
  14245. $as_echo_n "checking for atan in -lm... " >&6; }
  14246. if test "${ac_cv_lib_m_atan+set}" = set; then :
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. ac_check_lib_save_LIBS=$LIBS
  14250. LIBS="-lm $LIBS"
  14251. if test x$gcc_no_link = xyes; then
  14252. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14253. fi
  14254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14255. /* end confdefs.h. */
  14256. /* Override any GCC internal prototype to avoid an error.
  14257. Use char because int might match the return type of a GCC
  14258. builtin and then its argument prototype would still apply. */
  14259. #ifdef __cplusplus
  14260. extern "C"
  14261. #endif
  14262. char atan ();
  14263. int
  14264. main ()
  14265. {
  14266. return atan ();
  14267. ;
  14268. return 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_link "$LINENO"; then :
  14272. ac_cv_lib_m_atan=yes
  14273. else
  14274. ac_cv_lib_m_atan=no
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext \
  14277. conftest$ac_exeext conftest.$ac_ext
  14278. LIBS=$ac_check_lib_save_LIBS
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
  14281. $as_echo "$ac_cv_lib_m_atan" >&6; }
  14282. if test "x$ac_cv_lib_m_atan" = x""yes; then :
  14283. $as_echo "#define HAVE_ATAN 1" >>confdefs.h
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
  14286. $as_echo_n "checking for atanl in -lm... " >&6; }
  14287. if test "${ac_cv_lib_m_atanl+set}" = set; then :
  14288. $as_echo_n "(cached) " >&6
  14289. else
  14290. ac_check_lib_save_LIBS=$LIBS
  14291. LIBS="-lm $LIBS"
  14292. if test x$gcc_no_link = xyes; then
  14293. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14294. fi
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. /* Override any GCC internal prototype to avoid an error.
  14298. Use char because int might match the return type of a GCC
  14299. builtin and then its argument prototype would still apply. */
  14300. #ifdef __cplusplus
  14301. extern "C"
  14302. #endif
  14303. char atanl ();
  14304. int
  14305. main ()
  14306. {
  14307. return atanl ();
  14308. ;
  14309. return 0;
  14310. }
  14311. _ACEOF
  14312. if ac_fn_c_try_link "$LINENO"; then :
  14313. ac_cv_lib_m_atanl=yes
  14314. else
  14315. ac_cv_lib_m_atanl=no
  14316. fi
  14317. rm -f core conftest.err conftest.$ac_objext \
  14318. conftest$ac_exeext conftest.$ac_ext
  14319. LIBS=$ac_check_lib_save_LIBS
  14320. fi
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5
  14322. $as_echo "$ac_cv_lib_m_atanl" >&6; }
  14323. if test "x$ac_cv_lib_m_atanl" = x""yes; then :
  14324. $as_echo "#define HAVE_ATANL 1" >>confdefs.h
  14325. fi
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
  14327. $as_echo_n "checking for atanhf in -lm... " >&6; }
  14328. if test "${ac_cv_lib_m_atanhf+set}" = set; then :
  14329. $as_echo_n "(cached) " >&6
  14330. else
  14331. ac_check_lib_save_L