PageRenderTime 118ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/js/src/ctypes/libffi/configure

http://github.com/zpao/v8monkey
Shell | 15099 lines | 12044 code | 1723 blank | 1332 comment | 1266 complexity | 72c54f21d25862b1196b75c62190298c MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, AGPL-1.0, LGPL-2.1, BSD-3-Clause, GPL-2.0, JSON, Apache-2.0, 0BSD
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for libffi 3.0.10rc0.
  4. #
  5. # Report bugs to <http://gcc.gnu.org/bugs.html>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: http://gcc.gnu.org/bugs.html about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='libffi'
  640. PACKAGE_TARNAME='libffi'
  641. PACKAGE_VERSION='3.0.10rc0'
  642. PACKAGE_STRING='libffi 3.0.10rc0'
  643. PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
  644. PACKAGE_URL=''
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIBOBJS
  684. toolexeclibdir
  685. toolexecdir
  686. FFI_DEBUG_FALSE
  687. FFI_DEBUG_TRUE
  688. TARGETDIR
  689. TARGET
  690. sys_symbol_underscore
  691. HAVE_LONG_DOUBLE
  692. ALLOCA
  693. PA64_HPUX_FALSE
  694. PA64_HPUX_TRUE
  695. PA_HPUX_FALSE
  696. PA_HPUX_TRUE
  697. PA_LINUX_FALSE
  698. PA_LINUX_TRUE
  699. SH64_FALSE
  700. SH64_TRUE
  701. SH_FALSE
  702. SH_TRUE
  703. X86_64_FALSE
  704. X86_64_TRUE
  705. S390_FALSE
  706. S390_TRUE
  707. FRV_FALSE
  708. FRV_TRUE
  709. LIBFFI_CRIS_FALSE
  710. LIBFFI_CRIS_TRUE
  711. AVR32_FALSE
  712. AVR32_TRUE
  713. ARM_FALSE
  714. ARM_TRUE
  715. POWERPC_FREEBSD_FALSE
  716. POWERPC_FREEBSD_TRUE
  717. POWERPC_DARWIN_FALSE
  718. POWERPC_DARWIN_TRUE
  719. POWERPC_AIX_FALSE
  720. POWERPC_AIX_TRUE
  721. POWERPC_FALSE
  722. POWERPC_TRUE
  723. MOXIE_FALSE
  724. MOXIE_TRUE
  725. M68K_FALSE
  726. M68K_TRUE
  727. M32R_FALSE
  728. M32R_TRUE
  729. IA64_FALSE
  730. IA64_TRUE
  731. ALPHA_FALSE
  732. ALPHA_TRUE
  733. X86_DARWIN_FALSE
  734. X86_DARWIN_TRUE
  735. X86_WIN64_FALSE
  736. X86_WIN64_TRUE
  737. X86_WIN32_FALSE
  738. X86_WIN32_TRUE
  739. X86_FREEBSD_FALSE
  740. X86_FREEBSD_TRUE
  741. X86_FALSE
  742. X86_TRUE
  743. SPARC_FALSE
  744. SPARC_TRUE
  745. MIPS_FALSE
  746. MIPS_TRUE
  747. AM_LTLDFLAGS
  748. AM_RUNTESTFLAGS
  749. TESTSUBDIR_FALSE
  750. TESTSUBDIR_TRUE
  751. MAINT
  752. MAINTAINER_MODE_FALSE
  753. MAINTAINER_MODE_TRUE
  754. CPP
  755. OTOOL64
  756. OTOOL
  757. LIPO
  758. NMEDIT
  759. DSYMUTIL
  760. lt_ECHO
  761. RANLIB
  762. AR
  763. OBJDUMP
  764. LN_S
  765. NM
  766. ac_ct_DUMPBIN
  767. DUMPBIN
  768. LD
  769. FGREP
  770. EGREP
  771. GREP
  772. SED
  773. LIBTOOL
  774. am__fastdepCCAS_FALSE
  775. am__fastdepCCAS_TRUE
  776. CCASDEPMODE
  777. CCASFLAGS
  778. CCAS
  779. am__fastdepCC_FALSE
  780. am__fastdepCC_TRUE
  781. CCDEPMODE
  782. AMDEPBACKSLASH
  783. AMDEP_FALSE
  784. AMDEP_TRUE
  785. am__quote
  786. am__include
  787. DEPDIR
  788. OBJEXT
  789. EXEEXT
  790. ac_ct_CC
  791. CPPFLAGS
  792. LDFLAGS
  793. CFLAGS
  794. CC
  795. am__untar
  796. am__tar
  797. AMTAR
  798. am__leading_dot
  799. SET_MAKE
  800. AWK
  801. mkdir_p
  802. MKDIR_P
  803. INSTALL_STRIP_PROGRAM
  804. STRIP
  805. install_sh
  806. MAKEINFO
  807. AUTOHEADER
  808. AUTOMAKE
  809. AUTOCONF
  810. ACLOCAL
  811. VERSION
  812. PACKAGE
  813. CYGPATH_W
  814. am__isrc
  815. INSTALL_DATA
  816. INSTALL_SCRIPT
  817. INSTALL_PROGRAM
  818. target_os
  819. target_vendor
  820. target_cpu
  821. target
  822. host_os
  823. host_vendor
  824. host_cpu
  825. host
  826. build_os
  827. build_vendor
  828. build_cpu
  829. build
  830. target_alias
  831. host_alias
  832. build_alias
  833. LIBS
  834. ECHO_T
  835. ECHO_N
  836. ECHO_C
  837. DEFS
  838. mandir
  839. localedir
  840. libdir
  841. psdir
  842. pdfdir
  843. dvidir
  844. htmldir
  845. infodir
  846. docdir
  847. oldincludedir
  848. includedir
  849. localstatedir
  850. sharedstatedir
  851. sysconfdir
  852. datadir
  853. datarootdir
  854. libexecdir
  855. sbindir
  856. bindir
  857. program_transform_name
  858. prefix
  859. exec_prefix
  860. PACKAGE_URL
  861. PACKAGE_BUGREPORT
  862. PACKAGE_STRING
  863. PACKAGE_VERSION
  864. PACKAGE_TARNAME
  865. PACKAGE_NAME
  866. PATH_SEPARATOR
  867. SHELL'
  868. ac_subst_files=''
  869. ac_user_opts='
  870. enable_option_checking
  871. enable_dependency_tracking
  872. enable_shared
  873. enable_static
  874. with_pic
  875. enable_fast_install
  876. with_gnu_ld
  877. enable_libtool_lock
  878. enable_maintainer_mode
  879. enable_debug
  880. enable_structs
  881. enable_raw_api
  882. enable_purify_safety
  883. '
  884. ac_precious_vars='build_alias
  885. host_alias
  886. target_alias
  887. CCAS
  888. CCASFLAGS
  889. CPP
  890. CPPFLAGS'
  891. # Initialize some variables set by options.
  892. ac_init_help=
  893. ac_init_version=false
  894. ac_unrecognized_opts=
  895. ac_unrecognized_sep=
  896. # The variables have the same names as the options, with
  897. # dashes changed to underlines.
  898. cache_file=/dev/null
  899. exec_prefix=NONE
  900. no_create=
  901. no_recursion=
  902. prefix=NONE
  903. program_prefix=NONE
  904. program_suffix=NONE
  905. program_transform_name=s,x,x,
  906. silent=
  907. site=
  908. srcdir=
  909. verbose=
  910. x_includes=NONE
  911. x_libraries=NONE
  912. # Installation directory options.
  913. # These are left unexpanded so users can "make install exec_prefix=/foo"
  914. # and all the variables that are supposed to be based on exec_prefix
  915. # by default will actually change.
  916. # Use braces instead of parens because sh, perl, etc. also accept them.
  917. # (The list follows the same order as the GNU Coding Standards.)
  918. bindir='${exec_prefix}/bin'
  919. sbindir='${exec_prefix}/sbin'
  920. libexecdir='${exec_prefix}/libexec'
  921. datarootdir='${prefix}/share'
  922. datadir='${datarootdir}'
  923. sysconfdir='${prefix}/etc'
  924. sharedstatedir='${prefix}/com'
  925. localstatedir='${prefix}/var'
  926. includedir='${prefix}/include'
  927. oldincludedir='/usr/include'
  928. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  929. infodir='${datarootdir}/info'
  930. htmldir='${docdir}'
  931. dvidir='${docdir}'
  932. pdfdir='${docdir}'
  933. psdir='${docdir}'
  934. libdir='${exec_prefix}/lib'
  935. localedir='${datarootdir}/locale'
  936. mandir='${datarootdir}/man'
  937. ac_prev=
  938. ac_dashdash=
  939. for ac_option
  940. do
  941. # If the previous option needs an argument, assign it.
  942. if test -n "$ac_prev"; then
  943. eval $ac_prev=\$ac_option
  944. ac_prev=
  945. continue
  946. fi
  947. case $ac_option in
  948. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  949. *) ac_optarg=yes ;;
  950. esac
  951. # Accept the important Cygnus configure options, so we can diagnose typos.
  952. case $ac_dashdash$ac_option in
  953. --)
  954. ac_dashdash=yes ;;
  955. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  956. ac_prev=bindir ;;
  957. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  958. bindir=$ac_optarg ;;
  959. -build | --build | --buil | --bui | --bu)
  960. ac_prev=build_alias ;;
  961. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  962. build_alias=$ac_optarg ;;
  963. -cache-file | --cache-file | --cache-fil | --cache-fi \
  964. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  965. ac_prev=cache_file ;;
  966. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  967. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  968. cache_file=$ac_optarg ;;
  969. --config-cache | -C)
  970. cache_file=config.cache ;;
  971. -datadir | --datadir | --datadi | --datad)
  972. ac_prev=datadir ;;
  973. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  974. datadir=$ac_optarg ;;
  975. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  976. | --dataroo | --dataro | --datar)
  977. ac_prev=datarootdir ;;
  978. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  979. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  980. datarootdir=$ac_optarg ;;
  981. -disable-* | --disable-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error "invalid feature name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "enable_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval enable_$ac_useropt=no ;;
  996. -docdir | --docdir | --docdi | --doc | --do)
  997. ac_prev=docdir ;;
  998. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  999. docdir=$ac_optarg ;;
  1000. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1001. ac_prev=dvidir ;;
  1002. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1003. dvidir=$ac_optarg ;;
  1004. -enable-* | --enable-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error "invalid feature name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "enable_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval enable_$ac_useropt=\$ac_optarg ;;
  1019. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1020. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1021. | --exec | --exe | --ex)
  1022. ac_prev=exec_prefix ;;
  1023. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1024. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1025. | --exec=* | --exe=* | --ex=*)
  1026. exec_prefix=$ac_optarg ;;
  1027. -gas | --gas | --ga | --g)
  1028. # Obsolete; use --with-gas.
  1029. with_gas=yes ;;
  1030. -help | --help | --hel | --he | -h)
  1031. ac_init_help=long ;;
  1032. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1033. ac_init_help=recursive ;;
  1034. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1035. ac_init_help=short ;;
  1036. -host | --host | --hos | --ho)
  1037. ac_prev=host_alias ;;
  1038. -host=* | --host=* | --hos=* | --ho=*)
  1039. host_alias=$ac_optarg ;;
  1040. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1041. ac_prev=htmldir ;;
  1042. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1043. | --ht=*)
  1044. htmldir=$ac_optarg ;;
  1045. -includedir | --includedir | --includedi | --included | --include \
  1046. | --includ | --inclu | --incl | --inc)
  1047. ac_prev=includedir ;;
  1048. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1049. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1050. includedir=$ac_optarg ;;
  1051. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1052. ac_prev=infodir ;;
  1053. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1054. infodir=$ac_optarg ;;
  1055. -libdir | --libdir | --libdi | --libd)
  1056. ac_prev=libdir ;;
  1057. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1058. libdir=$ac_optarg ;;
  1059. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1060. | --libexe | --libex | --libe)
  1061. ac_prev=libexecdir ;;
  1062. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1063. | --libexe=* | --libex=* | --libe=*)
  1064. libexecdir=$ac_optarg ;;
  1065. -localedir | --localedir | --localedi | --localed | --locale)
  1066. ac_prev=localedir ;;
  1067. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1068. localedir=$ac_optarg ;;
  1069. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1070. | --localstate | --localstat | --localsta | --localst | --locals)
  1071. ac_prev=localstatedir ;;
  1072. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1073. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1074. localstatedir=$ac_optarg ;;
  1075. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1076. ac_prev=mandir ;;
  1077. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1078. mandir=$ac_optarg ;;
  1079. -nfp | --nfp | --nf)
  1080. # Obsolete; use --without-fp.
  1081. with_fp=no ;;
  1082. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1083. | --no-cr | --no-c | -n)
  1084. no_create=yes ;;
  1085. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1086. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1087. no_recursion=yes ;;
  1088. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1089. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1090. | --oldin | --oldi | --old | --ol | --o)
  1091. ac_prev=oldincludedir ;;
  1092. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1093. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1094. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1095. oldincludedir=$ac_optarg ;;
  1096. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1097. ac_prev=prefix ;;
  1098. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1099. prefix=$ac_optarg ;;
  1100. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1101. | --program-pre | --program-pr | --program-p)
  1102. ac_prev=program_prefix ;;
  1103. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1104. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1105. program_prefix=$ac_optarg ;;
  1106. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1107. | --program-suf | --program-su | --program-s)
  1108. ac_prev=program_suffix ;;
  1109. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1110. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1111. program_suffix=$ac_optarg ;;
  1112. -program-transform-name | --program-transform-name \
  1113. | --program-transform-nam | --program-transform-na \
  1114. | --program-transform-n | --program-transform- \
  1115. | --program-transform | --program-transfor \
  1116. | --program-transfo | --program-transf \
  1117. | --program-trans | --program-tran \
  1118. | --progr-tra | --program-tr | --program-t)
  1119. ac_prev=program_transform_name ;;
  1120. -program-transform-name=* | --program-transform-name=* \
  1121. | --program-transform-nam=* | --program-transform-na=* \
  1122. | --program-transform-n=* | --program-transform-=* \
  1123. | --program-transform=* | --program-transfor=* \
  1124. | --program-transfo=* | --program-transf=* \
  1125. | --program-trans=* | --program-tran=* \
  1126. | --progr-tra=* | --program-tr=* | --program-t=*)
  1127. program_transform_name=$ac_optarg ;;
  1128. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1129. ac_prev=pdfdir ;;
  1130. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1131. pdfdir=$ac_optarg ;;
  1132. -psdir | --psdir | --psdi | --psd | --ps)
  1133. ac_prev=psdir ;;
  1134. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135. psdir=$ac_optarg ;;
  1136. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1137. | -silent | --silent | --silen | --sile | --sil)
  1138. silent=yes ;;
  1139. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1140. ac_prev=sbindir ;;
  1141. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1142. | --sbi=* | --sb=*)
  1143. sbindir=$ac_optarg ;;
  1144. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1145. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1146. | --sharedst | --shareds | --shared | --share | --shar \
  1147. | --sha | --sh)
  1148. ac_prev=sharedstatedir ;;
  1149. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1150. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1151. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1152. | --sha=* | --sh=*)
  1153. sharedstatedir=$ac_optarg ;;
  1154. -site | --site | --sit)
  1155. ac_prev=site ;;
  1156. -site=* | --site=* | --sit=*)
  1157. site=$ac_optarg ;;
  1158. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1159. ac_prev=srcdir ;;
  1160. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1161. srcdir=$ac_optarg ;;
  1162. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1163. | --syscon | --sysco | --sysc | --sys | --sy)
  1164. ac_prev=sysconfdir ;;
  1165. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1166. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1167. sysconfdir=$ac_optarg ;;
  1168. -target | --target | --targe | --targ | --tar | --ta | --t)
  1169. ac_prev=target_alias ;;
  1170. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1171. target_alias=$ac_optarg ;;
  1172. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1173. verbose=yes ;;
  1174. -version | --version | --versio | --versi | --vers | -V)
  1175. ac_init_version=: ;;
  1176. -with-* | --with-*)
  1177. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1178. # Reject names that are not valid shell variable names.
  1179. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1180. as_fn_error "invalid package name: $ac_useropt"
  1181. ac_useropt_orig=$ac_useropt
  1182. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1183. case $ac_user_opts in
  1184. *"
  1185. "with_$ac_useropt"
  1186. "*) ;;
  1187. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1188. ac_unrecognized_sep=', ';;
  1189. esac
  1190. eval with_$ac_useropt=\$ac_optarg ;;
  1191. -without-* | --without-*)
  1192. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1193. # Reject names that are not valid shell variable names.
  1194. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1195. as_fn_error "invalid package name: $ac_useropt"
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=no ;;
  1206. --x)
  1207. # Obsolete; use --with-x.
  1208. with_x=yes ;;
  1209. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1210. | --x-incl | --x-inc | --x-in | --x-i)
  1211. ac_prev=x_includes ;;
  1212. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1213. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1214. x_includes=$ac_optarg ;;
  1215. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1216. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1217. ac_prev=x_libraries ;;
  1218. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1219. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1220. x_libraries=$ac_optarg ;;
  1221. -*) as_fn_error "unrecognized option: \`$ac_option'
  1222. Try \`$0 --help' for more information."
  1223. ;;
  1224. *=*)
  1225. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1226. # Reject names that are not valid shell variable names.
  1227. case $ac_envvar in #(
  1228. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1229. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1230. esac
  1231. eval $ac_envvar=\$ac_optarg
  1232. export $ac_envvar ;;
  1233. *)
  1234. # FIXME: should be removed in autoconf 3.0.
  1235. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1236. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1237. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1238. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1239. ;;
  1240. esac
  1241. done
  1242. if test -n "$ac_prev"; then
  1243. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1244. as_fn_error "missing argument to $ac_option"
  1245. fi
  1246. if test -n "$ac_unrecognized_opts"; then
  1247. case $enable_option_checking in
  1248. no) ;;
  1249. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1250. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1251. esac
  1252. fi
  1253. # Check all directory arguments for consistency.
  1254. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1255. datadir sysconfdir sharedstatedir localstatedir includedir \
  1256. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1257. libdir localedir mandir
  1258. do
  1259. eval ac_val=\$$ac_var
  1260. # Remove trailing slashes.
  1261. case $ac_val in
  1262. */ )
  1263. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1264. eval $ac_var=\$ac_val;;
  1265. esac
  1266. # Be sure to have absolute directory names.
  1267. case $ac_val in
  1268. [\\/$]* | ?:[\\/]* ) continue;;
  1269. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1270. esac
  1271. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1272. done
  1273. # There might be people who depend on the old broken behavior: `$host'
  1274. # used to hold the argument of --host etc.
  1275. # FIXME: To remove some day.
  1276. build=$build_alias
  1277. host=$host_alias
  1278. target=$target_alias
  1279. # FIXME: To remove some day.
  1280. if test "x$host_alias" != x; then
  1281. if test "x$build_alias" = x; then
  1282. cross_compiling=maybe
  1283. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1284. If a cross compiler is detected then cross compile mode will be used." >&2
  1285. elif test "x$build_alias" != "x$host_alias"; then
  1286. cross_compiling=yes
  1287. fi
  1288. fi
  1289. ac_tool_prefix=
  1290. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1291. test "$silent" = yes && exec 6>/dev/null
  1292. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1293. ac_ls_di=`ls -di .` &&
  1294. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1295. as_fn_error "working directory cannot be determined"
  1296. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1297. as_fn_error "pwd does not report name of working directory"
  1298. # Find the source files, if location was not specified.
  1299. if test -z "$srcdir"; then
  1300. ac_srcdir_defaulted=yes
  1301. # Try the directory containing this script, then the parent directory.
  1302. ac_confdir=`$as_dirname -- "$as_myself" ||
  1303. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1304. X"$as_myself" : 'X\(//\)[^/]' \| \
  1305. X"$as_myself" : 'X\(//\)$' \| \
  1306. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1307. $as_echo X"$as_myself" |
  1308. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1309. s//\1/
  1310. q
  1311. }
  1312. /^X\(\/\/\)[^/].*/{
  1313. s//\1/
  1314. q
  1315. }
  1316. /^X\(\/\/\)$/{
  1317. s//\1/
  1318. q
  1319. }
  1320. /^X\(\/\).*/{
  1321. s//\1/
  1322. q
  1323. }
  1324. s/.*/./; q'`
  1325. srcdir=$ac_confdir
  1326. if test ! -r "$srcdir/$ac_unique_file"; then
  1327. srcdir=..
  1328. fi
  1329. else
  1330. ac_srcdir_defaulted=no
  1331. fi
  1332. if test ! -r "$srcdir/$ac_unique_file"; then
  1333. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1334. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1335. fi
  1336. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1337. ac_abs_confdir=`(
  1338. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1339. pwd)`
  1340. # When building in place, set srcdir=.
  1341. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1342. srcdir=.
  1343. fi
  1344. # Remove unnecessary trailing slashes from srcdir.
  1345. # Double slashes in file names in object file debugging info
  1346. # mess up M-x gdb in Emacs.
  1347. case $srcdir in
  1348. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1349. esac
  1350. for ac_var in $ac_precious_vars; do
  1351. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1352. eval ac_env_${ac_var}_value=\$${ac_var}
  1353. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1354. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1355. done
  1356. #
  1357. # Report the --help message.
  1358. #
  1359. if test "$ac_init_help" = "long"; then
  1360. # Omit some internal or obsolete options to make the list less imposing.
  1361. # This message is too long to be a string in the A/UX 3.1 sh.
  1362. cat <<_ACEOF
  1363. \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
  1364. Usage: $0 [OPTION]... [VAR=VALUE]...
  1365. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1366. VAR=VALUE. See below for descriptions of some of the useful variables.
  1367. Defaults for the options are specified in brackets.
  1368. Configuration:
  1369. -h, --help display this help and exit
  1370. --help=short display options specific to this package
  1371. --help=recursive display the short help of all the included packages
  1372. -V, --version display version information and exit
  1373. -q, --quiet, --silent do not print \`checking...' messages
  1374. --cache-file=FILE cache test results in FILE [disabled]
  1375. -C, --config-cache alias for \`--cache-file=config.cache'
  1376. -n, --no-create do not create output files
  1377. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1378. Installation directories:
  1379. --prefix=PREFIX install architecture-independent files in PREFIX
  1380. [$ac_default_prefix]
  1381. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1382. [PREFIX]
  1383. By default, \`make install' will install all the files in
  1384. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1385. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1386. for instance \`--prefix=\$HOME'.
  1387. For better control, use the options below.
  1388. Fine tuning of the installation directories:
  1389. --bindir=DIR user executables [EPREFIX/bin]
  1390. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1391. --libexecdir=DIR program executables [EPREFIX/libexec]
  1392. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1393. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1394. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1395. --libdir=DIR object code libraries [EPREFIX/lib]
  1396. --includedir=DIR C header files [PREFIX/include]
  1397. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1398. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1399. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1400. --infodir=DIR info documentation [DATAROOTDIR/info]
  1401. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1402. --mandir=DIR man documentation [DATAROOTDIR/man]
  1403. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1404. --htmldir=DIR html documentation [DOCDIR]
  1405. --dvidir=DIR dvi documentation [DOCDIR]
  1406. --pdfdir=DIR pdf documentation [DOCDIR]
  1407. --psdir=DIR ps documentation [DOCDIR]
  1408. _ACEOF
  1409. cat <<\_ACEOF
  1410. Program names:
  1411. --program-prefix=PREFIX prepend PREFIX to installed program names
  1412. --program-suffix=SUFFIX append SUFFIX to installed program names
  1413. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1414. System types:
  1415. --build=BUILD configure for building on BUILD [guessed]
  1416. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1417. --target=TARGET configure for building compilers for TARGET [HOST]
  1418. _ACEOF
  1419. fi
  1420. if test -n "$ac_init_help"; then
  1421. case $ac_init_help in
  1422. short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
  1423. esac
  1424. cat <<\_ACEOF
  1425. Optional Features:
  1426. --disable-option-checking ignore unrecognized --enable/--with options
  1427. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1428. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1429. --disable-dependency-tracking speeds up one-time build
  1430. --enable-dependency-tracking do not reject slow dependency extractors
  1431. --enable-shared[=PKGS] build shared libraries [default=yes]
  1432. --enable-static[=PKGS] build static libraries [default=yes]
  1433. --enable-fast-install[=PKGS]
  1434. optimize for fast installation [default=yes]
  1435. --disable-libtool-lock avoid locking (might break parallel builds)
  1436. --enable-maintainer-mode enable make rules and dependencies not useful
  1437. (and sometimes confusing) to the casual installer
  1438. --enable-debug debugging mode
  1439. --disable-structs omit code for struct support
  1440. --disable-raw-api make the raw api unavailable
  1441. --enable-purify-safety purify-safe mode
  1442. Optional Packages:
  1443. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1444. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1445. --with-pic try to use only PIC/non-PIC objects [default=use
  1446. both]
  1447. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1448. Some influential environment variables:
  1449. CC C compiler command
  1450. CFLAGS C compiler flags
  1451. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1452. nonstandard directory <lib dir>
  1453. LIBS libraries to pass to the linker, e.g. -l<library>
  1454. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1455. you have headers in a nonstandard directory <include dir>
  1456. CCAS assembler compiler command (defaults to CC)
  1457. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1458. CPP C preprocessor
  1459. Use these variables to override the choices made by `configure' or to help
  1460. it to find libraries and programs with nonstandard names/locations.
  1461. Report bugs to <http://gcc.gnu.org/bugs.html>.
  1462. _ACEOF
  1463. ac_status=$?
  1464. fi
  1465. if test "$ac_init_help" = "recursive"; then
  1466. # If there are subdirs, report their specific --help.
  1467. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1468. test -d "$ac_dir" ||
  1469. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1470. continue
  1471. ac_builddir=.
  1472. case "$ac_dir" in
  1473. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1474. *)
  1475. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1476. # A ".." for each directory in $ac_dir_suffix.
  1477. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1478. case $ac_top_builddir_sub in
  1479. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1480. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1481. esac ;;
  1482. esac
  1483. ac_abs_top_builddir=$ac_pwd
  1484. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1485. # for backward compatibility:
  1486. ac_top_builddir=$ac_top_build_prefix
  1487. case $srcdir in
  1488. .) # We are building in place.
  1489. ac_srcdir=.
  1490. ac_top_srcdir=$ac_top_builddir_sub
  1491. ac_abs_top_srcdir=$ac_pwd ;;
  1492. [\\/]* | ?:[\\/]* ) # Absolute name.
  1493. ac_srcdir=$srcdir$ac_dir_suffix;
  1494. ac_top_srcdir=$srcdir
  1495. ac_abs_top_srcdir=$srcdir ;;
  1496. *) # Relative name.
  1497. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1498. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1499. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1500. esac
  1501. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1502. cd "$ac_dir" || { ac_status=$?; continue; }
  1503. # Check for guested configure.
  1504. if test -f "$ac_srcdir/configure.gnu"; then
  1505. echo &&
  1506. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1507. elif test -f "$ac_srcdir/configure"; then
  1508. echo &&
  1509. $SHELL "$ac_srcdir/configure" --help=recursive
  1510. else
  1511. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1512. fi || ac_status=$?
  1513. cd "$ac_pwd" || { ac_status=$?; break; }
  1514. done
  1515. fi
  1516. test -n "$ac_init_help" && exit $ac_status
  1517. if $ac_init_version; then
  1518. cat <<\_ACEOF
  1519. libffi configure 3.0.10rc0
  1520. generated by GNU Autoconf 2.65
  1521. Copyright (C) 2009 Free Software Foundation, Inc.
  1522. This configure script is free software; the Free Software Foundation
  1523. gives unlimited permission to copy, distribute and modify it.
  1524. _ACEOF
  1525. exit
  1526. fi
  1527. ## ------------------------ ##
  1528. ## Autoconf initialization. ##
  1529. ## ------------------------ ##
  1530. # ac_fn_c_try_compile LINENO
  1531. # --------------------------
  1532. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_c_try_compile ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. rm -f conftest.$ac_objext
  1537. if { { ac_try="$ac_compile"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. $as_echo "$ac_try_echo"; } >&5
  1544. (eval "$ac_compile") 2>conftest.err
  1545. ac_status=$?
  1546. if test -s conftest.err; then
  1547. grep -v '^ *+' conftest.err >conftest.er1
  1548. cat conftest.er1 >&5
  1549. mv -f conftest.er1 conftest.err
  1550. fi
  1551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && {
  1553. test -z "$ac_c_werror_flag" ||
  1554. test ! -s conftest.err
  1555. } && test -s conftest.$ac_objext; then :
  1556. ac_retval=0
  1557. else
  1558. $as_echo "$as_me: failed program was:" >&5
  1559. sed 's/^/| /' conftest.$ac_ext >&5
  1560. ac_retval=1
  1561. fi
  1562. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1563. as_fn_set_status $ac_retval
  1564. } # ac_fn_c_try_compile
  1565. # ac_fn_c_try_link LINENO
  1566. # -----------------------
  1567. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1568. ac_fn_c_try_link ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. rm -f conftest.$ac_objext conftest$ac_exeext
  1572. if { { ac_try="$ac_link"
  1573. case "(($ac_try" in
  1574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1575. *) ac_try_echo=$ac_try;;
  1576. esac
  1577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1578. $as_echo "$ac_try_echo"; } >&5
  1579. (eval "$ac_link") 2>conftest.err
  1580. ac_status=$?
  1581. if test -s conftest.err; then
  1582. grep -v '^ *+' conftest.err >conftest.er1
  1583. cat conftest.er1 >&5
  1584. mv -f conftest.er1 conftest.err
  1585. fi
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && {
  1588. test -z "$ac_c_werror_flag" ||
  1589. test ! -s conftest.err
  1590. } && test -s conftest$ac_exeext && {
  1591. test "$cross_compiling" = yes ||
  1592. $as_test_x conftest$ac_exeext
  1593. }; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1601. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1602. # interfere with the next link command; also delete a directory that is
  1603. # left behind by Apple's compiler. We do this before executing the actions.
  1604. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1605. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1606. as_fn_set_status $ac_retval
  1607. } # ac_fn_c_try_link
  1608. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1609. # -------------------------------------------------------
  1610. # Tests whether HEADER exists and can be compiled using the include files in
  1611. # INCLUDES, setting the cache variable VAR accordingly.
  1612. ac_fn_c_check_header_compile ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. $4
  1623. #include <$2>
  1624. _ACEOF
  1625. if ac_fn_c_try_compile "$LINENO"; then :
  1626. eval "$3=yes"
  1627. else
  1628. eval "$3=no"
  1629. fi
  1630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1631. fi
  1632. eval ac_res=\$$3
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1634. $as_echo "$ac_res" >&6; }
  1635. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1636. } # ac_fn_c_check_header_compile
  1637. # ac_fn_c_try_cpp LINENO
  1638. # ----------------------
  1639. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1640. ac_fn_c_try_cpp ()
  1641. {
  1642. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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; } >/dev/null && {
  1659. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1660. test ! -s conftest.err
  1661. }; then :
  1662. ac_retval=0
  1663. else
  1664. $as_echo "$as_me: failed program was:" >&5
  1665. sed 's/^/| /' conftest.$ac_ext >&5
  1666. ac_retval=1
  1667. fi
  1668. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_cpp
  1671. # ac_fn_c_try_run LINENO
  1672. # ----------------------
  1673. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1674. # that executables *can* be run.
  1675. ac_fn_c_try_run ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. if { { ac_try="$ac_link"
  1679. case "(($ac_try" in
  1680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1681. *) ac_try_echo=$ac_try;;
  1682. esac
  1683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1684. $as_echo "$ac_try_echo"; } >&5
  1685. (eval "$ac_link") 2>&5
  1686. ac_status=$?
  1687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1688. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1689. { { case "(($ac_try" in
  1690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1691. *) ac_try_echo=$ac_try;;
  1692. esac
  1693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1694. $as_echo "$ac_try_echo"; } >&5
  1695. (eval "$ac_try") 2>&5
  1696. ac_status=$?
  1697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1698. test $ac_status = 0; }; }; then :
  1699. ac_retval=0
  1700. else
  1701. $as_echo "$as_me: program exited with status $ac_status" >&5
  1702. $as_echo "$as_me: failed program was:" >&5
  1703. sed 's/^/| /' conftest.$ac_ext >&5
  1704. ac_retval=$ac_status
  1705. fi
  1706. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1707. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1708. as_fn_set_status $ac_retval
  1709. } # ac_fn_c_try_run
  1710. # ac_fn_c_check_func LINENO FUNC VAR
  1711. # ----------------------------------
  1712. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1713. ac_fn_c_check_func ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1717. $as_echo_n "checking for $2... " >&6; }
  1718. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1719. $as_echo_n "(cached) " >&6
  1720. else
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1724. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1725. #define $2 innocuous_$2
  1726. /* System header to define __stub macros and hopefully few prototypes,
  1727. which can conflict with char $2 (); below.
  1728. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1729. <limits.h> exists even on freestanding compilers. */
  1730. #ifdef __STDC__
  1731. # include <limits.h>
  1732. #else
  1733. # include <assert.h>
  1734. #endif
  1735. #undef $2
  1736. /* Override any GCC internal prototype to avoid an error.
  1737. Use char because int might match the return type of a GCC
  1738. builtin and then its argument prototype would still apply. */
  1739. #ifdef __cplusplus
  1740. extern "C"
  1741. #endif
  1742. char $2 ();
  1743. /* The GNU C library defines this for functions which it implements
  1744. to always fail with ENOSYS. Some functions are actually named
  1745. something starting with __ and the normal name is an alias. */
  1746. #if defined __stub_$2 || defined __stub___$2
  1747. choke me
  1748. #endif
  1749. int
  1750. main ()
  1751. {
  1752. return $2 ();
  1753. ;
  1754. return 0;
  1755. }
  1756. _ACEOF
  1757. if ac_fn_c_try_link "$LINENO"; then :
  1758. eval "$3=yes"
  1759. else
  1760. eval "$3=no"
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext \
  1763. conftest$ac_exeext conftest.$ac_ext
  1764. fi
  1765. eval ac_res=\$$3
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1767. $as_echo "$ac_res" >&6; }
  1768. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1769. } # ac_fn_c_check_func
  1770. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1771. # -------------------------------------------------------
  1772. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1773. # the include files in INCLUDES and setting the cache variable VAR
  1774. # accordingly.
  1775. ac_fn_c_check_header_mongrel ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1780. $as_echo_n "checking for $2... " >&6; }
  1781. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1782. $as_echo_n "(cached) " >&6
  1783. fi
  1784. eval ac_res=\$$3
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. else
  1788. # Is the header compilable?
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1790. $as_echo_n "checking $2 usability... " >&6; }
  1791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1792. /* end confdefs.h. */
  1793. $4
  1794. #include <$2>
  1795. _ACEOF
  1796. if ac_fn_c_try_compile "$LINENO"; then :
  1797. ac_header_compiler=yes
  1798. else
  1799. ac_header_compiler=no
  1800. fi
  1801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1803. $as_echo "$ac_header_compiler" >&6; }
  1804. # Is the header present?
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1806. $as_echo_n "checking $2 presence... " >&6; }
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. #include <$2>
  1810. _ACEOF
  1811. if ac_fn_c_try_cpp "$LINENO"; then :
  1812. ac_header_preproc=yes
  1813. else
  1814. ac_header_preproc=no
  1815. fi
  1816. rm -f conftest.err conftest.$ac_ext
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1818. $as_echo "$ac_header_preproc" >&6; }
  1819. # So? What about this header?
  1820. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1821. yes:no: )
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1823. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1825. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1826. ;;
  1827. no:yes:* )
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1829. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1831. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1833. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1835. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1837. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1838. ( cat <<\_ASBOX
  1839. ## ------------------------------------------- ##
  1840. ## Report this to http://gcc.gnu.org/bugs.html ##
  1841. ## ------------------------------------------- ##
  1842. _ASBOX
  1843. ) | sed "s/^/$as_me: WARNING: /" >&2
  1844. ;;
  1845. esac
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1847. $as_echo_n "checking for $2... " >&6; }
  1848. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1849. $as_echo_n "(cached) " >&6
  1850. else
  1851. eval "$3=\$ac_header_compiler"
  1852. fi
  1853. eval ac_res=\$$3
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1855. $as_echo "$ac_res" >&6; }
  1856. fi
  1857. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1858. } # ac_fn_c_check_header_mongrel
  1859. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1860. # --------------------------------------------
  1861. # Tries to find the compile-time value of EXPR in a program that includes
  1862. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1863. # computed
  1864. ac_fn_c_compute_int ()
  1865. {
  1866. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1867. if test "$cross_compiling" = yes; then
  1868. # Depending upon the size, compute the lo and hi bounds.
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. int
  1873. main ()
  1874. {
  1875. static int test_array [1 - 2 * !(($2) >= 0)];
  1876. test_array [0] = 0
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_compile "$LINENO"; then :
  1882. ac_lo=0 ac_mid=0
  1883. while :; do
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. $4
  1887. int
  1888. main ()
  1889. {
  1890. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1891. test_array [0] = 0
  1892. ;
  1893. return 0;
  1894. }
  1895. _ACEOF
  1896. if ac_fn_c_try_compile "$LINENO"; then :
  1897. ac_hi=$ac_mid; break
  1898. else
  1899. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1900. if test $ac_lo -le $ac_mid; then
  1901. ac_lo= ac_hi=
  1902. break
  1903. fi
  1904. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1905. fi
  1906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1907. done
  1908. else
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. int
  1913. main ()
  1914. {
  1915. static int test_array [1 - 2 * !(($2) < 0)];
  1916. test_array [0] = 0
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_c_try_compile "$LINENO"; then :
  1922. ac_hi=-1 ac_mid=-1
  1923. while :; do
  1924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1925. /* end confdefs.h. */
  1926. $4
  1927. int
  1928. main ()
  1929. {
  1930. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1931. test_array [0] = 0
  1932. ;
  1933. return 0;
  1934. }
  1935. _ACEOF
  1936. if ac_fn_c_try_compile "$LINENO"; then :
  1937. ac_lo=$ac_mid; break
  1938. else
  1939. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1940. if test $ac_mid -le $ac_hi; then
  1941. ac_lo= ac_hi=
  1942. break
  1943. fi
  1944. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1945. fi
  1946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1947. done
  1948. else
  1949. ac_lo= ac_hi=
  1950. fi
  1951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1954. # Binary search between lo and hi bounds.
  1955. while test "x$ac_lo" != "x$ac_hi"; do
  1956. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h. */
  1959. $4
  1960. int
  1961. main ()
  1962. {
  1963. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1964. test_array [0] = 0
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_c_try_compile "$LINENO"; then :
  1970. ac_hi=$ac_mid
  1971. else
  1972. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1973. fi
  1974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1975. done
  1976. case $ac_lo in #((
  1977. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1978. '') ac_retval=1 ;;
  1979. esac
  1980. else
  1981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1982. /* end confdefs.h. */
  1983. $4
  1984. static long int longval () { return $2; }
  1985. static unsigned long int ulongval () { return $2; }
  1986. #include <stdio.h>
  1987. #include <stdlib.h>
  1988. int
  1989. main ()
  1990. {
  1991. FILE *f = fopen ("conftest.val", "w");
  1992. if (! f)
  1993. return 1;
  1994. if (($2) < 0)
  1995. {
  1996. long int i = longval ();
  1997. if (i != ($2))
  1998. return 1;
  1999. fprintf (f, "%ld", i);
  2000. }
  2001. else
  2002. {
  2003. unsigned long int i = ulongval ();
  2004. if (i != ($2))
  2005. return 1;
  2006. fprintf (f, "%lu", i);
  2007. }
  2008. /* Do not output a trailing newline, as this causes \r\n confusion
  2009. on some platforms. */
  2010. return ferror (f) || fclose (f) != 0;
  2011. ;
  2012. return 0;
  2013. }
  2014. _ACEOF
  2015. if ac_fn_c_try_run "$LINENO"; then :
  2016. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2017. else
  2018. ac_retval=1
  2019. fi
  2020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2021. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2022. rm -f conftest.val
  2023. fi
  2024. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2025. as_fn_set_status $ac_retval
  2026. } # ac_fn_c_compute_int
  2027. cat >config.log <<_ACEOF
  2028. This file contains any messages produced by compilers while
  2029. running configure, to aid debugging if configure makes a mistake.
  2030. It was created by libffi $as_me 3.0.10rc0, which was
  2031. generated by GNU Autoconf 2.65. Invocation command line was
  2032. $ $0 $@
  2033. _ACEOF
  2034. exec 5>>config.log
  2035. {
  2036. cat <<_ASUNAME
  2037. ## --------- ##
  2038. ## Platform. ##
  2039. ## --------- ##
  2040. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2041. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2042. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2043. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2044. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2045. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2046. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2047. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2048. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2049. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2050. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2051. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2052. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2053. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2054. _ASUNAME
  2055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2056. for as_dir in $PATH
  2057. do
  2058. IFS=$as_save_IFS
  2059. test -z "$as_dir" && as_dir=.
  2060. $as_echo "PATH: $as_dir"
  2061. done
  2062. IFS=$as_save_IFS
  2063. } >&5
  2064. cat >&5 <<_ACEOF
  2065. ## ----------- ##
  2066. ## Core tests. ##
  2067. ## ----------- ##
  2068. _ACEOF
  2069. # Keep a trace of the command line.
  2070. # Strip out --no-create and --no-recursion so they do not pile up.
  2071. # Strip out --silent because we don't want to record it for future runs.
  2072. # Also quote any args containing shell meta-characters.
  2073. # Make two passes to allow for proper duplicate-argument suppression.
  2074. ac_configure_args=
  2075. ac_configure_args0=
  2076. ac_configure_args1=
  2077. ac_must_keep_next=false
  2078. for ac_pass in 1 2
  2079. do
  2080. for ac_arg
  2081. do
  2082. case $ac_arg in
  2083. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2085. | -silent | --silent | --silen | --sile | --sil)
  2086. continue ;;
  2087. *\'*)
  2088. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2089. esac
  2090. case $ac_pass in
  2091. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2092. 2)
  2093. as_fn_append ac_configure_args1 " '$ac_arg'"
  2094. if test $ac_must_keep_next = true; then
  2095. ac_must_keep_next=false # Got value, back to normal.
  2096. else
  2097. case $ac_arg in
  2098. *=* | --config-cache | -C | -disable-* | --disable-* \
  2099. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2100. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2101. | -with-* | --with-* | -without-* | --without-* | --x)
  2102. case "$ac_configure_args0 " in
  2103. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2104. esac
  2105. ;;
  2106. -* ) ac_must_keep_next=true ;;
  2107. esac
  2108. fi
  2109. as_fn_append ac_configure_args " '$ac_arg'"
  2110. ;;
  2111. esac
  2112. done
  2113. done
  2114. { ac_configure_args0=; unset ac_configure_args0;}
  2115. { ac_configure_args1=; unset ac_configure_args1;}
  2116. # When interrupted or exit'd, cleanup temporary files, and complete
  2117. # config.log. We remove comments because anyway the quotes in there
  2118. # would cause problems or look ugly.
  2119. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2120. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2121. trap 'exit_status=$?
  2122. # Save into config.log some information that might help in debugging.
  2123. {
  2124. echo
  2125. cat <<\_ASBOX
  2126. ## ---------------- ##
  2127. ## Cache variables. ##
  2128. ## ---------------- ##
  2129. _ASBOX
  2130. echo
  2131. # The following way of writing the cache mishandles newlines in values,
  2132. (
  2133. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2134. eval ac_val=\$$ac_var
  2135. case $ac_val in #(
  2136. *${as_nl}*)
  2137. case $ac_var in #(
  2138. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2139. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2140. esac
  2141. case $ac_var in #(
  2142. _ | IFS | as_nl) ;; #(
  2143. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2144. *) { eval $ac_var=; unset $ac_var;} ;;
  2145. esac ;;
  2146. esac
  2147. done
  2148. (set) 2>&1 |
  2149. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2150. *${as_nl}ac_space=\ *)
  2151. sed -n \
  2152. "s/'\''/'\''\\\\'\'''\''/g;
  2153. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2154. ;; #(
  2155. *)
  2156. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2157. ;;
  2158. esac |
  2159. sort
  2160. )
  2161. echo
  2162. cat <<\_ASBOX
  2163. ## ----------------- ##
  2164. ## Output variables. ##
  2165. ## ----------------- ##
  2166. _ASBOX
  2167. echo
  2168. for ac_var in $ac_subst_vars
  2169. do
  2170. eval ac_val=\$$ac_var
  2171. case $ac_val in
  2172. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2173. esac
  2174. $as_echo "$ac_var='\''$ac_val'\''"
  2175. done | sort
  2176. echo
  2177. if test -n "$ac_subst_files"; then
  2178. cat <<\_ASBOX
  2179. ## ------------------- ##
  2180. ## File substitutions. ##
  2181. ## ------------------- ##
  2182. _ASBOX
  2183. echo
  2184. for ac_var in $ac_subst_files
  2185. do
  2186. eval ac_val=\$$ac_var
  2187. case $ac_val in
  2188. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2189. esac
  2190. $as_echo "$ac_var='\''$ac_val'\''"
  2191. done | sort
  2192. echo
  2193. fi
  2194. if test -s confdefs.h; then
  2195. cat <<\_ASBOX
  2196. ## ----------- ##
  2197. ## confdefs.h. ##
  2198. ## ----------- ##
  2199. _ASBOX
  2200. echo
  2201. cat confdefs.h
  2202. echo
  2203. fi
  2204. test "$ac_signal" != 0 &&
  2205. $as_echo "$as_me: caught signal $ac_signal"
  2206. $as_echo "$as_me: exit $exit_status"
  2207. } >&5
  2208. rm -f core *.core core.conftest.* &&
  2209. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2210. exit $exit_status
  2211. ' 0
  2212. for ac_signal in 1 2 13 15; do
  2213. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2214. done
  2215. ac_signal=0
  2216. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2217. rm -f -r conftest* confdefs.h
  2218. $as_echo "/* confdefs.h */" > confdefs.h
  2219. # Predefined preprocessor variables.
  2220. cat >>confdefs.h <<_ACEOF
  2221. #define PACKAGE_NAME "$PACKAGE_NAME"
  2222. _ACEOF
  2223. cat >>confdefs.h <<_ACEOF
  2224. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2225. _ACEOF
  2226. cat >>confdefs.h <<_ACEOF
  2227. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2228. _ACEOF
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_STRING "$PACKAGE_STRING"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_URL "$PACKAGE_URL"
  2237. _ACEOF
  2238. # Let the site file select an alternate cache file if it wants to.
  2239. # Prefer an explicitly selected file to automatically selected ones.
  2240. ac_site_file1=NONE
  2241. ac_site_file2=NONE
  2242. if test -n "$CONFIG_SITE"; then
  2243. ac_site_file1=$CONFIG_SITE
  2244. elif test "x$prefix" != xNONE; then
  2245. ac_site_file1=$prefix/share/config.site
  2246. ac_site_file2=$prefix/etc/config.site
  2247. else
  2248. ac_site_file1=$ac_default_prefix/share/config.site
  2249. ac_site_file2=$ac_default_prefix/etc/config.site
  2250. fi
  2251. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2252. do
  2253. test "x$ac_site_file" = xNONE && continue
  2254. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2256. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2257. sed 's/^/| /' "$ac_site_file" >&5
  2258. . "$ac_site_file"
  2259. fi
  2260. done
  2261. if test -r "$cache_file"; then
  2262. # Some versions of bash will fail to source /dev/null (special files
  2263. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2264. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2266. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2267. case $cache_file in
  2268. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2269. *) . "./$cache_file";;
  2270. esac
  2271. fi
  2272. else
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2274. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2275. >$cache_file
  2276. fi
  2277. # Check that the precious variables saved in the cache have kept the same
  2278. # value.
  2279. ac_cache_corrupted=false
  2280. for ac_var in $ac_precious_vars; do
  2281. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2282. eval ac_new_set=\$ac_env_${ac_var}_set
  2283. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2284. eval ac_new_val=\$ac_env_${ac_var}_value
  2285. case $ac_old_set,$ac_new_set in
  2286. set,)
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2288. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2289. ac_cache_corrupted=: ;;
  2290. ,set)
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2292. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2293. ac_cache_corrupted=: ;;
  2294. ,);;
  2295. *)
  2296. if test "x$ac_old_val" != "x$ac_new_val"; then
  2297. # differences in whitespace do not lead to failure.
  2298. ac_old_val_w=`echo x $ac_old_val`
  2299. ac_new_val_w=`echo x $ac_new_val`
  2300. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2302. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2303. ac_cache_corrupted=:
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2306. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2307. eval $ac_var=\$ac_old_val
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2310. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2312. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2313. fi;;
  2314. esac
  2315. # Pass precious variables to config.status.
  2316. if test "$ac_new_set" = set; then
  2317. case $ac_new_val in
  2318. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2319. *) ac_arg=$ac_var=$ac_new_val ;;
  2320. esac
  2321. case " $ac_configure_args " in
  2322. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2323. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2324. esac
  2325. fi
  2326. done
  2327. if $ac_cache_corrupted; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2329. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2331. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2332. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2333. fi
  2334. ## -------------------- ##
  2335. ## Main body of script. ##
  2336. ## -------------------- ##
  2337. ac_ext=c
  2338. ac_cpp='$CPP $CPPFLAGS'
  2339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2342. ac_config_headers="$ac_config_headers fficonfig.h"
  2343. ac_aux_dir=
  2344. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2345. for ac_t in install-sh install.sh shtool; do
  2346. if test -f "$ac_dir/$ac_t"; then
  2347. ac_aux_dir=$ac_dir
  2348. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2349. break 2
  2350. fi
  2351. done
  2352. done
  2353. if test -z "$ac_aux_dir"; then
  2354. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2355. fi
  2356. # These three variables are undocumented and unsupported,
  2357. # and are intended to be withdrawn in a future Autoconf release.
  2358. # They can cause serious problems if a builder's source tree is in a directory
  2359. # whose full name contains unusual characters.
  2360. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2361. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2362. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2363. # Make sure we can run config.sub.
  2364. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2365. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2367. $as_echo_n "checking build system type... " >&6; }
  2368. if test "${ac_cv_build+set}" = set; then :
  2369. $as_echo_n "(cached) " >&6
  2370. else
  2371. ac_build_alias=$build_alias
  2372. test "x$ac_build_alias" = x &&
  2373. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2374. test "x$ac_build_alias" = x &&
  2375. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2376. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2377. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2378. fi
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2380. $as_echo "$ac_cv_build" >&6; }
  2381. case $ac_cv_build in
  2382. *-*-*) ;;
  2383. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2384. esac
  2385. build=$ac_cv_build
  2386. ac_save_IFS=$IFS; IFS='-'
  2387. set x $ac_cv_build
  2388. shift
  2389. build_cpu=$1
  2390. build_vendor=$2
  2391. shift; shift
  2392. # Remember, the first character of IFS is used to create $*,
  2393. # except with old shells:
  2394. build_os=$*
  2395. IFS=$ac_save_IFS
  2396. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2398. $as_echo_n "checking host system type... " >&6; }
  2399. if test "${ac_cv_host+set}" = set; then :
  2400. $as_echo_n "(cached) " >&6
  2401. else
  2402. if test "x$host_alias" = x; then
  2403. ac_cv_host=$ac_cv_build
  2404. else
  2405. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2406. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2407. fi
  2408. fi
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2410. $as_echo "$ac_cv_host" >&6; }
  2411. case $ac_cv_host in
  2412. *-*-*) ;;
  2413. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2414. esac
  2415. host=$ac_cv_host
  2416. ac_save_IFS=$IFS; IFS='-'
  2417. set x $ac_cv_host
  2418. shift
  2419. host_cpu=$1
  2420. host_vendor=$2
  2421. shift; shift
  2422. # Remember, the first character of IFS is used to create $*,
  2423. # except with old shells:
  2424. host_os=$*
  2425. IFS=$ac_save_IFS
  2426. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2428. $as_echo_n "checking target system type... " >&6; }
  2429. if test "${ac_cv_target+set}" = set; then :
  2430. $as_echo_n "(cached) " >&6
  2431. else
  2432. if test "x$target_alias" = x; then
  2433. ac_cv_target=$ac_cv_host
  2434. else
  2435. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2436. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2437. fi
  2438. fi
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2440. $as_echo "$ac_cv_target" >&6; }
  2441. case $ac_cv_target in
  2442. *-*-*) ;;
  2443. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2444. esac
  2445. target=$ac_cv_target
  2446. ac_save_IFS=$IFS; IFS='-'
  2447. set x $ac_cv_target
  2448. shift
  2449. target_cpu=$1
  2450. target_vendor=$2
  2451. shift; shift
  2452. # Remember, the first character of IFS is used to create $*,
  2453. # except with old shells:
  2454. target_os=$*
  2455. IFS=$ac_save_IFS
  2456. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2457. # The aliases save the names the user supplied, while $host etc.
  2458. # will get canonicalized.
  2459. test -n "$target_alias" &&
  2460. test "$program_prefix$program_suffix$program_transform_name" = \
  2461. NONENONEs,x,x, &&
  2462. program_prefix=${target_alias}-
  2463. target_alias=${target_alias-$host_alias}
  2464. . ${srcdir}/configure.host
  2465. am__api_version='1.11'
  2466. # Find a good install program. We prefer a C program (faster),
  2467. # so one script is as good as another. But avoid the broken or
  2468. # incompatible versions:
  2469. # SysV /etc/install, /usr/sbin/install
  2470. # SunOS /usr/etc/install
  2471. # IRIX /sbin/install
  2472. # AIX /bin/install
  2473. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2474. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2475. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2476. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2477. # OS/2's system install, which has a completely different semantic
  2478. # ./install, which can be erroneously created by make from ./install.sh.
  2479. # Reject install programs that cannot install multiple files.
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2481. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2482. if test -z "$INSTALL"; then
  2483. if test "${ac_cv_path_install+set}" = set; then :
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487. for as_dir in $PATH
  2488. do
  2489. IFS=$as_save_IFS
  2490. test -z "$as_dir" && as_dir=.
  2491. # Account for people who put trailing slashes in PATH elements.
  2492. case $as_dir/ in #((
  2493. ./ | .// | /[cC]/* | \
  2494. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2495. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2496. /usr/ucb/* ) ;;
  2497. *)
  2498. # OSF1 and SCO ODT 3.0 have their own names for install.
  2499. # Don't use installbsd from OSF since it installs stuff as root
  2500. # by default.
  2501. for ac_prog in ginstall scoinst install; do
  2502. for ac_exec_ext in '' $ac_executable_extensions; do
  2503. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2504. if test $ac_prog = install &&
  2505. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2506. # AIX install. It has an incompatible calling convention.
  2507. :
  2508. elif test $ac_prog = install &&
  2509. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2510. # program-specific install script used by HP pwplus--don't use.
  2511. :
  2512. else
  2513. rm -rf conftest.one conftest.two conftest.dir
  2514. echo one > conftest.one
  2515. echo two > conftest.two
  2516. mkdir conftest.dir
  2517. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2518. test -s conftest.one && test -s conftest.two &&
  2519. test -s conftest.dir/conftest.one &&
  2520. test -s conftest.dir/conftest.two
  2521. then
  2522. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2523. break 3
  2524. fi
  2525. fi
  2526. fi
  2527. done
  2528. done
  2529. ;;
  2530. esac
  2531. done
  2532. IFS=$as_save_IFS
  2533. rm -rf conftest.one conftest.two conftest.dir
  2534. fi
  2535. if test "${ac_cv_path_install+set}" = set; then
  2536. INSTALL=$ac_cv_path_install
  2537. else
  2538. # As a last resort, use the slow shell script. Don't cache a
  2539. # value for INSTALL within a source directory, because that will
  2540. # break other packages using the cache if that directory is
  2541. # removed, or if the value is a relative name.
  2542. INSTALL=$ac_install_sh
  2543. fi
  2544. fi
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2546. $as_echo "$INSTALL" >&6; }
  2547. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2548. # It thinks the first close brace ends the variable substitution.
  2549. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2550. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2551. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2553. $as_echo_n "checking whether build environment is sane... " >&6; }
  2554. # Just in case
  2555. sleep 1
  2556. echo timestamp > conftest.file
  2557. # Reject unsafe characters in $srcdir or the absolute working directory
  2558. # name. Accept space and tab only in the latter.
  2559. am_lf='
  2560. '
  2561. case `pwd` in
  2562. *[\\\"\#\$\&\'\`$am_lf]*)
  2563. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2564. esac
  2565. case $srcdir in
  2566. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2567. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2568. esac
  2569. # Do `set' in a subshell so we don't clobber the current shell's
  2570. # arguments. Must try -L first in case configure is actually a
  2571. # symlink; some systems play weird games with the mod time of symlinks
  2572. # (eg FreeBSD returns the mod time of the symlink's containing
  2573. # directory).
  2574. if (
  2575. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2576. if test "$*" = "X"; then
  2577. # -L didn't work.
  2578. set X `ls -t "$srcdir/configure" conftest.file`
  2579. fi
  2580. rm -f conftest.file
  2581. if test "$*" != "X $srcdir/configure conftest.file" \
  2582. && test "$*" != "X conftest.file $srcdir/configure"; then
  2583. # If neither matched, then we have a broken ls. This can happen
  2584. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2585. # broken ls alias from the environment. This has actually
  2586. # happened. Such a system could not be considered "sane".
  2587. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2588. alias in your environment" "$LINENO" 5
  2589. fi
  2590. test "$2" = conftest.file
  2591. )
  2592. then
  2593. # Ok.
  2594. :
  2595. else
  2596. as_fn_error "newly created file is older than distributed files!
  2597. Check your system clock" "$LINENO" 5
  2598. fi
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2600. $as_echo "yes" >&6; }
  2601. test "$program_prefix" != NONE &&
  2602. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2603. # Use a double $ so make ignores it.
  2604. test "$program_suffix" != NONE &&
  2605. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2606. # Double any \ or $.
  2607. # By default was `s,x,x', remove it if useless.
  2608. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2609. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2610. # expand $ac_aux_dir to an absolute path
  2611. am_aux_dir=`cd $ac_aux_dir && pwd`
  2612. if test x"${MISSING+set}" != xset; then
  2613. case $am_aux_dir in
  2614. *\ * | *\ *)
  2615. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2616. *)
  2617. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2618. esac
  2619. fi
  2620. # Use eval to expand $SHELL
  2621. if eval "$MISSING --run true"; then
  2622. am_missing_run="$MISSING --run "
  2623. else
  2624. am_missing_run=
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2626. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2627. fi
  2628. if test x"${install_sh}" != xset; then
  2629. case $am_aux_dir in
  2630. *\ * | *\ *)
  2631. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2632. *)
  2633. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2634. esac
  2635. fi
  2636. # Installed binaries are usually stripped using `strip' when the user
  2637. # run `make install-strip'. However `strip' might not be the right
  2638. # tool to use in cross-compilation environments, therefore Automake
  2639. # will honor the `STRIP' environment variable to overrule this program.
  2640. if test "$cross_compiling" != no; then
  2641. if test -n "$ac_tool_prefix"; then
  2642. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2643. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$STRIP"; then
  2650. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2659. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. STRIP=$ac_cv_prog_STRIP
  2669. if test -n "$STRIP"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2671. $as_echo "$STRIP" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. fi
  2677. if test -z "$ac_cv_prog_STRIP"; then
  2678. ac_ct_STRIP=$STRIP
  2679. # Extract the first word of "strip", so it can be a program name with args.
  2680. set dummy strip; ac_word=$2
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2682. $as_echo_n "checking for $ac_word... " >&6; }
  2683. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2684. $as_echo_n "(cached) " >&6
  2685. else
  2686. if test -n "$ac_ct_STRIP"; then
  2687. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2688. else
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696. ac_cv_prog_ac_ct_STRIP="strip"
  2697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2698. break 2
  2699. fi
  2700. done
  2701. done
  2702. IFS=$as_save_IFS
  2703. fi
  2704. fi
  2705. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2706. if test -n "$ac_ct_STRIP"; then
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2708. $as_echo "$ac_ct_STRIP" >&6; }
  2709. else
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2711. $as_echo "no" >&6; }
  2712. fi
  2713. if test "x$ac_ct_STRIP" = x; then
  2714. STRIP=":"
  2715. else
  2716. case $cross_compiling:$ac_tool_warned in
  2717. yes:)
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2720. ac_tool_warned=yes ;;
  2721. esac
  2722. STRIP=$ac_ct_STRIP
  2723. fi
  2724. else
  2725. STRIP="$ac_cv_prog_STRIP"
  2726. fi
  2727. fi
  2728. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2730. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2731. if test -z "$MKDIR_P"; then
  2732. if test "${ac_cv_path_mkdir+set}" = set; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2736. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2737. do
  2738. IFS=$as_save_IFS
  2739. test -z "$as_dir" && as_dir=.
  2740. for ac_prog in mkdir gmkdir; do
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2743. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2744. 'mkdir (GNU coreutils) '* | \
  2745. 'mkdir (coreutils) '* | \
  2746. 'mkdir (fileutils) '4.1*)
  2747. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2748. break 3;;
  2749. esac
  2750. done
  2751. done
  2752. done
  2753. IFS=$as_save_IFS
  2754. fi
  2755. test -d ./--version && rmdir ./--version
  2756. if test "${ac_cv_path_mkdir+set}" = set; then
  2757. MKDIR_P="$ac_cv_path_mkdir -p"
  2758. else
  2759. # As a last resort, use the slow shell script. Don't cache a
  2760. # value for MKDIR_P within a source directory, because that will
  2761. # break other packages using the cache if that directory is
  2762. # removed, or if the value is a relative name.
  2763. MKDIR_P="$ac_install_sh -d"
  2764. fi
  2765. fi
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2767. $as_echo "$MKDIR_P" >&6; }
  2768. mkdir_p="$MKDIR_P"
  2769. case $mkdir_p in
  2770. [\\/$]* | ?:[\\/]*) ;;
  2771. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2772. esac
  2773. for ac_prog in gawk mawk nawk awk
  2774. do
  2775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_prog; ac_word=$2
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2778. $as_echo_n "checking for $ac_word... " >&6; }
  2779. if test "${ac_cv_prog_AWK+set}" = set; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. if test -n "$AWK"; then
  2783. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2792. ac_cv_prog_AWK="$ac_prog"
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. AWK=$ac_cv_prog_AWK
  2802. if test -n "$AWK"; then
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2804. $as_echo "$AWK" >&6; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2807. $as_echo "no" >&6; }
  2808. fi
  2809. test -n "$AWK" && break
  2810. done
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2812. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2813. set x ${MAKE-make}
  2814. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2815. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. cat >conftest.make <<\_ACEOF
  2819. SHELL = /bin/sh
  2820. all:
  2821. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2822. _ACEOF
  2823. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2824. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2825. *@@@%%%=?*=@@@%%%*)
  2826. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2827. *)
  2828. eval ac_cv_prog_make_${ac_make}_set=no;;
  2829. esac
  2830. rm -f conftest.make
  2831. fi
  2832. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2834. $as_echo "yes" >&6; }
  2835. SET_MAKE=
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. SET_MAKE="MAKE=${MAKE-make}"
  2840. fi
  2841. rm -rf .tst 2>/dev/null
  2842. mkdir .tst 2>/dev/null
  2843. if test -d .tst; then
  2844. am__leading_dot=.
  2845. else
  2846. am__leading_dot=_
  2847. fi
  2848. rmdir .tst 2>/dev/null
  2849. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2850. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2851. # is not polluted with repeated "-I."
  2852. am__isrc=' -I$(srcdir)'
  2853. # test to see if srcdir already configured
  2854. if test -f $srcdir/config.status; then
  2855. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2856. fi
  2857. fi
  2858. # test whether we have cygpath
  2859. if test -z "$CYGPATH_W"; then
  2860. if (cygpath --version) >/dev/null 2>/dev/null; then
  2861. CYGPATH_W='cygpath -w'
  2862. else
  2863. CYGPATH_W=echo
  2864. fi
  2865. fi
  2866. # Define the identity of the package.
  2867. PACKAGE='libffi'
  2868. VERSION='3.0.10rc0'
  2869. cat >>confdefs.h <<_ACEOF
  2870. #define PACKAGE "$PACKAGE"
  2871. _ACEOF
  2872. cat >>confdefs.h <<_ACEOF
  2873. #define VERSION "$VERSION"
  2874. _ACEOF
  2875. # Some tools Automake needs.
  2876. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2877. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2878. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2879. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2880. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2881. # We need awk for the "check" target. The system "awk" is bad on
  2882. # some platforms.
  2883. # Always define AMTAR for backward compatibility.
  2884. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2885. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2886. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2887. # We must force CC to /not/ be precious variables; otherwise
  2888. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2889. # As a side effect, we have to subst CFLAGS ourselves.
  2890. # Also save and restore CFLAGS, since AC_PROG_CC will come up with
  2891. # defaults of its own if none are provided.
  2892. save_CFLAGS=$CFLAGS
  2893. ac_ext=c
  2894. ac_cpp='$CPP $CPPFLAGS'
  2895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2898. if test -n "$ac_tool_prefix"; then
  2899. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2900. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if test "${ac_cv_prog_CC+set}" = set; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$CC"; then
  2907. ac_cv_prog_CC="$CC" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2916. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. CC=$ac_cv_prog_CC
  2926. if test -n "$CC"; then
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2928. $as_echo "$CC" >&6; }
  2929. else
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. fi
  2934. if test -z "$ac_cv_prog_CC"; then
  2935. ac_ct_CC=$CC
  2936. # Extract the first word of "gcc", so it can be a program name with args.
  2937. set dummy gcc; ac_word=$2
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2939. $as_echo_n "checking for $ac_word... " >&6; }
  2940. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2941. $as_echo_n "(cached) " >&6
  2942. else
  2943. if test -n "$ac_ct_CC"; then
  2944. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2945. else
  2946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2947. for as_dir in $PATH
  2948. do
  2949. IFS=$as_save_IFS
  2950. test -z "$as_dir" && as_dir=.
  2951. for ac_exec_ext in '' $ac_executable_extensions; do
  2952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2953. ac_cv_prog_ac_ct_CC="gcc"
  2954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2955. break 2
  2956. fi
  2957. done
  2958. done
  2959. IFS=$as_save_IFS
  2960. fi
  2961. fi
  2962. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2963. if test -n "$ac_ct_CC"; then
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2965. $as_echo "$ac_ct_CC" >&6; }
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. fi
  2970. if test "x$ac_ct_CC" = x; then
  2971. CC=""
  2972. else
  2973. case $cross_compiling:$ac_tool_warned in
  2974. yes:)
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2977. ac_tool_warned=yes ;;
  2978. esac
  2979. CC=$ac_ct_CC
  2980. fi
  2981. else
  2982. CC="$ac_cv_prog_CC"
  2983. fi
  2984. if test -z "$CC"; then
  2985. if test -n "$ac_tool_prefix"; then
  2986. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2987. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2989. $as_echo_n "checking for $ac_word... " >&6; }
  2990. if test "${ac_cv_prog_CC+set}" = set; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. if test -n "$CC"; then
  2994. ac_cv_prog_CC="$CC" # Let the user override the test.
  2995. else
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3003. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3005. break 2
  3006. fi
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. fi
  3012. CC=$ac_cv_prog_CC
  3013. if test -n "$CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3015. $as_echo "$CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. fi
  3021. fi
  3022. if test -z "$CC"; then
  3023. # Extract the first word of "cc", so it can be a program name with args.
  3024. set dummy cc; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if test "${ac_cv_prog_CC+set}" = set; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. if test -n "$CC"; then
  3031. ac_cv_prog_CC="$CC" # Let the user override the test.
  3032. else
  3033. ac_prog_rejected=no
  3034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3035. for as_dir in $PATH
  3036. do
  3037. IFS=$as_save_IFS
  3038. test -z "$as_dir" && as_dir=.
  3039. for ac_exec_ext in '' $ac_executable_extensions; do
  3040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3041. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3042. ac_prog_rejected=yes
  3043. continue
  3044. fi
  3045. ac_cv_prog_CC="cc"
  3046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3047. break 2
  3048. fi
  3049. done
  3050. done
  3051. IFS=$as_save_IFS
  3052. if test $ac_prog_rejected = yes; then
  3053. # We found a bogon in the path, so make sure we never use it.
  3054. set dummy $ac_cv_prog_CC
  3055. shift
  3056. if test $# != 0; then
  3057. # We chose a different compiler from the bogus one.
  3058. # However, it has the same basename, so the bogon will be chosen
  3059. # first if we set CC to just the basename; use the full file name.
  3060. shift
  3061. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3062. fi
  3063. fi
  3064. fi
  3065. fi
  3066. CC=$ac_cv_prog_CC
  3067. if test -n "$CC"; then
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3069. $as_echo "$CC" >&6; }
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3072. $as_echo "no" >&6; }
  3073. fi
  3074. fi
  3075. if test -z "$CC"; then
  3076. if test -n "$ac_tool_prefix"; then
  3077. for ac_prog in cl.exe
  3078. do
  3079. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3080. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3082. $as_echo_n "checking for $ac_word... " >&6; }
  3083. if test "${ac_cv_prog_CC+set}" = set; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -n "$CC"; then
  3087. ac_cv_prog_CC="$CC" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3096. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. CC=$ac_cv_prog_CC
  3106. if test -n "$CC"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3108. $as_echo "$CC" >&6; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3111. $as_echo "no" >&6; }
  3112. fi
  3113. test -n "$CC" && break
  3114. done
  3115. fi
  3116. if test -z "$CC"; then
  3117. ac_ct_CC=$CC
  3118. for ac_prog in cl.exe
  3119. do
  3120. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3121. set dummy $ac_prog; ac_word=$2
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3123. $as_echo_n "checking for $ac_word... " >&6; }
  3124. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. if test -n "$ac_ct_CC"; then
  3128. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3129. else
  3130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3131. for as_dir in $PATH
  3132. do
  3133. IFS=$as_save_IFS
  3134. test -z "$as_dir" && as_dir=.
  3135. for ac_exec_ext in '' $ac_executable_extensions; do
  3136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3137. ac_cv_prog_ac_ct_CC="$ac_prog"
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144. fi
  3145. fi
  3146. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3147. if test -n "$ac_ct_CC"; then
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3149. $as_echo "$ac_ct_CC" >&6; }
  3150. else
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3152. $as_echo "no" >&6; }
  3153. fi
  3154. test -n "$ac_ct_CC" && break
  3155. done
  3156. if test "x$ac_ct_CC" = x; then
  3157. CC=""
  3158. else
  3159. case $cross_compiling:$ac_tool_warned in
  3160. yes:)
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3163. ac_tool_warned=yes ;;
  3164. esac
  3165. CC=$ac_ct_CC
  3166. fi
  3167. fi
  3168. fi
  3169. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3170. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3171. as_fn_error "no acceptable C compiler found in \$PATH
  3172. See \`config.log' for more details." "$LINENO" 5; }
  3173. # Provide some information about the compiler.
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3175. set X $ac_compile
  3176. ac_compiler=$2
  3177. for ac_option in --version -v -V -qversion; do
  3178. { { ac_try="$ac_compiler $ac_option >&5"
  3179. case "(($ac_try" in
  3180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3181. *) ac_try_echo=$ac_try;;
  3182. esac
  3183. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3184. $as_echo "$ac_try_echo"; } >&5
  3185. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3186. ac_status=$?
  3187. if test -s conftest.err; then
  3188. sed '10a\
  3189. ... rest of stderr output deleted ...
  3190. 10q' conftest.err >conftest.er1
  3191. cat conftest.er1 >&5
  3192. fi
  3193. rm -f conftest.er1 conftest.err
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3195. test $ac_status = 0; }
  3196. done
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. ac_clean_files_save=$ac_clean_files
  3207. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3208. # Try to create an executable without -o first, disregard a.out.
  3209. # It will help us diagnose broken compilers, and finding out an intuition
  3210. # of exeext.
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3212. $as_echo_n "checking whether the C compiler works... " >&6; }
  3213. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3214. # The possible output files:
  3215. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3216. ac_rmfiles=
  3217. for ac_file in $ac_files
  3218. do
  3219. case $ac_file in
  3220. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3221. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3222. esac
  3223. done
  3224. rm -f $ac_rmfiles
  3225. if { { ac_try="$ac_link_default"
  3226. case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3231. $as_echo "$ac_try_echo"; } >&5
  3232. (eval "$ac_link_default") 2>&5
  3233. ac_status=$?
  3234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3235. test $ac_status = 0; }; then :
  3236. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3237. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3238. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3239. # so that the user can short-circuit this test for compilers unknown to
  3240. # Autoconf.
  3241. for ac_file in $ac_files ''
  3242. do
  3243. test -f "$ac_file" || continue
  3244. case $ac_file in
  3245. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3246. ;;
  3247. [ab].out )
  3248. # We found the default executable, but exeext='' is most
  3249. # certainly right.
  3250. break;;
  3251. *.* )
  3252. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3253. then :; else
  3254. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3255. fi
  3256. # We set ac_cv_exeext here because the later test for it is not
  3257. # safe: cross compilers may not add the suffix if given an `-o'
  3258. # argument, so we may need to know it at that point already.
  3259. # Even if this section looks crufty: it has the advantage of
  3260. # actually working.
  3261. break;;
  3262. * )
  3263. break;;
  3264. esac
  3265. done
  3266. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3267. else
  3268. ac_file=''
  3269. fi
  3270. if test -z "$ac_file"; then :
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3272. $as_echo "no" >&6; }
  3273. $as_echo "$as_me: failed program was:" >&5
  3274. sed 's/^/| /' conftest.$ac_ext >&5
  3275. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3276. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3277. { as_fn_set_status 77
  3278. as_fn_error "C compiler cannot create executables
  3279. See \`config.log' for more details." "$LINENO" 5; }; }
  3280. else
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3282. $as_echo "yes" >&6; }
  3283. fi
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3285. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3287. $as_echo "$ac_file" >&6; }
  3288. ac_exeext=$ac_cv_exeext
  3289. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3290. ac_clean_files=$ac_clean_files_save
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3292. $as_echo_n "checking for suffix of executables... " >&6; }
  3293. if { { ac_try="$ac_link"
  3294. case "(($ac_try" in
  3295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3296. *) ac_try_echo=$ac_try;;
  3297. esac
  3298. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3299. $as_echo "$ac_try_echo"; } >&5
  3300. (eval "$ac_link") 2>&5
  3301. ac_status=$?
  3302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3303. test $ac_status = 0; }; then :
  3304. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3305. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3306. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3307. # `rm'.
  3308. for ac_file in conftest.exe conftest conftest.*; do
  3309. test -f "$ac_file" || continue
  3310. case $ac_file in
  3311. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3312. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3313. break;;
  3314. * ) break;;
  3315. esac
  3316. done
  3317. else
  3318. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3320. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3321. See \`config.log' for more details." "$LINENO" 5; }
  3322. fi
  3323. rm -f conftest conftest$ac_cv_exeext
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3325. $as_echo "$ac_cv_exeext" >&6; }
  3326. rm -f conftest.$ac_ext
  3327. EXEEXT=$ac_cv_exeext
  3328. ac_exeext=$EXEEXT
  3329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3330. /* end confdefs.h. */
  3331. #include <stdio.h>
  3332. int
  3333. main ()
  3334. {
  3335. FILE *f = fopen ("conftest.out", "w");
  3336. return ferror (f) || fclose (f) != 0;
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. ac_clean_files="$ac_clean_files conftest.out"
  3342. # Check that the compiler produces executables we can run. If not, either
  3343. # the compiler is broken, or we cross compile.
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3345. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3346. if test "$cross_compiling" != yes; then
  3347. { { ac_try="$ac_link"
  3348. case "(($ac_try" in
  3349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3350. *) ac_try_echo=$ac_try;;
  3351. esac
  3352. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3353. $as_echo "$ac_try_echo"; } >&5
  3354. (eval "$ac_link") 2>&5
  3355. ac_status=$?
  3356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3357. test $ac_status = 0; }
  3358. if { ac_try='./conftest$ac_cv_exeext'
  3359. { { case "(($ac_try" in
  3360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3361. *) ac_try_echo=$ac_try;;
  3362. esac
  3363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3364. $as_echo "$ac_try_echo"; } >&5
  3365. (eval "$ac_try") 2>&5
  3366. ac_status=$?
  3367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3368. test $ac_status = 0; }; }; then
  3369. cross_compiling=no
  3370. else
  3371. if test "$cross_compiling" = maybe; then
  3372. cross_compiling=yes
  3373. else
  3374. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3375. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3376. as_fn_error "cannot run C compiled programs.
  3377. If you meant to cross compile, use \`--host'.
  3378. See \`config.log' for more details." "$LINENO" 5; }
  3379. fi
  3380. fi
  3381. fi
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3383. $as_echo "$cross_compiling" >&6; }
  3384. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3385. ac_clean_files=$ac_clean_files_save
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3387. $as_echo_n "checking for suffix of object files... " >&6; }
  3388. if test "${ac_cv_objext+set}" = set; then :
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3392. /* end confdefs.h. */
  3393. int
  3394. main ()
  3395. {
  3396. ;
  3397. return 0;
  3398. }
  3399. _ACEOF
  3400. rm -f conftest.o conftest.obj
  3401. if { { ac_try="$ac_compile"
  3402. case "(($ac_try" in
  3403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3404. *) ac_try_echo=$ac_try;;
  3405. esac
  3406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3407. $as_echo "$ac_try_echo"; } >&5
  3408. (eval "$ac_compile") 2>&5
  3409. ac_status=$?
  3410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3411. test $ac_status = 0; }; then :
  3412. for ac_file in conftest.o conftest.obj conftest.*; do
  3413. test -f "$ac_file" || continue;
  3414. case $ac_file in
  3415. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3416. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3417. break;;
  3418. esac
  3419. done
  3420. else
  3421. $as_echo "$as_me: failed program was:" >&5
  3422. sed 's/^/| /' conftest.$ac_ext >&5
  3423. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3424. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3425. as_fn_error "cannot compute suffix of object files: cannot compile
  3426. See \`config.log' for more details." "$LINENO" 5; }
  3427. fi
  3428. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3431. $as_echo "$ac_cv_objext" >&6; }
  3432. OBJEXT=$ac_cv_objext
  3433. ac_objext=$OBJEXT
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3435. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3436. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3437. $as_echo_n "(cached) " >&6
  3438. else
  3439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3440. /* end confdefs.h. */
  3441. int
  3442. main ()
  3443. {
  3444. #ifndef __GNUC__
  3445. choke me
  3446. #endif
  3447. ;
  3448. return 0;
  3449. }
  3450. _ACEOF
  3451. if ac_fn_c_try_compile "$LINENO"; then :
  3452. ac_compiler_gnu=yes
  3453. else
  3454. ac_compiler_gnu=no
  3455. fi
  3456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3457. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3460. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3461. if test $ac_compiler_gnu = yes; then
  3462. GCC=yes
  3463. else
  3464. GCC=
  3465. fi
  3466. ac_test_CFLAGS=${CFLAGS+set}
  3467. ac_save_CFLAGS=$CFLAGS
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3469. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3470. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. ac_save_c_werror_flag=$ac_c_werror_flag
  3474. ac_c_werror_flag=yes
  3475. ac_cv_prog_cc_g=no
  3476. CFLAGS="-g"
  3477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3478. /* end confdefs.h. */
  3479. int
  3480. main ()
  3481. {
  3482. ;
  3483. return 0;
  3484. }
  3485. _ACEOF
  3486. if ac_fn_c_try_compile "$LINENO"; then :
  3487. ac_cv_prog_cc_g=yes
  3488. else
  3489. CFLAGS=""
  3490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3491. /* end confdefs.h. */
  3492. int
  3493. main ()
  3494. {
  3495. ;
  3496. return 0;
  3497. }
  3498. _ACEOF
  3499. if ac_fn_c_try_compile "$LINENO"; then :
  3500. else
  3501. ac_c_werror_flag=$ac_save_c_werror_flag
  3502. CFLAGS="-g"
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. if ac_fn_c_try_compile "$LINENO"; then :
  3513. ac_cv_prog_cc_g=yes
  3514. fi
  3515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3516. fi
  3517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3518. fi
  3519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3520. ac_c_werror_flag=$ac_save_c_werror_flag
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3523. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3524. if test "$ac_test_CFLAGS" = set; then
  3525. CFLAGS=$ac_save_CFLAGS
  3526. elif test $ac_cv_prog_cc_g = yes; then
  3527. if test "$GCC" = yes; then
  3528. CFLAGS="-g -O2"
  3529. else
  3530. CFLAGS="-g"
  3531. fi
  3532. else
  3533. if test "$GCC" = yes; then
  3534. CFLAGS="-O2"
  3535. else
  3536. CFLAGS=
  3537. fi
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3540. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3541. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3542. $as_echo_n "(cached) " >&6
  3543. else
  3544. ac_cv_prog_cc_c89=no
  3545. ac_save_CC=$CC
  3546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3547. /* end confdefs.h. */
  3548. #include <stdarg.h>
  3549. #include <stdio.h>
  3550. #include <sys/types.h>
  3551. #include <sys/stat.h>
  3552. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3553. struct buf { int x; };
  3554. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3555. static char *e (p, i)
  3556. char **p;
  3557. int i;
  3558. {
  3559. return p[i];
  3560. }
  3561. static char *f (char * (*g) (char **, int), char **p, ...)
  3562. {
  3563. char *s;
  3564. va_list v;
  3565. va_start (v,p);
  3566. s = g (p, va_arg (v,int));
  3567. va_end (v);
  3568. return s;
  3569. }
  3570. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3571. function prototypes and stuff, but not '\xHH' hex character constants.
  3572. These don't provoke an error unfortunately, instead are silently treated
  3573. as 'x'. The following induces an error, until -std is added to get
  3574. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3575. array size at least. It's necessary to write '\x00'==0 to get something
  3576. that's true only with -std. */
  3577. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3578. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3579. inside strings and character constants. */
  3580. #define FOO(x) 'x'
  3581. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3582. int test (int i, double x);
  3583. struct s1 {int (*f) (int a);};
  3584. struct s2 {int (*f) (double a);};
  3585. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3586. int argc;
  3587. char **argv;
  3588. int
  3589. main ()
  3590. {
  3591. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3592. ;
  3593. return 0;
  3594. }
  3595. _ACEOF
  3596. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3597. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3598. do
  3599. CC="$ac_save_CC $ac_arg"
  3600. if ac_fn_c_try_compile "$LINENO"; then :
  3601. ac_cv_prog_cc_c89=$ac_arg
  3602. fi
  3603. rm -f core conftest.err conftest.$ac_objext
  3604. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3605. done
  3606. rm -f conftest.$ac_ext
  3607. CC=$ac_save_CC
  3608. fi
  3609. # AC_CACHE_VAL
  3610. case "x$ac_cv_prog_cc_c89" in
  3611. x)
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3613. $as_echo "none needed" >&6; } ;;
  3614. xno)
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3616. $as_echo "unsupported" >&6; } ;;
  3617. *)
  3618. CC="$CC $ac_cv_prog_cc_c89"
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3620. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3621. esac
  3622. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3623. fi
  3624. ac_ext=c
  3625. ac_cpp='$CPP $CPPFLAGS'
  3626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3629. DEPDIR="${am__leading_dot}deps"
  3630. ac_config_commands="$ac_config_commands depfiles"
  3631. am_make=${MAKE-make}
  3632. cat > confinc << 'END'
  3633. am__doit:
  3634. @echo this is the am__doit target
  3635. .PHONY: am__doit
  3636. END
  3637. # If we don't find an include directive, just comment out the code.
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3639. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3640. am__include="#"
  3641. am__quote=
  3642. _am_result=none
  3643. # First try GNU make style include.
  3644. echo "include confinc" > confmf
  3645. # Ignore all kinds of additional output from `make'.
  3646. case `$am_make -s -f confmf 2> /dev/null` in #(
  3647. *the\ am__doit\ target*)
  3648. am__include=include
  3649. am__quote=
  3650. _am_result=GNU
  3651. ;;
  3652. esac
  3653. # Now try BSD make style include.
  3654. if test "$am__include" = "#"; then
  3655. echo '.include "confinc"' > confmf
  3656. case `$am_make -s -f confmf 2> /dev/null` in #(
  3657. *the\ am__doit\ target*)
  3658. am__include=.include
  3659. am__quote="\""
  3660. _am_result=BSD
  3661. ;;
  3662. esac
  3663. fi
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3665. $as_echo "$_am_result" >&6; }
  3666. rm -f confinc confmf
  3667. # Check whether --enable-dependency-tracking was given.
  3668. if test "${enable_dependency_tracking+set}" = set; then :
  3669. enableval=$enable_dependency_tracking;
  3670. fi
  3671. if test "x$enable_dependency_tracking" != xno; then
  3672. am_depcomp="$ac_aux_dir/depcomp"
  3673. AMDEPBACKSLASH='\'
  3674. fi
  3675. if test "x$enable_dependency_tracking" != xno; then
  3676. AMDEP_TRUE=
  3677. AMDEP_FALSE='#'
  3678. else
  3679. AMDEP_TRUE='#'
  3680. AMDEP_FALSE=
  3681. fi
  3682. depcc="$CC" am_compiler_list=
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3684. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3685. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3689. # We make a subdir and do the tests there. Otherwise we can end up
  3690. # making bogus files that we don't know about and never remove. For
  3691. # instance it was reported that on HP-UX the gcc test will end up
  3692. # making a dummy file named `D' -- because `-MD' means `put the output
  3693. # in D'.
  3694. mkdir conftest.dir
  3695. # Copy depcomp to subdir because otherwise we won't find it if we're
  3696. # using a relative directory.
  3697. cp "$am_depcomp" conftest.dir
  3698. cd conftest.dir
  3699. # We will build objects and dependencies in a subdirectory because
  3700. # it helps to detect inapplicable dependency modes. For instance
  3701. # both Tru64's cc and ICC support -MD to output dependencies as a
  3702. # side effect of compilation, but ICC will put the dependencies in
  3703. # the current directory while Tru64 will put them in the object
  3704. # directory.
  3705. mkdir sub
  3706. am_cv_CC_dependencies_compiler_type=none
  3707. if test "$am_compiler_list" = ""; then
  3708. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3709. fi
  3710. am__universal=false
  3711. case " $depcc " in #(
  3712. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3713. esac
  3714. for depmode in $am_compiler_list; do
  3715. # Setup a source with many dependencies, because some compilers
  3716. # like to wrap large dependency lists on column 80 (with \), and
  3717. # we should not choose a depcomp mode which is confused by this.
  3718. #
  3719. # We need to recreate these files for each test, as the compiler may
  3720. # overwrite some of them when testing with obscure command lines.
  3721. # This happens at least with the AIX C compiler.
  3722. : > sub/conftest.c
  3723. for i in 1 2 3 4 5 6; do
  3724. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3725. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3726. # Solaris 8's {/usr,}/bin/sh.
  3727. touch sub/conftst$i.h
  3728. done
  3729. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3730. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3731. # mode. It turns out that the SunPro C++ compiler does not properly
  3732. # handle `-M -o', and we need to detect this. Also, some Intel
  3733. # versions had trouble with output in subdirs
  3734. am__obj=sub/conftest.${OBJEXT-o}
  3735. am__minus_obj="-o $am__obj"
  3736. case $depmode in
  3737. gcc)
  3738. # This depmode causes a compiler race in universal mode.
  3739. test "$am__universal" = false || continue
  3740. ;;
  3741. nosideeffect)
  3742. # after this tag, mechanisms are not by side-effect, so they'll
  3743. # only be used when explicitly requested
  3744. if test "x$enable_dependency_tracking" = xyes; then
  3745. continue
  3746. else
  3747. break
  3748. fi
  3749. ;;
  3750. msvisualcpp | msvcmsys)
  3751. # This compiler won't grok `-c -o', but also, the minuso test has
  3752. # not run yet. These depmodes are late enough in the game, and
  3753. # so weak that their functioning should not be impacted.
  3754. am__obj=conftest.${OBJEXT-o}
  3755. am__minus_obj=
  3756. ;;
  3757. none) break ;;
  3758. esac
  3759. if depmode=$depmode \
  3760. source=sub/conftest.c object=$am__obj \
  3761. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3762. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3763. >/dev/null 2>conftest.err &&
  3764. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3765. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3766. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3767. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3768. # icc doesn't choke on unknown options, it will just issue warnings
  3769. # or remarks (even with -Werror). So we grep stderr for any message
  3770. # that says an option was ignored or not supported.
  3771. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3772. # icc: Command line warning: ignoring option '-M'; no argument required
  3773. # The diagnosis changed in icc 8.0:
  3774. # icc: Command line remark: option '-MP' not supported
  3775. if (grep 'ignoring option' conftest.err ||
  3776. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3777. am_cv_CC_dependencies_compiler_type=$depmode
  3778. break
  3779. fi
  3780. fi
  3781. done
  3782. cd ..
  3783. rm -rf conftest.dir
  3784. else
  3785. am_cv_CC_dependencies_compiler_type=none
  3786. fi
  3787. fi
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3789. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3790. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3791. if
  3792. test "x$enable_dependency_tracking" != xno \
  3793. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3794. am__fastdepCC_TRUE=
  3795. am__fastdepCC_FALSE='#'
  3796. else
  3797. am__fastdepCC_TRUE='#'
  3798. am__fastdepCC_FALSE=
  3799. fi
  3800. CFLAGS=$save_CFLAGS
  3801. # By default we simply use the C compiler to build assembly code.
  3802. test "${CCAS+set}" = set || CCAS=$CC
  3803. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3804. depcc="$CCAS" am_compiler_list=
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3806. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3807. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  3808. $as_echo_n "(cached) " >&6
  3809. else
  3810. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3811. # We make a subdir and do the tests there. Otherwise we can end up
  3812. # making bogus files that we don't know about and never remove. For
  3813. # instance it was reported that on HP-UX the gcc test will end up
  3814. # making a dummy file named `D' -- because `-MD' means `put the output
  3815. # in D'.
  3816. mkdir conftest.dir
  3817. # Copy depcomp to subdir because otherwise we won't find it if we're
  3818. # using a relative directory.
  3819. cp "$am_depcomp" conftest.dir
  3820. cd conftest.dir
  3821. # We will build objects and dependencies in a subdirectory because
  3822. # it helps to detect inapplicable dependency modes. For instance
  3823. # both Tru64's cc and ICC support -MD to output dependencies as a
  3824. # side effect of compilation, but ICC will put the dependencies in
  3825. # the current directory while Tru64 will put them in the object
  3826. # directory.
  3827. mkdir sub
  3828. am_cv_CCAS_dependencies_compiler_type=none
  3829. if test "$am_compiler_list" = ""; then
  3830. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3831. fi
  3832. am__universal=false
  3833. for depmode in $am_compiler_list; do
  3834. # Setup a source with many dependencies, because some compilers
  3835. # like to wrap large dependency lists on column 80 (with \), and
  3836. # we should not choose a depcomp mode which is confused by this.
  3837. #
  3838. # We need to recreate these files for each test, as the compiler may
  3839. # overwrite some of them when testing with obscure command lines.
  3840. # This happens at least with the AIX C compiler.
  3841. : > sub/conftest.c
  3842. for i in 1 2 3 4 5 6; do
  3843. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3844. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3845. # Solaris 8's {/usr,}/bin/sh.
  3846. touch sub/conftst$i.h
  3847. done
  3848. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3849. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3850. # mode. It turns out that the SunPro C++ compiler does not properly
  3851. # handle `-M -o', and we need to detect this. Also, some Intel
  3852. # versions had trouble with output in subdirs
  3853. am__obj=sub/conftest.${OBJEXT-o}
  3854. am__minus_obj="-o $am__obj"
  3855. case $depmode in
  3856. gcc)
  3857. # This depmode causes a compiler race in universal mode.
  3858. test "$am__universal" = false || continue
  3859. ;;
  3860. nosideeffect)
  3861. # after this tag, mechanisms are not by side-effect, so they'll
  3862. # only be used when explicitly requested
  3863. if test "x$enable_dependency_tracking" = xyes; then
  3864. continue
  3865. else
  3866. break
  3867. fi
  3868. ;;
  3869. msvisualcpp | msvcmsys)
  3870. # This compiler won't grok `-c -o', but also, the minuso test has
  3871. # not run yet. These depmodes are late enough in the game, and
  3872. # so weak that their functioning should not be impacted.
  3873. am__obj=conftest.${OBJEXT-o}
  3874. am__minus_obj=
  3875. ;;
  3876. none) break ;;
  3877. esac
  3878. if depmode=$depmode \
  3879. source=sub/conftest.c object=$am__obj \
  3880. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3881. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3882. >/dev/null 2>conftest.err &&
  3883. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3884. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3885. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3886. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3887. # icc doesn't choke on unknown options, it will just issue warnings
  3888. # or remarks (even with -Werror). So we grep stderr for any message
  3889. # that says an option was ignored or not supported.
  3890. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3891. # icc: Command line warning: ignoring option '-M'; no argument required
  3892. # The diagnosis changed in icc 8.0:
  3893. # icc: Command line remark: option '-MP' not supported
  3894. if (grep 'ignoring option' conftest.err ||
  3895. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3896. am_cv_CCAS_dependencies_compiler_type=$depmode
  3897. break
  3898. fi
  3899. fi
  3900. done
  3901. cd ..
  3902. rm -rf conftest.dir
  3903. else
  3904. am_cv_CCAS_dependencies_compiler_type=none
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3908. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3909. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3910. if
  3911. test "x$enable_dependency_tracking" != xno \
  3912. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3913. am__fastdepCCAS_TRUE=
  3914. am__fastdepCCAS_FALSE='#'
  3915. else
  3916. am__fastdepCCAS_TRUE='#'
  3917. am__fastdepCCAS_FALSE=
  3918. fi
  3919. if test "x$CC" != xcc; then
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3921. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3922. else
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3924. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3925. fi
  3926. set dummy $CC; ac_cc=`$as_echo "$2" |
  3927. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3928. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h. */
  3933. int
  3934. main ()
  3935. {
  3936. ;
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. # Make sure it works both with $CC and with simple cc.
  3941. # We do the test twice because some compilers refuse to overwrite an
  3942. # existing .o file with -o, though they will create one.
  3943. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3944. rm -f conftest2.*
  3945. if { { case "(($ac_try" in
  3946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3947. *) ac_try_echo=$ac_try;;
  3948. esac
  3949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3950. $as_echo "$ac_try_echo"; } >&5
  3951. (eval "$ac_try") 2>&5
  3952. ac_status=$?
  3953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3954. test $ac_status = 0; } &&
  3955. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3957. *) ac_try_echo=$ac_try;;
  3958. esac
  3959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3960. $as_echo "$ac_try_echo"; } >&5
  3961. (eval "$ac_try") 2>&5
  3962. ac_status=$?
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3964. test $ac_status = 0; };
  3965. then
  3966. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3967. if test "x$CC" != xcc; then
  3968. # Test first that cc exists at all.
  3969. if { ac_try='cc -c conftest.$ac_ext >&5'
  3970. { { case "(($ac_try" in
  3971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3972. *) ac_try_echo=$ac_try;;
  3973. esac
  3974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3975. $as_echo "$ac_try_echo"; } >&5
  3976. (eval "$ac_try") 2>&5
  3977. ac_status=$?
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3979. test $ac_status = 0; }; }; then
  3980. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3981. rm -f conftest2.*
  3982. if { { case "(($ac_try" in
  3983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3984. *) ac_try_echo=$ac_try;;
  3985. esac
  3986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3987. $as_echo "$ac_try_echo"; } >&5
  3988. (eval "$ac_try") 2>&5
  3989. ac_status=$?
  3990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3991. test $ac_status = 0; } &&
  3992. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3994. *) ac_try_echo=$ac_try;;
  3995. esac
  3996. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3997. $as_echo "$ac_try_echo"; } >&5
  3998. (eval "$ac_try") 2>&5
  3999. ac_status=$?
  4000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4001. test $ac_status = 0; };
  4002. then
  4003. # cc works too.
  4004. :
  4005. else
  4006. # cc exists but doesn't like -o.
  4007. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4008. fi
  4009. fi
  4010. fi
  4011. else
  4012. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4013. fi
  4014. rm -f core conftest*
  4015. fi
  4016. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4018. $as_echo "yes" >&6; }
  4019. else
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4021. $as_echo "no" >&6; }
  4022. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4023. fi
  4024. # FIXME: we rely on the cache variable name because
  4025. # there is no other way.
  4026. set dummy $CC
  4027. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4028. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4029. if test "$am_t" != yes; then
  4030. # Losing compiler, so override with the script.
  4031. # FIXME: It is wrong to rewrite CC.
  4032. # But if we don't then we get into trouble of one sort or another.
  4033. # A longer-term fix would be to have automake use am__CC in this case,
  4034. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4035. CC="$am_aux_dir/compile $CC"
  4036. fi
  4037. case `pwd` in
  4038. *\ * | *\ *)
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4040. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4041. esac
  4042. macro_version='2.2.6b'
  4043. macro_revision='1.3017'
  4044. ltmain="$ac_aux_dir/ltmain.sh"
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4046. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4047. if test "${ac_cv_path_SED+set}" = set; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4051. for ac_i in 1 2 3 4 5 6 7; do
  4052. ac_script="$ac_script$as_nl$ac_script"
  4053. done
  4054. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4055. { ac_script=; unset ac_script;}
  4056. if test -z "$SED"; then
  4057. ac_path_SED_found=false
  4058. # Loop through the user's path and test for each of PROGNAME-LIST
  4059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4060. for as_dir in $PATH
  4061. do
  4062. IFS=$as_save_IFS
  4063. test -z "$as_dir" && as_dir=.
  4064. for ac_prog in sed gsed; do
  4065. for ac_exec_ext in '' $ac_executable_extensions; do
  4066. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4067. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4068. # Check for GNU ac_path_SED and select it if it is found.
  4069. # Check for GNU $ac_path_SED
  4070. case `"$ac_path_SED" --version 2>&1` in
  4071. *GNU*)
  4072. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4073. *)
  4074. ac_count=0
  4075. $as_echo_n 0123456789 >"conftest.in"
  4076. while :
  4077. do
  4078. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4079. mv "conftest.tmp" "conftest.in"
  4080. cp "conftest.in" "conftest.nl"
  4081. $as_echo '' >> "conftest.nl"
  4082. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4083. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4084. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4085. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4086. # Best one so far, save it but keep looking for a better one
  4087. ac_cv_path_SED="$ac_path_SED"
  4088. ac_path_SED_max=$ac_count
  4089. fi
  4090. # 10*(2^10) chars as input seems more than enough
  4091. test $ac_count -gt 10 && break
  4092. done
  4093. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4094. esac
  4095. $ac_path_SED_found && break 3
  4096. done
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. if test -z "$ac_cv_path_SED"; then
  4101. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4102. fi
  4103. else
  4104. ac_cv_path_SED=$SED
  4105. fi
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4108. $as_echo "$ac_cv_path_SED" >&6; }
  4109. SED="$ac_cv_path_SED"
  4110. rm -f conftest.sed
  4111. test -z "$SED" && SED=sed
  4112. Xsed="$SED -e 1s/^X//"
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4114. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4115. if test "${ac_cv_path_GREP+set}" = set; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test -z "$GREP"; then
  4119. ac_path_GREP_found=false
  4120. # Loop through the user's path and test for each of PROGNAME-LIST
  4121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4122. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4123. do
  4124. IFS=$as_save_IFS
  4125. test -z "$as_dir" && as_dir=.
  4126. for ac_prog in grep ggrep; do
  4127. for ac_exec_ext in '' $ac_executable_extensions; do
  4128. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4129. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4130. # Check for GNU ac_path_GREP and select it if it is found.
  4131. # Check for GNU $ac_path_GREP
  4132. case `"$ac_path_GREP" --version 2>&1` in
  4133. *GNU*)
  4134. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4135. *)
  4136. ac_count=0
  4137. $as_echo_n 0123456789 >"conftest.in"
  4138. while :
  4139. do
  4140. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4141. mv "conftest.tmp" "conftest.in"
  4142. cp "conftest.in" "conftest.nl"
  4143. $as_echo 'GREP' >> "conftest.nl"
  4144. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4145. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4146. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4147. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4148. # Best one so far, save it but keep looking for a better one
  4149. ac_cv_path_GREP="$ac_path_GREP"
  4150. ac_path_GREP_max=$ac_count
  4151. fi
  4152. # 10*(2^10) chars as input seems more than enough
  4153. test $ac_count -gt 10 && break
  4154. done
  4155. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4156. esac
  4157. $ac_path_GREP_found && break 3
  4158. done
  4159. done
  4160. done
  4161. IFS=$as_save_IFS
  4162. if test -z "$ac_cv_path_GREP"; then
  4163. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4164. fi
  4165. else
  4166. ac_cv_path_GREP=$GREP
  4167. fi
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4170. $as_echo "$ac_cv_path_GREP" >&6; }
  4171. GREP="$ac_cv_path_GREP"
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4173. $as_echo_n "checking for egrep... " >&6; }
  4174. if test "${ac_cv_path_EGREP+set}" = set; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4178. then ac_cv_path_EGREP="$GREP -E"
  4179. else
  4180. if test -z "$EGREP"; then
  4181. ac_path_EGREP_found=false
  4182. # Loop through the user's path and test for each of PROGNAME-LIST
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_prog in egrep; do
  4189. for ac_exec_ext in '' $ac_executable_extensions; do
  4190. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4191. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4192. # Check for GNU ac_path_EGREP and select it if it is found.
  4193. # Check for GNU $ac_path_EGREP
  4194. case `"$ac_path_EGREP" --version 2>&1` in
  4195. *GNU*)
  4196. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4197. *)
  4198. ac_count=0
  4199. $as_echo_n 0123456789 >"conftest.in"
  4200. while :
  4201. do
  4202. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4203. mv "conftest.tmp" "conftest.in"
  4204. cp "conftest.in" "conftest.nl"
  4205. $as_echo 'EGREP' >> "conftest.nl"
  4206. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4207. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4208. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4209. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4210. # Best one so far, save it but keep looking for a better one
  4211. ac_cv_path_EGREP="$ac_path_EGREP"
  4212. ac_path_EGREP_max=$ac_count
  4213. fi
  4214. # 10*(2^10) chars as input seems more than enough
  4215. test $ac_count -gt 10 && break
  4216. done
  4217. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4218. esac
  4219. $ac_path_EGREP_found && break 3
  4220. done
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. if test -z "$ac_cv_path_EGREP"; then
  4225. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4226. fi
  4227. else
  4228. ac_cv_path_EGREP=$EGREP
  4229. fi
  4230. fi
  4231. fi
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4233. $as_echo "$ac_cv_path_EGREP" >&6; }
  4234. EGREP="$ac_cv_path_EGREP"
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4236. $as_echo_n "checking for fgrep... " >&6; }
  4237. if test "${ac_cv_path_FGREP+set}" = set; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4241. then ac_cv_path_FGREP="$GREP -F"
  4242. else
  4243. if test -z "$FGREP"; then
  4244. ac_path_FGREP_found=false
  4245. # Loop through the user's path and test for each of PROGNAME-LIST
  4246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4247. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4248. do
  4249. IFS=$as_save_IFS
  4250. test -z "$as_dir" && as_dir=.
  4251. for ac_prog in fgrep; do
  4252. for ac_exec_ext in '' $ac_executable_extensions; do
  4253. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4254. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4255. # Check for GNU ac_path_FGREP and select it if it is found.
  4256. # Check for GNU $ac_path_FGREP
  4257. case `"$ac_path_FGREP" --version 2>&1` in
  4258. *GNU*)
  4259. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4260. *)
  4261. ac_count=0
  4262. $as_echo_n 0123456789 >"conftest.in"
  4263. while :
  4264. do
  4265. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4266. mv "conftest.tmp" "conftest.in"
  4267. cp "conftest.in" "conftest.nl"
  4268. $as_echo 'FGREP' >> "conftest.nl"
  4269. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4270. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4271. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4272. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4273. # Best one so far, save it but keep looking for a better one
  4274. ac_cv_path_FGREP="$ac_path_FGREP"
  4275. ac_path_FGREP_max=$ac_count
  4276. fi
  4277. # 10*(2^10) chars as input seems more than enough
  4278. test $ac_count -gt 10 && break
  4279. done
  4280. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4281. esac
  4282. $ac_path_FGREP_found && break 3
  4283. done
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. if test -z "$ac_cv_path_FGREP"; then
  4288. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4289. fi
  4290. else
  4291. ac_cv_path_FGREP=$FGREP
  4292. fi
  4293. fi
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4296. $as_echo "$ac_cv_path_FGREP" >&6; }
  4297. FGREP="$ac_cv_path_FGREP"
  4298. test -z "$GREP" && GREP=grep
  4299. # Check whether --with-gnu-ld was given.
  4300. if test "${with_gnu_ld+set}" = set; then :
  4301. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4302. else
  4303. with_gnu_ld=no
  4304. fi
  4305. ac_prog=ld
  4306. if test "$GCC" = yes; then
  4307. # Check if gcc -print-prog-name=ld gives a path.
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4309. $as_echo_n "checking for ld used by $CC... " >&6; }
  4310. case $host in
  4311. *-*-mingw*)
  4312. # gcc leaves a trailing carriage return which upsets mingw
  4313. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4314. *)
  4315. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4316. esac
  4317. case $ac_prog in
  4318. # Accept absolute paths.
  4319. [\\/]* | ?:[\\/]*)
  4320. re_direlt='/[^/][^/]*/\.\./'
  4321. # Canonicalize the pathname of ld
  4322. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4323. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4324. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4325. done
  4326. test -z "$LD" && LD="$ac_prog"
  4327. ;;
  4328. "")
  4329. # If it fails, then pretend we aren't using GCC.
  4330. ac_prog=ld
  4331. ;;
  4332. *)
  4333. # If it is relative, then search for the first ld in PATH.
  4334. with_gnu_ld=unknown
  4335. ;;
  4336. esac
  4337. elif test "$with_gnu_ld" = yes; then
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4339. $as_echo_n "checking for GNU ld... " >&6; }
  4340. else
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4342. $as_echo_n "checking for non-GNU ld... " >&6; }
  4343. fi
  4344. if test "${lt_cv_path_LD+set}" = set; then :
  4345. $as_echo_n "(cached) " >&6
  4346. else
  4347. if test -z "$LD"; then
  4348. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4349. for ac_dir in $PATH; do
  4350. IFS="$lt_save_ifs"
  4351. test -z "$ac_dir" && ac_dir=.
  4352. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4353. lt_cv_path_LD="$ac_dir/$ac_prog"
  4354. # Check to see if the program is GNU ld. I'd rather use --version,
  4355. # but apparently some variants of GNU ld only accept -v.
  4356. # Break only if it was the GNU/non-GNU ld that we prefer.
  4357. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4358. *GNU* | *'with BFD'*)
  4359. test "$with_gnu_ld" != no && break
  4360. ;;
  4361. *)
  4362. test "$with_gnu_ld" != yes && break
  4363. ;;
  4364. esac
  4365. fi
  4366. done
  4367. IFS="$lt_save_ifs"
  4368. else
  4369. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4370. fi
  4371. fi
  4372. LD="$lt_cv_path_LD"
  4373. if test -n "$LD"; then
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4375. $as_echo "$LD" >&6; }
  4376. else
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4378. $as_echo "no" >&6; }
  4379. fi
  4380. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4382. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4383. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4387. case `$LD -v 2>&1 </dev/null` in
  4388. *GNU* | *'with BFD'*)
  4389. lt_cv_prog_gnu_ld=yes
  4390. ;;
  4391. *)
  4392. lt_cv_prog_gnu_ld=no
  4393. ;;
  4394. esac
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4397. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4398. with_gnu_ld=$lt_cv_prog_gnu_ld
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4400. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4401. if test "${lt_cv_path_NM+set}" = set; then :
  4402. $as_echo_n "(cached) " >&6
  4403. else
  4404. if test -n "$NM"; then
  4405. # Let the user override the test.
  4406. lt_cv_path_NM="$NM"
  4407. else
  4408. lt_nm_to_check="${ac_tool_prefix}nm"
  4409. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4410. lt_nm_to_check="$lt_nm_to_check nm"
  4411. fi
  4412. for lt_tmp_nm in $lt_nm_to_check; do
  4413. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4414. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4415. IFS="$lt_save_ifs"
  4416. test -z "$ac_dir" && ac_dir=.
  4417. tmp_nm="$ac_dir/$lt_tmp_nm"
  4418. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4419. # Check to see if the nm accepts a BSD-compat flag.
  4420. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4421. # nm: unknown option "B" ignored
  4422. # Tru64's nm complains that /dev/null is an invalid object file
  4423. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4424. */dev/null* | *'Invalid file or object type'*)
  4425. lt_cv_path_NM="$tmp_nm -B"
  4426. break
  4427. ;;
  4428. *)
  4429. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4430. */dev/null*)
  4431. lt_cv_path_NM="$tmp_nm -p"
  4432. break
  4433. ;;
  4434. *)
  4435. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4436. continue # so that we can try to find one that supports BSD flags
  4437. ;;
  4438. esac
  4439. ;;
  4440. esac
  4441. fi
  4442. done
  4443. IFS="$lt_save_ifs"
  4444. done
  4445. : ${lt_cv_path_NM=no}
  4446. fi
  4447. fi
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4449. $as_echo "$lt_cv_path_NM" >&6; }
  4450. if test "$lt_cv_path_NM" != "no"; then
  4451. NM="$lt_cv_path_NM"
  4452. else
  4453. # Didn't find any BSD compatible name lister, look for dumpbin.
  4454. if test -n "$ac_tool_prefix"; then
  4455. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4456. do
  4457. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4458. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$DUMPBIN"; then
  4465. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4466. else
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4474. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4476. break 2
  4477. fi
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. fi
  4482. fi
  4483. DUMPBIN=$ac_cv_prog_DUMPBIN
  4484. if test -n "$DUMPBIN"; then
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4486. $as_echo "$DUMPBIN" >&6; }
  4487. else
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4489. $as_echo "no" >&6; }
  4490. fi
  4491. test -n "$DUMPBIN" && break
  4492. done
  4493. fi
  4494. if test -z "$DUMPBIN"; then
  4495. ac_ct_DUMPBIN=$DUMPBIN
  4496. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4497. do
  4498. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4499. set dummy $ac_prog; ac_word=$2
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4501. $as_echo_n "checking for $ac_word... " >&6; }
  4502. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. if test -n "$ac_ct_DUMPBIN"; then
  4506. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4507. else
  4508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4509. for as_dir in $PATH
  4510. do
  4511. IFS=$as_save_IFS
  4512. test -z "$as_dir" && as_dir=.
  4513. for ac_exec_ext in '' $ac_executable_extensions; do
  4514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4515. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4517. break 2
  4518. fi
  4519. done
  4520. done
  4521. IFS=$as_save_IFS
  4522. fi
  4523. fi
  4524. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4525. if test -n "$ac_ct_DUMPBIN"; then
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4527. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4528. else
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4530. $as_echo "no" >&6; }
  4531. fi
  4532. test -n "$ac_ct_DUMPBIN" && break
  4533. done
  4534. if test "x$ac_ct_DUMPBIN" = x; then
  4535. DUMPBIN=":"
  4536. else
  4537. case $cross_compiling:$ac_tool_warned in
  4538. yes:)
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4541. ac_tool_warned=yes ;;
  4542. esac
  4543. DUMPBIN=$ac_ct_DUMPBIN
  4544. fi
  4545. fi
  4546. if test "$DUMPBIN" != ":"; then
  4547. NM="$DUMPBIN"
  4548. fi
  4549. fi
  4550. test -z "$NM" && NM=nm
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4552. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4553. if test "${lt_cv_nm_interface+set}" = set; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. lt_cv_nm_interface="BSD nm"
  4557. echo "int some_variable = 0;" > conftest.$ac_ext
  4558. (eval echo "\"\$as_me:5053: $ac_compile\"" >&5)
  4559. (eval "$ac_compile" 2>conftest.err)
  4560. cat conftest.err >&5
  4561. (eval echo "\"\$as_me:5056: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4562. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4563. cat conftest.err >&5
  4564. (eval echo "\"\$as_me:5059: output\"" >&5)
  4565. cat conftest.out >&5
  4566. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4567. lt_cv_nm_interface="MS dumpbin"
  4568. fi
  4569. rm -f conftest*
  4570. fi
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4572. $as_echo "$lt_cv_nm_interface" >&6; }
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4574. $as_echo_n "checking whether ln -s works... " >&6; }
  4575. LN_S=$as_ln_s
  4576. if test "$LN_S" = "ln -s"; then
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4578. $as_echo "yes" >&6; }
  4579. else
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4581. $as_echo "no, using $LN_S" >&6; }
  4582. fi
  4583. # find the maximum length of command line arguments
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4585. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4586. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. i=0
  4590. teststring="ABCD"
  4591. case $build_os in
  4592. msdosdjgpp*)
  4593. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4594. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4595. # during glob expansion). Even if it were fixed, the result of this
  4596. # check would be larger than it should be.
  4597. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4598. ;;
  4599. gnu*)
  4600. # Under GNU Hurd, this test is not required because there is
  4601. # no limit to the length of command line arguments.
  4602. # Libtool will interpret -1 as no limit whatsoever
  4603. lt_cv_sys_max_cmd_len=-1;
  4604. ;;
  4605. cygwin* | mingw* | cegcc*)
  4606. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4607. # about 5 minutes as the teststring grows exponentially.
  4608. # Worse, since 9x/ME are not pre-emptively multitasking,
  4609. # you end up with a "frozen" computer, even though with patience
  4610. # the test eventually succeeds (with a max line length of 256k).
  4611. # Instead, let's just punt: use the minimum linelength reported by
  4612. # all of the supported platforms: 8192 (on NT/2K/XP).
  4613. lt_cv_sys_max_cmd_len=8192;
  4614. ;;
  4615. amigaos*)
  4616. # On AmigaOS with pdksh, this test takes hours, literally.
  4617. # So we just punt and use a minimum line length of 8192.
  4618. lt_cv_sys_max_cmd_len=8192;
  4619. ;;
  4620. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4621. # This has been around since 386BSD, at least. Likely further.
  4622. if test -x /sbin/sysctl; then
  4623. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4624. elif test -x /usr/sbin/sysctl; then
  4625. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4626. else
  4627. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4628. fi
  4629. # And add a safety zone
  4630. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4631. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4632. ;;
  4633. interix*)
  4634. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4635. lt_cv_sys_max_cmd_len=196608
  4636. ;;
  4637. osf*)
  4638. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4639. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4640. # nice to cause kernel panics so lets avoid the loop below.
  4641. # First set a reasonable default.
  4642. lt_cv_sys_max_cmd_len=16384
  4643. #
  4644. if test -x /sbin/sysconfig; then
  4645. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4646. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4647. esac
  4648. fi
  4649. ;;
  4650. sco3.2v5*)
  4651. lt_cv_sys_max_cmd_len=102400
  4652. ;;
  4653. sysv5* | sco5v6* | sysv4.2uw2*)
  4654. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4655. if test -n "$kargmax"; then
  4656. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4657. else
  4658. lt_cv_sys_max_cmd_len=32768
  4659. fi
  4660. ;;
  4661. *)
  4662. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4663. if test -n "$lt_cv_sys_max_cmd_len"; then
  4664. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4665. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4666. else
  4667. # Make teststring a little bigger before we do anything with it.
  4668. # a 1K string should be a reasonable start.
  4669. for i in 1 2 3 4 5 6 7 8 ; do
  4670. teststring=$teststring$teststring
  4671. done
  4672. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4673. # If test is not a shell built-in, we'll probably end up computing a
  4674. # maximum length that is only half of the actual maximum length, but
  4675. # we can't tell.
  4676. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4677. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4678. test $i != 17 # 1/2 MB should be enough
  4679. do
  4680. i=`expr $i + 1`
  4681. teststring=$teststring$teststring
  4682. done
  4683. # Only check the string length outside the loop.
  4684. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4685. teststring=
  4686. # Add a significant safety factor because C++ compilers can tack on
  4687. # massive amounts of additional arguments before passing them to the
  4688. # linker. It appears as though 1/2 is a usable value.
  4689. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4690. fi
  4691. ;;
  4692. esac
  4693. fi
  4694. if test -n $lt_cv_sys_max_cmd_len ; then
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4696. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4697. else
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4699. $as_echo "none" >&6; }
  4700. fi
  4701. max_cmd_len=$lt_cv_sys_max_cmd_len
  4702. : ${CP="cp -f"}
  4703. : ${MV="mv -f"}
  4704. : ${RM="rm -f"}
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4706. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4707. # Try some XSI features
  4708. xsi_shell=no
  4709. ( _lt_dummy="a/b/c"
  4710. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4711. = c,a/b,, \
  4712. && eval 'test $(( 1 + 1 )) -eq 2 \
  4713. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4714. && xsi_shell=yes
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4716. $as_echo "$xsi_shell" >&6; }
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4718. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4719. lt_shell_append=no
  4720. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4721. >/dev/null 2>&1 \
  4722. && lt_shell_append=yes
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4724. $as_echo "$lt_shell_append" >&6; }
  4725. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4726. lt_unset=unset
  4727. else
  4728. lt_unset=false
  4729. fi
  4730. # test EBCDIC or ASCII
  4731. case `echo X|tr X '\101'` in
  4732. A) # ASCII based system
  4733. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4734. lt_SP2NL='tr \040 \012'
  4735. lt_NL2SP='tr \015\012 \040\040'
  4736. ;;
  4737. *) # EBCDIC based system
  4738. lt_SP2NL='tr \100 \n'
  4739. lt_NL2SP='tr \r\n \100\100'
  4740. ;;
  4741. esac
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4743. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4744. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. lt_cv_ld_reload_flag='-r'
  4748. fi
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4750. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4751. reload_flag=$lt_cv_ld_reload_flag
  4752. case $reload_flag in
  4753. "" | " "*) ;;
  4754. *) reload_flag=" $reload_flag" ;;
  4755. esac
  4756. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4757. case $host_os in
  4758. darwin*)
  4759. if test "$GCC" = yes; then
  4760. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4761. else
  4762. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4763. fi
  4764. ;;
  4765. esac
  4766. if test -n "$ac_tool_prefix"; then
  4767. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4768. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4770. $as_echo_n "checking for $ac_word... " >&6; }
  4771. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. if test -n "$OBJDUMP"; then
  4775. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4776. else
  4777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4778. for as_dir in $PATH
  4779. do
  4780. IFS=$as_save_IFS
  4781. test -z "$as_dir" && as_dir=.
  4782. for ac_exec_ext in '' $ac_executable_extensions; do
  4783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4784. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4786. break 2
  4787. fi
  4788. done
  4789. done
  4790. IFS=$as_save_IFS
  4791. fi
  4792. fi
  4793. OBJDUMP=$ac_cv_prog_OBJDUMP
  4794. if test -n "$OBJDUMP"; then
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4796. $as_echo "$OBJDUMP" >&6; }
  4797. else
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4799. $as_echo "no" >&6; }
  4800. fi
  4801. fi
  4802. if test -z "$ac_cv_prog_OBJDUMP"; then
  4803. ac_ct_OBJDUMP=$OBJDUMP
  4804. # Extract the first word of "objdump", so it can be a program name with args.
  4805. set dummy objdump; ac_word=$2
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$ac_ct_OBJDUMP"; then
  4812. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4821. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4831. if test -n "$ac_ct_OBJDUMP"; then
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4833. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4834. else
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. if test "x$ac_ct_OBJDUMP" = x; then
  4839. OBJDUMP="false"
  4840. else
  4841. case $cross_compiling:$ac_tool_warned in
  4842. yes:)
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4845. ac_tool_warned=yes ;;
  4846. esac
  4847. OBJDUMP=$ac_ct_OBJDUMP
  4848. fi
  4849. else
  4850. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4851. fi
  4852. test -z "$OBJDUMP" && OBJDUMP=objdump
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4854. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4855. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4859. lt_cv_file_magic_test_file=
  4860. lt_cv_deplibs_check_method='unknown'
  4861. # Need to set the preceding variable on all platforms that support
  4862. # interlibrary dependencies.
  4863. # 'none' -- dependencies not supported.
  4864. # `unknown' -- same as none, but documents that we really don't know.
  4865. # 'pass_all' -- all dependencies passed with no checks.
  4866. # 'test_compile' -- check by making test program.
  4867. # 'file_magic [[regex]]' -- check by looking for files in library path
  4868. # which responds to the $file_magic_cmd with a given extended regex.
  4869. # If you have `file' or equivalent on your system and you're not sure
  4870. # whether `pass_all' will *always* work, you probably want this one.
  4871. case $host_os in
  4872. aix[4-9]*)
  4873. lt_cv_deplibs_check_method=pass_all
  4874. ;;
  4875. beos*)
  4876. lt_cv_deplibs_check_method=pass_all
  4877. ;;
  4878. bsdi[45]*)
  4879. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4880. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4881. lt_cv_file_magic_test_file=/shlib/libc.so
  4882. ;;
  4883. cygwin*)
  4884. # func_win32_libid is a shell function defined in ltmain.sh
  4885. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4886. lt_cv_file_magic_cmd='func_win32_libid'
  4887. ;;
  4888. mingw* | pw32*)
  4889. # Base MSYS/MinGW do not provide the 'file' command needed by
  4890. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4891. # unless we find 'file', for example because we are cross-compiling.
  4892. if ( file / ) >/dev/null 2>&1; then
  4893. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4894. lt_cv_file_magic_cmd='func_win32_libid'
  4895. else
  4896. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4897. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4898. fi
  4899. ;;
  4900. cegcc)
  4901. # use the weaker test based on 'objdump'. See mingw*.
  4902. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4903. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4904. ;;
  4905. darwin* | rhapsody*)
  4906. lt_cv_deplibs_check_method=pass_all
  4907. ;;
  4908. freebsd* | dragonfly*)
  4909. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4910. case $host_cpu in
  4911. i*86 )
  4912. # Not sure whether the presence of OpenBSD here was a mistake.
  4913. # Let's accept both of them until this is cleared up.
  4914. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4915. lt_cv_file_magic_cmd=/usr/bin/file
  4916. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4917. ;;
  4918. esac
  4919. else
  4920. lt_cv_deplibs_check_method=pass_all
  4921. fi
  4922. ;;
  4923. gnu*)
  4924. lt_cv_deplibs_check_method=pass_all
  4925. ;;
  4926. hpux10.20* | hpux11*)
  4927. lt_cv_file_magic_cmd=/usr/bin/file
  4928. case $host_cpu in
  4929. ia64*)
  4930. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4931. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4932. ;;
  4933. hppa*64*)
  4934. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4935. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4936. ;;
  4937. *)
  4938. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4939. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4940. ;;
  4941. esac
  4942. ;;
  4943. interix[3-9]*)
  4944. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4945. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4946. ;;
  4947. irix5* | irix6* | nonstopux*)
  4948. case $LD in
  4949. *-32|*"-32 ") libmagic=32-bit;;
  4950. *-n32|*"-n32 ") libmagic=N32;;
  4951. *-64|*"-64 ") libmagic=64-bit;;
  4952. *) libmagic=never-match;;
  4953. esac
  4954. lt_cv_deplibs_check_method=pass_all
  4955. ;;
  4956. # This must be Linux ELF.
  4957. linux* | k*bsd*-gnu)
  4958. lt_cv_deplibs_check_method=pass_all
  4959. ;;
  4960. netbsd*)
  4961. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4962. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4963. else
  4964. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4965. fi
  4966. ;;
  4967. newos6*)
  4968. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4969. lt_cv_file_magic_cmd=/usr/bin/file
  4970. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4971. ;;
  4972. *nto* | *qnx*)
  4973. lt_cv_deplibs_check_method=pass_all
  4974. ;;
  4975. openbsd*)
  4976. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4977. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4978. else
  4979. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4980. fi
  4981. ;;
  4982. osf3* | osf4* | osf5*)
  4983. lt_cv_deplibs_check_method=pass_all
  4984. ;;
  4985. rdos*)
  4986. lt_cv_deplibs_check_method=pass_all
  4987. ;;
  4988. solaris*)
  4989. lt_cv_deplibs_check_method=pass_all
  4990. ;;
  4991. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4992. lt_cv_deplibs_check_method=pass_all
  4993. ;;
  4994. sysv4 | sysv4.3*)
  4995. case $host_vendor in
  4996. motorola)
  4997. 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]'
  4998. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4999. ;;
  5000. ncr)
  5001. lt_cv_deplibs_check_method=pass_all
  5002. ;;
  5003. sequent)
  5004. lt_cv_file_magic_cmd='/bin/file'
  5005. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5006. ;;
  5007. sni)
  5008. lt_cv_file_magic_cmd='/bin/file'
  5009. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5010. lt_cv_file_magic_test_file=/lib/libc.so
  5011. ;;
  5012. siemens)
  5013. lt_cv_deplibs_check_method=pass_all
  5014. ;;
  5015. pc)
  5016. lt_cv_deplibs_check_method=pass_all
  5017. ;;
  5018. esac
  5019. ;;
  5020. tpf*)
  5021. lt_cv_deplibs_check_method=pass_all
  5022. ;;
  5023. esac
  5024. fi
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5026. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5027. file_magic_cmd=$lt_cv_file_magic_cmd
  5028. deplibs_check_method=$lt_cv_deplibs_check_method
  5029. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5030. if test -n "$ac_tool_prefix"; then
  5031. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5032. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5034. $as_echo_n "checking for $ac_word... " >&6; }
  5035. if test "${ac_cv_prog_AR+set}" = set; then :
  5036. $as_echo_n "(cached) " >&6
  5037. else
  5038. if test -n "$AR"; then
  5039. ac_cv_prog_AR="$AR" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. test -z "$as_dir" && as_dir=.
  5046. for ac_exec_ext in '' $ac_executable_extensions; do
  5047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5048. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5050. break 2
  5051. fi
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. fi
  5056. fi
  5057. AR=$ac_cv_prog_AR
  5058. if test -n "$AR"; then
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5060. $as_echo "$AR" >&6; }
  5061. else
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5063. $as_echo "no" >&6; }
  5064. fi
  5065. fi
  5066. if test -z "$ac_cv_prog_AR"; then
  5067. ac_ct_AR=$AR
  5068. # Extract the first word of "ar", so it can be a program name with args.
  5069. set dummy ar; ac_word=$2
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5071. $as_echo_n "checking for $ac_word... " >&6; }
  5072. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. if test -n "$ac_ct_AR"; then
  5076. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. test -z "$as_dir" && as_dir=.
  5083. for ac_exec_ext in '' $ac_executable_extensions; do
  5084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5085. ac_cv_prog_ac_ct_AR="ar"
  5086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5087. break 2
  5088. fi
  5089. done
  5090. done
  5091. IFS=$as_save_IFS
  5092. fi
  5093. fi
  5094. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5095. if test -n "$ac_ct_AR"; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5097. $as_echo "$ac_ct_AR" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5100. $as_echo "no" >&6; }
  5101. fi
  5102. if test "x$ac_ct_AR" = x; then
  5103. AR="false"
  5104. else
  5105. case $cross_compiling:$ac_tool_warned in
  5106. yes:)
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5109. ac_tool_warned=yes ;;
  5110. esac
  5111. AR=$ac_ct_AR
  5112. fi
  5113. else
  5114. AR="$ac_cv_prog_AR"
  5115. fi
  5116. test -z "$AR" && AR=ar
  5117. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5118. if test -n "$ac_tool_prefix"; then
  5119. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5120. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5122. $as_echo_n "checking for $ac_word... " >&6; }
  5123. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. if test -n "$STRIP"; then
  5127. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5128. else
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5136. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. fi
  5144. fi
  5145. STRIP=$ac_cv_prog_STRIP
  5146. if test -n "$STRIP"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5148. $as_echo "$STRIP" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. fi
  5154. if test -z "$ac_cv_prog_STRIP"; then
  5155. ac_ct_STRIP=$STRIP
  5156. # Extract the first word of "strip", so it can be a program name with args.
  5157. set dummy strip; ac_word=$2
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5159. $as_echo_n "checking for $ac_word... " >&6; }
  5160. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -n "$ac_ct_STRIP"; then
  5164. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5165. else
  5166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5167. for as_dir in $PATH
  5168. do
  5169. IFS=$as_save_IFS
  5170. test -z "$as_dir" && as_dir=.
  5171. for ac_exec_ext in '' $ac_executable_extensions; do
  5172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5173. ac_cv_prog_ac_ct_STRIP="strip"
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5175. break 2
  5176. fi
  5177. done
  5178. done
  5179. IFS=$as_save_IFS
  5180. fi
  5181. fi
  5182. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5183. if test -n "$ac_ct_STRIP"; then
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5185. $as_echo "$ac_ct_STRIP" >&6; }
  5186. else
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5188. $as_echo "no" >&6; }
  5189. fi
  5190. if test "x$ac_ct_STRIP" = x; then
  5191. STRIP=":"
  5192. else
  5193. case $cross_compiling:$ac_tool_warned in
  5194. yes:)
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5197. ac_tool_warned=yes ;;
  5198. esac
  5199. STRIP=$ac_ct_STRIP
  5200. fi
  5201. else
  5202. STRIP="$ac_cv_prog_STRIP"
  5203. fi
  5204. test -z "$STRIP" && STRIP=:
  5205. if test -n "$ac_tool_prefix"; then
  5206. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5207. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5209. $as_echo_n "checking for $ac_word... " >&6; }
  5210. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5211. $as_echo_n "(cached) " >&6
  5212. else
  5213. if test -n "$RANLIB"; then
  5214. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5215. else
  5216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5217. for as_dir in $PATH
  5218. do
  5219. IFS=$as_save_IFS
  5220. test -z "$as_dir" && as_dir=.
  5221. for ac_exec_ext in '' $ac_executable_extensions; do
  5222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5223. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5225. break 2
  5226. fi
  5227. done
  5228. done
  5229. IFS=$as_save_IFS
  5230. fi
  5231. fi
  5232. RANLIB=$ac_cv_prog_RANLIB
  5233. if test -n "$RANLIB"; then
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5235. $as_echo "$RANLIB" >&6; }
  5236. else
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5238. $as_echo "no" >&6; }
  5239. fi
  5240. fi
  5241. if test -z "$ac_cv_prog_RANLIB"; then
  5242. ac_ct_RANLIB=$RANLIB
  5243. # Extract the first word of "ranlib", so it can be a program name with args.
  5244. set dummy ranlib; ac_word=$2
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5246. $as_echo_n "checking for $ac_word... " >&6; }
  5247. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. if test -n "$ac_ct_RANLIB"; then
  5251. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5252. else
  5253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5254. for as_dir in $PATH
  5255. do
  5256. IFS=$as_save_IFS
  5257. test -z "$as_dir" && as_dir=.
  5258. for ac_exec_ext in '' $ac_executable_extensions; do
  5259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5260. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5262. break 2
  5263. fi
  5264. done
  5265. done
  5266. IFS=$as_save_IFS
  5267. fi
  5268. fi
  5269. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5270. if test -n "$ac_ct_RANLIB"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5272. $as_echo "$ac_ct_RANLIB" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277. if test "x$ac_ct_RANLIB" = x; then
  5278. RANLIB=":"
  5279. else
  5280. case $cross_compiling:$ac_tool_warned in
  5281. yes:)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5284. ac_tool_warned=yes ;;
  5285. esac
  5286. RANLIB=$ac_ct_RANLIB
  5287. fi
  5288. else
  5289. RANLIB="$ac_cv_prog_RANLIB"
  5290. fi
  5291. test -z "$RANLIB" && RANLIB=:
  5292. # Determine commands to create old-style static archives.
  5293. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5294. old_postinstall_cmds='chmod 644 $oldlib'
  5295. old_postuninstall_cmds=
  5296. if test -n "$RANLIB"; then
  5297. case $host_os in
  5298. openbsd*)
  5299. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5300. ;;
  5301. *)
  5302. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5303. ;;
  5304. esac
  5305. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5306. fi
  5307. # If no C compiler was specified, use CC.
  5308. LTCC=${LTCC-"$CC"}
  5309. # If no C compiler flags were specified, use CFLAGS.
  5310. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5311. # Allow CC to be a program name with arguments.
  5312. compiler=$CC
  5313. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5315. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5316. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. # These are sane defaults that work on at least a few old systems.
  5320. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5321. # Character class describing NM global symbol codes.
  5322. symcode='[BCDEGRST]'
  5323. # Regexp to match symbols that can be accessed directly from C.
  5324. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5325. # Define system-specific variables.
  5326. case $host_os in
  5327. aix*)
  5328. symcode='[BCDT]'
  5329. ;;
  5330. cygwin* | mingw* | pw32* | cegcc*)
  5331. symcode='[ABCDGISTW]'
  5332. ;;
  5333. hpux*)
  5334. if test "$host_cpu" = ia64; then
  5335. symcode='[ABCDEGRST]'
  5336. fi
  5337. ;;
  5338. irix* | nonstopux*)
  5339. symcode='[BCDEGRST]'
  5340. ;;
  5341. osf*)
  5342. symcode='[BCDEGQRST]'
  5343. ;;
  5344. solaris*)
  5345. symcode='[BDRT]'
  5346. ;;
  5347. sco3.2v5*)
  5348. symcode='[DT]'
  5349. ;;
  5350. sysv4.2uw2*)
  5351. symcode='[DT]'
  5352. ;;
  5353. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5354. symcode='[ABDT]'
  5355. ;;
  5356. sysv4)
  5357. symcode='[DFNSTU]'
  5358. ;;
  5359. esac
  5360. # If we're using GNU nm, then use its standard symbol codes.
  5361. case `$NM -V 2>&1` in
  5362. *GNU* | *'with BFD'*)
  5363. symcode='[ABCDGIRSTW]' ;;
  5364. esac
  5365. # Transform an extracted symbol line into a proper C declaration.
  5366. # Some systems (esp. on ia64) link data and code symbols differently,
  5367. # so use this general approach.
  5368. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5369. # Transform an extracted symbol line into symbol name and symbol address
  5370. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5371. 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'"
  5372. # Handle CRLF in mingw tool chain
  5373. opt_cr=
  5374. case $build_os in
  5375. mingw*)
  5376. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5377. ;;
  5378. esac
  5379. # Try without a prefix underscore, then with it.
  5380. for ac_symprfx in "" "_"; do
  5381. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5382. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5383. # Write the raw and C identifiers.
  5384. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5385. # Fake it for dumpbin and say T for any non-static function
  5386. # and D for any global variable.
  5387. # Also find C++ and __fastcall symbols from MSVC++,
  5388. # which start with @ or ?.
  5389. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5390. " {last_section=section; section=\$ 3};"\
  5391. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5392. " \$ 0!~/External *\|/{next};"\
  5393. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5394. " {if(hide[section]) next};"\
  5395. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5396. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5397. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5398. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5399. " ' prfx=^$ac_symprfx"
  5400. else
  5401. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5402. fi
  5403. # Check to see that the pipe works correctly.
  5404. pipe_works=no
  5405. rm -f conftest*
  5406. cat > conftest.$ac_ext <<_LT_EOF
  5407. #ifdef __cplusplus
  5408. extern "C" {
  5409. #endif
  5410. char nm_test_var;
  5411. void nm_test_func(void);
  5412. void nm_test_func(void){}
  5413. #ifdef __cplusplus
  5414. }
  5415. #endif
  5416. int main(){nm_test_var='a';nm_test_func();return(0);}
  5417. _LT_EOF
  5418. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5419. (eval $ac_compile) 2>&5
  5420. ac_status=$?
  5421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5422. test $ac_status = 0; }; then
  5423. # Now try to grab the symbols.
  5424. nlist=conftest.nm
  5425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5426. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5427. ac_status=$?
  5428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5429. test $ac_status = 0; } && test -s "$nlist"; then
  5430. # Try sorting and uniquifying the output.
  5431. if sort "$nlist" | uniq > "$nlist"T; then
  5432. mv -f "$nlist"T "$nlist"
  5433. else
  5434. rm -f "$nlist"T
  5435. fi
  5436. # Make sure that we snagged all the symbols we need.
  5437. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5438. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5439. cat <<_LT_EOF > conftest.$ac_ext
  5440. #ifdef __cplusplus
  5441. extern "C" {
  5442. #endif
  5443. _LT_EOF
  5444. # Now generate the symbol file.
  5445. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5446. cat <<_LT_EOF >> conftest.$ac_ext
  5447. /* The mapping between symbol names and symbols. */
  5448. const struct {
  5449. const char *name;
  5450. void *address;
  5451. }
  5452. lt__PROGRAM__LTX_preloaded_symbols[] =
  5453. {
  5454. { "@PROGRAM@", (void *) 0 },
  5455. _LT_EOF
  5456. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5457. cat <<\_LT_EOF >> conftest.$ac_ext
  5458. {0, (void *) 0}
  5459. };
  5460. /* This works around a problem in FreeBSD linker */
  5461. #ifdef FREEBSD_WORKAROUND
  5462. static const void *lt_preloaded_setup() {
  5463. return lt__PROGRAM__LTX_preloaded_symbols;
  5464. }
  5465. #endif
  5466. #ifdef __cplusplus
  5467. }
  5468. #endif
  5469. _LT_EOF
  5470. # Now try linking the two files.
  5471. mv conftest.$ac_objext conftstm.$ac_objext
  5472. lt_save_LIBS="$LIBS"
  5473. lt_save_CFLAGS="$CFLAGS"
  5474. LIBS="conftstm.$ac_objext"
  5475. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5477. (eval $ac_link) 2>&5
  5478. ac_status=$?
  5479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5480. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5481. pipe_works=yes
  5482. fi
  5483. LIBS="$lt_save_LIBS"
  5484. CFLAGS="$lt_save_CFLAGS"
  5485. else
  5486. echo "cannot find nm_test_func in $nlist" >&5
  5487. fi
  5488. else
  5489. echo "cannot find nm_test_var in $nlist" >&5
  5490. fi
  5491. else
  5492. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5493. fi
  5494. else
  5495. echo "$progname: failed program was:" >&5
  5496. cat conftest.$ac_ext >&5
  5497. fi
  5498. rm -rf conftest* conftst*
  5499. # Do not use the global_symbol_pipe unless it works.
  5500. if test "$pipe_works" = yes; then
  5501. break
  5502. else
  5503. lt_cv_sys_global_symbol_pipe=
  5504. fi
  5505. done
  5506. fi
  5507. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5508. lt_cv_sys_global_symbol_to_cdecl=
  5509. fi
  5510. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5512. $as_echo "failed" >&6; }
  5513. else
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5515. $as_echo "ok" >&6; }
  5516. fi
  5517. # Check whether --enable-libtool-lock was given.
  5518. if test "${enable_libtool_lock+set}" = set; then :
  5519. enableval=$enable_libtool_lock;
  5520. fi
  5521. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5522. # Some flags need to be propagated to the compiler or linker for good
  5523. # libtool support.
  5524. case $host in
  5525. ia64-*-hpux*)
  5526. # Find out which ABI we are using.
  5527. echo 'int i;' > conftest.$ac_ext
  5528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5529. (eval $ac_compile) 2>&5
  5530. ac_status=$?
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5532. test $ac_status = 0; }; then
  5533. case `/usr/bin/file conftest.$ac_objext` in
  5534. *ELF-32*)
  5535. HPUX_IA64_MODE="32"
  5536. ;;
  5537. *ELF-64*)
  5538. HPUX_IA64_MODE="64"
  5539. ;;
  5540. esac
  5541. fi
  5542. rm -rf conftest*
  5543. ;;
  5544. *-*-irix6*)
  5545. # Find out which ABI we are using.
  5546. echo '#line 6265 "configure"' > conftest.$ac_ext
  5547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5548. (eval $ac_compile) 2>&5
  5549. ac_status=$?
  5550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5551. test $ac_status = 0; }; then
  5552. if test "$lt_cv_prog_gnu_ld" = yes; then
  5553. case `/usr/bin/file conftest.$ac_objext` in
  5554. *32-bit*)
  5555. LD="${LD-ld} -melf32bsmip"
  5556. ;;
  5557. *N32*)
  5558. LD="${LD-ld} -melf32bmipn32"
  5559. ;;
  5560. *64-bit*)
  5561. LD="${LD-ld} -melf64bmip"
  5562. ;;
  5563. esac
  5564. else
  5565. case `/usr/bin/file conftest.$ac_objext` in
  5566. *32-bit*)
  5567. LD="${LD-ld} -32"
  5568. ;;
  5569. *N32*)
  5570. LD="${LD-ld} -n32"
  5571. ;;
  5572. *64-bit*)
  5573. LD="${LD-ld} -64"
  5574. ;;
  5575. esac
  5576. fi
  5577. fi
  5578. rm -rf conftest*
  5579. ;;
  5580. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5581. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5582. # Find out which ABI we are using.
  5583. echo 'int i;' > conftest.$ac_ext
  5584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5585. (eval $ac_compile) 2>&5
  5586. ac_status=$?
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5588. test $ac_status = 0; }; then
  5589. case `/usr/bin/file conftest.o` in
  5590. *32-bit*)
  5591. case $host in
  5592. x86_64-*kfreebsd*-gnu)
  5593. LD="${LD-ld} -m elf_i386_fbsd"
  5594. ;;
  5595. x86_64-*linux*)
  5596. LD="${LD-ld} -m elf_i386"
  5597. ;;
  5598. ppc64-*linux*|powerpc64-*linux*)
  5599. LD="${LD-ld} -m elf32ppclinux"
  5600. ;;
  5601. s390x-*linux*)
  5602. LD="${LD-ld} -m elf_s390"
  5603. ;;
  5604. sparc64-*linux*)
  5605. LD="${LD-ld} -m elf32_sparc"
  5606. ;;
  5607. esac
  5608. ;;
  5609. *64-bit*)
  5610. case $host in
  5611. x86_64-*kfreebsd*-gnu)
  5612. LD="${LD-ld} -m elf_x86_64_fbsd"
  5613. ;;
  5614. x86_64-*linux*)
  5615. LD="${LD-ld} -m elf_x86_64"
  5616. ;;
  5617. ppc*-*linux*|powerpc*-*linux*)
  5618. LD="${LD-ld} -m elf64ppc"
  5619. ;;
  5620. s390*-*linux*|s390*-*tpf*)
  5621. LD="${LD-ld} -m elf64_s390"
  5622. ;;
  5623. sparc*-*linux*)
  5624. LD="${LD-ld} -m elf64_sparc"
  5625. ;;
  5626. esac
  5627. ;;
  5628. esac
  5629. fi
  5630. rm -rf conftest*
  5631. ;;
  5632. *-*-sco3.2v5*)
  5633. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5634. SAVE_CFLAGS="$CFLAGS"
  5635. CFLAGS="$CFLAGS -belf"
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5637. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5638. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. ac_ext=c
  5642. ac_cpp='$CPP $CPPFLAGS'
  5643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. int
  5649. main ()
  5650. {
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. if ac_fn_c_try_link "$LINENO"; then :
  5656. lt_cv_cc_needs_belf=yes
  5657. else
  5658. lt_cv_cc_needs_belf=no
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext \
  5661. conftest$ac_exeext conftest.$ac_ext
  5662. ac_ext=c
  5663. ac_cpp='$CPP $CPPFLAGS'
  5664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5667. fi
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5669. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5670. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5671. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5672. CFLAGS="$SAVE_CFLAGS"
  5673. fi
  5674. ;;
  5675. sparc*-*solaris*)
  5676. # Find out which ABI we are using.
  5677. echo 'int i;' > conftest.$ac_ext
  5678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5679. (eval $ac_compile) 2>&5
  5680. ac_status=$?
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5682. test $ac_status = 0; }; then
  5683. case `/usr/bin/file conftest.o` in
  5684. *64-bit*)
  5685. case $lt_cv_prog_gnu_ld in
  5686. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5687. *)
  5688. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5689. LD="${LD-ld} -64"
  5690. fi
  5691. ;;
  5692. esac
  5693. ;;
  5694. esac
  5695. fi
  5696. rm -rf conftest*
  5697. ;;
  5698. esac
  5699. need_locks="$enable_libtool_lock"
  5700. case $host_os in
  5701. rhapsody* | darwin*)
  5702. if test -n "$ac_tool_prefix"; then
  5703. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5704. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$DSYMUTIL"; then
  5711. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5720. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. IFS=$as_save_IFS
  5727. fi
  5728. fi
  5729. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5730. if test -n "$DSYMUTIL"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5732. $as_echo "$DSYMUTIL" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. fi
  5738. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5739. ac_ct_DSYMUTIL=$DSYMUTIL
  5740. # Extract the first word of "dsymutil", so it can be a program name with args.
  5741. set dummy dsymutil; ac_word=$2
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5743. $as_echo_n "checking for $ac_word... " >&6; }
  5744. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if test -n "$ac_ct_DSYMUTIL"; then
  5748. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5757. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. fi
  5765. fi
  5766. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5767. if test -n "$ac_ct_DSYMUTIL"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5769. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5770. else
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773. fi
  5774. if test "x$ac_ct_DSYMUTIL" = x; then
  5775. DSYMUTIL=":"
  5776. else
  5777. case $cross_compiling:$ac_tool_warned in
  5778. yes:)
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5781. ac_tool_warned=yes ;;
  5782. esac
  5783. DSYMUTIL=$ac_ct_DSYMUTIL
  5784. fi
  5785. else
  5786. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5787. fi
  5788. if test -n "$ac_tool_prefix"; then
  5789. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5790. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5792. $as_echo_n "checking for $ac_word... " >&6; }
  5793. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5794. $as_echo_n "(cached) " >&6
  5795. else
  5796. if test -n "$NMEDIT"; then
  5797. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5798. else
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5806. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. fi
  5814. fi
  5815. NMEDIT=$ac_cv_prog_NMEDIT
  5816. if test -n "$NMEDIT"; then
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5818. $as_echo "$NMEDIT" >&6; }
  5819. else
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. fi
  5824. if test -z "$ac_cv_prog_NMEDIT"; then
  5825. ac_ct_NMEDIT=$NMEDIT
  5826. # Extract the first word of "nmedit", so it can be a program name with args.
  5827. set dummy nmedit; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$ac_ct_NMEDIT"; then
  5834. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5853. if test -n "$ac_ct_NMEDIT"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5855. $as_echo "$ac_ct_NMEDIT" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. if test "x$ac_ct_NMEDIT" = x; then
  5861. NMEDIT=":"
  5862. else
  5863. case $cross_compiling:$ac_tool_warned in
  5864. yes:)
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5867. ac_tool_warned=yes ;;
  5868. esac
  5869. NMEDIT=$ac_ct_NMEDIT
  5870. fi
  5871. else
  5872. NMEDIT="$ac_cv_prog_NMEDIT"
  5873. fi
  5874. if test -n "$ac_tool_prefix"; then
  5875. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5876. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$LIPO"; then
  5883. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5892. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. LIPO=$ac_cv_prog_LIPO
  5902. if test -n "$LIPO"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5904. $as_echo "$LIPO" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. fi
  5910. if test -z "$ac_cv_prog_LIPO"; then
  5911. ac_ct_LIPO=$LIPO
  5912. # Extract the first word of "lipo", so it can be a program name with args.
  5913. set dummy lipo; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$ac_ct_LIPO"; then
  5920. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5929. ac_cv_prog_ac_ct_LIPO="lipo"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5939. if test -n "$ac_ct_LIPO"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5941. $as_echo "$ac_ct_LIPO" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. if test "x$ac_ct_LIPO" = x; then
  5947. LIPO=":"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. LIPO=$ac_ct_LIPO
  5956. fi
  5957. else
  5958. LIPO="$ac_cv_prog_LIPO"
  5959. fi
  5960. if test -n "$ac_tool_prefix"; then
  5961. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5962. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5964. $as_echo_n "checking for $ac_word... " >&6; }
  5965. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. if test -n "$OTOOL"; then
  5969. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5970. else
  5971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5972. for as_dir in $PATH
  5973. do
  5974. IFS=$as_save_IFS
  5975. test -z "$as_dir" && as_dir=.
  5976. for ac_exec_ext in '' $ac_executable_extensions; do
  5977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5978. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5980. break 2
  5981. fi
  5982. done
  5983. done
  5984. IFS=$as_save_IFS
  5985. fi
  5986. fi
  5987. OTOOL=$ac_cv_prog_OTOOL
  5988. if test -n "$OTOOL"; then
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5990. $as_echo "$OTOOL" >&6; }
  5991. else
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5993. $as_echo "no" >&6; }
  5994. fi
  5995. fi
  5996. if test -z "$ac_cv_prog_OTOOL"; then
  5997. ac_ct_OTOOL=$OTOOL
  5998. # Extract the first word of "otool", so it can be a program name with args.
  5999. set dummy otool; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$ac_ct_OTOOL"; then
  6006. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6015. ac_cv_prog_ac_ct_OTOOL="otool"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6025. if test -n "$ac_ct_OTOOL"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6027. $as_echo "$ac_ct_OTOOL" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. if test "x$ac_ct_OTOOL" = x; then
  6033. OTOOL=":"
  6034. else
  6035. case $cross_compiling:$ac_tool_warned in
  6036. yes:)
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6039. ac_tool_warned=yes ;;
  6040. esac
  6041. OTOOL=$ac_ct_OTOOL
  6042. fi
  6043. else
  6044. OTOOL="$ac_cv_prog_OTOOL"
  6045. fi
  6046. if test -n "$ac_tool_prefix"; then
  6047. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6048. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6050. $as_echo_n "checking for $ac_word... " >&6; }
  6051. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. if test -n "$OTOOL64"; then
  6055. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6056. else
  6057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6058. for as_dir in $PATH
  6059. do
  6060. IFS=$as_save_IFS
  6061. test -z "$as_dir" && as_dir=.
  6062. for ac_exec_ext in '' $ac_executable_extensions; do
  6063. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6064. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6066. break 2
  6067. fi
  6068. done
  6069. done
  6070. IFS=$as_save_IFS
  6071. fi
  6072. fi
  6073. OTOOL64=$ac_cv_prog_OTOOL64
  6074. if test -n "$OTOOL64"; then
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6076. $as_echo "$OTOOL64" >&6; }
  6077. else
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6079. $as_echo "no" >&6; }
  6080. fi
  6081. fi
  6082. if test -z "$ac_cv_prog_OTOOL64"; then
  6083. ac_ct_OTOOL64=$OTOOL64
  6084. # Extract the first word of "otool64", so it can be a program name with args.
  6085. set dummy otool64; ac_word=$2
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. $as_echo_n "checking for $ac_word... " >&6; }
  6088. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. if test -n "$ac_ct_OTOOL64"; then
  6092. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6101. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6111. if test -n "$ac_ct_OTOOL64"; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6113. $as_echo "$ac_ct_OTOOL64" >&6; }
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6116. $as_echo "no" >&6; }
  6117. fi
  6118. if test "x$ac_ct_OTOOL64" = x; then
  6119. OTOOL64=":"
  6120. else
  6121. case $cross_compiling:$ac_tool_warned in
  6122. yes:)
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6125. ac_tool_warned=yes ;;
  6126. esac
  6127. OTOOL64=$ac_ct_OTOOL64
  6128. fi
  6129. else
  6130. OTOOL64="$ac_cv_prog_OTOOL64"
  6131. fi
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6133. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6134. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. lt_cv_apple_cc_single_mod=no
  6138. if test -z "${LT_MULTI_MODULE}"; then
  6139. # By default we will add the -single_module flag. You can override
  6140. # by either setting the environment variable LT_MULTI_MODULE
  6141. # non-empty at configure time, or by adding -multi_module to the
  6142. # link flags.
  6143. rm -rf libconftest.dylib*
  6144. echo "int foo(void){return 1;}" > conftest.c
  6145. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6146. -dynamiclib -Wl,-single_module conftest.c" >&5
  6147. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6148. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6149. _lt_result=$?
  6150. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6151. lt_cv_apple_cc_single_mod=yes
  6152. else
  6153. cat conftest.err >&5
  6154. fi
  6155. rm -rf libconftest.dylib*
  6156. rm -f conftest.*
  6157. fi
  6158. fi
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6160. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6162. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6163. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. lt_cv_ld_exported_symbols_list=no
  6167. save_LDFLAGS=$LDFLAGS
  6168. echo "_main" > conftest.sym
  6169. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6171. /* end confdefs.h. */
  6172. int
  6173. main ()
  6174. {
  6175. ;
  6176. return 0;
  6177. }
  6178. _ACEOF
  6179. if ac_fn_c_try_link "$LINENO"; then :
  6180. lt_cv_ld_exported_symbols_list=yes
  6181. else
  6182. lt_cv_ld_exported_symbols_list=no
  6183. fi
  6184. rm -f core conftest.err conftest.$ac_objext \
  6185. conftest$ac_exeext conftest.$ac_ext
  6186. LDFLAGS="$save_LDFLAGS"
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6189. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6190. case $host_os in
  6191. rhapsody* | darwin1.[012])
  6192. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6193. darwin1.*)
  6194. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6195. darwin*) # darwin 5.x on
  6196. # if running on 10.5 or later, the deployment target defaults
  6197. # to the OS version, if on x86, and 10.4, the deployment
  6198. # target defaults to 10.4. Don't you love it?
  6199. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6200. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6201. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6202. 10.[012]*)
  6203. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6204. 10.*)
  6205. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6206. esac
  6207. ;;
  6208. esac
  6209. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6210. _lt_dar_single_mod='$single_module'
  6211. fi
  6212. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6213. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6214. else
  6215. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6216. fi
  6217. if test "$DSYMUTIL" != ":"; then
  6218. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6219. else
  6220. _lt_dsymutil=
  6221. fi
  6222. ;;
  6223. esac
  6224. ac_ext=c
  6225. ac_cpp='$CPP $CPPFLAGS'
  6226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6230. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6231. # On Suns, sometimes $CPP names a directory.
  6232. if test -n "$CPP" && test -d "$CPP"; then
  6233. CPP=
  6234. fi
  6235. if test -z "$CPP"; then
  6236. if test "${ac_cv_prog_CPP+set}" = set; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. # Double quotes because CPP needs to be expanded
  6240. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6241. do
  6242. ac_preproc_ok=false
  6243. for ac_c_preproc_warn_flag in '' yes
  6244. do
  6245. # Use a header file that comes with gcc, so configuring glibc
  6246. # with a fresh cross-compiler works.
  6247. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6248. # <limits.h> exists even on freestanding compilers.
  6249. # On the NeXT, cc -E runs the code through the compiler's parser,
  6250. # not just through cpp. "Syntax error" is here to catch this case.
  6251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6252. /* end confdefs.h. */
  6253. #ifdef __STDC__
  6254. # include <limits.h>
  6255. #else
  6256. # include <assert.h>
  6257. #endif
  6258. Syntax error
  6259. _ACEOF
  6260. if ac_fn_c_try_cpp "$LINENO"; then :
  6261. else
  6262. # Broken: fails on valid input.
  6263. continue
  6264. fi
  6265. rm -f conftest.err conftest.$ac_ext
  6266. # OK, works on sane cases. Now check whether nonexistent headers
  6267. # can be detected and how.
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. #include <ac_nonexistent.h>
  6271. _ACEOF
  6272. if ac_fn_c_try_cpp "$LINENO"; then :
  6273. # Broken: success on invalid input.
  6274. continue
  6275. else
  6276. # Passes both tests.
  6277. ac_preproc_ok=:
  6278. break
  6279. fi
  6280. rm -f conftest.err conftest.$ac_ext
  6281. done
  6282. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6283. rm -f conftest.err conftest.$ac_ext
  6284. if $ac_preproc_ok; then :
  6285. break
  6286. fi
  6287. done
  6288. ac_cv_prog_CPP=$CPP
  6289. fi
  6290. CPP=$ac_cv_prog_CPP
  6291. else
  6292. ac_cv_prog_CPP=$CPP
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6295. $as_echo "$CPP" >&6; }
  6296. ac_preproc_ok=false
  6297. for ac_c_preproc_warn_flag in '' yes
  6298. do
  6299. # Use a header file that comes with gcc, so configuring glibc
  6300. # with a fresh cross-compiler works.
  6301. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6302. # <limits.h> exists even on freestanding compilers.
  6303. # On the NeXT, cc -E runs the code through the compiler's parser,
  6304. # not just through cpp. "Syntax error" is here to catch this case.
  6305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6306. /* end confdefs.h. */
  6307. #ifdef __STDC__
  6308. # include <limits.h>
  6309. #else
  6310. # include <assert.h>
  6311. #endif
  6312. Syntax error
  6313. _ACEOF
  6314. if ac_fn_c_try_cpp "$LINENO"; then :
  6315. else
  6316. # Broken: fails on valid input.
  6317. continue
  6318. fi
  6319. rm -f conftest.err conftest.$ac_ext
  6320. # OK, works on sane cases. Now check whether nonexistent headers
  6321. # can be detected and how.
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. #include <ac_nonexistent.h>
  6325. _ACEOF
  6326. if ac_fn_c_try_cpp "$LINENO"; then :
  6327. # Broken: success on invalid input.
  6328. continue
  6329. else
  6330. # Passes both tests.
  6331. ac_preproc_ok=:
  6332. break
  6333. fi
  6334. rm -f conftest.err conftest.$ac_ext
  6335. done
  6336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6337. rm -f conftest.err conftest.$ac_ext
  6338. if $ac_preproc_ok; then :
  6339. else
  6340. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6341. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6342. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6343. See \`config.log' for more details." "$LINENO" 5; }
  6344. fi
  6345. ac_ext=c
  6346. ac_cpp='$CPP $CPPFLAGS'
  6347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6351. $as_echo_n "checking for ANSI C header files... " >&6; }
  6352. if test "${ac_cv_header_stdc+set}" = set; then :
  6353. $as_echo_n "(cached) " >&6
  6354. else
  6355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6356. /* end confdefs.h. */
  6357. #include <stdlib.h>
  6358. #include <stdarg.h>
  6359. #include <string.h>
  6360. #include <float.h>
  6361. int
  6362. main ()
  6363. {
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. if ac_fn_c_try_compile "$LINENO"; then :
  6369. ac_cv_header_stdc=yes
  6370. else
  6371. ac_cv_header_stdc=no
  6372. fi
  6373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6374. if test $ac_cv_header_stdc = yes; then
  6375. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end confdefs.h. */
  6378. #include <string.h>
  6379. _ACEOF
  6380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6381. $EGREP "memchr" >/dev/null 2>&1; then :
  6382. else
  6383. ac_cv_header_stdc=no
  6384. fi
  6385. rm -f conftest*
  6386. fi
  6387. if test $ac_cv_header_stdc = yes; then
  6388. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. #include <stdlib.h>
  6392. _ACEOF
  6393. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6394. $EGREP "free" >/dev/null 2>&1; then :
  6395. else
  6396. ac_cv_header_stdc=no
  6397. fi
  6398. rm -f conftest*
  6399. fi
  6400. if test $ac_cv_header_stdc = yes; then
  6401. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6402. if test "$cross_compiling" = yes; then :
  6403. :
  6404. else
  6405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6406. /* end confdefs.h. */
  6407. #include <ctype.h>
  6408. #include <stdlib.h>
  6409. #if ((' ' & 0x0FF) == 0x020)
  6410. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6411. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6412. #else
  6413. # define ISLOWER(c) \
  6414. (('a' <= (c) && (c) <= 'i') \
  6415. || ('j' <= (c) && (c) <= 'r') \
  6416. || ('s' <= (c) && (c) <= 'z'))
  6417. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6418. #endif
  6419. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6420. int
  6421. main ()
  6422. {
  6423. int i;
  6424. for (i = 0; i < 256; i++)
  6425. if (XOR (islower (i), ISLOWER (i))
  6426. || toupper (i) != TOUPPER (i))
  6427. return 2;
  6428. return 0;
  6429. }
  6430. _ACEOF
  6431. if ac_fn_c_try_run "$LINENO"; then :
  6432. else
  6433. ac_cv_header_stdc=no
  6434. fi
  6435. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6436. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6437. fi
  6438. fi
  6439. fi
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6441. $as_echo "$ac_cv_header_stdc" >&6; }
  6442. if test $ac_cv_header_stdc = yes; then
  6443. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6444. fi
  6445. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6446. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6447. inttypes.h stdint.h unistd.h
  6448. do :
  6449. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6450. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6451. "
  6452. eval as_val=\$$as_ac_Header
  6453. if test "x$as_val" = x""yes; then :
  6454. cat >>confdefs.h <<_ACEOF
  6455. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6456. _ACEOF
  6457. fi
  6458. done
  6459. for ac_header in dlfcn.h
  6460. do :
  6461. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6462. "
  6463. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6464. cat >>confdefs.h <<_ACEOF
  6465. #define HAVE_DLFCN_H 1
  6466. _ACEOF
  6467. fi
  6468. done
  6469. # Set options
  6470. enable_dlopen=no
  6471. enable_win32_dll=no
  6472. # Check whether --enable-shared was given.
  6473. if test "${enable_shared+set}" = set; then :
  6474. enableval=$enable_shared; p=${PACKAGE-default}
  6475. case $enableval in
  6476. yes) enable_shared=yes ;;
  6477. no) enable_shared=no ;;
  6478. *)
  6479. enable_shared=no
  6480. # Look at the argument we got. We use all the common list separators.
  6481. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6482. for pkg in $enableval; do
  6483. IFS="$lt_save_ifs"
  6484. if test "X$pkg" = "X$p"; then
  6485. enable_shared=yes
  6486. fi
  6487. done
  6488. IFS="$lt_save_ifs"
  6489. ;;
  6490. esac
  6491. else
  6492. enable_shared=yes
  6493. fi
  6494. # Check whether --enable-static was given.
  6495. if test "${enable_static+set}" = set; then :
  6496. enableval=$enable_static; p=${PACKAGE-default}
  6497. case $enableval in
  6498. yes) enable_static=yes ;;
  6499. no) enable_static=no ;;
  6500. *)
  6501. enable_static=no
  6502. # Look at the argument we got. We use all the common list separators.
  6503. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6504. for pkg in $enableval; do
  6505. IFS="$lt_save_ifs"
  6506. if test "X$pkg" = "X$p"; then
  6507. enable_static=yes
  6508. fi
  6509. done
  6510. IFS="$lt_save_ifs"
  6511. ;;
  6512. esac
  6513. else
  6514. enable_static=yes
  6515. fi
  6516. # Check whether --with-pic was given.
  6517. if test "${with_pic+set}" = set; then :
  6518. withval=$with_pic; pic_mode="$withval"
  6519. else
  6520. pic_mode=default
  6521. fi
  6522. test -z "$pic_mode" && pic_mode=default
  6523. # Check whether --enable-fast-install was given.
  6524. if test "${enable_fast_install+set}" = set; then :
  6525. enableval=$enable_fast_install; p=${PACKAGE-default}
  6526. case $enableval in
  6527. yes) enable_fast_install=yes ;;
  6528. no) enable_fast_install=no ;;
  6529. *)
  6530. enable_fast_install=no
  6531. # Look at the argument we got. We use all the common list separators.
  6532. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6533. for pkg in $enableval; do
  6534. IFS="$lt_save_ifs"
  6535. if test "X$pkg" = "X$p"; then
  6536. enable_fast_install=yes
  6537. fi
  6538. done
  6539. IFS="$lt_save_ifs"
  6540. ;;
  6541. esac
  6542. else
  6543. enable_fast_install=yes
  6544. fi
  6545. # This can be used to rebuild libtool when needed
  6546. LIBTOOL_DEPS="$ltmain"
  6547. # Always use our own libtool.
  6548. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6549. test -z "$LN_S" && LN_S="ln -s"
  6550. if test -n "${ZSH_VERSION+set}" ; then
  6551. setopt NO_GLOB_SUBST
  6552. fi
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6554. $as_echo_n "checking for objdir... " >&6; }
  6555. if test "${lt_cv_objdir+set}" = set; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. rm -f .libs 2>/dev/null
  6559. mkdir .libs 2>/dev/null
  6560. if test -d .libs; then
  6561. lt_cv_objdir=.libs
  6562. else
  6563. # MS-DOS does not allow filenames that begin with a dot.
  6564. lt_cv_objdir=_libs
  6565. fi
  6566. rmdir .libs 2>/dev/null
  6567. fi
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6569. $as_echo "$lt_cv_objdir" >&6; }
  6570. objdir=$lt_cv_objdir
  6571. cat >>confdefs.h <<_ACEOF
  6572. #define LT_OBJDIR "$lt_cv_objdir/"
  6573. _ACEOF
  6574. case $host_os in
  6575. aix3*)
  6576. # AIX sometimes has problems with the GCC collect2 program. For some
  6577. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6578. # vanish in a puff of smoke.
  6579. if test "X${COLLECT_NAMES+set}" != Xset; then
  6580. COLLECT_NAMES=
  6581. export COLLECT_NAMES
  6582. fi
  6583. ;;
  6584. esac
  6585. # Sed substitution that helps us do robust quoting. It backslashifies
  6586. # metacharacters that are still active within double-quoted strings.
  6587. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6588. # Same as above, but do not quote variable references.
  6589. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6590. # Sed substitution to delay expansion of an escaped shell variable in a
  6591. # double_quote_subst'ed string.
  6592. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6593. # Sed substitution to delay expansion of an escaped single quote.
  6594. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6595. # Sed substitution to avoid accidental globbing in evaled expressions
  6596. no_glob_subst='s/\*/\\\*/g'
  6597. # Global variables:
  6598. ofile=libtool
  6599. can_build_shared=yes
  6600. # All known linkers require a `.a' archive for static linking (except MSVC,
  6601. # which needs '.lib').
  6602. libext=a
  6603. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6604. old_CC="$CC"
  6605. old_CFLAGS="$CFLAGS"
  6606. # Set sane defaults for various variables
  6607. test -z "$CC" && CC=cc
  6608. test -z "$LTCC" && LTCC=$CC
  6609. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6610. test -z "$LD" && LD=ld
  6611. test -z "$ac_objext" && ac_objext=o
  6612. for cc_temp in $compiler""; do
  6613. case $cc_temp in
  6614. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6615. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6616. \-*) ;;
  6617. *) break;;
  6618. esac
  6619. done
  6620. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6621. # Only perform the check for file, if the check method requires it
  6622. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6623. case $deplibs_check_method in
  6624. file_magic*)
  6625. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6627. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6628. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. case $MAGIC_CMD in
  6632. [\\/*] | ?:[\\/]*)
  6633. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6634. ;;
  6635. *)
  6636. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6637. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6638. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6639. for ac_dir in $ac_dummy; do
  6640. IFS="$lt_save_ifs"
  6641. test -z "$ac_dir" && ac_dir=.
  6642. if test -f $ac_dir/${ac_tool_prefix}file; then
  6643. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6644. if test -n "$file_magic_test_file"; then
  6645. case $deplibs_check_method in
  6646. "file_magic "*)
  6647. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6648. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6649. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6650. $EGREP "$file_magic_regex" > /dev/null; then
  6651. :
  6652. else
  6653. cat <<_LT_EOF 1>&2
  6654. *** Warning: the command libtool uses to detect shared libraries,
  6655. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6656. *** The result is that libtool may fail to recognize shared libraries
  6657. *** as such. This will affect the creation of libtool libraries that
  6658. *** depend on shared libraries, but programs linked with such libtool
  6659. *** libraries will work regardless of this problem. Nevertheless, you
  6660. *** may want to report the problem to your system manager and/or to
  6661. *** bug-libtool@gnu.org
  6662. _LT_EOF
  6663. fi ;;
  6664. esac
  6665. fi
  6666. break
  6667. fi
  6668. done
  6669. IFS="$lt_save_ifs"
  6670. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6671. ;;
  6672. esac
  6673. fi
  6674. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6675. if test -n "$MAGIC_CMD"; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6677. $as_echo "$MAGIC_CMD" >&6; }
  6678. else
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681. fi
  6682. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6683. if test -n "$ac_tool_prefix"; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6685. $as_echo_n "checking for file... " >&6; }
  6686. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. case $MAGIC_CMD in
  6690. [\\/*] | ?:[\\/]*)
  6691. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6692. ;;
  6693. *)
  6694. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6695. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6696. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6697. for ac_dir in $ac_dummy; do
  6698. IFS="$lt_save_ifs"
  6699. test -z "$ac_dir" && ac_dir=.
  6700. if test -f $ac_dir/file; then
  6701. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6702. if test -n "$file_magic_test_file"; then
  6703. case $deplibs_check_method in
  6704. "file_magic "*)
  6705. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6707. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6708. $EGREP "$file_magic_regex" > /dev/null; then
  6709. :
  6710. else
  6711. cat <<_LT_EOF 1>&2
  6712. *** Warning: the command libtool uses to detect shared libraries,
  6713. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6714. *** The result is that libtool may fail to recognize shared libraries
  6715. *** as such. This will affect the creation of libtool libraries that
  6716. *** depend on shared libraries, but programs linked with such libtool
  6717. *** libraries will work regardless of this problem. Nevertheless, you
  6718. *** may want to report the problem to your system manager and/or to
  6719. *** bug-libtool@gnu.org
  6720. _LT_EOF
  6721. fi ;;
  6722. esac
  6723. fi
  6724. break
  6725. fi
  6726. done
  6727. IFS="$lt_save_ifs"
  6728. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6729. ;;
  6730. esac
  6731. fi
  6732. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6733. if test -n "$MAGIC_CMD"; then
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6735. $as_echo "$MAGIC_CMD" >&6; }
  6736. else
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6738. $as_echo "no" >&6; }
  6739. fi
  6740. else
  6741. MAGIC_CMD=:
  6742. fi
  6743. fi
  6744. fi
  6745. ;;
  6746. esac
  6747. # Use C for the default configuration in the libtool script
  6748. lt_save_CC="$CC"
  6749. ac_ext=c
  6750. ac_cpp='$CPP $CPPFLAGS'
  6751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6754. # Source file extension for C test sources.
  6755. ac_ext=c
  6756. # Object file extension for compiled C test sources.
  6757. objext=o
  6758. objext=$objext
  6759. # Code to be used in simple compile tests
  6760. lt_simple_compile_test_code="int some_variable = 0;"
  6761. # Code to be used in simple link tests
  6762. lt_simple_link_test_code='int main(){return(0);}'
  6763. # If no C compiler was specified, use CC.
  6764. LTCC=${LTCC-"$CC"}
  6765. # If no C compiler flags were specified, use CFLAGS.
  6766. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6767. # Allow CC to be a program name with arguments.
  6768. compiler=$CC
  6769. # Save the default compiler, since it gets overwritten when the other
  6770. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6771. compiler_DEFAULT=$CC
  6772. # save warnings/boilerplate of simple test code
  6773. ac_outfile=conftest.$ac_objext
  6774. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6775. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6776. _lt_compiler_boilerplate=`cat conftest.err`
  6777. $RM conftest*
  6778. ac_outfile=conftest.$ac_objext
  6779. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6780. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6781. _lt_linker_boilerplate=`cat conftest.err`
  6782. $RM -r conftest*
  6783. if test -n "$compiler"; then
  6784. lt_prog_compiler_no_builtin_flag=
  6785. if test "$GCC" = yes; then
  6786. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6788. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6789. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. lt_cv_prog_compiler_rtti_exceptions=no
  6793. ac_outfile=conftest.$ac_objext
  6794. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6795. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6796. # Insert the option either (1) after the last *FLAGS variable, or
  6797. # (2) before a word containing "conftest.", or (3) at the end.
  6798. # Note that $ac_compile itself does not contain backslashes and begins
  6799. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6800. # The option is referenced via a variable to avoid confusing sed.
  6801. lt_compile=`echo "$ac_compile" | $SED \
  6802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6804. -e 's:$: $lt_compiler_flag:'`
  6805. (eval echo "\"\$as_me:7791: $lt_compile\"" >&5)
  6806. (eval "$lt_compile" 2>conftest.err)
  6807. ac_status=$?
  6808. cat conftest.err >&5
  6809. echo "$as_me:7795: \$? = $ac_status" >&5
  6810. if (exit $ac_status) && test -s "$ac_outfile"; then
  6811. # The compiler can only warn and ignore the option if not recognized
  6812. # So say no if there are warnings other than the usual output.
  6813. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6814. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6815. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6816. lt_cv_prog_compiler_rtti_exceptions=yes
  6817. fi
  6818. fi
  6819. $RM conftest*
  6820. fi
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6822. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6823. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6824. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6825. else
  6826. :
  6827. fi
  6828. fi
  6829. lt_prog_compiler_wl=
  6830. lt_prog_compiler_pic=
  6831. lt_prog_compiler_static=
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6833. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6834. if test "$GCC" = yes; then
  6835. lt_prog_compiler_wl='-Wl,'
  6836. lt_prog_compiler_static='-static'
  6837. case $host_os in
  6838. aix*)
  6839. # All AIX code is PIC.
  6840. if test "$host_cpu" = ia64; then
  6841. # AIX 5 now supports IA64 processor
  6842. lt_prog_compiler_static='-Bstatic'
  6843. fi
  6844. ;;
  6845. amigaos*)
  6846. case $host_cpu in
  6847. powerpc)
  6848. # see comment about AmigaOS4 .so support
  6849. lt_prog_compiler_pic='-fPIC'
  6850. ;;
  6851. m68k)
  6852. # FIXME: we need at least 68020 code to build shared libraries, but
  6853. # adding the `-m68020' flag to GCC prevents building anything better,
  6854. # like `-m68040'.
  6855. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6856. ;;
  6857. esac
  6858. ;;
  6859. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6860. # PIC is the default for these OSes.
  6861. ;;
  6862. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6863. # This hack is so that the source file can tell whether it is being
  6864. # built for inclusion in a dll (and should export symbols for example).
  6865. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6866. # (--disable-auto-import) libraries
  6867. lt_prog_compiler_pic='-DDLL_EXPORT'
  6868. ;;
  6869. darwin* | rhapsody*)
  6870. # PIC is the default on this platform
  6871. # Common symbols not allowed in MH_DYLIB files
  6872. lt_prog_compiler_pic='-fno-common'
  6873. ;;
  6874. hpux*)
  6875. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6876. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6877. # sets the default TLS model and affects inlining.
  6878. case $host_cpu in
  6879. hppa*64*)
  6880. # +Z the default
  6881. ;;
  6882. *)
  6883. lt_prog_compiler_pic='-fPIC'
  6884. ;;
  6885. esac
  6886. ;;
  6887. interix[3-9]*)
  6888. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6889. # Instead, we relocate shared libraries at runtime.
  6890. ;;
  6891. msdosdjgpp*)
  6892. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6893. # on systems that don't support them.
  6894. lt_prog_compiler_can_build_shared=no
  6895. enable_shared=no
  6896. ;;
  6897. *nto* | *qnx*)
  6898. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6899. # it will coredump.
  6900. lt_prog_compiler_pic='-fPIC -shared'
  6901. ;;
  6902. sysv4*MP*)
  6903. if test -d /usr/nec; then
  6904. lt_prog_compiler_pic=-Kconform_pic
  6905. fi
  6906. ;;
  6907. *)
  6908. lt_prog_compiler_pic='-fPIC'
  6909. ;;
  6910. esac
  6911. else
  6912. # PORTME Check for flag to pass linker flags through the system compiler.
  6913. case $host_os in
  6914. aix*)
  6915. lt_prog_compiler_wl='-Wl,'
  6916. if test "$host_cpu" = ia64; then
  6917. # AIX 5 now supports IA64 processor
  6918. lt_prog_compiler_static='-Bstatic'
  6919. else
  6920. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6921. fi
  6922. ;;
  6923. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6924. # This hack is so that the source file can tell whether it is being
  6925. # built for inclusion in a dll (and should export symbols for example).
  6926. lt_prog_compiler_pic='-DDLL_EXPORT'
  6927. ;;
  6928. hpux9* | hpux10* | hpux11*)
  6929. lt_prog_compiler_wl='-Wl,'
  6930. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6931. # not for PA HP-UX.
  6932. case $host_cpu in
  6933. hppa*64*|ia64*)
  6934. # +Z the default
  6935. ;;
  6936. *)
  6937. lt_prog_compiler_pic='+Z'
  6938. ;;
  6939. esac
  6940. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6941. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6942. ;;
  6943. irix5* | irix6* | nonstopux*)
  6944. lt_prog_compiler_wl='-Wl,'
  6945. # PIC (with -KPIC) is the default.
  6946. lt_prog_compiler_static='-non_shared'
  6947. ;;
  6948. linux* | k*bsd*-gnu)
  6949. case $cc_basename in
  6950. # old Intel for x86_64 which still supported -KPIC.
  6951. ecc*)
  6952. lt_prog_compiler_wl='-Wl,'
  6953. lt_prog_compiler_pic='-KPIC'
  6954. lt_prog_compiler_static='-static'
  6955. ;;
  6956. # icc used to be incompatible with GCC.
  6957. # ICC 10 doesn't accept -KPIC any more.
  6958. icc* | ifort*)
  6959. lt_prog_compiler_wl='-Wl,'
  6960. lt_prog_compiler_pic='-fPIC'
  6961. lt_prog_compiler_static='-static'
  6962. ;;
  6963. # Lahey Fortran 8.1.
  6964. lf95*)
  6965. lt_prog_compiler_wl='-Wl,'
  6966. lt_prog_compiler_pic='--shared'
  6967. lt_prog_compiler_static='--static'
  6968. ;;
  6969. pgcc* | pgf77* | pgf90* | pgf95*)
  6970. # Portland Group compilers (*not* the Pentium gcc compiler,
  6971. # which looks to be a dead project)
  6972. lt_prog_compiler_wl='-Wl,'
  6973. lt_prog_compiler_pic='-fpic'
  6974. lt_prog_compiler_static='-Bstatic'
  6975. ;;
  6976. ccc*)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. # All Alpha code is PIC.
  6979. lt_prog_compiler_static='-non_shared'
  6980. ;;
  6981. xl*)
  6982. # IBM XL C 8.0/Fortran 10.1 on PPC
  6983. lt_prog_compiler_wl='-Wl,'
  6984. lt_prog_compiler_pic='-qpic'
  6985. lt_prog_compiler_static='-qstaticlink'
  6986. ;;
  6987. *)
  6988. case `$CC -V 2>&1 | sed 5q` in
  6989. *Sun\ C*)
  6990. # Sun C 5.9
  6991. lt_prog_compiler_pic='-KPIC'
  6992. lt_prog_compiler_static='-Bstatic'
  6993. lt_prog_compiler_wl='-Wl,'
  6994. ;;
  6995. *Sun\ F*)
  6996. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6997. lt_prog_compiler_pic='-KPIC'
  6998. lt_prog_compiler_static='-Bstatic'
  6999. lt_prog_compiler_wl=''
  7000. ;;
  7001. esac
  7002. ;;
  7003. esac
  7004. ;;
  7005. newsos6)
  7006. lt_prog_compiler_pic='-KPIC'
  7007. lt_prog_compiler_static='-Bstatic'
  7008. ;;
  7009. *nto* | *qnx*)
  7010. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7011. # it will coredump.
  7012. lt_prog_compiler_pic='-fPIC -shared'
  7013. ;;
  7014. osf3* | osf4* | osf5*)
  7015. lt_prog_compiler_wl='-Wl,'
  7016. # All OSF/1 code is PIC.
  7017. lt_prog_compiler_static='-non_shared'
  7018. ;;
  7019. rdos*)
  7020. lt_prog_compiler_static='-non_shared'
  7021. ;;
  7022. solaris*)
  7023. lt_prog_compiler_pic='-KPIC'
  7024. lt_prog_compiler_static='-Bstatic'
  7025. case $cc_basename in
  7026. f77* | f90* | f95*)
  7027. lt_prog_compiler_wl='-Qoption ld ';;
  7028. *)
  7029. lt_prog_compiler_wl='-Wl,';;
  7030. esac
  7031. ;;
  7032. sunos4*)
  7033. lt_prog_compiler_wl='-Qoption ld '
  7034. lt_prog_compiler_pic='-PIC'
  7035. lt_prog_compiler_static='-Bstatic'
  7036. ;;
  7037. sysv4 | sysv4.2uw2* | sysv4.3*)
  7038. lt_prog_compiler_wl='-Wl,'
  7039. lt_prog_compiler_pic='-KPIC'
  7040. lt_prog_compiler_static='-Bstatic'
  7041. ;;
  7042. sysv4*MP*)
  7043. if test -d /usr/nec ;then
  7044. lt_prog_compiler_pic='-Kconform_pic'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. fi
  7047. ;;
  7048. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. lt_prog_compiler_pic='-KPIC'
  7051. lt_prog_compiler_static='-Bstatic'
  7052. ;;
  7053. unicos*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_can_build_shared=no
  7056. ;;
  7057. uts4*)
  7058. lt_prog_compiler_pic='-pic'
  7059. lt_prog_compiler_static='-Bstatic'
  7060. ;;
  7061. *)
  7062. lt_prog_compiler_can_build_shared=no
  7063. ;;
  7064. esac
  7065. fi
  7066. case $host_os in
  7067. # For platforms which do not support PIC, -DPIC is meaningless:
  7068. *djgpp*)
  7069. lt_prog_compiler_pic=
  7070. ;;
  7071. *)
  7072. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7073. ;;
  7074. esac
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7076. $as_echo "$lt_prog_compiler_pic" >&6; }
  7077. #
  7078. # Check to make sure the PIC flag actually works.
  7079. #
  7080. if test -n "$lt_prog_compiler_pic"; then
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7082. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7083. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. lt_cv_prog_compiler_pic_works=no
  7087. ac_outfile=conftest.$ac_objext
  7088. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7089. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7090. # Insert the option either (1) after the last *FLAGS variable, or
  7091. # (2) before a word containing "conftest.", or (3) at the end.
  7092. # Note that $ac_compile itself does not contain backslashes and begins
  7093. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7094. # The option is referenced via a variable to avoid confusing sed.
  7095. lt_compile=`echo "$ac_compile" | $SED \
  7096. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7097. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7098. -e 's:$: $lt_compiler_flag:'`
  7099. (eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
  7100. (eval "$lt_compile" 2>conftest.err)
  7101. ac_status=$?
  7102. cat conftest.err >&5
  7103. echo "$as_me:8134: \$? = $ac_status" >&5
  7104. if (exit $ac_status) && test -s "$ac_outfile"; then
  7105. # The compiler can only warn and ignore the option if not recognized
  7106. # So say no if there are warnings other than the usual output.
  7107. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7108. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7109. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7110. lt_cv_prog_compiler_pic_works=yes
  7111. fi
  7112. fi
  7113. $RM conftest*
  7114. fi
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7116. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7117. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7118. case $lt_prog_compiler_pic in
  7119. "" | " "*) ;;
  7120. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7121. esac
  7122. else
  7123. lt_prog_compiler_pic=
  7124. lt_prog_compiler_can_build_shared=no
  7125. fi
  7126. fi
  7127. #
  7128. # Check to make sure the static flag actually works.
  7129. #
  7130. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7132. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7133. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. lt_cv_prog_compiler_static_works=no
  7137. save_LDFLAGS="$LDFLAGS"
  7138. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7139. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7140. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7141. # The linker can only warn and ignore the option if not recognized
  7142. # So say no if there are warnings
  7143. if test -s conftest.err; then
  7144. # Append any errors to the config.log.
  7145. cat conftest.err 1>&5
  7146. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7147. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7148. if diff conftest.exp conftest.er2 >/dev/null; then
  7149. lt_cv_prog_compiler_static_works=yes
  7150. fi
  7151. else
  7152. lt_cv_prog_compiler_static_works=yes
  7153. fi
  7154. fi
  7155. $RM -r conftest*
  7156. LDFLAGS="$save_LDFLAGS"
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7159. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7160. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7161. :
  7162. else
  7163. lt_prog_compiler_static=
  7164. fi
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7166. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7167. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7168. $as_echo_n "(cached) " >&6
  7169. else
  7170. lt_cv_prog_compiler_c_o=no
  7171. $RM -r conftest 2>/dev/null
  7172. mkdir conftest
  7173. cd conftest
  7174. mkdir out
  7175. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7176. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7177. # Insert the option either (1) after the last *FLAGS variable, or
  7178. # (2) before a word containing "conftest.", or (3) at the end.
  7179. # Note that $ac_compile itself does not contain backslashes and begins
  7180. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7181. lt_compile=`echo "$ac_compile" | $SED \
  7182. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7183. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7184. -e 's:$: $lt_compiler_flag:'`
  7185. (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
  7186. (eval "$lt_compile" 2>out/conftest.err)
  7187. ac_status=$?
  7188. cat out/conftest.err >&5
  7189. echo "$as_me:8239: \$? = $ac_status" >&5
  7190. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7191. then
  7192. # The compiler can only warn and ignore the option if not recognized
  7193. # So say no if there are warnings
  7194. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7195. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7196. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7197. lt_cv_prog_compiler_c_o=yes
  7198. fi
  7199. fi
  7200. chmod u+w . 2>&5
  7201. $RM conftest*
  7202. # SGI C++ compiler will create directory out/ii_files/ for
  7203. # template instantiation
  7204. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7205. $RM out/* && rmdir out
  7206. cd ..
  7207. $RM -r conftest
  7208. $RM conftest*
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7211. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7213. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7214. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7215. $as_echo_n "(cached) " >&6
  7216. else
  7217. lt_cv_prog_compiler_c_o=no
  7218. $RM -r conftest 2>/dev/null
  7219. mkdir conftest
  7220. cd conftest
  7221. mkdir out
  7222. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7223. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7224. # Insert the option either (1) after the last *FLAGS variable, or
  7225. # (2) before a word containing "conftest.", or (3) at the end.
  7226. # Note that $ac_compile itself does not contain backslashes and begins
  7227. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7228. lt_compile=`echo "$ac_compile" | $SED \
  7229. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7230. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7231. -e 's:$: $lt_compiler_flag:'`
  7232. (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
  7233. (eval "$lt_compile" 2>out/conftest.err)
  7234. ac_status=$?
  7235. cat out/conftest.err >&5
  7236. echo "$as_me:8294: \$? = $ac_status" >&5
  7237. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7238. then
  7239. # The compiler can only warn and ignore the option if not recognized
  7240. # So say no if there are warnings
  7241. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7242. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7243. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7244. lt_cv_prog_compiler_c_o=yes
  7245. fi
  7246. fi
  7247. chmod u+w . 2>&5
  7248. $RM conftest*
  7249. # SGI C++ compiler will create directory out/ii_files/ for
  7250. # template instantiation
  7251. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7252. $RM out/* && rmdir out
  7253. cd ..
  7254. $RM -r conftest
  7255. $RM conftest*
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7258. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7259. hard_links="nottested"
  7260. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7261. # do not overwrite the value of need_locks provided by the user
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7263. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7264. hard_links=yes
  7265. $RM conftest*
  7266. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7267. touch conftest.a
  7268. ln conftest.a conftest.b 2>&5 || hard_links=no
  7269. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7271. $as_echo "$hard_links" >&6; }
  7272. if test "$hard_links" = no; then
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7274. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7275. need_locks=warn
  7276. fi
  7277. else
  7278. need_locks=no
  7279. fi
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7281. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7282. runpath_var=
  7283. allow_undefined_flag=
  7284. always_export_symbols=no
  7285. archive_cmds=
  7286. archive_expsym_cmds=
  7287. compiler_needs_object=no
  7288. enable_shared_with_static_runtimes=no
  7289. export_dynamic_flag_spec=
  7290. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7291. hardcode_automatic=no
  7292. hardcode_direct=no
  7293. hardcode_direct_absolute=no
  7294. hardcode_libdir_flag_spec=
  7295. hardcode_libdir_flag_spec_ld=
  7296. hardcode_libdir_separator=
  7297. hardcode_minus_L=no
  7298. hardcode_shlibpath_var=unsupported
  7299. inherit_rpath=no
  7300. link_all_deplibs=unknown
  7301. module_cmds=
  7302. module_expsym_cmds=
  7303. old_archive_from_new_cmds=
  7304. old_archive_from_expsyms_cmds=
  7305. thread_safe_flag_spec=
  7306. whole_archive_flag_spec=
  7307. # include_expsyms should be a list of space-separated symbols to be *always*
  7308. # included in the symbol list
  7309. include_expsyms=
  7310. # exclude_expsyms can be an extended regexp of symbols to exclude
  7311. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7312. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7313. # as well as any symbol that contains `d'.
  7314. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7315. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7316. # platforms (ab)use it in PIC code, but their linkers get confused if
  7317. # the symbol is explicitly referenced. Since portable code cannot
  7318. # rely on this symbol name, it's probably fine to never include it in
  7319. # preloaded symbol tables.
  7320. # Exclude shared library initialization/finalization symbols.
  7321. extract_expsyms_cmds=
  7322. case $host_os in
  7323. cygwin* | mingw* | pw32* | cegcc*)
  7324. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7325. # When not using gcc, we currently assume that we are using
  7326. # Microsoft Visual C++.
  7327. if test "$GCC" != yes; then
  7328. with_gnu_ld=no
  7329. fi
  7330. ;;
  7331. interix*)
  7332. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7333. with_gnu_ld=yes
  7334. ;;
  7335. openbsd*)
  7336. with_gnu_ld=no
  7337. ;;
  7338. esac
  7339. ld_shlibs=yes
  7340. if test "$with_gnu_ld" = yes; then
  7341. # If archive_cmds runs LD, not CC, wlarc should be empty
  7342. wlarc='${wl}'
  7343. # Set some defaults for GNU ld with shared library support. These
  7344. # are reset later if shared libraries are not supported. Putting them
  7345. # here allows them to be overridden if necessary.
  7346. runpath_var=LD_RUN_PATH
  7347. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7348. export_dynamic_flag_spec='${wl}--export-dynamic'
  7349. # ancient GNU ld didn't support --whole-archive et. al.
  7350. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7351. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7352. else
  7353. whole_archive_flag_spec=
  7354. fi
  7355. supports_anon_versioning=no
  7356. case `$LD -v 2>&1` in
  7357. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7358. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7359. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7360. *\ 2.11.*) ;; # other 2.11 versions
  7361. *) supports_anon_versioning=yes ;;
  7362. esac
  7363. # See if GNU ld supports shared libraries.
  7364. case $host_os in
  7365. aix[3-9]*)
  7366. # On AIX/PPC, the GNU linker is very broken
  7367. if test "$host_cpu" != ia64; then
  7368. ld_shlibs=no
  7369. cat <<_LT_EOF 1>&2
  7370. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7371. *** to be unable to reliably create shared libraries on AIX.
  7372. *** Therefore, libtool is disabling shared libraries support. If you
  7373. *** really care for shared libraries, you may want to modify your PATH
  7374. *** so that a non-GNU linker is found, and then restart.
  7375. _LT_EOF
  7376. fi
  7377. ;;
  7378. amigaos*)
  7379. case $host_cpu in
  7380. powerpc)
  7381. # see comment about AmigaOS4 .so support
  7382. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7383. archive_expsym_cmds=''
  7384. ;;
  7385. m68k)
  7386. 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)'
  7387. hardcode_libdir_flag_spec='-L$libdir'
  7388. hardcode_minus_L=yes
  7389. ;;
  7390. esac
  7391. ;;
  7392. beos*)
  7393. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7394. allow_undefined_flag=unsupported
  7395. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7396. # support --undefined. This deserves some investigation. FIXME
  7397. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7398. else
  7399. ld_shlibs=no
  7400. fi
  7401. ;;
  7402. cygwin* | mingw* | pw32* | cegcc*)
  7403. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7404. # as there is no search path for DLLs.
  7405. hardcode_libdir_flag_spec='-L$libdir'
  7406. allow_undefined_flag=unsupported
  7407. always_export_symbols=no
  7408. enable_shared_with_static_runtimes=yes
  7409. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7410. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7411. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7412. # If the export-symbols file already is a .def file (1st line
  7413. # is EXPORTS), use it as is; otherwise, prepend...
  7414. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7415. cp $export_symbols $output_objdir/$soname.def;
  7416. else
  7417. echo EXPORTS > $output_objdir/$soname.def;
  7418. cat $export_symbols >> $output_objdir/$soname.def;
  7419. fi~
  7420. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7421. else
  7422. ld_shlibs=no
  7423. fi
  7424. ;;
  7425. interix[3-9]*)
  7426. hardcode_direct=no
  7427. hardcode_shlibpath_var=no
  7428. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7429. export_dynamic_flag_spec='${wl}-E'
  7430. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7431. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7432. # default) and relocated if they conflict, which is a slow very memory
  7433. # consuming and fragmenting process. To avoid this, we pick a random,
  7434. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7435. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7436. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7437. 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'
  7438. ;;
  7439. gnu* | linux* | tpf* | k*bsd*-gnu)
  7440. tmp_diet=no
  7441. if test "$host_os" = linux-dietlibc; then
  7442. case $cc_basename in
  7443. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7444. esac
  7445. fi
  7446. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7447. && test "$tmp_diet" = no
  7448. then
  7449. tmp_addflag=
  7450. tmp_sharedflag='-shared'
  7451. case $cc_basename,$host_cpu in
  7452. pgcc*) # Portland Group C compiler
  7453. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7454. tmp_addflag=' $pic_flag'
  7455. ;;
  7456. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7457. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7458. tmp_addflag=' $pic_flag -Mnomain' ;;
  7459. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7460. tmp_addflag=' -i_dynamic' ;;
  7461. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7462. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7463. ifc* | ifort*) # Intel Fortran compiler
  7464. tmp_addflag=' -nofor_main' ;;
  7465. lf95*) # Lahey Fortran 8.1
  7466. whole_archive_flag_spec=
  7467. tmp_sharedflag='--shared' ;;
  7468. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7469. tmp_sharedflag='-qmkshrobj'
  7470. tmp_addflag= ;;
  7471. esac
  7472. case `$CC -V 2>&1 | sed 5q` in
  7473. *Sun\ C*) # Sun C 5.9
  7474. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7475. compiler_needs_object=yes
  7476. tmp_sharedflag='-G' ;;
  7477. *Sun\ F*) # Sun Fortran 8.3
  7478. tmp_sharedflag='-G' ;;
  7479. esac
  7480. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7481. if test "x$supports_anon_versioning" = xyes; then
  7482. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7483. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7484. echo "local: *; };" >> $output_objdir/$libname.ver~
  7485. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7486. fi
  7487. case $cc_basename in
  7488. xlf*)
  7489. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7490. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7491. hardcode_libdir_flag_spec=
  7492. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7493. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7494. if test "x$supports_anon_versioning" = xyes; then
  7495. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7496. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7497. echo "local: *; };" >> $output_objdir/$libname.ver~
  7498. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7499. fi
  7500. ;;
  7501. esac
  7502. else
  7503. ld_shlibs=no
  7504. fi
  7505. ;;
  7506. netbsd*)
  7507. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7508. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7509. wlarc=
  7510. else
  7511. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7512. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7513. fi
  7514. ;;
  7515. solaris*)
  7516. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7517. ld_shlibs=no
  7518. cat <<_LT_EOF 1>&2
  7519. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7520. *** create shared libraries on Solaris systems. Therefore, libtool
  7521. *** is disabling shared libraries support. We urge you to upgrade GNU
  7522. *** binutils to release 2.9.1 or newer. Another option is to modify
  7523. *** your PATH or compiler configuration so that the native linker is
  7524. *** used, and then restart.
  7525. _LT_EOF
  7526. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7527. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7528. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7529. else
  7530. ld_shlibs=no
  7531. fi
  7532. ;;
  7533. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7534. case `$LD -v 2>&1` in
  7535. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7536. ld_shlibs=no
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7539. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7540. *** is disabling shared libraries support. We urge you to upgrade GNU
  7541. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7542. *** your PATH or compiler configuration so that the native linker is
  7543. *** used, and then restart.
  7544. _LT_EOF
  7545. ;;
  7546. *)
  7547. # For security reasons, it is highly recommended that you always
  7548. # use absolute paths for naming shared libraries, and exclude the
  7549. # DT_RUNPATH tag from executables and libraries. But doing so
  7550. # requires that you compile everything twice, which is a pain.
  7551. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7552. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7553. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7554. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7555. else
  7556. ld_shlibs=no
  7557. fi
  7558. ;;
  7559. esac
  7560. ;;
  7561. sunos4*)
  7562. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7563. wlarc=
  7564. hardcode_direct=yes
  7565. hardcode_shlibpath_var=no
  7566. ;;
  7567. *)
  7568. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7569. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7570. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7571. else
  7572. ld_shlibs=no
  7573. fi
  7574. ;;
  7575. esac
  7576. if test "$ld_shlibs" = no; then
  7577. runpath_var=
  7578. hardcode_libdir_flag_spec=
  7579. export_dynamic_flag_spec=
  7580. whole_archive_flag_spec=
  7581. fi
  7582. else
  7583. # PORTME fill in a description of your system's linker (not GNU ld)
  7584. case $host_os in
  7585. aix3*)
  7586. allow_undefined_flag=unsupported
  7587. always_export_symbols=yes
  7588. 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'
  7589. # Note: this linker hardcodes the directories in LIBPATH if there
  7590. # are no directories specified by -L.
  7591. hardcode_minus_L=yes
  7592. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7593. # Neither direct hardcoding nor static linking is supported with a
  7594. # broken collect2.
  7595. hardcode_direct=unsupported
  7596. fi
  7597. ;;
  7598. aix[4-9]*)
  7599. if test "$host_cpu" = ia64; then
  7600. # On IA64, the linker does run time linking by default, so we don't
  7601. # have to do anything special.
  7602. aix_use_runtimelinking=no
  7603. exp_sym_flag='-Bexport'
  7604. no_entry_flag=""
  7605. else
  7606. # If we're using GNU nm, then we don't want the "-C" option.
  7607. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7608. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7609. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7610. else
  7611. 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'
  7612. fi
  7613. aix_use_runtimelinking=no
  7614. # Test if we are trying to use run time linking or normal
  7615. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7616. # need to do runtime linking.
  7617. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7618. for ld_flag in $LDFLAGS; do
  7619. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7620. aix_use_runtimelinking=yes
  7621. break
  7622. fi
  7623. done
  7624. ;;
  7625. esac
  7626. exp_sym_flag='-bexport'
  7627. no_entry_flag='-bnoentry'
  7628. fi
  7629. # When large executables or shared objects are built, AIX ld can
  7630. # have problems creating the table of contents. If linking a library
  7631. # or program results in "error TOC overflow" add -mminimal-toc to
  7632. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7633. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7634. archive_cmds=''
  7635. hardcode_direct=yes
  7636. hardcode_direct_absolute=yes
  7637. hardcode_libdir_separator=':'
  7638. link_all_deplibs=yes
  7639. file_list_spec='${wl}-f,'
  7640. if test "$GCC" = yes; then
  7641. case $host_os in aix4.[012]|aix4.[012].*)
  7642. # We only want to do this on AIX 4.2 and lower, the check
  7643. # below for broken collect2 doesn't work under 4.3+
  7644. collect2name=`${CC} -print-prog-name=collect2`
  7645. if test -f "$collect2name" &&
  7646. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7647. then
  7648. # We have reworked collect2
  7649. :
  7650. else
  7651. # We have old collect2
  7652. hardcode_direct=unsupported
  7653. # It fails to find uninstalled libraries when the uninstalled
  7654. # path is not listed in the libpath. Setting hardcode_minus_L
  7655. # to unsupported forces relinking
  7656. hardcode_minus_L=yes
  7657. hardcode_libdir_flag_spec='-L$libdir'
  7658. hardcode_libdir_separator=
  7659. fi
  7660. ;;
  7661. esac
  7662. shared_flag='-shared'
  7663. if test "$aix_use_runtimelinking" = yes; then
  7664. shared_flag="$shared_flag "'${wl}-G'
  7665. fi
  7666. else
  7667. # not using gcc
  7668. if test "$host_cpu" = ia64; then
  7669. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7670. # chokes on -Wl,-G. The following line is correct:
  7671. shared_flag='-G'
  7672. else
  7673. if test "$aix_use_runtimelinking" = yes; then
  7674. shared_flag='${wl}-G'
  7675. else
  7676. shared_flag='${wl}-bM:SRE'
  7677. fi
  7678. fi
  7679. fi
  7680. export_dynamic_flag_spec='${wl}-bexpall'
  7681. # It seems that -bexpall does not export symbols beginning with
  7682. # underscore (_), so it is better to generate a list of symbols to export.
  7683. always_export_symbols=yes
  7684. if test "$aix_use_runtimelinking" = yes; then
  7685. # Warning - without using the other runtime loading flags (-brtl),
  7686. # -berok will link without error, but may produce a broken library.
  7687. allow_undefined_flag='-berok'
  7688. # Determine the default libpath from the value encoded in an
  7689. # empty executable.
  7690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7691. /* end confdefs.h. */
  7692. int
  7693. main ()
  7694. {
  7695. ;
  7696. return 0;
  7697. }
  7698. _ACEOF
  7699. if ac_fn_c_try_link "$LINENO"; then :
  7700. lt_aix_libpath_sed='
  7701. /Import File Strings/,/^$/ {
  7702. /^0/ {
  7703. s/^0 *\(.*\)$/\1/
  7704. p
  7705. }
  7706. }'
  7707. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7708. # Check for a 64-bit object if we didn't find anything.
  7709. if test -z "$aix_libpath"; then
  7710. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7711. fi
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext \
  7714. conftest$ac_exeext conftest.$ac_ext
  7715. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7716. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7717. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7718. else
  7719. if test "$host_cpu" = ia64; then
  7720. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7721. allow_undefined_flag="-z nodefs"
  7722. 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"
  7723. else
  7724. # Determine the default libpath from the value encoded in an
  7725. # empty executable.
  7726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7727. /* end confdefs.h. */
  7728. int
  7729. main ()
  7730. {
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. if ac_fn_c_try_link "$LINENO"; then :
  7736. lt_aix_libpath_sed='
  7737. /Import File Strings/,/^$/ {
  7738. /^0/ {
  7739. s/^0 *\(.*\)$/\1/
  7740. p
  7741. }
  7742. }'
  7743. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7744. # Check for a 64-bit object if we didn't find anything.
  7745. if test -z "$aix_libpath"; then
  7746. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7747. fi
  7748. fi
  7749. rm -f core conftest.err conftest.$ac_objext \
  7750. conftest$ac_exeext conftest.$ac_ext
  7751. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7752. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7753. # Warning - without using the other run time loading flags,
  7754. # -berok will link without error, but may produce a broken library.
  7755. no_undefined_flag=' ${wl}-bernotok'
  7756. allow_undefined_flag=' ${wl}-berok'
  7757. # Exported symbols can be pulled into shared objects from archives
  7758. whole_archive_flag_spec='$convenience'
  7759. archive_cmds_need_lc=yes
  7760. # This is similar to how AIX traditionally builds its shared libraries.
  7761. 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'
  7762. fi
  7763. fi
  7764. ;;
  7765. amigaos*)
  7766. case $host_cpu in
  7767. powerpc)
  7768. # see comment about AmigaOS4 .so support
  7769. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7770. archive_expsym_cmds=''
  7771. ;;
  7772. m68k)
  7773. 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)'
  7774. hardcode_libdir_flag_spec='-L$libdir'
  7775. hardcode_minus_L=yes
  7776. ;;
  7777. esac
  7778. ;;
  7779. bsdi[45]*)
  7780. export_dynamic_flag_spec=-rdynamic
  7781. ;;
  7782. cygwin* | mingw* | pw32* | cegcc*)
  7783. # When not using gcc, we currently assume that we are using
  7784. # Microsoft Visual C++.
  7785. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7786. # no search path for DLLs.
  7787. hardcode_libdir_flag_spec=' '
  7788. allow_undefined_flag=unsupported
  7789. # Tell ltmain to make .lib files, not .a files.
  7790. libext=lib
  7791. # Tell ltmain to make .dll files, not .so files.
  7792. shrext_cmds=".dll"
  7793. # FIXME: Setting linknames here is a bad hack.
  7794. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7795. # The linker will automatically build a .lib file if we build a DLL.
  7796. old_archive_from_new_cmds='true'
  7797. # FIXME: Should let the user specify the lib program.
  7798. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7799. fix_srcfile_path=''
  7800. enable_shared_with_static_runtimes=yes
  7801. ;;
  7802. darwin* | rhapsody*)
  7803. archive_cmds_need_lc=no
  7804. hardcode_direct=no
  7805. hardcode_automatic=yes
  7806. hardcode_shlibpath_var=unsupported
  7807. whole_archive_flag_spec=''
  7808. link_all_deplibs=yes
  7809. allow_undefined_flag="$_lt_dar_allow_undefined"
  7810. case $cc_basename in
  7811. ifort*) _lt_dar_can_shared=yes ;;
  7812. *) _lt_dar_can_shared=$GCC ;;
  7813. esac
  7814. if test "$_lt_dar_can_shared" = "yes"; then
  7815. output_verbose_link_cmd=echo
  7816. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7817. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7818. 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}"
  7819. 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}"
  7820. else
  7821. ld_shlibs=no
  7822. fi
  7823. ;;
  7824. dgux*)
  7825. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7826. hardcode_libdir_flag_spec='-L$libdir'
  7827. hardcode_shlibpath_var=no
  7828. ;;
  7829. freebsd1*)
  7830. ld_shlibs=no
  7831. ;;
  7832. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7833. # support. Future versions do this automatically, but an explicit c++rt0.o
  7834. # does not break anything, and helps significantly (at the cost of a little
  7835. # extra space).
  7836. freebsd2.2*)
  7837. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7838. hardcode_libdir_flag_spec='-R$libdir'
  7839. hardcode_direct=yes
  7840. hardcode_shlibpath_var=no
  7841. ;;
  7842. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7843. freebsd2*)
  7844. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7845. hardcode_direct=yes
  7846. hardcode_minus_L=yes
  7847. hardcode_shlibpath_var=no
  7848. ;;
  7849. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7850. freebsd* | dragonfly*)
  7851. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7852. hardcode_libdir_flag_spec='-R$libdir'
  7853. hardcode_direct=yes
  7854. hardcode_shlibpath_var=no
  7855. ;;
  7856. hpux9*)
  7857. if test "$GCC" = yes; then
  7858. 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'
  7859. else
  7860. 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'
  7861. fi
  7862. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7863. hardcode_libdir_separator=:
  7864. hardcode_direct=yes
  7865. # hardcode_minus_L: Not really in the search PATH,
  7866. # but as the default location of the library.
  7867. hardcode_minus_L=yes
  7868. export_dynamic_flag_spec='${wl}-E'
  7869. ;;
  7870. hpux10*)
  7871. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7872. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7873. else
  7874. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7875. fi
  7876. if test "$with_gnu_ld" = no; then
  7877. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7878. hardcode_libdir_flag_spec_ld='+b $libdir'
  7879. hardcode_libdir_separator=:
  7880. hardcode_direct=yes
  7881. hardcode_direct_absolute=yes
  7882. export_dynamic_flag_spec='${wl}-E'
  7883. # hardcode_minus_L: Not really in the search PATH,
  7884. # but as the default location of the library.
  7885. hardcode_minus_L=yes
  7886. fi
  7887. ;;
  7888. hpux11*)
  7889. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7890. case $host_cpu in
  7891. hppa*64*)
  7892. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7893. ;;
  7894. ia64*)
  7895. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7896. ;;
  7897. *)
  7898. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7899. ;;
  7900. esac
  7901. else
  7902. case $host_cpu in
  7903. hppa*64*)
  7904. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7905. ;;
  7906. ia64*)
  7907. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7908. ;;
  7909. *)
  7910. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7911. ;;
  7912. esac
  7913. fi
  7914. if test "$with_gnu_ld" = no; then
  7915. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7916. hardcode_libdir_separator=:
  7917. case $host_cpu in
  7918. hppa*64*|ia64*)
  7919. hardcode_direct=no
  7920. hardcode_shlibpath_var=no
  7921. ;;
  7922. *)
  7923. hardcode_direct=yes
  7924. hardcode_direct_absolute=yes
  7925. export_dynamic_flag_spec='${wl}-E'
  7926. # hardcode_minus_L: Not really in the search PATH,
  7927. # but as the default location of the library.
  7928. hardcode_minus_L=yes
  7929. ;;
  7930. esac
  7931. fi
  7932. ;;
  7933. irix5* | irix6* | nonstopux*)
  7934. if test "$GCC" = yes; then
  7935. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7936. # Try to use the -exported_symbol ld option, if it does not
  7937. # work, assume that -exports_file does not work either and
  7938. # implicitly export all symbols.
  7939. save_LDFLAGS="$LDFLAGS"
  7940. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7942. /* end confdefs.h. */
  7943. int foo(void) {}
  7944. _ACEOF
  7945. if ac_fn_c_try_link "$LINENO"; then :
  7946. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7947. fi
  7948. rm -f core conftest.err conftest.$ac_objext \
  7949. conftest$ac_exeext conftest.$ac_ext
  7950. LDFLAGS="$save_LDFLAGS"
  7951. else
  7952. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7953. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7954. fi
  7955. archive_cmds_need_lc='no'
  7956. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7957. hardcode_libdir_separator=:
  7958. inherit_rpath=yes
  7959. link_all_deplibs=yes
  7960. ;;
  7961. netbsd*)
  7962. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7963. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7964. else
  7965. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7966. fi
  7967. hardcode_libdir_flag_spec='-R$libdir'
  7968. hardcode_direct=yes
  7969. hardcode_shlibpath_var=no
  7970. ;;
  7971. newsos6)
  7972. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7973. hardcode_direct=yes
  7974. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7975. hardcode_libdir_separator=:
  7976. hardcode_shlibpath_var=no
  7977. ;;
  7978. *nto* | *qnx*)
  7979. ;;
  7980. openbsd*)
  7981. if test -f /usr/libexec/ld.so; then
  7982. hardcode_direct=yes
  7983. hardcode_shlibpath_var=no
  7984. hardcode_direct_absolute=yes
  7985. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7986. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7987. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7988. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7989. export_dynamic_flag_spec='${wl}-E'
  7990. else
  7991. case $host_os in
  7992. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7993. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7994. hardcode_libdir_flag_spec='-R$libdir'
  7995. ;;
  7996. *)
  7997. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7998. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7999. ;;
  8000. esac
  8001. fi
  8002. else
  8003. ld_shlibs=no
  8004. fi
  8005. ;;
  8006. os2*)
  8007. hardcode_libdir_flag_spec='-L$libdir'
  8008. hardcode_minus_L=yes
  8009. allow_undefined_flag=unsupported
  8010. 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'
  8011. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8012. ;;
  8013. osf3*)
  8014. if test "$GCC" = yes; then
  8015. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8016. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8017. else
  8018. allow_undefined_flag=' -expect_unresolved \*'
  8019. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8020. fi
  8021. archive_cmds_need_lc='no'
  8022. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8023. hardcode_libdir_separator=:
  8024. ;;
  8025. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8026. if test "$GCC" = yes; then
  8027. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8028. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8029. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8030. else
  8031. allow_undefined_flag=' -expect_unresolved \*'
  8032. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8033. 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~
  8034. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8035. # Both c and cxx compiler support -rpath directly
  8036. hardcode_libdir_flag_spec='-rpath $libdir'
  8037. fi
  8038. archive_cmds_need_lc='no'
  8039. hardcode_libdir_separator=:
  8040. ;;
  8041. solaris*)
  8042. no_undefined_flag=' -z defs'
  8043. if test "$GCC" = yes; then
  8044. wlarc='${wl}'
  8045. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8046. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8047. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8048. else
  8049. case `$CC -V 2>&1` in
  8050. *"Compilers 5.0"*)
  8051. wlarc=''
  8052. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8053. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8054. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8055. ;;
  8056. *)
  8057. wlarc='${wl}'
  8058. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8059. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8060. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8061. ;;
  8062. esac
  8063. fi
  8064. hardcode_libdir_flag_spec='-R$libdir'
  8065. hardcode_shlibpath_var=no
  8066. case $host_os in
  8067. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8068. *)
  8069. # The compiler driver will combine and reorder linker options,
  8070. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8071. # but is careful enough not to reorder.
  8072. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8073. if test "$GCC" = yes; then
  8074. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8075. else
  8076. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8077. fi
  8078. ;;
  8079. esac
  8080. link_all_deplibs=yes
  8081. ;;
  8082. sunos4*)
  8083. if test "x$host_vendor" = xsequent; then
  8084. # Use $CC to link under sequent, because it throws in some extra .o
  8085. # files that make .init and .fini sections work.
  8086. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8087. else
  8088. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8089. fi
  8090. hardcode_libdir_flag_spec='-L$libdir'
  8091. hardcode_direct=yes
  8092. hardcode_minus_L=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. sysv4)
  8096. case $host_vendor in
  8097. sni)
  8098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8099. hardcode_direct=yes # is this really true???
  8100. ;;
  8101. siemens)
  8102. ## LD is ld it makes a PLAMLIB
  8103. ## CC just makes a GrossModule.
  8104. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8105. reload_cmds='$CC -r -o $output$reload_objs'
  8106. hardcode_direct=no
  8107. ;;
  8108. motorola)
  8109. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8110. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8111. ;;
  8112. esac
  8113. runpath_var='LD_RUN_PATH'
  8114. hardcode_shlibpath_var=no
  8115. ;;
  8116. sysv4.3*)
  8117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8118. hardcode_shlibpath_var=no
  8119. export_dynamic_flag_spec='-Bexport'
  8120. ;;
  8121. sysv4*MP*)
  8122. if test -d /usr/nec; then
  8123. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8124. hardcode_shlibpath_var=no
  8125. runpath_var=LD_RUN_PATH
  8126. hardcode_runpath_var=yes
  8127. ld_shlibs=yes
  8128. fi
  8129. ;;
  8130. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8131. no_undefined_flag='${wl}-z,text'
  8132. archive_cmds_need_lc=no
  8133. hardcode_shlibpath_var=no
  8134. runpath_var='LD_RUN_PATH'
  8135. if test "$GCC" = yes; then
  8136. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8137. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. else
  8139. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8140. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8141. fi
  8142. ;;
  8143. sysv5* | sco3.2v5* | sco5v6*)
  8144. # Note: We can NOT use -z defs as we might desire, because we do not
  8145. # link with -lc, and that would cause any symbols used from libc to
  8146. # always be unresolved, which means just about no library would
  8147. # ever link correctly. If we're not using GNU ld we use -z text
  8148. # though, which does catch some bad symbols but isn't as heavy-handed
  8149. # as -z defs.
  8150. no_undefined_flag='${wl}-z,text'
  8151. allow_undefined_flag='${wl}-z,nodefs'
  8152. archive_cmds_need_lc=no
  8153. hardcode_shlibpath_var=no
  8154. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8155. hardcode_libdir_separator=':'
  8156. link_all_deplibs=yes
  8157. export_dynamic_flag_spec='${wl}-Bexport'
  8158. runpath_var='LD_RUN_PATH'
  8159. if test "$GCC" = yes; then
  8160. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8162. else
  8163. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8164. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8165. fi
  8166. ;;
  8167. uts4*)
  8168. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8169. hardcode_libdir_flag_spec='-L$libdir'
  8170. hardcode_shlibpath_var=no
  8171. ;;
  8172. *)
  8173. ld_shlibs=no
  8174. ;;
  8175. esac
  8176. if test x$host_vendor = xsni; then
  8177. case $host in
  8178. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8179. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8180. ;;
  8181. esac
  8182. fi
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8185. $as_echo "$ld_shlibs" >&6; }
  8186. test "$ld_shlibs" = no && can_build_shared=no
  8187. with_gnu_ld=$with_gnu_ld
  8188. #
  8189. # Do we need to explicitly link libc?
  8190. #
  8191. case "x$archive_cmds_need_lc" in
  8192. x|xyes)
  8193. # Assume -lc should be added
  8194. archive_cmds_need_lc=yes
  8195. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8196. case $archive_cmds in
  8197. *'~'*)
  8198. # FIXME: we may have to deal with multi-command sequences.
  8199. ;;
  8200. '$CC '*)
  8201. # Test whether the compiler implicitly links with -lc since on some
  8202. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8203. # to ld, don't add -lc before -lgcc.
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8205. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8206. $RM conftest*
  8207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8209. (eval $ac_compile) 2>&5
  8210. ac_status=$?
  8211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8212. test $ac_status = 0; } 2>conftest.err; then
  8213. soname=conftest
  8214. lib=conftest
  8215. libobjs=conftest.$ac_objext
  8216. deplibs=
  8217. wl=$lt_prog_compiler_wl
  8218. pic_flag=$lt_prog_compiler_pic
  8219. compiler_flags=-v
  8220. linker_flags=-v
  8221. verstring=
  8222. output_objdir=.
  8223. libname=conftest
  8224. lt_save_allow_undefined_flag=$allow_undefined_flag
  8225. allow_undefined_flag=
  8226. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8227. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8228. ac_status=$?
  8229. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8230. test $ac_status = 0; }
  8231. then
  8232. archive_cmds_need_lc=no
  8233. else
  8234. archive_cmds_need_lc=yes
  8235. fi
  8236. allow_undefined_flag=$lt_save_allow_undefined_flag
  8237. else
  8238. cat conftest.err 1>&5
  8239. fi
  8240. $RM conftest*
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8242. $as_echo "$archive_cmds_need_lc" >&6; }
  8243. ;;
  8244. esac
  8245. fi
  8246. ;;
  8247. esac
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8249. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8250. if test "$GCC" = yes; then
  8251. case $host_os in
  8252. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8253. *) lt_awk_arg="/^libraries:/" ;;
  8254. esac
  8255. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8256. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8257. # if the path contains ";" then we assume it to be the separator
  8258. # otherwise default to the standard path separator (i.e. ":") - it is
  8259. # assumed that no part of a normal pathname contains ";" but that should
  8260. # okay in the real world where ";" in dirpaths is itself problematic.
  8261. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8262. else
  8263. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8264. fi
  8265. # Ok, now we have the path, separated by spaces, we can step through it
  8266. # and add multilib dir if necessary.
  8267. lt_tmp_lt_search_path_spec=
  8268. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8269. for lt_sys_path in $lt_search_path_spec; do
  8270. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8271. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8272. else
  8273. test -d "$lt_sys_path" && \
  8274. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8275. fi
  8276. done
  8277. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8278. BEGIN {RS=" "; FS="/|\n";} {
  8279. lt_foo="";
  8280. lt_count=0;
  8281. for (lt_i = NF; lt_i > 0; lt_i--) {
  8282. if ($lt_i != "" && $lt_i != ".") {
  8283. if ($lt_i == "..") {
  8284. lt_count++;
  8285. } else {
  8286. if (lt_count == 0) {
  8287. lt_foo="/" $lt_i lt_foo;
  8288. } else {
  8289. lt_count--;
  8290. }
  8291. }
  8292. }
  8293. }
  8294. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8295. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8296. }'`
  8297. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8298. else
  8299. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8300. fi
  8301. library_names_spec=
  8302. libname_spec='lib$name'
  8303. soname_spec=
  8304. shrext_cmds=".so"
  8305. postinstall_cmds=
  8306. postuninstall_cmds=
  8307. finish_cmds=
  8308. finish_eval=
  8309. shlibpath_var=
  8310. shlibpath_overrides_runpath=unknown
  8311. version_type=none
  8312. dynamic_linker="$host_os ld.so"
  8313. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8314. need_lib_prefix=unknown
  8315. hardcode_into_libs=no
  8316. # when you set need_version to no, make sure it does not cause -set_version
  8317. # flags to be left without arguments
  8318. need_version=unknown
  8319. case $host_os in
  8320. aix3*)
  8321. version_type=linux
  8322. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8323. shlibpath_var=LIBPATH
  8324. # AIX 3 has no versioning support, so we append a major version to the name.
  8325. soname_spec='${libname}${release}${shared_ext}$major'
  8326. ;;
  8327. aix[4-9]*)
  8328. version_type=linux
  8329. need_lib_prefix=no
  8330. need_version=no
  8331. hardcode_into_libs=yes
  8332. if test "$host_cpu" = ia64; then
  8333. # AIX 5 supports IA64
  8334. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8335. shlibpath_var=LD_LIBRARY_PATH
  8336. else
  8337. # With GCC up to 2.95.x, collect2 would create an import file
  8338. # for dependence libraries. The import file would start with
  8339. # the line `#! .'. This would cause the generated library to
  8340. # depend on `.', always an invalid library. This was fixed in
  8341. # development snapshots of GCC prior to 3.0.
  8342. case $host_os in
  8343. aix4 | aix4.[01] | aix4.[01].*)
  8344. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8345. echo ' yes '
  8346. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8347. :
  8348. else
  8349. can_build_shared=no
  8350. fi
  8351. ;;
  8352. esac
  8353. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8354. # soname into executable. Probably we can add versioning support to
  8355. # collect2, so additional links can be useful in future.
  8356. if test "$aix_use_runtimelinking" = yes; then
  8357. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8358. # instead of lib<name>.a to let people know that these are not
  8359. # typical AIX shared libraries.
  8360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8361. else
  8362. # We preserve .a as extension for shared libraries through AIX4.2
  8363. # and later when we are not doing run time linking.
  8364. library_names_spec='${libname}${release}.a $libname.a'
  8365. soname_spec='${libname}${release}${shared_ext}$major'
  8366. fi
  8367. shlibpath_var=LIBPATH
  8368. fi
  8369. ;;
  8370. amigaos*)
  8371. case $host_cpu in
  8372. powerpc)
  8373. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8374. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8376. ;;
  8377. m68k)
  8378. library_names_spec='$libname.ixlibrary $libname.a'
  8379. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8380. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8381. ;;
  8382. esac
  8383. ;;
  8384. beos*)
  8385. library_names_spec='${libname}${shared_ext}'
  8386. dynamic_linker="$host_os ld.so"
  8387. shlibpath_var=LIBRARY_PATH
  8388. ;;
  8389. bsdi[45]*)
  8390. version_type=linux
  8391. need_version=no
  8392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8393. soname_spec='${libname}${release}${shared_ext}$major'
  8394. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8397. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8398. # the default ld.so.conf also contains /usr/contrib/lib and
  8399. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8400. # libtool to hard-code these into programs
  8401. ;;
  8402. cygwin* | mingw* | pw32* | cegcc*)
  8403. version_type=windows
  8404. shrext_cmds=".dll"
  8405. need_version=no
  8406. need_lib_prefix=no
  8407. case $GCC,$host_os in
  8408. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8409. library_names_spec='$libname.dll.a'
  8410. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8411. postinstall_cmds='base_file=`basename \${file}`~
  8412. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8413. dldir=$destdir/`dirname \$dlpath`~
  8414. test -d \$dldir || mkdir -p \$dldir~
  8415. $install_prog $dir/$dlname \$dldir/$dlname~
  8416. chmod a+x \$dldir/$dlname~
  8417. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8418. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8419. fi'
  8420. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8421. dlpath=$dir/\$dldll~
  8422. $RM \$dlpath'
  8423. shlibpath_overrides_runpath=yes
  8424. case $host_os in
  8425. cygwin*)
  8426. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8427. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8428. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8429. ;;
  8430. mingw* | cegcc*)
  8431. # MinGW DLLs use traditional 'lib' prefix
  8432. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8433. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8434. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8435. # It is most probably a Windows format PATH printed by
  8436. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8437. # path with ; separators, and with drive letters. We can handle the
  8438. # drive letters (cygwin fileutils understands them), so leave them,
  8439. # especially as we might pass files found there to a mingw objdump,
  8440. # which wouldn't understand a cygwinified path. Ahh.
  8441. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8442. else
  8443. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8444. fi
  8445. ;;
  8446. pw32*)
  8447. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8448. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8449. ;;
  8450. esac
  8451. ;;
  8452. *)
  8453. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8454. ;;
  8455. esac
  8456. dynamic_linker='Win32 ld.exe'
  8457. # FIXME: first we should search . and the directory the executable is in
  8458. shlibpath_var=PATH
  8459. ;;
  8460. darwin* | rhapsody*)
  8461. dynamic_linker="$host_os dyld"
  8462. version_type=darwin
  8463. need_lib_prefix=no
  8464. need_version=no
  8465. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8466. soname_spec='${libname}${release}${major}$shared_ext'
  8467. shlibpath_overrides_runpath=yes
  8468. shlibpath_var=DYLD_LIBRARY_PATH
  8469. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8470. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8471. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8472. ;;
  8473. dgux*)
  8474. version_type=linux
  8475. need_lib_prefix=no
  8476. need_version=no
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8478. soname_spec='${libname}${release}${shared_ext}$major'
  8479. shlibpath_var=LD_LIBRARY_PATH
  8480. ;;
  8481. freebsd1*)
  8482. dynamic_linker=no
  8483. ;;
  8484. freebsd* | dragonfly*)
  8485. # DragonFly does not have aout. When/if they implement a new
  8486. # versioning mechanism, adjust this.
  8487. if test -x /usr/bin/objformat; then
  8488. objformat=`/usr/bin/objformat`
  8489. else
  8490. case $host_os in
  8491. freebsd[123]*) objformat=aout ;;
  8492. *) objformat=elf ;;
  8493. esac
  8494. fi
  8495. version_type=freebsd-$objformat
  8496. case $version_type in
  8497. freebsd-elf*)
  8498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8499. need_version=no
  8500. need_lib_prefix=no
  8501. ;;
  8502. freebsd-*)
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8504. need_version=yes
  8505. ;;
  8506. esac
  8507. shlibpath_var=LD_LIBRARY_PATH
  8508. case $host_os in
  8509. freebsd2*)
  8510. shlibpath_overrides_runpath=yes
  8511. ;;
  8512. freebsd3.[01]* | freebsdelf3.[01]*)
  8513. shlibpath_overrides_runpath=yes
  8514. hardcode_into_libs=yes
  8515. ;;
  8516. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8517. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8518. shlibpath_overrides_runpath=no
  8519. hardcode_into_libs=yes
  8520. ;;
  8521. *) # from 4.6 on, and DragonFly
  8522. shlibpath_overrides_runpath=yes
  8523. hardcode_into_libs=yes
  8524. ;;
  8525. esac
  8526. ;;
  8527. gnu*)
  8528. version_type=linux
  8529. need_lib_prefix=no
  8530. need_version=no
  8531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8532. soname_spec='${libname}${release}${shared_ext}$major'
  8533. shlibpath_var=LD_LIBRARY_PATH
  8534. hardcode_into_libs=yes
  8535. ;;
  8536. hpux9* | hpux10* | hpux11*)
  8537. # Give a soname corresponding to the major version so that dld.sl refuses to
  8538. # link against other versions.
  8539. version_type=sunos
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. case $host_cpu in
  8543. ia64*)
  8544. shrext_cmds='.so'
  8545. hardcode_into_libs=yes
  8546. dynamic_linker="$host_os dld.so"
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8550. soname_spec='${libname}${release}${shared_ext}$major'
  8551. if test "X$HPUX_IA64_MODE" = X32; then
  8552. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8553. else
  8554. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8555. fi
  8556. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8557. ;;
  8558. hppa*64*)
  8559. shrext_cmds='.sl'
  8560. hardcode_into_libs=yes
  8561. dynamic_linker="$host_os dld.sl"
  8562. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8563. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8567. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8568. ;;
  8569. *)
  8570. shrext_cmds='.sl'
  8571. dynamic_linker="$host_os dld.sl"
  8572. shlibpath_var=SHLIB_PATH
  8573. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8575. soname_spec='${libname}${release}${shared_ext}$major'
  8576. ;;
  8577. esac
  8578. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8579. postinstall_cmds='chmod 555 $lib'
  8580. ;;
  8581. interix[3-9]*)
  8582. version_type=linux
  8583. need_lib_prefix=no
  8584. need_version=no
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8588. shlibpath_var=LD_LIBRARY_PATH
  8589. shlibpath_overrides_runpath=no
  8590. hardcode_into_libs=yes
  8591. ;;
  8592. irix5* | irix6* | nonstopux*)
  8593. case $host_os in
  8594. nonstopux*) version_type=nonstopux ;;
  8595. *)
  8596. if test "$lt_cv_prog_gnu_ld" = yes; then
  8597. version_type=linux
  8598. else
  8599. version_type=irix
  8600. fi ;;
  8601. esac
  8602. need_lib_prefix=no
  8603. need_version=no
  8604. soname_spec='${libname}${release}${shared_ext}$major'
  8605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8606. case $host_os in
  8607. irix5* | nonstopux*)
  8608. libsuff= shlibsuff=
  8609. ;;
  8610. *)
  8611. case $LD in # libtool.m4 will add one of these switches to LD
  8612. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8613. libsuff= shlibsuff= libmagic=32-bit;;
  8614. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8615. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8616. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8617. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8618. *) libsuff= shlibsuff= libmagic=never-match;;
  8619. esac
  8620. ;;
  8621. esac
  8622. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8623. shlibpath_overrides_runpath=no
  8624. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8625. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8626. hardcode_into_libs=yes
  8627. ;;
  8628. # No shared lib support for Linux oldld, aout, or coff.
  8629. linux*oldld* | linux*aout* | linux*coff*)
  8630. dynamic_linker=no
  8631. ;;
  8632. # This must be Linux ELF.
  8633. linux* | k*bsd*-gnu)
  8634. version_type=linux
  8635. need_lib_prefix=no
  8636. need_version=no
  8637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8638. soname_spec='${libname}${release}${shared_ext}$major'
  8639. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8640. shlibpath_var=LD_LIBRARY_PATH
  8641. shlibpath_overrides_runpath=no
  8642. # Some binutils ld are patched to set DT_RUNPATH
  8643. save_LDFLAGS=$LDFLAGS
  8644. save_libdir=$libdir
  8645. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8646. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8648. /* end confdefs.h. */
  8649. int
  8650. main ()
  8651. {
  8652. ;
  8653. return 0;
  8654. }
  8655. _ACEOF
  8656. if ac_fn_c_try_link "$LINENO"; then :
  8657. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8658. shlibpath_overrides_runpath=yes
  8659. fi
  8660. fi
  8661. rm -f core conftest.err conftest.$ac_objext \
  8662. conftest$ac_exeext conftest.$ac_ext
  8663. LDFLAGS=$save_LDFLAGS
  8664. libdir=$save_libdir
  8665. # This implies no fast_install, which is unacceptable.
  8666. # Some rework will be needed to allow for fast_install
  8667. # before this can be enabled.
  8668. hardcode_into_libs=yes
  8669. # Add ABI-specific directories to the system library path.
  8670. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  8671. # Append ld.so.conf contents to the search path
  8672. if test -f /etc/ld.so.conf; then
  8673. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8674. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8675. fi
  8676. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8677. # powerpc, because MkLinux only supported shared libraries with the
  8678. # GNU dynamic linker. Since this was broken with cross compilers,
  8679. # most powerpc-linux boxes support dynamic linking these days and
  8680. # people can always --disable-shared, the test was removed, and we
  8681. # assume the GNU/Linux dynamic linker is in use.
  8682. dynamic_linker='GNU/Linux ld.so'
  8683. ;;
  8684. netbsd*)
  8685. version_type=sunos
  8686. need_lib_prefix=no
  8687. need_version=no
  8688. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8690. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8691. dynamic_linker='NetBSD (a.out) ld.so'
  8692. else
  8693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8694. soname_spec='${libname}${release}${shared_ext}$major'
  8695. dynamic_linker='NetBSD ld.elf_so'
  8696. fi
  8697. shlibpath_var=LD_LIBRARY_PATH
  8698. shlibpath_overrides_runpath=yes
  8699. hardcode_into_libs=yes
  8700. ;;
  8701. newsos6)
  8702. version_type=linux
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. shlibpath_overrides_runpath=yes
  8706. ;;
  8707. *nto* | *qnx*)
  8708. version_type=qnx
  8709. need_lib_prefix=no
  8710. need_version=no
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8712. soname_spec='${libname}${release}${shared_ext}$major'
  8713. shlibpath_var=LD_LIBRARY_PATH
  8714. shlibpath_overrides_runpath=no
  8715. hardcode_into_libs=yes
  8716. dynamic_linker='ldqnx.so'
  8717. ;;
  8718. openbsd*)
  8719. version_type=sunos
  8720. sys_lib_dlsearch_path_spec="/usr/lib"
  8721. need_lib_prefix=no
  8722. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8723. case $host_os in
  8724. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8725. *) need_version=no ;;
  8726. esac
  8727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8728. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8729. shlibpath_var=LD_LIBRARY_PATH
  8730. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8731. case $host_os in
  8732. openbsd2.[89] | openbsd2.[89].*)
  8733. shlibpath_overrides_runpath=no
  8734. ;;
  8735. *)
  8736. shlibpath_overrides_runpath=yes
  8737. ;;
  8738. esac
  8739. else
  8740. shlibpath_overrides_runpath=yes
  8741. fi
  8742. ;;
  8743. os2*)
  8744. libname_spec='$name'
  8745. shrext_cmds=".dll"
  8746. need_lib_prefix=no
  8747. library_names_spec='$libname${shared_ext} $libname.a'
  8748. dynamic_linker='OS/2 ld.exe'
  8749. shlibpath_var=LIBPATH
  8750. ;;
  8751. osf3* | osf4* | osf5*)
  8752. version_type=osf
  8753. need_lib_prefix=no
  8754. need_version=no
  8755. soname_spec='${libname}${release}${shared_ext}$major'
  8756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8759. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8760. ;;
  8761. rdos*)
  8762. dynamic_linker=no
  8763. ;;
  8764. solaris*)
  8765. version_type=linux
  8766. need_lib_prefix=no
  8767. need_version=no
  8768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8769. soname_spec='${libname}${release}${shared_ext}$major'
  8770. shlibpath_var=LD_LIBRARY_PATH
  8771. shlibpath_overrides_runpath=yes
  8772. hardcode_into_libs=yes
  8773. # ldd complains unless libraries are executable
  8774. postinstall_cmds='chmod +x $lib'
  8775. ;;
  8776. sunos4*)
  8777. version_type=sunos
  8778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8779. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8780. shlibpath_var=LD_LIBRARY_PATH
  8781. shlibpath_overrides_runpath=yes
  8782. if test "$with_gnu_ld" = yes; then
  8783. need_lib_prefix=no
  8784. fi
  8785. need_version=yes
  8786. ;;
  8787. sysv4 | sysv4.3*)
  8788. version_type=linux
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. case $host_vendor in
  8793. sni)
  8794. shlibpath_overrides_runpath=no
  8795. need_lib_prefix=no
  8796. runpath_var=LD_RUN_PATH
  8797. ;;
  8798. siemens)
  8799. need_lib_prefix=no
  8800. ;;
  8801. motorola)
  8802. need_lib_prefix=no
  8803. need_version=no
  8804. shlibpath_overrides_runpath=no
  8805. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8806. ;;
  8807. esac
  8808. ;;
  8809. sysv4*MP*)
  8810. if test -d /usr/nec ;then
  8811. version_type=linux
  8812. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8813. soname_spec='$libname${shared_ext}.$major'
  8814. shlibpath_var=LD_LIBRARY_PATH
  8815. fi
  8816. ;;
  8817. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8818. version_type=freebsd-elf
  8819. need_lib_prefix=no
  8820. need_version=no
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. shlibpath_overrides_runpath=yes
  8825. hardcode_into_libs=yes
  8826. if test "$with_gnu_ld" = yes; then
  8827. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8828. else
  8829. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8830. case $host_os in
  8831. sco3.2v5*)
  8832. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8833. ;;
  8834. esac
  8835. fi
  8836. sys_lib_dlsearch_path_spec='/usr/lib'
  8837. ;;
  8838. tpf*)
  8839. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8840. version_type=linux
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. shlibpath_overrides_runpath=no
  8846. hardcode_into_libs=yes
  8847. ;;
  8848. uts4*)
  8849. version_type=linux
  8850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8851. soname_spec='${libname}${release}${shared_ext}$major'
  8852. shlibpath_var=LD_LIBRARY_PATH
  8853. ;;
  8854. *)
  8855. dynamic_linker=no
  8856. ;;
  8857. esac
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8859. $as_echo "$dynamic_linker" >&6; }
  8860. test "$dynamic_linker" = no && can_build_shared=no
  8861. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8862. if test "$GCC" = yes; then
  8863. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8864. fi
  8865. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8866. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8867. fi
  8868. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8869. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8870. fi
  8871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8872. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8873. hardcode_action=
  8874. if test -n "$hardcode_libdir_flag_spec" ||
  8875. test -n "$runpath_var" ||
  8876. test "X$hardcode_automatic" = "Xyes" ; then
  8877. # We can hardcode non-existent directories.
  8878. if test "$hardcode_direct" != no &&
  8879. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8880. # have to relink, otherwise we might link with an installed library
  8881. # when we should be linking with a yet-to-be-installed one
  8882. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8883. test "$hardcode_minus_L" != no; then
  8884. # Linking always hardcodes the temporary library directory.
  8885. hardcode_action=relink
  8886. else
  8887. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8888. hardcode_action=immediate
  8889. fi
  8890. else
  8891. # We cannot hardcode anything, or else we can only hardcode existing
  8892. # directories.
  8893. hardcode_action=unsupported
  8894. fi
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8896. $as_echo "$hardcode_action" >&6; }
  8897. if test "$hardcode_action" = relink ||
  8898. test "$inherit_rpath" = yes; then
  8899. # Fast installation is not supported
  8900. enable_fast_install=no
  8901. elif test "$shlibpath_overrides_runpath" = yes ||
  8902. test "$enable_shared" = no; then
  8903. # Fast installation is not necessary
  8904. enable_fast_install=needless
  8905. fi
  8906. if test "x$enable_dlopen" != xyes; then
  8907. enable_dlopen=unknown
  8908. enable_dlopen_self=unknown
  8909. enable_dlopen_self_static=unknown
  8910. else
  8911. lt_cv_dlopen=no
  8912. lt_cv_dlopen_libs=
  8913. case $host_os in
  8914. beos*)
  8915. lt_cv_dlopen="load_add_on"
  8916. lt_cv_dlopen_libs=
  8917. lt_cv_dlopen_self=yes
  8918. ;;
  8919. mingw* | pw32* | cegcc*)
  8920. lt_cv_dlopen="LoadLibrary"
  8921. lt_cv_dlopen_libs=
  8922. ;;
  8923. cygwin*)
  8924. lt_cv_dlopen="dlopen"
  8925. lt_cv_dlopen_libs=
  8926. ;;
  8927. darwin*)
  8928. # if libdl is installed we need to link against it
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8930. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8931. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8932. $as_echo_n "(cached) " >&6
  8933. else
  8934. ac_check_lib_save_LIBS=$LIBS
  8935. LIBS="-ldl $LIBS"
  8936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8937. /* end confdefs.h. */
  8938. /* Override any GCC internal prototype to avoid an error.
  8939. Use char because int might match the return type of a GCC
  8940. builtin and then its argument prototype would still apply. */
  8941. #ifdef __cplusplus
  8942. extern "C"
  8943. #endif
  8944. char dlopen ();
  8945. int
  8946. main ()
  8947. {
  8948. return dlopen ();
  8949. ;
  8950. return 0;
  8951. }
  8952. _ACEOF
  8953. if ac_fn_c_try_link "$LINENO"; then :
  8954. ac_cv_lib_dl_dlopen=yes
  8955. else
  8956. ac_cv_lib_dl_dlopen=no
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext \
  8959. conftest$ac_exeext conftest.$ac_ext
  8960. LIBS=$ac_check_lib_save_LIBS
  8961. fi
  8962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8963. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8964. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8965. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8966. else
  8967. lt_cv_dlopen="dyld"
  8968. lt_cv_dlopen_libs=
  8969. lt_cv_dlopen_self=yes
  8970. fi
  8971. ;;
  8972. *)
  8973. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8974. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8975. lt_cv_dlopen="shl_load"
  8976. else
  8977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8978. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8979. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8980. $as_echo_n "(cached) " >&6
  8981. else
  8982. ac_check_lib_save_LIBS=$LIBS
  8983. LIBS="-ldld $LIBS"
  8984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8985. /* end confdefs.h. */
  8986. /* Override any GCC internal prototype to avoid an error.
  8987. Use char because int might match the return type of a GCC
  8988. builtin and then its argument prototype would still apply. */
  8989. #ifdef __cplusplus
  8990. extern "C"
  8991. #endif
  8992. char shl_load ();
  8993. int
  8994. main ()
  8995. {
  8996. return shl_load ();
  8997. ;
  8998. return 0;
  8999. }
  9000. _ACEOF
  9001. if ac_fn_c_try_link "$LINENO"; then :
  9002. ac_cv_lib_dld_shl_load=yes
  9003. else
  9004. ac_cv_lib_dld_shl_load=no
  9005. fi
  9006. rm -f core conftest.err conftest.$ac_objext \
  9007. conftest$ac_exeext conftest.$ac_ext
  9008. LIBS=$ac_check_lib_save_LIBS
  9009. fi
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9011. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9012. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9013. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9014. else
  9015. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9016. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9017. lt_cv_dlopen="dlopen"
  9018. else
  9019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9020. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9021. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9022. $as_echo_n "(cached) " >&6
  9023. else
  9024. ac_check_lib_save_LIBS=$LIBS
  9025. LIBS="-ldl $LIBS"
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. /* Override any GCC internal prototype to avoid an error.
  9029. Use char because int might match the return type of a GCC
  9030. builtin and then its argument prototype would still apply. */
  9031. #ifdef __cplusplus
  9032. extern "C"
  9033. #endif
  9034. char dlopen ();
  9035. int
  9036. main ()
  9037. {
  9038. return dlopen ();
  9039. ;
  9040. return 0;
  9041. }
  9042. _ACEOF
  9043. if ac_fn_c_try_link "$LINENO"; then :
  9044. ac_cv_lib_dl_dlopen=yes
  9045. else
  9046. ac_cv_lib_dl_dlopen=no
  9047. fi
  9048. rm -f core conftest.err conftest.$ac_objext \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. LIBS=$ac_check_lib_save_LIBS
  9051. fi
  9052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9053. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9054. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9055. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9056. else
  9057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9058. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9059. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9060. $as_echo_n "(cached) " >&6
  9061. else
  9062. ac_check_lib_save_LIBS=$LIBS
  9063. LIBS="-lsvld $LIBS"
  9064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9065. /* end confdefs.h. */
  9066. /* Override any GCC internal prototype to avoid an error.
  9067. Use char because int might match the return type of a GCC
  9068. builtin and then its argument prototype would still apply. */
  9069. #ifdef __cplusplus
  9070. extern "C"
  9071. #endif
  9072. char dlopen ();
  9073. int
  9074. main ()
  9075. {
  9076. return dlopen ();
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. if ac_fn_c_try_link "$LINENO"; then :
  9082. ac_cv_lib_svld_dlopen=yes
  9083. else
  9084. ac_cv_lib_svld_dlopen=no
  9085. fi
  9086. rm -f core conftest.err conftest.$ac_objext \
  9087. conftest$ac_exeext conftest.$ac_ext
  9088. LIBS=$ac_check_lib_save_LIBS
  9089. fi
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9091. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9092. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9093. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9094. else
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9096. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9097. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9098. $as_echo_n "(cached) " >&6
  9099. else
  9100. ac_check_lib_save_LIBS=$LIBS
  9101. LIBS="-ldld $LIBS"
  9102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9103. /* end confdefs.h. */
  9104. /* Override any GCC internal prototype to avoid an error.
  9105. Use char because int might match the return type of a GCC
  9106. builtin and then its argument prototype would still apply. */
  9107. #ifdef __cplusplus
  9108. extern "C"
  9109. #endif
  9110. char dld_link ();
  9111. int
  9112. main ()
  9113. {
  9114. return dld_link ();
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. if ac_fn_c_try_link "$LINENO"; then :
  9120. ac_cv_lib_dld_dld_link=yes
  9121. else
  9122. ac_cv_lib_dld_dld_link=no
  9123. fi
  9124. rm -f core conftest.err conftest.$ac_objext \
  9125. conftest$ac_exeext conftest.$ac_ext
  9126. LIBS=$ac_check_lib_save_LIBS
  9127. fi
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9129. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9130. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9131. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9132. fi
  9133. fi
  9134. fi
  9135. fi
  9136. fi
  9137. fi
  9138. ;;
  9139. esac
  9140. if test "x$lt_cv_dlopen" != xno; then
  9141. enable_dlopen=yes
  9142. else
  9143. enable_dlopen=no
  9144. fi
  9145. case $lt_cv_dlopen in
  9146. dlopen)
  9147. save_CPPFLAGS="$CPPFLAGS"
  9148. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9149. save_LDFLAGS="$LDFLAGS"
  9150. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9151. save_LIBS="$LIBS"
  9152. LIBS="$lt_cv_dlopen_libs $LIBS"
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9154. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9155. if test "${lt_cv_dlopen_self+set}" = set; then :
  9156. $as_echo_n "(cached) " >&6
  9157. else
  9158. if test "$cross_compiling" = yes; then :
  9159. lt_cv_dlopen_self=cross
  9160. else
  9161. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9162. lt_status=$lt_dlunknown
  9163. cat > conftest.$ac_ext <<_LT_EOF
  9164. #line 10660 "configure"
  9165. #include "confdefs.h"
  9166. #if HAVE_DLFCN_H
  9167. #include <dlfcn.h>
  9168. #endif
  9169. #include <stdio.h>
  9170. #ifdef RTLD_GLOBAL
  9171. # define LT_DLGLOBAL RTLD_GLOBAL
  9172. #else
  9173. # ifdef DL_GLOBAL
  9174. # define LT_DLGLOBAL DL_GLOBAL
  9175. # else
  9176. # define LT_DLGLOBAL 0
  9177. # endif
  9178. #endif
  9179. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9180. find out it does not work in some platform. */
  9181. #ifndef LT_DLLAZY_OR_NOW
  9182. # ifdef RTLD_LAZY
  9183. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9184. # else
  9185. # ifdef DL_LAZY
  9186. # define LT_DLLAZY_OR_NOW DL_LAZY
  9187. # else
  9188. # ifdef RTLD_NOW
  9189. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9190. # else
  9191. # ifdef DL_NOW
  9192. # define LT_DLLAZY_OR_NOW DL_NOW
  9193. # else
  9194. # define LT_DLLAZY_OR_NOW 0
  9195. # endif
  9196. # endif
  9197. # endif
  9198. # endif
  9199. #endif
  9200. void fnord() { int i=42;}
  9201. int main ()
  9202. {
  9203. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9204. int status = $lt_dlunknown;
  9205. if (self)
  9206. {
  9207. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9208. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9209. /* dlclose (self); */
  9210. }
  9211. else
  9212. puts (dlerror ());
  9213. return status;
  9214. }
  9215. _LT_EOF
  9216. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9217. (eval $ac_link) 2>&5
  9218. ac_status=$?
  9219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9220. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9221. (./conftest; exit; ) >&5 2>/dev/null
  9222. lt_status=$?
  9223. case x$lt_status in
  9224. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9225. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9226. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9227. esac
  9228. else :
  9229. # compilation failed
  9230. lt_cv_dlopen_self=no
  9231. fi
  9232. fi
  9233. rm -fr conftest*
  9234. fi
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9236. $as_echo "$lt_cv_dlopen_self" >&6; }
  9237. if test "x$lt_cv_dlopen_self" = xyes; then
  9238. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9240. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9241. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9242. $as_echo_n "(cached) " >&6
  9243. else
  9244. if test "$cross_compiling" = yes; then :
  9245. lt_cv_dlopen_self_static=cross
  9246. else
  9247. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9248. lt_status=$lt_dlunknown
  9249. cat > conftest.$ac_ext <<_LT_EOF
  9250. #line 10756 "configure"
  9251. #include "confdefs.h"
  9252. #if HAVE_DLFCN_H
  9253. #include <dlfcn.h>
  9254. #endif
  9255. #include <stdio.h>
  9256. #ifdef RTLD_GLOBAL
  9257. # define LT_DLGLOBAL RTLD_GLOBAL
  9258. #else
  9259. # ifdef DL_GLOBAL
  9260. # define LT_DLGLOBAL DL_GLOBAL
  9261. # else
  9262. # define LT_DLGLOBAL 0
  9263. # endif
  9264. #endif
  9265. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9266. find out it does not work in some platform. */
  9267. #ifndef LT_DLLAZY_OR_NOW
  9268. # ifdef RTLD_LAZY
  9269. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9270. # else
  9271. # ifdef DL_LAZY
  9272. # define LT_DLLAZY_OR_NOW DL_LAZY
  9273. # else
  9274. # ifdef RTLD_NOW
  9275. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9276. # else
  9277. # ifdef DL_NOW
  9278. # define LT_DLLAZY_OR_NOW DL_NOW
  9279. # else
  9280. # define LT_DLLAZY_OR_NOW 0
  9281. # endif
  9282. # endif
  9283. # endif
  9284. # endif
  9285. #endif
  9286. void fnord() { int i=42;}
  9287. int main ()
  9288. {
  9289. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9290. int status = $lt_dlunknown;
  9291. if (self)
  9292. {
  9293. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9294. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9295. /* dlclose (self); */
  9296. }
  9297. else
  9298. puts (dlerror ());
  9299. return status;
  9300. }
  9301. _LT_EOF
  9302. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9303. (eval $ac_link) 2>&5
  9304. ac_status=$?
  9305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9306. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9307. (./conftest; exit; ) >&5 2>/dev/null
  9308. lt_status=$?
  9309. case x$lt_status in
  9310. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9311. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9312. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9313. esac
  9314. else :
  9315. # compilation failed
  9316. lt_cv_dlopen_self_static=no
  9317. fi
  9318. fi
  9319. rm -fr conftest*
  9320. fi
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9322. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9323. fi
  9324. CPPFLAGS="$save_CPPFLAGS"
  9325. LDFLAGS="$save_LDFLAGS"
  9326. LIBS="$save_LIBS"
  9327. ;;
  9328. esac
  9329. case $lt_cv_dlopen_self in
  9330. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9331. *) enable_dlopen_self=unknown ;;
  9332. esac
  9333. case $lt_cv_dlopen_self_static in
  9334. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9335. *) enable_dlopen_self_static=unknown ;;
  9336. esac
  9337. fi
  9338. striplib=
  9339. old_striplib=
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9341. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9342. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9343. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9344. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9346. $as_echo "yes" >&6; }
  9347. else
  9348. # FIXME - insert some real tests, host_os isn't really good enough
  9349. case $host_os in
  9350. darwin*)
  9351. if test -n "$STRIP" ; then
  9352. striplib="$STRIP -x"
  9353. old_striplib="$STRIP -S"
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9355. $as_echo "yes" >&6; }
  9356. else
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9358. $as_echo "no" >&6; }
  9359. fi
  9360. ;;
  9361. *)
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9363. $as_echo "no" >&6; }
  9364. ;;
  9365. esac
  9366. fi
  9367. # Report which library types will actually be built
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9369. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9371. $as_echo "$can_build_shared" >&6; }
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9373. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9374. test "$can_build_shared" = "no" && enable_shared=no
  9375. # On AIX, shared libraries and static libraries use the same namespace, and
  9376. # are all built from PIC.
  9377. case $host_os in
  9378. aix3*)
  9379. test "$enable_shared" = yes && enable_static=no
  9380. if test -n "$RANLIB"; then
  9381. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9382. postinstall_cmds='$RANLIB $lib'
  9383. fi
  9384. ;;
  9385. aix[4-9]*)
  9386. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9387. test "$enable_shared" = yes && enable_static=no
  9388. fi
  9389. ;;
  9390. esac
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9392. $as_echo "$enable_shared" >&6; }
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9394. $as_echo_n "checking whether to build static libraries... " >&6; }
  9395. # Make sure either enable_shared or enable_static is yes.
  9396. test "$enable_shared" = yes || enable_static=yes
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9398. $as_echo "$enable_static" >&6; }
  9399. fi
  9400. ac_ext=c
  9401. ac_cpp='$CPP $CPPFLAGS'
  9402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9405. CC="$lt_save_CC"
  9406. ac_config_commands="$ac_config_commands libtool"
  9407. # Only expand once:
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9409. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9410. # Check whether --enable-maintainer-mode was given.
  9411. if test "${enable_maintainer_mode+set}" = set; then :
  9412. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9413. else
  9414. USE_MAINTAINER_MODE=no
  9415. fi
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9417. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9418. if test $USE_MAINTAINER_MODE = yes; then
  9419. MAINTAINER_MODE_TRUE=
  9420. MAINTAINER_MODE_FALSE='#'
  9421. else
  9422. MAINTAINER_MODE_TRUE='#'
  9423. MAINTAINER_MODE_FALSE=
  9424. fi
  9425. MAINT=$MAINTAINER_MODE_TRUE
  9426. for ac_header in sys/mman.h
  9427. do :
  9428. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  9429. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  9430. cat >>confdefs.h <<_ACEOF
  9431. #define HAVE_SYS_MMAN_H 1
  9432. _ACEOF
  9433. fi
  9434. done
  9435. for ac_func in mmap
  9436. do :
  9437. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  9438. if test "x$ac_cv_func_mmap" = x""yes; then :
  9439. cat >>confdefs.h <<_ACEOF
  9440. #define HAVE_MMAP 1
  9441. _ACEOF
  9442. fi
  9443. done
  9444. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  9445. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  9446. libffi_header_sys_mman_h=yes
  9447. else
  9448. libffi_header_sys_mman_h=no
  9449. fi
  9450. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  9451. if test "x$ac_cv_func_mmap" = x""yes; then :
  9452. libffi_func_mmap=yes
  9453. else
  9454. libffi_func_mmap=no
  9455. fi
  9456. if test "$libffi_header_sys_mman_h" != yes \
  9457. || test "$libffi_func_mmap" != yes; then
  9458. ac_cv_func_mmap_file=no
  9459. ac_cv_func_mmap_dev_zero=no
  9460. ac_cv_func_mmap_anon=no
  9461. else
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  9463. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  9464. if test "${ac_cv_func_mmap_file+set}" = set; then :
  9465. $as_echo_n "(cached) " >&6
  9466. else
  9467. # Add a system to this blacklist if
  9468. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  9469. # memory area containing the same data that you'd get if you applied
  9470. # read() to the same fd. The only system known to have a problem here
  9471. # is VMS, where text files have record structure.
  9472. case "$host_os" in
  9473. vms* | ultrix*)
  9474. ac_cv_func_mmap_file=no ;;
  9475. *)
  9476. ac_cv_func_mmap_file=yes;;
  9477. esac
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
  9480. $as_echo "$ac_cv_func_mmap_file" >&6; }
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  9482. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  9483. if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
  9484. $as_echo_n "(cached) " >&6
  9485. else
  9486. # Add a system to this blacklist if it has mmap() but /dev/zero
  9487. # does not exist, or if mmapping /dev/zero does not give anonymous
  9488. # zeroed pages with both the following properties:
  9489. # 1. If you map N consecutive pages in with one call, and then
  9490. # unmap any subset of those pages, the pages that were not
  9491. # explicitly unmapped remain accessible.
  9492. # 2. If you map two adjacent blocks of memory and then unmap them
  9493. # both at once, they must both go away.
  9494. # Systems known to be in this category are Windows (all variants),
  9495. # VMS, and Darwin.
  9496. case "$host_os" in
  9497. vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  9498. ac_cv_func_mmap_dev_zero=no ;;
  9499. *)
  9500. ac_cv_func_mmap_dev_zero=yes;;
  9501. esac
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
  9504. $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
  9505. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  9507. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  9508. if test "${ac_cv_decl_map_anon+set}" = set; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9512. /* end confdefs.h. */
  9513. #include <sys/types.h>
  9514. #include <sys/mman.h>
  9515. #include <unistd.h>
  9516. #ifndef MAP_ANONYMOUS
  9517. #define MAP_ANONYMOUS MAP_ANON
  9518. #endif
  9519. int
  9520. main ()
  9521. {
  9522. int n = MAP_ANONYMOUS;
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. if ac_fn_c_try_compile "$LINENO"; then :
  9528. ac_cv_decl_map_anon=yes
  9529. else
  9530. ac_cv_decl_map_anon=no
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9533. fi
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
  9535. $as_echo "$ac_cv_decl_map_anon" >&6; }
  9536. if test $ac_cv_decl_map_anon = no; then
  9537. ac_cv_func_mmap_anon=no
  9538. else
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  9540. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  9541. if test "${ac_cv_func_mmap_anon+set}" = set; then :
  9542. $as_echo_n "(cached) " >&6
  9543. else
  9544. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  9545. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  9546. # doesn't give anonymous zeroed pages with the same properties listed
  9547. # above for use of /dev/zero.
  9548. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  9549. case "$host_os" in
  9550. vms* | cygwin* | pe | mingw* | sco* | udk* )
  9551. ac_cv_func_mmap_anon=no ;;
  9552. *)
  9553. ac_cv_func_mmap_anon=yes;;
  9554. esac
  9555. fi
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
  9557. $as_echo "$ac_cv_func_mmap_anon" >&6; }
  9558. fi
  9559. fi
  9560. if test $ac_cv_func_mmap_file = yes; then
  9561. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  9562. fi
  9563. if test $ac_cv_func_mmap_dev_zero = yes; then
  9564. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  9565. fi
  9566. if test $ac_cv_func_mmap_anon = yes; then
  9567. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  9568. fi
  9569. if test -d $srcdir/testsuite; then
  9570. TESTSUBDIR_TRUE=
  9571. TESTSUBDIR_FALSE='#'
  9572. else
  9573. TESTSUBDIR_TRUE='#'
  9574. TESTSUBDIR_FALSE=
  9575. fi
  9576. TARGETDIR="unknown"
  9577. case "$host" in
  9578. alpha*-*-*)
  9579. TARGET=ALPHA; TARGETDIR=alpha;
  9580. # Support 128-bit long double, changeable via command-line switch.
  9581. HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
  9582. ;;
  9583. arm*-*-*)
  9584. TARGET=ARM; TARGETDIR=arm
  9585. ;;
  9586. amd64-*-freebsd* | amd64-*-openbsd*)
  9587. TARGET=X86_64; TARGETDIR=x86
  9588. ;;
  9589. amd64-*-freebsd*)
  9590. TARGET=X86_64; TARGETDIR=x86
  9591. ;;
  9592. avr32*-*-*)
  9593. TARGET=AVR32; TARGETDIR=avr32
  9594. ;;
  9595. cris-*-*)
  9596. TARGET=LIBFFI_CRIS; TARGETDIR=cris
  9597. ;;
  9598. frv-*-*)
  9599. TARGET=FRV; TARGETDIR=frv
  9600. ;;
  9601. hppa*-*-linux* | parisc*-*-linux*)
  9602. TARGET=PA_LINUX; TARGETDIR=pa
  9603. ;;
  9604. hppa*64-*-hpux*)
  9605. TARGET=PA64_HPUX; TARGETDIR=pa
  9606. ;;
  9607. hppa*-*-hpux*)
  9608. TARGET=PA_HPUX; TARGETDIR=pa
  9609. ;;
  9610. i?86-*-freebsd* | i?86-*-openbsd*)
  9611. TARGET=X86_FREEBSD; TARGETDIR=x86
  9612. ;;
  9613. i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
  9614. TARGET=X86_WIN32; TARGETDIR=x86
  9615. # All mingw/cygwin/win32 builds require this for sharedlib
  9616. AM_LTLDFLAGS="-no-undefined"
  9617. ;;
  9618. i?86-*-darwin*)
  9619. TARGET=X86_DARWIN; TARGETDIR=x86
  9620. ;;
  9621. i?86-*-solaris2.1[0-9]*)
  9622. TARGET=X86_64; TARGETDIR=x86
  9623. ;;
  9624. i?86-*-*)
  9625. TARGET=X86; TARGETDIR=x86
  9626. ;;
  9627. ia64*-*-*)
  9628. TARGET=IA64; TARGETDIR=ia64
  9629. ;;
  9630. m32r*-*-*)
  9631. TARGET=M32R; TARGETDIR=m32r
  9632. ;;
  9633. m68k-*-*)
  9634. TARGET=M68K; TARGETDIR=m68k
  9635. ;;
  9636. mips-sgi-irix5.* | mips-sgi-irix6.*)
  9637. TARGET=MIPS; TARGETDIR=mips
  9638. ;;
  9639. mips*-*-linux*)
  9640. # Support 128-bit long double for NewABI.
  9641. HAVE_LONG_DOUBLE='defined(__mips64)'
  9642. TARGET=MIPS; TARGETDIR=mips
  9643. ;;
  9644. moxie-*-*)
  9645. TARGET=MOXIE; TARGETDIR=moxie
  9646. ;;
  9647. powerpc*-*-linux* | powerpc-*-sysv*)
  9648. TARGET=POWERPC; TARGETDIR=powerpc
  9649. ;;
  9650. powerpc-*-beos*)
  9651. TARGET=POWERPC; TARGETDIR=powerpc
  9652. ;;
  9653. powerpc-*-darwin*)
  9654. TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
  9655. ;;
  9656. powerpc-*-aix* | rs6000-*-aix*)
  9657. TARGET=POWERPC_AIX; TARGETDIR=powerpc
  9658. ;;
  9659. powerpc-*-freebsd* | powerpc-*-openbsd*)
  9660. TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
  9661. ;;
  9662. powerpc*-*-rtems*)
  9663. TARGET=POWERPC; TARGETDIR=powerpc
  9664. ;;
  9665. s390-*-* | s390x-*-*)
  9666. TARGET=S390; TARGETDIR=s390
  9667. ;;
  9668. sh-*-* | sh[34]*-*-*)
  9669. TARGET=SH; TARGETDIR=sh
  9670. ;;
  9671. sh64-*-* | sh5*-*-*)
  9672. TARGET=SH64; TARGETDIR=sh64
  9673. ;;
  9674. sparc*-*-*)
  9675. TARGET=SPARC; TARGETDIR=sparc
  9676. ;;
  9677. x86_64-*-darwin*)
  9678. TARGET=X86_DARWIN; TARGETDIR=x86
  9679. ;;
  9680. x86_64-*-cygwin* | x86_64-*-mingw*)
  9681. TARGET=X86_WIN64; TARGETDIR=x86
  9682. ;;
  9683. x86_64-*-*)
  9684. TARGET=X86_64; TARGETDIR=x86
  9685. ;;
  9686. esac
  9687. if test $TARGETDIR = unknown; then
  9688. as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
  9689. fi
  9690. if test x$TARGET = xMIPS; then
  9691. MIPS_TRUE=
  9692. MIPS_FALSE='#'
  9693. else
  9694. MIPS_TRUE='#'
  9695. MIPS_FALSE=
  9696. fi
  9697. if test x$TARGET = xSPARC; then
  9698. SPARC_TRUE=
  9699. SPARC_FALSE='#'
  9700. else
  9701. SPARC_TRUE='#'
  9702. SPARC_FALSE=
  9703. fi
  9704. if test x$TARGET = xX86; then
  9705. X86_TRUE=
  9706. X86_FALSE='#'
  9707. else
  9708. X86_TRUE='#'
  9709. X86_FALSE=
  9710. fi
  9711. if test x$TARGET = xX86_FREEBSD; then
  9712. X86_FREEBSD_TRUE=
  9713. X86_FREEBSD_FALSE='#'
  9714. else
  9715. X86_FREEBSD_TRUE='#'
  9716. X86_FREEBSD_FALSE=
  9717. fi
  9718. if test x$TARGET = xX86_WIN32; then
  9719. X86_WIN32_TRUE=
  9720. X86_WIN32_FALSE='#'
  9721. else
  9722. X86_WIN32_TRUE='#'
  9723. X86_WIN32_FALSE=
  9724. fi
  9725. if test x$TARGET = xX86_WIN64; then
  9726. X86_WIN64_TRUE=
  9727. X86_WIN64_FALSE='#'
  9728. else
  9729. X86_WIN64_TRUE='#'
  9730. X86_WIN64_FALSE=
  9731. fi
  9732. if test x$TARGET = xX86_DARWIN; then
  9733. X86_DARWIN_TRUE=
  9734. X86_DARWIN_FALSE='#'
  9735. else
  9736. X86_DARWIN_TRUE='#'
  9737. X86_DARWIN_FALSE=
  9738. fi
  9739. if test x$TARGET = xALPHA; then
  9740. ALPHA_TRUE=
  9741. ALPHA_FALSE='#'
  9742. else
  9743. ALPHA_TRUE='#'
  9744. ALPHA_FALSE=
  9745. fi
  9746. if test x$TARGET = xIA64; then
  9747. IA64_TRUE=
  9748. IA64_FALSE='#'
  9749. else
  9750. IA64_TRUE='#'
  9751. IA64_FALSE=
  9752. fi
  9753. if test x$TARGET = xM32R; then
  9754. M32R_TRUE=
  9755. M32R_FALSE='#'
  9756. else
  9757. M32R_TRUE='#'
  9758. M32R_FALSE=
  9759. fi
  9760. if test x$TARGET = xM68K; then
  9761. M68K_TRUE=
  9762. M68K_FALSE='#'
  9763. else
  9764. M68K_TRUE='#'
  9765. M68K_FALSE=
  9766. fi
  9767. if test x$TARGET = xMOXIE; then
  9768. MOXIE_TRUE=
  9769. MOXIE_FALSE='#'
  9770. else
  9771. MOXIE_TRUE='#'
  9772. MOXIE_FALSE=
  9773. fi
  9774. if test x$TARGET = xPOWERPC; then
  9775. POWERPC_TRUE=
  9776. POWERPC_FALSE='#'
  9777. else
  9778. POWERPC_TRUE='#'
  9779. POWERPC_FALSE=
  9780. fi
  9781. if test x$TARGET = xPOWERPC_AIX; then
  9782. POWERPC_AIX_TRUE=
  9783. POWERPC_AIX_FALSE='#'
  9784. else
  9785. POWERPC_AIX_TRUE='#'
  9786. POWERPC_AIX_FALSE=
  9787. fi
  9788. if test x$TARGET = xPOWERPC_DARWIN; then
  9789. POWERPC_DARWIN_TRUE=
  9790. POWERPC_DARWIN_FALSE='#'
  9791. else
  9792. POWERPC_DARWIN_TRUE='#'
  9793. POWERPC_DARWIN_FALSE=
  9794. fi
  9795. if test x$TARGET = xPOWERPC_FREEBSD; then
  9796. POWERPC_FREEBSD_TRUE=
  9797. POWERPC_FREEBSD_FALSE='#'
  9798. else
  9799. POWERPC_FREEBSD_TRUE='#'
  9800. POWERPC_FREEBSD_FALSE=
  9801. fi
  9802. if test x$TARGET = xARM; then
  9803. ARM_TRUE=
  9804. ARM_FALSE='#'
  9805. else
  9806. ARM_TRUE='#'
  9807. ARM_FALSE=
  9808. fi
  9809. if test x$TARGET = xAVR32; then
  9810. AVR32_TRUE=
  9811. AVR32_FALSE='#'
  9812. else
  9813. AVR32_TRUE='#'
  9814. AVR32_FALSE=
  9815. fi
  9816. if test x$TARGET = xLIBFFI_CRIS; then
  9817. LIBFFI_CRIS_TRUE=
  9818. LIBFFI_CRIS_FALSE='#'
  9819. else
  9820. LIBFFI_CRIS_TRUE='#'
  9821. LIBFFI_CRIS_FALSE=
  9822. fi
  9823. if test x$TARGET = xFRV; then
  9824. FRV_TRUE=
  9825. FRV_FALSE='#'
  9826. else
  9827. FRV_TRUE='#'
  9828. FRV_FALSE=
  9829. fi
  9830. if test x$TARGET = xS390; then
  9831. S390_TRUE=
  9832. S390_FALSE='#'
  9833. else
  9834. S390_TRUE='#'
  9835. S390_FALSE=
  9836. fi
  9837. if test x$TARGET = xX86_64; then
  9838. X86_64_TRUE=
  9839. X86_64_FALSE='#'
  9840. else
  9841. X86_64_TRUE='#'
  9842. X86_64_FALSE=
  9843. fi
  9844. if test x$TARGET = xSH; then
  9845. SH_TRUE=
  9846. SH_FALSE='#'
  9847. else
  9848. SH_TRUE='#'
  9849. SH_FALSE=
  9850. fi
  9851. if test x$TARGET = xSH64; then
  9852. SH64_TRUE=
  9853. SH64_FALSE='#'
  9854. else
  9855. SH64_TRUE='#'
  9856. SH64_FALSE=
  9857. fi
  9858. if test x$TARGET = xPA_LINUX; then
  9859. PA_LINUX_TRUE=
  9860. PA_LINUX_FALSE='#'
  9861. else
  9862. PA_LINUX_TRUE='#'
  9863. PA_LINUX_FALSE=
  9864. fi
  9865. if test x$TARGET = xPA_HPUX; then
  9866. PA_HPUX_TRUE=
  9867. PA_HPUX_FALSE='#'
  9868. else
  9869. PA_HPUX_TRUE='#'
  9870. PA_HPUX_FALSE=
  9871. fi
  9872. if test x$TARGET = xPA64_HPUX; then
  9873. PA64_HPUX_TRUE=
  9874. PA64_HPUX_FALSE='#'
  9875. else
  9876. PA64_HPUX_TRUE='#'
  9877. PA64_HPUX_FALSE=
  9878. fi
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9880. $as_echo_n "checking for ANSI C header files... " >&6; }
  9881. if test "${ac_cv_header_stdc+set}" = set; then :
  9882. $as_echo_n "(cached) " >&6
  9883. else
  9884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9885. /* end confdefs.h. */
  9886. #include <stdlib.h>
  9887. #include <stdarg.h>
  9888. #include <string.h>
  9889. #include <float.h>
  9890. int
  9891. main ()
  9892. {
  9893. ;
  9894. return 0;
  9895. }
  9896. _ACEOF
  9897. if ac_fn_c_try_compile "$LINENO"; then :
  9898. ac_cv_header_stdc=yes
  9899. else
  9900. ac_cv_header_stdc=no
  9901. fi
  9902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9903. if test $ac_cv_header_stdc = yes; then
  9904. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9906. /* end confdefs.h. */
  9907. #include <string.h>
  9908. _ACEOF
  9909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9910. $EGREP "memchr" >/dev/null 2>&1; then :
  9911. else
  9912. ac_cv_header_stdc=no
  9913. fi
  9914. rm -f conftest*
  9915. fi
  9916. if test $ac_cv_header_stdc = yes; then
  9917. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9919. /* end confdefs.h. */
  9920. #include <stdlib.h>
  9921. _ACEOF
  9922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9923. $EGREP "free" >/dev/null 2>&1; then :
  9924. else
  9925. ac_cv_header_stdc=no
  9926. fi
  9927. rm -f conftest*
  9928. fi
  9929. if test $ac_cv_header_stdc = yes; then
  9930. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9931. if test "$cross_compiling" = yes; then :
  9932. :
  9933. else
  9934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9935. /* end confdefs.h. */
  9936. #include <ctype.h>
  9937. #include <stdlib.h>
  9938. #if ((' ' & 0x0FF) == 0x020)
  9939. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9940. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9941. #else
  9942. # define ISLOWER(c) \
  9943. (('a' <= (c) && (c) <= 'i') \
  9944. || ('j' <= (c) && (c) <= 'r') \
  9945. || ('s' <= (c) && (c) <= 'z'))
  9946. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9947. #endif
  9948. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9949. int
  9950. main ()
  9951. {
  9952. int i;
  9953. for (i = 0; i < 256; i++)
  9954. if (XOR (islower (i), ISLOWER (i))
  9955. || toupper (i) != TOUPPER (i))
  9956. return 2;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. if ac_fn_c_try_run "$LINENO"; then :
  9961. else
  9962. ac_cv_header_stdc=no
  9963. fi
  9964. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9965. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9966. fi
  9967. fi
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9970. $as_echo "$ac_cv_header_stdc" >&6; }
  9971. if test $ac_cv_header_stdc = yes; then
  9972. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9973. fi
  9974. for ac_func in memcpy
  9975. do :
  9976. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  9977. if test "x$ac_cv_func_memcpy" = x""yes; then :
  9978. cat >>confdefs.h <<_ACEOF
  9979. #define HAVE_MEMCPY 1
  9980. _ACEOF
  9981. fi
  9982. done
  9983. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9984. # for constant arguments. Useless!
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9986. $as_echo_n "checking for working alloca.h... " >&6; }
  9987. if test "${ac_cv_working_alloca_h+set}" = set; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9991. /* end confdefs.h. */
  9992. #include <alloca.h>
  9993. int
  9994. main ()
  9995. {
  9996. char *p = (char *) alloca (2 * sizeof (int));
  9997. if (p) return 0;
  9998. ;
  9999. return 0;
  10000. }
  10001. _ACEOF
  10002. if ac_fn_c_try_link "$LINENO"; then :
  10003. ac_cv_working_alloca_h=yes
  10004. else
  10005. ac_cv_working_alloca_h=no
  10006. fi
  10007. rm -f core conftest.err conftest.$ac_objext \
  10008. conftest$ac_exeext conftest.$ac_ext
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  10011. $as_echo "$ac_cv_working_alloca_h" >&6; }
  10012. if test $ac_cv_working_alloca_h = yes; then
  10013. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  10014. fi
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  10016. $as_echo_n "checking for alloca... " >&6; }
  10017. if test "${ac_cv_func_alloca_works+set}" = set; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10021. /* end confdefs.h. */
  10022. #ifdef __GNUC__
  10023. # define alloca __builtin_alloca
  10024. #else
  10025. # ifdef _MSC_VER
  10026. # include <malloc.h>
  10027. # define alloca _alloca
  10028. # else
  10029. # ifdef HAVE_ALLOCA_H
  10030. # include <alloca.h>
  10031. # else
  10032. # ifdef _AIX
  10033. #pragma alloca
  10034. # else
  10035. # ifndef alloca /* predefined by HP cc +Olibcalls */
  10036. char *alloca ();
  10037. # endif
  10038. # endif
  10039. # endif
  10040. # endif
  10041. #endif
  10042. int
  10043. main ()
  10044. {
  10045. char *p = (char *) alloca (1);
  10046. if (p) return 0;
  10047. ;
  10048. return 0;
  10049. }
  10050. _ACEOF
  10051. if ac_fn_c_try_link "$LINENO"; then :
  10052. ac_cv_func_alloca_works=yes
  10053. else
  10054. ac_cv_func_alloca_works=no
  10055. fi
  10056. rm -f core conftest.err conftest.$ac_objext \
  10057. conftest$ac_exeext conftest.$ac_ext
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  10060. $as_echo "$ac_cv_func_alloca_works" >&6; }
  10061. if test $ac_cv_func_alloca_works = yes; then
  10062. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  10063. else
  10064. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  10065. # that cause trouble. Some versions do not even contain alloca or
  10066. # contain a buggy version. If you still want to use their alloca,
  10067. # use ar to extract alloca.o from them instead of compiling alloca.c.
  10068. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  10069. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  10071. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  10072. if test "${ac_cv_os_cray+set}" = set; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10076. /* end confdefs.h. */
  10077. #if defined CRAY && ! defined CRAY2
  10078. webecray
  10079. #else
  10080. wenotbecray
  10081. #endif
  10082. _ACEOF
  10083. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10084. $EGREP "webecray" >/dev/null 2>&1; then :
  10085. ac_cv_os_cray=yes
  10086. else
  10087. ac_cv_os_cray=no
  10088. fi
  10089. rm -f conftest*
  10090. fi
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  10092. $as_echo "$ac_cv_os_cray" >&6; }
  10093. if test $ac_cv_os_cray = yes; then
  10094. for ac_func in _getb67 GETB67 getb67; do
  10095. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10096. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10097. eval as_val=\$$as_ac_var
  10098. if test "x$as_val" = x""yes; then :
  10099. cat >>confdefs.h <<_ACEOF
  10100. #define CRAY_STACKSEG_END $ac_func
  10101. _ACEOF
  10102. break
  10103. fi
  10104. done
  10105. fi
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  10107. $as_echo_n "checking stack direction for C alloca... " >&6; }
  10108. if test "${ac_cv_c_stack_direction+set}" = set; then :
  10109. $as_echo_n "(cached) " >&6
  10110. else
  10111. if test "$cross_compiling" = yes; then :
  10112. ac_cv_c_stack_direction=0
  10113. else
  10114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10115. /* end confdefs.h. */
  10116. $ac_includes_default
  10117. int
  10118. find_stack_direction ()
  10119. {
  10120. static char *addr = 0;
  10121. auto char dummy;
  10122. if (addr == 0)
  10123. {
  10124. addr = &dummy;
  10125. return find_stack_direction ();
  10126. }
  10127. else
  10128. return (&dummy > addr) ? 1 : -1;
  10129. }
  10130. int
  10131. main ()
  10132. {
  10133. return find_stack_direction () < 0;
  10134. }
  10135. _ACEOF
  10136. if ac_fn_c_try_run "$LINENO"; then :
  10137. ac_cv_c_stack_direction=1
  10138. else
  10139. ac_cv_c_stack_direction=-1
  10140. fi
  10141. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10142. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10143. fi
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  10146. $as_echo "$ac_cv_c_stack_direction" >&6; }
  10147. cat >>confdefs.h <<_ACEOF
  10148. #define STACK_DIRECTION $ac_cv_c_stack_direction
  10149. _ACEOF
  10150. fi
  10151. # The cast to long int works around a bug in the HP C Compiler
  10152. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10153. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10154. # This bug is HP SR number 8606223364.
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  10156. $as_echo_n "checking size of double... " >&6; }
  10157. if test "${ac_cv_sizeof_double+set}" = set; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  10161. else
  10162. if test "$ac_cv_type_double" = yes; then
  10163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10165. { as_fn_set_status 77
  10166. as_fn_error "cannot compute sizeof (double)
  10167. See \`config.log' for more details." "$LINENO" 5; }; }
  10168. else
  10169. ac_cv_sizeof_double=0
  10170. fi
  10171. fi
  10172. fi
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  10174. $as_echo "$ac_cv_sizeof_double" >&6; }
  10175. cat >>confdefs.h <<_ACEOF
  10176. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  10177. _ACEOF
  10178. # The cast to long int works around a bug in the HP C Compiler
  10179. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10180. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10181. # This bug is HP SR number 8606223364.
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  10183. $as_echo_n "checking size of long double... " >&6; }
  10184. if test "${ac_cv_sizeof_long_double+set}" = set; then :
  10185. $as_echo_n "(cached) " >&6
  10186. else
  10187. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  10188. else
  10189. if test "$ac_cv_type_long_double" = yes; then
  10190. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10192. { as_fn_set_status 77
  10193. as_fn_error "cannot compute sizeof (long double)
  10194. See \`config.log' for more details." "$LINENO" 5; }; }
  10195. else
  10196. ac_cv_sizeof_long_double=0
  10197. fi
  10198. fi
  10199. fi
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  10201. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  10202. cat >>confdefs.h <<_ACEOF
  10203. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  10204. _ACEOF
  10205. # Also AC_SUBST this variable for ffi.h.
  10206. if test -z "$HAVE_LONG_DOUBLE"; then
  10207. HAVE_LONG_DOUBLE=0
  10208. if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
  10209. if test $ac_cv_sizeof_long_double != 0; then
  10210. HAVE_LONG_DOUBLE=1
  10211. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  10212. fi
  10213. fi
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10216. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10217. if test "${ac_cv_c_bigendian+set}" = set; then :
  10218. $as_echo_n "(cached) " >&6
  10219. else
  10220. ac_cv_c_bigendian=unknown
  10221. # See if we're dealing with a universal compiler.
  10222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10223. /* end confdefs.h. */
  10224. #ifndef __APPLE_CC__
  10225. not a universal capable compiler
  10226. #endif
  10227. typedef int dummy;
  10228. _ACEOF
  10229. if ac_fn_c_try_compile "$LINENO"; then :
  10230. # Check for potential -arch flags. It is not universal unless
  10231. # there are at least two -arch flags with different values.
  10232. ac_arch=
  10233. ac_prev=
  10234. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10235. if test -n "$ac_prev"; then
  10236. case $ac_word in
  10237. i?86 | x86_64 | ppc | ppc64)
  10238. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10239. ac_arch=$ac_word
  10240. else
  10241. ac_cv_c_bigendian=universal
  10242. break
  10243. fi
  10244. ;;
  10245. esac
  10246. ac_prev=
  10247. elif test "x$ac_word" = "x-arch"; then
  10248. ac_prev=arch
  10249. fi
  10250. done
  10251. fi
  10252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10253. if test $ac_cv_c_bigendian = unknown; then
  10254. # See if sys/param.h defines the BYTE_ORDER macro.
  10255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10256. /* end confdefs.h. */
  10257. #include <sys/types.h>
  10258. #include <sys/param.h>
  10259. int
  10260. main ()
  10261. {
  10262. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10263. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10264. && LITTLE_ENDIAN)
  10265. bogus endian macros
  10266. #endif
  10267. ;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. if ac_fn_c_try_compile "$LINENO"; then :
  10272. # It does; now see whether it defined to BIG_ENDIAN or not.
  10273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10274. /* end confdefs.h. */
  10275. #include <sys/types.h>
  10276. #include <sys/param.h>
  10277. int
  10278. main ()
  10279. {
  10280. #if BYTE_ORDER != BIG_ENDIAN
  10281. not big endian
  10282. #endif
  10283. ;
  10284. return 0;
  10285. }
  10286. _ACEOF
  10287. if ac_fn_c_try_compile "$LINENO"; then :
  10288. ac_cv_c_bigendian=yes
  10289. else
  10290. ac_cv_c_bigendian=no
  10291. fi
  10292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10293. fi
  10294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10295. fi
  10296. if test $ac_cv_c_bigendian = unknown; then
  10297. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10299. /* end confdefs.h. */
  10300. #include <limits.h>
  10301. int
  10302. main ()
  10303. {
  10304. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10305. bogus endian macros
  10306. #endif
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_c_try_compile "$LINENO"; then :
  10312. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10314. /* end confdefs.h. */
  10315. #include <limits.h>
  10316. int
  10317. main ()
  10318. {
  10319. #ifndef _BIG_ENDIAN
  10320. not big endian
  10321. #endif
  10322. ;
  10323. return 0;
  10324. }
  10325. _ACEOF
  10326. if ac_fn_c_try_compile "$LINENO"; then :
  10327. ac_cv_c_bigendian=yes
  10328. else
  10329. ac_cv_c_bigendian=no
  10330. fi
  10331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10332. fi
  10333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10334. fi
  10335. if test $ac_cv_c_bigendian = unknown; then
  10336. # Compile a test program.
  10337. if test "$cross_compiling" = yes; then :
  10338. # Try to guess by grepping values from an object file.
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. short int ascii_mm[] =
  10342. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10343. short int ascii_ii[] =
  10344. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10345. int use_ascii (int i) {
  10346. return ascii_mm[i] + ascii_ii[i];
  10347. }
  10348. short int ebcdic_ii[] =
  10349. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10350. short int ebcdic_mm[] =
  10351. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10352. int use_ebcdic (int i) {
  10353. return ebcdic_mm[i] + ebcdic_ii[i];
  10354. }
  10355. extern int foo;
  10356. int
  10357. main ()
  10358. {
  10359. return use_ascii (foo) == use_ebcdic (foo);
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_compile "$LINENO"; then :
  10365. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10366. ac_cv_c_bigendian=yes
  10367. fi
  10368. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10369. if test "$ac_cv_c_bigendian" = unknown; then
  10370. ac_cv_c_bigendian=no
  10371. else
  10372. # finding both strings is unlikely to happen, but who knows?
  10373. ac_cv_c_bigendian=unknown
  10374. fi
  10375. fi
  10376. fi
  10377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10378. else
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. $ac_includes_default
  10382. int
  10383. main ()
  10384. {
  10385. /* Are we little or big endian? From Harbison&Steele. */
  10386. union
  10387. {
  10388. long int l;
  10389. char c[sizeof (long int)];
  10390. } u;
  10391. u.l = 1;
  10392. return u.c[sizeof (long int) - 1] == 1;
  10393. ;
  10394. return 0;
  10395. }
  10396. _ACEOF
  10397. if ac_fn_c_try_run "$LINENO"; then :
  10398. ac_cv_c_bigendian=no
  10399. else
  10400. ac_cv_c_bigendian=yes
  10401. fi
  10402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10403. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10404. fi
  10405. fi
  10406. fi
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10408. $as_echo "$ac_cv_c_bigendian" >&6; }
  10409. case $ac_cv_c_bigendian in #(
  10410. yes)
  10411. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10412. ;; #(
  10413. no)
  10414. ;; #(
  10415. universal)
  10416. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10417. ;; #(
  10418. *)
  10419. as_fn_error "unknown endianness
  10420. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10421. esac
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
  10423. $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
  10424. if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
  10425. $as_echo_n "(cached) " >&6
  10426. else
  10427. libffi_cv_as_cfi_pseudo_op=unknown
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. asm (".cfi_startproc\n\t.cfi_endproc");
  10431. int
  10432. main ()
  10433. {
  10434. ;
  10435. return 0;
  10436. }
  10437. _ACEOF
  10438. if ac_fn_c_try_compile "$LINENO"; then :
  10439. libffi_cv_as_cfi_pseudo_op=yes
  10440. else
  10441. libffi_cv_as_cfi_pseudo_op=no
  10442. fi
  10443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10444. fi
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
  10446. $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
  10447. if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
  10448. $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
  10449. fi
  10450. if test x$TARGET = xSPARC; then
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
  10452. $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
  10453. if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. save_CFLAGS="$CFLAGS"
  10457. save_LDFLAGS="$LDFLAGS"
  10458. CFLAGS="$CFLAGS -fpic"
  10459. LDFLAGS="$LDFLAGS -shared"
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
  10463. int
  10464. main ()
  10465. {
  10466. ;
  10467. return 0;
  10468. }
  10469. _ACEOF
  10470. if ac_fn_c_try_link "$LINENO"; then :
  10471. libffi_cv_as_sparc_ua_pcrel=yes
  10472. else
  10473. libffi_cv_as_sparc_ua_pcrel=no
  10474. fi
  10475. rm -f core conftest.err conftest.$ac_objext \
  10476. conftest$ac_exeext conftest.$ac_ext
  10477. CFLAGS="$save_CFLAGS"
  10478. LDFLAGS="$save_LDFLAGS"
  10479. fi
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
  10481. $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
  10482. if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
  10483. $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
  10484. fi
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
  10486. $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
  10487. if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. libffi_cv_as_register_pseudo_op=unknown
  10491. # Check if we have .register
  10492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10493. /* end confdefs.h. */
  10494. asm (".register %g2, #scratch");
  10495. int
  10496. main ()
  10497. {
  10498. ;
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_c_try_compile "$LINENO"; then :
  10503. libffi_cv_as_register_pseudo_op=yes
  10504. else
  10505. libffi_cv_as_register_pseudo_op=no
  10506. fi
  10507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10508. fi
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
  10510. $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
  10511. if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
  10512. $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
  10513. fi
  10514. fi
  10515. if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
  10517. $as_echo_n "checking assembler supports pc related relocs... " >&6; }
  10518. if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
  10519. $as_echo_n "(cached) " >&6
  10520. else
  10521. libffi_cv_as_x86_pcrel=no
  10522. echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
  10523. if $CC $CFLAGS -c conftest.s > /dev/null; then
  10524. libffi_cv_as_x86_pcrel=yes
  10525. fi
  10526. fi
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
  10528. $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
  10529. if test "x$libffi_cv_as_x86_pcrel" = xyes; then
  10530. $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
  10531. fi
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
  10533. $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
  10534. if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. libffi_cv_as_ascii_pseudo_op=unknown
  10538. # Check if we have .ascii
  10539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10540. /* end confdefs.h. */
  10541. asm (".ascii \"string\"");
  10542. int
  10543. main ()
  10544. {
  10545. ;
  10546. return 0;
  10547. }
  10548. _ACEOF
  10549. if ac_fn_c_try_compile "$LINENO"; then :
  10550. libffi_cv_as_ascii_pseudo_op=yes
  10551. else
  10552. libffi_cv_as_ascii_pseudo_op=no
  10553. fi
  10554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10555. fi
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
  10557. $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
  10558. if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
  10559. $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
  10560. fi
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
  10562. $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
  10563. if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. libffi_cv_as_string_pseudo_op=unknown
  10567. # Check if we have .string
  10568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10569. /* end confdefs.h. */
  10570. asm (".string \"string\"");
  10571. int
  10572. main ()
  10573. {
  10574. ;
  10575. return 0;
  10576. }
  10577. _ACEOF
  10578. if ac_fn_c_try_compile "$LINENO"; then :
  10579. libffi_cv_as_string_pseudo_op=yes
  10580. else
  10581. libffi_cv_as_string_pseudo_op=no
  10582. fi
  10583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
  10586. $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
  10587. if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
  10588. $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
  10589. fi
  10590. fi
  10591. if test x$TARGET = xX86_WIN64; then
  10592. { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
  10593. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  10594. if test "${lt_cv_sys_symbol_underscore+set}" = set; then
  10595. $as_echo_n "(cached) " >&6
  10596. else
  10597. lt_cv_sys_symbol_underscore=no
  10598. cat > conftest.$ac_ext <<_LT_EOF
  10599. void nm_test_func(){}
  10600. int main(){nm_test_func;return 0;}
  10601. _LT_EOF
  10602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10603. (eval $ac_compile) 2>&5
  10604. ac_status=$?
  10605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10606. (exit $ac_status); }; then
  10607. # Now try to grab the symbols.
  10608. ac_nlist=conftest.nm
  10609. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
  10610. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  10611. ac_status=$?
  10612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10613. (exit $ac_status); } && test -s "$ac_nlist"; then
  10614. # See whether the symbols have a leading underscore.
  10615. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  10616. lt_cv_sys_symbol_underscore=yes
  10617. else
  10618. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  10619. :
  10620. else
  10621. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  10622. fi
  10623. fi
  10624. else
  10625. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10626. fi
  10627. else
  10628. echo "configure: failed program was:" >&5
  10629. cat conftest.c >&5
  10630. fi
  10631. rm -rf conftest*
  10632. fi
  10633. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
  10634. $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  10635. sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  10636. if test "x$sys_symbol_underscore" = xyes; then
  10637. cat >>confdefs.h <<\_ACEOF
  10638. #define SYMBOL_UNDERSCORE 1
  10639. _ACEOF
  10640. fi
  10641. fi
  10642. case "$target" in
  10643. *-apple-darwin1* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
  10644. $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
  10645. ;;
  10646. esac
  10647. if test x$TARGET = xX86_64; then
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
  10649. $as_echo_n "checking assembler supports unwind section type... " >&6; }
  10650. if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. libffi_cv_as_x86_64_unwind_section_type=yes
  10654. echo '.section .eh_frame,"a",@unwind' > conftest.s
  10655. if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
  10656. libffi_cv_as_x86_64_unwind_section_type=no
  10657. fi
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
  10660. $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
  10661. if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
  10662. $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
  10663. fi
  10664. fi
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
  10666. $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
  10667. if test "${libffi_cv_ro_eh_frame+set}" = set; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. libffi_cv_ro_eh_frame=no
  10671. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  10672. if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
  10673. if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
  10674. libffi_cv_ro_eh_frame=yes
  10675. elif grep '.section.*eh_frame.*#alloc' conftest.c \
  10676. | grep -v '#write' > /dev/null; then
  10677. libffi_cv_ro_eh_frame=yes
  10678. fi
  10679. fi
  10680. rm -f conftest.*
  10681. fi
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
  10683. $as_echo "$libffi_cv_ro_eh_frame" >&6; }
  10684. if test "x$libffi_cv_ro_eh_frame" = xyes; then
  10685. $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
  10686. $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
  10687. else
  10688. $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
  10689. fi
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
  10691. $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
  10692. if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
  10696. libffi_cv_hidden_visibility_attribute=no
  10697. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  10698. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  10699. (eval $ac_try) 2>&5
  10700. ac_status=$?
  10701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10702. test $ac_status = 0; }; }; then
  10703. if grep '\.hidden.*foo' conftest.s >/dev/null; then
  10704. libffi_cv_hidden_visibility_attribute=yes
  10705. fi
  10706. fi
  10707. rm -f conftest.*
  10708. fi
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
  10710. $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
  10711. if test $libffi_cv_hidden_visibility_attribute = yes; then
  10712. $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
  10713. fi
  10714. # Check whether --enable-debug was given.
  10715. if test "${enable_debug+set}" = set; then :
  10716. enableval=$enable_debug; if test "$enable_debug" = "yes"; then
  10717. $as_echo "#define FFI_DEBUG 1" >>confdefs.h
  10718. fi
  10719. fi
  10720. if test "$enable_debug" = "yes"; then
  10721. FFI_DEBUG_TRUE=
  10722. FFI_DEBUG_FALSE='#'
  10723. else
  10724. FFI_DEBUG_TRUE='#'
  10725. FFI_DEBUG_FALSE=
  10726. fi
  10727. # Check whether --enable-structs was given.
  10728. if test "${enable_structs+set}" = set; then :
  10729. enableval=$enable_structs; if test "$enable_structs" = "no"; then
  10730. $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
  10731. fi
  10732. fi
  10733. # Check whether --enable-raw-api was given.
  10734. if test "${enable_raw_api+set}" = set; then :
  10735. enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
  10736. $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
  10737. fi
  10738. fi
  10739. # Check whether --enable-purify-safety was given.
  10740. if test "${enable_purify_safety+set}" = set; then :
  10741. enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
  10742. $as_echo "#define USING_PURIFY 1" >>confdefs.h
  10743. fi
  10744. fi
  10745. if test -n "$with_cross_host" &&
  10746. test x"$with_cross_host" != x"no"; then
  10747. toolexecdir='$(exec_prefix)/$(target_alias)'
  10748. toolexeclibdir='$(toolexecdir)/lib'
  10749. else
  10750. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  10751. toolexeclibdir='$(libdir)'
  10752. fi
  10753. multi_os_directory=`$CC -print-multi-os-directory`
  10754. case $multi_os_directory in
  10755. .) ;; # Avoid trailing /.
  10756. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  10757. esac
  10758. if test "${multilib}" = "yes"; then
  10759. multilib_arg="--enable-multilib"
  10760. else
  10761. multilib_arg=
  10762. fi
  10763. ac_config_commands="$ac_config_commands include"
  10764. ac_config_commands="$ac_config_commands src"
  10765. ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
  10766. ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
  10767. cat >confcache <<\_ACEOF
  10768. # This file is a shell script that caches the results of configure
  10769. # tests run on this system so they can be shared between configure
  10770. # scripts and configure runs, see configure's option --config-cache.
  10771. # It is not useful on other systems. If it contains results you don't
  10772. # want to keep, you may remove or edit it.
  10773. #
  10774. # config.status only pays attention to the cache file if you give it
  10775. # the --recheck option to rerun configure.
  10776. #
  10777. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10778. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10779. # following values.
  10780. _ACEOF
  10781. # The following way of writing the cache mishandles newlines in values,
  10782. # but we know of no workaround that is simple, portable, and efficient.
  10783. # So, we kill variables containing newlines.
  10784. # Ultrix sh set writes to stderr and can't be redirected directly,
  10785. # and sets the high bit in the cache file unless we assign to the vars.
  10786. (
  10787. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10788. eval ac_val=\$$ac_var
  10789. case $ac_val in #(
  10790. *${as_nl}*)
  10791. case $ac_var in #(
  10792. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10793. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10794. esac
  10795. case $ac_var in #(
  10796. _ | IFS | as_nl) ;; #(
  10797. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10798. *) { eval $ac_var=; unset $ac_var;} ;;
  10799. esac ;;
  10800. esac
  10801. done
  10802. (set) 2>&1 |
  10803. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10804. *${as_nl}ac_space=\ *)
  10805. # `set' does not quote correctly, so add quotes: double-quote
  10806. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10807. sed -n \
  10808. "s/'/'\\\\''/g;
  10809. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10810. ;; #(
  10811. *)
  10812. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10813. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10814. ;;
  10815. esac |
  10816. sort
  10817. ) |
  10818. sed '
  10819. /^ac_cv_env_/b end
  10820. t clear
  10821. :clear
  10822. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10823. t end
  10824. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10825. :end' >>confcache
  10826. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10827. if test -w "$cache_file"; then
  10828. test "x$cache_file" != "x/dev/null" &&
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10830. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10831. cat confcache >$cache_file
  10832. else
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10834. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10835. fi
  10836. fi
  10837. rm -f confcache
  10838. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10839. # Let make expand exec_prefix.
  10840. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10841. DEFS=-DHAVE_CONFIG_H
  10842. ac_libobjs=
  10843. ac_ltlibobjs=
  10844. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10845. # 1. Remove the extension, and $U if already installed.
  10846. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10847. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10848. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10849. # will be set to the directory where LIBOBJS objects are built.
  10850. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10851. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10852. done
  10853. LIBOBJS=$ac_libobjs
  10854. LTLIBOBJS=$ac_ltlibobjs
  10855. if test -n "$EXEEXT"; then
  10856. am__EXEEXT_TRUE=
  10857. am__EXEEXT_FALSE='#'
  10858. else
  10859. am__EXEEXT_TRUE='#'
  10860. am__EXEEXT_FALSE=
  10861. fi
  10862. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10863. as_fn_error "conditional \"AMDEP\" was never defined.
  10864. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10865. fi
  10866. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10867. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  10868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10869. fi
  10870. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  10871. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  10872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10873. fi
  10874. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10875. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10876. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10877. fi
  10878. if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
  10879. as_fn_error "conditional \"TESTSUBDIR\" was never defined.
  10880. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10881. fi
  10882. if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
  10883. as_fn_error "conditional \"MIPS\" was never defined.
  10884. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10885. fi
  10886. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  10887. as_fn_error "conditional \"SPARC\" was never defined.
  10888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10889. fi
  10890. if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
  10891. as_fn_error "conditional \"X86\" was never defined.
  10892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10893. fi
  10894. if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
  10895. as_fn_error "conditional \"X86_FREEBSD\" was never defined.
  10896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10897. fi
  10898. if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
  10899. as_fn_error "conditional \"X86_WIN32\" was never defined.
  10900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10901. fi
  10902. if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
  10903. as_fn_error "conditional \"X86_WIN64\" was never defined.
  10904. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10905. fi
  10906. if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
  10907. as_fn_error "conditional \"X86_DARWIN\" was never defined.
  10908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10909. fi
  10910. if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
  10911. as_fn_error "conditional \"ALPHA\" was never defined.
  10912. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10913. fi
  10914. if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
  10915. as_fn_error "conditional \"IA64\" was never defined.
  10916. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10917. fi
  10918. if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
  10919. as_fn_error "conditional \"M32R\" was never defined.
  10920. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10921. fi
  10922. if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
  10923. as_fn_error "conditional \"M68K\" was never defined.
  10924. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10925. fi
  10926. if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
  10927. as_fn_error "conditional \"MOXIE\" was never defined.
  10928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10929. fi
  10930. if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
  10931. as_fn_error "conditional \"POWERPC\" was never defined.
  10932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10933. fi
  10934. if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
  10935. as_fn_error "conditional \"POWERPC_AIX\" was never defined.
  10936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10937. fi
  10938. if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
  10939. as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
  10940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10941. fi
  10942. if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
  10943. as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
  10944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10945. fi
  10946. if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
  10947. as_fn_error "conditional \"ARM\" was never defined.
  10948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10949. fi
  10950. if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
  10951. as_fn_error "conditional \"AVR32\" was never defined.
  10952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10953. fi
  10954. if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
  10955. as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
  10956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10957. fi
  10958. if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
  10959. as_fn_error "conditional \"FRV\" was never defined.
  10960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10961. fi
  10962. if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
  10963. as_fn_error "conditional \"S390\" was never defined.
  10964. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10965. fi
  10966. if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
  10967. as_fn_error "conditional \"X86_64\" was never defined.
  10968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10969. fi
  10970. if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
  10971. as_fn_error "conditional \"SH\" was never defined.
  10972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10973. fi
  10974. if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
  10975. as_fn_error "conditional \"SH64\" was never defined.
  10976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10977. fi
  10978. if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
  10979. as_fn_error "conditional \"PA_LINUX\" was never defined.
  10980. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10981. fi
  10982. if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
  10983. as_fn_error "conditional \"PA_HPUX\" was never defined.
  10984. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10985. fi
  10986. if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
  10987. as_fn_error "conditional \"PA64_HPUX\" was never defined.
  10988. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10989. fi
  10990. if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
  10991. as_fn_error "conditional \"FFI_DEBUG\" was never defined.
  10992. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10993. fi
  10994. : ${CONFIG_STATUS=./config.status}
  10995. ac_write_fail=0
  10996. ac_clean_files_save=$ac_clean_files
  10997. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10999. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11000. as_write_fail=0
  11001. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11002. #! $SHELL
  11003. # Generated by $as_me.
  11004. # Run this file to recreate the current configuration.
  11005. # Compiler output produced by configure, useful for debugging
  11006. # configure, is in config.log if it exists.
  11007. debug=false
  11008. ac_cs_recheck=false
  11009. ac_cs_silent=false
  11010. SHELL=\${CONFIG_SHELL-$SHELL}
  11011. export SHELL
  11012. _ASEOF
  11013. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11014. ## -------------------- ##
  11015. ## M4sh Initialization. ##
  11016. ## -------------------- ##
  11017. # Be more Bourne compatible
  11018. DUALCASE=1; export DUALCASE # for MKS sh
  11019. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11020. emulate sh
  11021. NULLCMD=:
  11022. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11023. # is contrary to our usage. Disable this feature.
  11024. alias -g '${1+"$@"}'='"$@"'
  11025. setopt NO_GLOB_SUBST
  11026. else
  11027. case `(set -o) 2>/dev/null` in #(
  11028. *posix*) :
  11029. set -o posix ;; #(
  11030. *) :
  11031. ;;
  11032. esac
  11033. fi
  11034. as_nl='
  11035. '
  11036. export as_nl
  11037. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11038. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11039. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11040. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11041. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11042. # but without wasting forks for bash or zsh.
  11043. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11044. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11045. as_echo='print -r --'
  11046. as_echo_n='print -rn --'
  11047. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11048. as_echo='printf %s\n'
  11049. as_echo_n='printf %s'
  11050. else
  11051. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11052. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11053. as_echo_n='/usr/ucb/echo -n'
  11054. else
  11055. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11056. as_echo_n_body='eval
  11057. arg=$1;
  11058. case $arg in #(
  11059. *"$as_nl"*)
  11060. expr "X$arg" : "X\\(.*\\)$as_nl";
  11061. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11062. esac;
  11063. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11064. '
  11065. export as_echo_n_body
  11066. as_echo_n='sh -c $as_echo_n_body as_echo'
  11067. fi
  11068. export as_echo_body
  11069. as_echo='sh -c $as_echo_body as_echo'
  11070. fi
  11071. # The user is always right.
  11072. if test "${PATH_SEPARATOR+set}" != set; then
  11073. PATH_SEPARATOR=:
  11074. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11075. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11076. PATH_SEPARATOR=';'
  11077. }
  11078. fi
  11079. # IFS
  11080. # We need space, tab and new line, in precisely that order. Quoting is
  11081. # there to prevent editors from complaining about space-tab.
  11082. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11083. # splitting by setting IFS to empty value.)
  11084. IFS=" "" $as_nl"
  11085. # Find who we are. Look in the path if we contain no directory separator.
  11086. case $0 in #((
  11087. *[\\/]* ) as_myself=$0 ;;
  11088. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11089. for as_dir in $PATH
  11090. do
  11091. IFS=$as_save_IFS
  11092. test -z "$as_dir" && as_dir=.
  11093. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11094. done
  11095. IFS=$as_save_IFS
  11096. ;;
  11097. esac
  11098. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11099. # in which case we are not to be found in the path.
  11100. if test "x$as_myself" = x; then
  11101. as_myself=$0
  11102. fi
  11103. if test ! -f "$as_myself"; then
  11104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11105. exit 1
  11106. fi
  11107. # Unset variables that we do not need and which cause bugs (e.g. in
  11108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11109. # suppresses any "Segmentation fault" message there. '((' could
  11110. # trigger a bug in pdksh 5.2.14.
  11111. for as_var in BASH_ENV ENV MAIL MAILPATH
  11112. do eval test x\${$as_var+set} = xset \
  11113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11114. done
  11115. PS1='$ '
  11116. PS2='> '
  11117. PS4='+ '
  11118. # NLS nuisances.
  11119. LC_ALL=C
  11120. export LC_ALL
  11121. LANGUAGE=C
  11122. export LANGUAGE
  11123. # CDPATH.
  11124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11125. # as_fn_error ERROR [LINENO LOG_FD]
  11126. # ---------------------------------
  11127. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11128. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11129. # script with status $?, using 1 if that was 0.
  11130. as_fn_error ()
  11131. {
  11132. as_status=$?; test $as_status -eq 0 && as_status=1
  11133. if test "$3"; then
  11134. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11135. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11136. fi
  11137. $as_echo "$as_me: error: $1" >&2
  11138. as_fn_exit $as_status
  11139. } # as_fn_error
  11140. # as_fn_set_status STATUS
  11141. # -----------------------
  11142. # Set $? to STATUS, without forking.
  11143. as_fn_set_status ()
  11144. {
  11145. return $1
  11146. } # as_fn_set_status
  11147. # as_fn_exit STATUS
  11148. # -----------------
  11149. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11150. as_fn_exit ()
  11151. {
  11152. set +e
  11153. as_fn_set_status $1
  11154. exit $1
  11155. } # as_fn_exit
  11156. # as_fn_unset VAR
  11157. # ---------------
  11158. # Portably unset VAR.
  11159. as_fn_unset ()
  11160. {
  11161. { eval $1=; unset $1;}
  11162. }
  11163. as_unset=as_fn_unset
  11164. # as_fn_append VAR VALUE
  11165. # ----------------------
  11166. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11167. # advantage of any shell optimizations that allow amortized linear growth over
  11168. # repeated appends, instead of the typical quadratic growth present in naive
  11169. # implementations.
  11170. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11171. eval 'as_fn_append ()
  11172. {
  11173. eval $1+=\$2
  11174. }'
  11175. else
  11176. as_fn_append ()
  11177. {
  11178. eval $1=\$$1\$2
  11179. }
  11180. fi # as_fn_append
  11181. # as_fn_arith ARG...
  11182. # ------------------
  11183. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11184. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11185. # must be portable across $(()) and expr.
  11186. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11187. eval 'as_fn_arith ()
  11188. {
  11189. as_val=$(( $* ))
  11190. }'
  11191. else
  11192. as_fn_arith ()
  11193. {
  11194. as_val=`expr "$@" || test $? -eq 1`
  11195. }
  11196. fi # as_fn_arith
  11197. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11198. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11199. as_expr=expr
  11200. else
  11201. as_expr=false
  11202. fi
  11203. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11204. as_basename=basename
  11205. else
  11206. as_basename=false
  11207. fi
  11208. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11209. as_dirname=dirname
  11210. else
  11211. as_dirname=false
  11212. fi
  11213. as_me=`$as_basename -- "$0" ||
  11214. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11215. X"$0" : 'X\(//\)$' \| \
  11216. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11217. $as_echo X/"$0" |
  11218. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11219. s//\1/
  11220. q
  11221. }
  11222. /^X\/\(\/\/\)$/{
  11223. s//\1/
  11224. q
  11225. }
  11226. /^X\/\(\/\).*/{
  11227. s//\1/
  11228. q
  11229. }
  11230. s/.*/./; q'`
  11231. # Avoid depending upon Character Ranges.
  11232. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11233. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11234. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11235. as_cr_digits='0123456789'
  11236. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11237. ECHO_C= ECHO_N= ECHO_T=
  11238. case `echo -n x` in #(((((
  11239. -n*)
  11240. case `echo 'xy\c'` in
  11241. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11242. xy) ECHO_C='\c';;
  11243. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11244. ECHO_T=' ';;
  11245. esac;;
  11246. *)
  11247. ECHO_N='-n';;
  11248. esac
  11249. rm -f conf$$ conf$$.exe conf$$.file
  11250. if test -d conf$$.dir; then
  11251. rm -f conf$$.dir/conf$$.file
  11252. else
  11253. rm -f conf$$.dir
  11254. mkdir conf$$.dir 2>/dev/null
  11255. fi
  11256. if (echo >conf$$.file) 2>/dev/null; then
  11257. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11258. as_ln_s='ln -s'
  11259. # ... but there are two gotchas:
  11260. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11261. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11262. # In both cases, we have to default to `cp -p'.
  11263. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11264. as_ln_s='cp -p'
  11265. elif ln conf$$.file conf$$ 2>/dev/null; then
  11266. as_ln_s=ln
  11267. else
  11268. as_ln_s='cp -p'
  11269. fi
  11270. else
  11271. as_ln_s='cp -p'
  11272. fi
  11273. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11274. rmdir conf$$.dir 2>/dev/null
  11275. # as_fn_mkdir_p
  11276. # -------------
  11277. # Create "$as_dir" as a directory, including parents if necessary.
  11278. as_fn_mkdir_p ()
  11279. {
  11280. case $as_dir in #(
  11281. -*) as_dir=./$as_dir;;
  11282. esac
  11283. test -d "$as_dir" || eval $as_mkdir_p || {
  11284. as_dirs=
  11285. while :; do
  11286. case $as_dir in #(
  11287. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11288. *) as_qdir=$as_dir;;
  11289. esac
  11290. as_dirs="'$as_qdir' $as_dirs"
  11291. as_dir=`$as_dirname -- "$as_dir" ||
  11292. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11293. X"$as_dir" : 'X\(//\)[^/]' \| \
  11294. X"$as_dir" : 'X\(//\)$' \| \
  11295. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11296. $as_echo X"$as_dir" |
  11297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11298. s//\1/
  11299. q
  11300. }
  11301. /^X\(\/\/\)[^/].*/{
  11302. s//\1/
  11303. q
  11304. }
  11305. /^X\(\/\/\)$/{
  11306. s//\1/
  11307. q
  11308. }
  11309. /^X\(\/\).*/{
  11310. s//\1/
  11311. q
  11312. }
  11313. s/.*/./; q'`
  11314. test -d "$as_dir" && break
  11315. done
  11316. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11317. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11318. } # as_fn_mkdir_p
  11319. if mkdir -p . 2>/dev/null; then
  11320. as_mkdir_p='mkdir -p "$as_dir"'
  11321. else
  11322. test -d ./-p && rmdir ./-p
  11323. as_mkdir_p=false
  11324. fi
  11325. if test -x / >/dev/null 2>&1; then
  11326. as_test_x='test -x'
  11327. else
  11328. if ls -dL / >/dev/null 2>&1; then
  11329. as_ls_L_option=L
  11330. else
  11331. as_ls_L_option=
  11332. fi
  11333. as_test_x='
  11334. eval sh -c '\''
  11335. if test -d "$1"; then
  11336. test -d "$1/.";
  11337. else
  11338. case $1 in #(
  11339. -*)set "./$1";;
  11340. esac;
  11341. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11342. ???[sx]*):;;*)false;;esac;fi
  11343. '\'' sh
  11344. '
  11345. fi
  11346. as_executable_p=$as_test_x
  11347. # Sed expression to map a string onto a valid CPP name.
  11348. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11349. # Sed expression to map a string onto a valid variable name.
  11350. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11351. exec 6>&1
  11352. ## ----------------------------------- ##
  11353. ## Main body of $CONFIG_STATUS script. ##
  11354. ## ----------------------------------- ##
  11355. _ASEOF
  11356. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11358. # Save the log message, to keep $0 and so on meaningful, and to
  11359. # report actual input values of CONFIG_FILES etc. instead of their
  11360. # values after options handling.
  11361. ac_log="
  11362. This file was extended by libffi $as_me 3.0.10rc0, which was
  11363. generated by GNU Autoconf 2.65. Invocation command line was
  11364. CONFIG_FILES = $CONFIG_FILES
  11365. CONFIG_HEADERS = $CONFIG_HEADERS
  11366. CONFIG_LINKS = $CONFIG_LINKS
  11367. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11368. $ $0 $@
  11369. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11370. "
  11371. _ACEOF
  11372. case $ac_config_files in *"
  11373. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11374. esac
  11375. case $ac_config_headers in *"
  11376. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11377. esac
  11378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11379. # Files that config.status was made for.
  11380. config_files="$ac_config_files"
  11381. config_headers="$ac_config_headers"
  11382. config_links="$ac_config_links"
  11383. config_commands="$ac_config_commands"
  11384. _ACEOF
  11385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11386. ac_cs_usage="\
  11387. \`$as_me' instantiates files and other configuration actions
  11388. from templates according to the current configuration. Unless the files
  11389. and actions are specified as TAGs, all are instantiated by default.
  11390. Usage: $0 [OPTION]... [TAG]...
  11391. -h, --help print this help, then exit
  11392. -V, --version print version number and configuration settings, then exit
  11393. --config print configuration, then exit
  11394. -q, --quiet, --silent
  11395. do not print progress messages
  11396. -d, --debug don't remove temporary files
  11397. --recheck update $as_me by reconfiguring in the same conditions
  11398. --file=FILE[:TEMPLATE]
  11399. instantiate the configuration file FILE
  11400. --header=FILE[:TEMPLATE]
  11401. instantiate the configuration header FILE
  11402. Configuration files:
  11403. $config_files
  11404. Configuration headers:
  11405. $config_headers
  11406. Configuration links:
  11407. $config_links
  11408. Configuration commands:
  11409. $config_commands
  11410. Report bugs to <http://gcc.gnu.org/bugs.html>."
  11411. _ACEOF
  11412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11413. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11414. ac_cs_version="\\
  11415. libffi config.status 3.0.10rc0
  11416. configured by $0, generated by GNU Autoconf 2.65,
  11417. with options \\"\$ac_cs_config\\"
  11418. Copyright (C) 2009 Free Software Foundation, Inc.
  11419. This config.status script is free software; the Free Software Foundation
  11420. gives unlimited permission to copy, distribute and modify it."
  11421. ac_pwd='$ac_pwd'
  11422. srcdir='$srcdir'
  11423. INSTALL='$INSTALL'
  11424. MKDIR_P='$MKDIR_P'
  11425. AWK='$AWK'
  11426. test -n "\$AWK" || AWK=awk
  11427. _ACEOF
  11428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11429. # The default lists apply if the user does not specify any file.
  11430. ac_need_defaults=:
  11431. while test $# != 0
  11432. do
  11433. case $1 in
  11434. --*=*)
  11435. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11436. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11437. ac_shift=:
  11438. ;;
  11439. *)
  11440. ac_option=$1
  11441. ac_optarg=$2
  11442. ac_shift=shift
  11443. ;;
  11444. esac
  11445. case $ac_option in
  11446. # Handling of the options.
  11447. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11448. ac_cs_recheck=: ;;
  11449. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11450. $as_echo "$ac_cs_version"; exit ;;
  11451. --config | --confi | --conf | --con | --co | --c )
  11452. $as_echo "$ac_cs_config"; exit ;;
  11453. --debug | --debu | --deb | --de | --d | -d )
  11454. debug=: ;;
  11455. --file | --fil | --fi | --f )
  11456. $ac_shift
  11457. case $ac_optarg in
  11458. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11459. esac
  11460. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11461. ac_need_defaults=false;;
  11462. --header | --heade | --head | --hea )
  11463. $ac_shift
  11464. case $ac_optarg in
  11465. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11466. esac
  11467. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11468. ac_need_defaults=false;;
  11469. --he | --h)
  11470. # Conflict between --help and --header
  11471. as_fn_error "ambiguous option: \`$1'
  11472. Try \`$0 --help' for more information.";;
  11473. --help | --hel | -h )
  11474. $as_echo "$ac_cs_usage"; exit ;;
  11475. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11476. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11477. ac_cs_silent=: ;;
  11478. # This is an error.
  11479. -*) as_fn_error "unrecognized option: \`$1'
  11480. Try \`$0 --help' for more information." ;;
  11481. *) as_fn_append ac_config_targets " $1"
  11482. ac_need_defaults=false ;;
  11483. esac
  11484. shift
  11485. done
  11486. ac_configure_extra_args=
  11487. if $ac_cs_silent; then
  11488. exec 6>/dev/null
  11489. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11490. fi
  11491. _ACEOF
  11492. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11493. if \$ac_cs_recheck; then
  11494. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11495. shift
  11496. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11497. CONFIG_SHELL='$SHELL'
  11498. export CONFIG_SHELL
  11499. exec "\$@"
  11500. fi
  11501. _ACEOF
  11502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11503. exec 5>>config.log
  11504. {
  11505. echo
  11506. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11507. ## Running $as_me. ##
  11508. _ASBOX
  11509. $as_echo "$ac_log"
  11510. } >&5
  11511. _ACEOF
  11512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11513. #
  11514. # INIT-COMMANDS
  11515. #
  11516. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11517. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11518. # if CDPATH is set.
  11519. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11520. sed_quote_subst='$sed_quote_subst'
  11521. double_quote_subst='$double_quote_subst'
  11522. delay_variable_subst='$delay_variable_subst'
  11523. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  11524. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  11525. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  11526. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  11527. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  11528. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  11529. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11530. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  11531. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  11532. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11533. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  11534. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  11535. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  11536. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  11537. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  11538. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11539. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11540. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  11541. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  11542. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  11543. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  11544. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  11545. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  11546. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  11547. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  11548. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  11549. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11550. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11551. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  11552. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  11553. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  11554. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  11555. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11556. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  11557. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  11558. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11559. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11560. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11561. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  11562. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11563. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  11564. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  11565. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  11566. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  11567. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  11568. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11569. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  11570. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  11571. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  11572. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  11573. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11574. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  11575. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  11576. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  11577. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  11578. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  11579. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  11580. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  11581. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  11582. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11583. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  11584. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  11585. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11586. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11587. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  11588. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  11589. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11590. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11591. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  11592. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11593. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11594. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11595. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11596. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11597. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11598. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11599. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11600. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11601. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11602. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11603. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  11604. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  11605. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  11606. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  11607. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11608. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  11609. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  11610. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  11611. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  11612. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  11613. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11614. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11615. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11616. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11617. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11618. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  11619. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11620. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  11621. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  11622. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11623. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11624. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  11625. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11626. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11627. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11628. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11629. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11630. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11631. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  11632. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  11633. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11634. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11635. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  11636. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  11637. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  11638. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  11639. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11640. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11641. LTCC='$LTCC'
  11642. LTCFLAGS='$LTCFLAGS'
  11643. compiler='$compiler_DEFAULT'
  11644. # Quote evaled strings.
  11645. for var in SED \
  11646. GREP \
  11647. EGREP \
  11648. FGREP \
  11649. LD \
  11650. NM \
  11651. LN_S \
  11652. lt_SP2NL \
  11653. lt_NL2SP \
  11654. reload_flag \
  11655. OBJDUMP \
  11656. deplibs_check_method \
  11657. file_magic_cmd \
  11658. AR \
  11659. AR_FLAGS \
  11660. STRIP \
  11661. RANLIB \
  11662. CC \
  11663. CFLAGS \
  11664. compiler \
  11665. lt_cv_sys_global_symbol_pipe \
  11666. lt_cv_sys_global_symbol_to_cdecl \
  11667. lt_cv_sys_global_symbol_to_c_name_address \
  11668. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11669. SHELL \
  11670. ECHO \
  11671. lt_prog_compiler_no_builtin_flag \
  11672. lt_prog_compiler_wl \
  11673. lt_prog_compiler_pic \
  11674. lt_prog_compiler_static \
  11675. lt_cv_prog_compiler_c_o \
  11676. need_locks \
  11677. DSYMUTIL \
  11678. NMEDIT \
  11679. LIPO \
  11680. OTOOL \
  11681. OTOOL64 \
  11682. shrext_cmds \
  11683. export_dynamic_flag_spec \
  11684. whole_archive_flag_spec \
  11685. compiler_needs_object \
  11686. with_gnu_ld \
  11687. allow_undefined_flag \
  11688. no_undefined_flag \
  11689. hardcode_libdir_flag_spec \
  11690. hardcode_libdir_flag_spec_ld \
  11691. hardcode_libdir_separator \
  11692. fix_srcfile_path \
  11693. exclude_expsyms \
  11694. include_expsyms \
  11695. file_list_spec \
  11696. variables_saved_for_relink \
  11697. libname_spec \
  11698. library_names_spec \
  11699. soname_spec \
  11700. finish_eval \
  11701. old_striplib \
  11702. striplib; do
  11703. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11704. *[\\\\\\\`\\"\\\$]*)
  11705. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11706. ;;
  11707. *)
  11708. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11709. ;;
  11710. esac
  11711. done
  11712. # Double-quote double-evaled strings.
  11713. for var in reload_cmds \
  11714. old_postinstall_cmds \
  11715. old_postuninstall_cmds \
  11716. old_archive_cmds \
  11717. extract_expsyms_cmds \
  11718. old_archive_from_new_cmds \
  11719. old_archive_from_expsyms_cmds \
  11720. archive_cmds \
  11721. archive_expsym_cmds \
  11722. module_cmds \
  11723. module_expsym_cmds \
  11724. export_symbols_cmds \
  11725. prelink_cmds \
  11726. postinstall_cmds \
  11727. postuninstall_cmds \
  11728. finish_cmds \
  11729. sys_lib_search_path_spec \
  11730. sys_lib_dlsearch_path_spec; do
  11731. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11732. *[\\\\\\\`\\"\\\$]*)
  11733. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11734. ;;
  11735. *)
  11736. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11737. ;;
  11738. esac
  11739. done
  11740. # Fix-up fallback echo if it was mangled by the above quoting rules.
  11741. case \$lt_ECHO in
  11742. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  11743. ;;
  11744. esac
  11745. ac_aux_dir='$ac_aux_dir'
  11746. xsi_shell='$xsi_shell'
  11747. lt_shell_append='$lt_shell_append'
  11748. # See if we are running on zsh, and set the options which allow our
  11749. # commands through without removal of \ escapes INIT.
  11750. if test -n "\${ZSH_VERSION+set}" ; then
  11751. setopt NO_GLOB_SUBST
  11752. fi
  11753. PACKAGE='$PACKAGE'
  11754. VERSION='$VERSION'
  11755. TIMESTAMP='$TIMESTAMP'
  11756. RM='$RM'
  11757. ofile='$ofile'
  11758. TARGETDIR="$TARGETDIR"
  11759. _ACEOF
  11760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11761. # Handling of arguments.
  11762. for ac_config_target in $ac_config_targets
  11763. do
  11764. case $ac_config_target in
  11765. "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
  11766. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11767. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11768. "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
  11769. "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
  11770. "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
  11771. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  11772. "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
  11773. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11774. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  11775. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  11776. "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
  11777. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11778. esac
  11779. done
  11780. # If the user did not use the arguments to specify the items to instantiate,
  11781. # then the envvar interface is used. Set only those that are not.
  11782. # We use the long form for the default assignment because of an extremely
  11783. # bizarre bug on SunOS 4.1.3.
  11784. if $ac_need_defaults; then
  11785. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11786. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11787. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11788. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11789. fi
  11790. # Have a temporary directory for convenience. Make it in the build tree
  11791. # simply because there is no reason against having it here, and in addition,
  11792. # creating and moving files from /tmp can sometimes cause problems.
  11793. # Hook for its removal unless debugging.
  11794. # Note that there is a small window in which the directory will not be cleaned:
  11795. # after its creation but before its name has been assigned to `$tmp'.
  11796. $debug ||
  11797. {
  11798. tmp=
  11799. trap 'exit_status=$?
  11800. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11801. ' 0
  11802. trap 'as_fn_exit 1' 1 2 13 15
  11803. }
  11804. # Create a (secure) tmp directory for tmp files.
  11805. {
  11806. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11807. test -n "$tmp" && test -d "$tmp"
  11808. } ||
  11809. {
  11810. tmp=./conf$$-$RANDOM
  11811. (umask 077 && mkdir "$tmp")
  11812. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11813. # Set up the scripts for CONFIG_FILES section.
  11814. # No need to generate them if there are no CONFIG_FILES.
  11815. # This happens for instance with `./config.status config.h'.
  11816. if test -n "$CONFIG_FILES"; then
  11817. ac_cr=`echo X | tr X '\015'`
  11818. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11819. # But we know of no other shell where ac_cr would be empty at this
  11820. # point, so we can use a bashism as a fallback.
  11821. if test "x$ac_cr" = x; then
  11822. eval ac_cr=\$\'\\r\'
  11823. fi
  11824. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11825. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11826. ac_cs_awk_cr='\r'
  11827. else
  11828. ac_cs_awk_cr=$ac_cr
  11829. fi
  11830. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11831. _ACEOF
  11832. {
  11833. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11834. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11835. echo "_ACEOF"
  11836. } >conf$$subs.sh ||
  11837. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11838. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11839. ac_delim='%!_!# '
  11840. for ac_last_try in false false false false false :; do
  11841. . ./conf$$subs.sh ||
  11842. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11843. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11844. if test $ac_delim_n = $ac_delim_num; then
  11845. break
  11846. elif $ac_last_try; then
  11847. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11848. else
  11849. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11850. fi
  11851. done
  11852. rm -f conf$$subs.sh
  11853. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11854. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11855. _ACEOF
  11856. sed -n '
  11857. h
  11858. s/^/S["/; s/!.*/"]=/
  11859. p
  11860. g
  11861. s/^[^!]*!//
  11862. :repl
  11863. t repl
  11864. s/'"$ac_delim"'$//
  11865. t delim
  11866. :nl
  11867. h
  11868. s/\(.\{148\}\)..*/\1/
  11869. t more1
  11870. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11871. p
  11872. n
  11873. b repl
  11874. :more1
  11875. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11876. p
  11877. g
  11878. s/.\{148\}//
  11879. t nl
  11880. :delim
  11881. h
  11882. s/\(.\{148\}\)..*/\1/
  11883. t more2
  11884. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11885. p
  11886. b
  11887. :more2
  11888. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11889. p
  11890. g
  11891. s/.\{148\}//
  11892. t delim
  11893. ' <conf$$subs.awk | sed '
  11894. /^[^""]/{
  11895. N
  11896. s/\n//
  11897. }
  11898. ' >>$CONFIG_STATUS || ac_write_fail=1
  11899. rm -f conf$$subs.awk
  11900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11901. _ACAWK
  11902. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11903. for (key in S) S_is_set[key] = 1
  11904. FS = ""
  11905. }
  11906. {
  11907. line = $ 0
  11908. nfields = split(line, field, "@")
  11909. substed = 0
  11910. len = length(field[1])
  11911. for (i = 2; i < nfields; i++) {
  11912. key = field[i]
  11913. keylen = length(key)
  11914. if (S_is_set[key]) {
  11915. value = S[key]
  11916. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11917. len += length(value) + length(field[++i])
  11918. substed = 1
  11919. } else
  11920. len += 1 + keylen
  11921. }
  11922. print line
  11923. }
  11924. _ACAWK
  11925. _ACEOF
  11926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11927. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11928. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11929. else
  11930. cat
  11931. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11932. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11933. _ACEOF
  11934. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11935. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11936. # trailing colons and then remove the whole line if VPATH becomes empty
  11937. # (actually we leave an empty line to preserve line numbers).
  11938. if test "x$srcdir" = x.; then
  11939. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11940. s/:*\$(srcdir):*/:/
  11941. s/:*\${srcdir}:*/:/
  11942. s/:*@srcdir@:*/:/
  11943. s/^\([^=]*=[ ]*\):*/\1/
  11944. s/:*$//
  11945. s/^[^=]*=[ ]*$//
  11946. }'
  11947. fi
  11948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11949. fi # test -n "$CONFIG_FILES"
  11950. # Set up the scripts for CONFIG_HEADERS section.
  11951. # No need to generate them if there are no CONFIG_HEADERS.
  11952. # This happens for instance with `./config.status Makefile'.
  11953. if test -n "$CONFIG_HEADERS"; then
  11954. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11955. BEGIN {
  11956. _ACEOF
  11957. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11958. # here-document in config.status, that substitutes the proper values into
  11959. # config.h.in to produce config.h.
  11960. # Create a delimiter string that does not exist in confdefs.h, to ease
  11961. # handling of long lines.
  11962. ac_delim='%!_!# '
  11963. for ac_last_try in false false :; do
  11964. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11965. if test -z "$ac_t"; then
  11966. break
  11967. elif $ac_last_try; then
  11968. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11969. else
  11970. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11971. fi
  11972. done
  11973. # For the awk script, D is an array of macro values keyed by name,
  11974. # likewise P contains macro parameters if any. Preserve backslash
  11975. # newline sequences.
  11976. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11977. sed -n '
  11978. s/.\{148\}/&'"$ac_delim"'/g
  11979. t rset
  11980. :rset
  11981. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11982. t def
  11983. d
  11984. :def
  11985. s/\\$//
  11986. t bsnl
  11987. s/["\\]/\\&/g
  11988. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11989. D["\1"]=" \3"/p
  11990. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11991. d
  11992. :bsnl
  11993. s/["\\]/\\&/g
  11994. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11995. D["\1"]=" \3\\\\\\n"\\/p
  11996. t cont
  11997. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11998. t cont
  11999. d
  12000. :cont
  12001. n
  12002. s/.\{148\}/&'"$ac_delim"'/g
  12003. t clear
  12004. :clear
  12005. s/\\$//
  12006. t bsnlc
  12007. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12008. d
  12009. :bsnlc
  12010. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12011. b cont
  12012. ' <confdefs.h | sed '
  12013. s/'"$ac_delim"'/"\\\
  12014. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12016. for (key in D) D_is_set[key] = 1
  12017. FS = ""
  12018. }
  12019. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12020. line = \$ 0
  12021. split(line, arg, " ")
  12022. if (arg[1] == "#") {
  12023. defundef = arg[2]
  12024. mac1 = arg[3]
  12025. } else {
  12026. defundef = substr(arg[1], 2)
  12027. mac1 = arg[2]
  12028. }
  12029. split(mac1, mac2, "(") #)
  12030. macro = mac2[1]
  12031. prefix = substr(line, 1, index(line, defundef) - 1)
  12032. if (D_is_set[macro]) {
  12033. # Preserve the white space surrounding the "#".
  12034. print prefix "define", macro P[macro] D[macro]
  12035. next
  12036. } else {
  12037. # Replace #undef with comments. This is necessary, for example,
  12038. # in the case of _POSIX_SOURCE, which is predefined and required
  12039. # on some systems where configure will not decide to define it.
  12040. if (defundef == "undef") {
  12041. print "/*", prefix defundef, macro, "*/"
  12042. next
  12043. }
  12044. }
  12045. }
  12046. { print }
  12047. _ACAWK
  12048. _ACEOF
  12049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12050. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12051. fi # test -n "$CONFIG_HEADERS"
  12052. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12053. shift
  12054. for ac_tag
  12055. do
  12056. case $ac_tag in
  12057. :[FHLC]) ac_mode=$ac_tag; continue;;
  12058. esac
  12059. case $ac_mode$ac_tag in
  12060. :[FHL]*:*);;
  12061. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12062. :[FH]-) ac_tag=-:-;;
  12063. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12064. esac
  12065. ac_save_IFS=$IFS
  12066. IFS=:
  12067. set x $ac_tag
  12068. IFS=$ac_save_IFS
  12069. shift
  12070. ac_file=$1
  12071. shift
  12072. case $ac_mode in
  12073. :L) ac_source=$1;;
  12074. :[FH])
  12075. ac_file_inputs=
  12076. for ac_f
  12077. do
  12078. case $ac_f in
  12079. -) ac_f="$tmp/stdin";;
  12080. *) # Look for the file first in the build tree, then in the source tree
  12081. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12082. # because $ac_f cannot contain `:'.
  12083. test -f "$ac_f" ||
  12084. case $ac_f in
  12085. [\\/$]*) false;;
  12086. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12087. esac ||
  12088. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12089. esac
  12090. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12091. as_fn_append ac_file_inputs " '$ac_f'"
  12092. done
  12093. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12094. # use $as_me), people would be surprised to read:
  12095. # /* config.h. Generated by config.status. */
  12096. configure_input='Generated from '`
  12097. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12098. `' by configure.'
  12099. if test x"$ac_file" != x-; then
  12100. configure_input="$ac_file. $configure_input"
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12102. $as_echo "$as_me: creating $ac_file" >&6;}
  12103. fi
  12104. # Neutralize special characters interpreted by sed in replacement strings.
  12105. case $configure_input in #(
  12106. *\&* | *\|* | *\\* )
  12107. ac_sed_conf_input=`$as_echo "$configure_input" |
  12108. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12109. *) ac_sed_conf_input=$configure_input;;
  12110. esac
  12111. case $ac_tag in
  12112. *:-:* | *:-) cat >"$tmp/stdin" \
  12113. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12114. esac
  12115. ;;
  12116. esac
  12117. ac_dir=`$as_dirname -- "$ac_file" ||
  12118. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12119. X"$ac_file" : 'X\(//\)[^/]' \| \
  12120. X"$ac_file" : 'X\(//\)$' \| \
  12121. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12122. $as_echo X"$ac_file" |
  12123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12124. s//\1/
  12125. q
  12126. }
  12127. /^X\(\/\/\)[^/].*/{
  12128. s//\1/
  12129. q
  12130. }
  12131. /^X\(\/\/\)$/{
  12132. s//\1/
  12133. q
  12134. }
  12135. /^X\(\/\).*/{
  12136. s//\1/
  12137. q
  12138. }
  12139. s/.*/./; q'`
  12140. as_dir="$ac_dir"; as_fn_mkdir_p
  12141. ac_builddir=.
  12142. case "$ac_dir" in
  12143. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12144. *)
  12145. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12146. # A ".." for each directory in $ac_dir_suffix.
  12147. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12148. case $ac_top_builddir_sub in
  12149. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12150. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12151. esac ;;
  12152. esac
  12153. ac_abs_top_builddir=$ac_pwd
  12154. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12155. # for backward compatibility:
  12156. ac_top_builddir=$ac_top_build_prefix
  12157. case $srcdir in
  12158. .) # We are building in place.
  12159. ac_srcdir=.
  12160. ac_top_srcdir=$ac_top_builddir_sub
  12161. ac_abs_top_srcdir=$ac_pwd ;;
  12162. [\\/]* | ?:[\\/]* ) # Absolute name.
  12163. ac_srcdir=$srcdir$ac_dir_suffix;
  12164. ac_top_srcdir=$srcdir
  12165. ac_abs_top_srcdir=$srcdir ;;
  12166. *) # Relative name.
  12167. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12168. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12169. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12170. esac
  12171. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12172. case $ac_mode in
  12173. :F)
  12174. #
  12175. # CONFIG_FILE
  12176. #
  12177. case $INSTALL in
  12178. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12179. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12180. esac
  12181. ac_MKDIR_P=$MKDIR_P
  12182. case $MKDIR_P in
  12183. [\\/$]* | ?:[\\/]* ) ;;
  12184. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12185. esac
  12186. _ACEOF
  12187. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12188. # If the template does not know about datarootdir, expand it.
  12189. # FIXME: This hack should be removed a few years after 2.60.
  12190. ac_datarootdir_hack=; ac_datarootdir_seen=
  12191. ac_sed_dataroot='
  12192. /datarootdir/ {
  12193. p
  12194. q
  12195. }
  12196. /@datadir@/p
  12197. /@docdir@/p
  12198. /@infodir@/p
  12199. /@localedir@/p
  12200. /@mandir@/p'
  12201. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12202. *datarootdir*) ac_datarootdir_seen=yes;;
  12203. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12205. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12206. _ACEOF
  12207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12208. ac_datarootdir_hack='
  12209. s&@datadir@&$datadir&g
  12210. s&@docdir@&$docdir&g
  12211. s&@infodir@&$infodir&g
  12212. s&@localedir@&$localedir&g
  12213. s&@mandir@&$mandir&g
  12214. s&\\\${datarootdir}&$datarootdir&g' ;;
  12215. esac
  12216. _ACEOF
  12217. # Neutralize VPATH when `$srcdir' = `.'.
  12218. # Shell code in configure.ac might set extrasub.
  12219. # FIXME: do we really want to maintain this feature?
  12220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12221. ac_sed_extra="$ac_vpsub
  12222. $extrasub
  12223. _ACEOF
  12224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12225. :t
  12226. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12227. s|@configure_input@|$ac_sed_conf_input|;t t
  12228. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12229. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12230. s&@srcdir@&$ac_srcdir&;t t
  12231. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12232. s&@top_srcdir@&$ac_top_srcdir&;t t
  12233. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12234. s&@builddir@&$ac_builddir&;t t
  12235. s&@abs_builddir@&$ac_abs_builddir&;t t
  12236. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12237. s&@INSTALL@&$ac_INSTALL&;t t
  12238. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12239. $ac_datarootdir_hack
  12240. "
  12241. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12242. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12243. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12244. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12245. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12247. which seems to be undefined. Please make sure it is defined." >&5
  12248. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12249. which seems to be undefined. Please make sure it is defined." >&2;}
  12250. rm -f "$tmp/stdin"
  12251. case $ac_file in
  12252. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12253. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12254. esac \
  12255. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12256. ;;
  12257. :H)
  12258. #
  12259. # CONFIG_HEADER
  12260. #
  12261. if test x"$ac_file" != x-; then
  12262. {
  12263. $as_echo "/* $configure_input */" \
  12264. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12265. } >"$tmp/config.h" \
  12266. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12267. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12269. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12270. else
  12271. rm -f "$ac_file"
  12272. mv "$tmp/config.h" "$ac_file" \
  12273. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12274. fi
  12275. else
  12276. $as_echo "/* $configure_input */" \
  12277. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12278. || as_fn_error "could not create -" "$LINENO" 5
  12279. fi
  12280. # Compute "$ac_file"'s index in $config_headers.
  12281. _am_arg="$ac_file"
  12282. _am_stamp_count=1
  12283. for _am_header in $config_headers :; do
  12284. case $_am_header in
  12285. $_am_arg | $_am_arg:* )
  12286. break ;;
  12287. * )
  12288. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12289. esac
  12290. done
  12291. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12292. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12293. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12294. X"$_am_arg" : 'X\(//\)$' \| \
  12295. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12296. $as_echo X"$_am_arg" |
  12297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12298. s//\1/
  12299. q
  12300. }
  12301. /^X\(\/\/\)[^/].*/{
  12302. s//\1/
  12303. q
  12304. }
  12305. /^X\(\/\/\)$/{
  12306. s//\1/
  12307. q
  12308. }
  12309. /^X\(\/\).*/{
  12310. s//\1/
  12311. q
  12312. }
  12313. s/.*/./; q'`/stamp-h$_am_stamp_count
  12314. ;;
  12315. :L)
  12316. #
  12317. # CONFIG_LINK
  12318. #
  12319. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12320. :
  12321. else
  12322. # Prefer the file from the source tree if names are identical.
  12323. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12324. ac_source=$srcdir/$ac_source
  12325. fi
  12326. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12327. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12328. if test ! -r "$ac_source"; then
  12329. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12330. fi
  12331. rm -f "$ac_file"
  12332. # Try a relative symlink, then a hard link, then a copy.
  12333. case $srcdir in
  12334. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12335. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12336. esac
  12337. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12338. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12339. cp -p "$ac_source" "$ac_file" ||
  12340. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12341. fi
  12342. ;;
  12343. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12344. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12345. ;;
  12346. esac
  12347. case $ac_file$ac_mode in
  12348. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12349. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12350. # are listed without --file. Let's play safe and only enable the eval
  12351. # if we detect the quoting.
  12352. case $CONFIG_FILES in
  12353. *\'*) eval set x "$CONFIG_FILES" ;;
  12354. *) set x $CONFIG_FILES ;;
  12355. esac
  12356. shift
  12357. for mf
  12358. do
  12359. # Strip MF so we end up with the name of the file.
  12360. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12361. # Check whether this is an Automake generated Makefile or not.
  12362. # We used to match only the files named `Makefile.in', but
  12363. # some people rename them; so instead we look at the file content.
  12364. # Grep'ing the first line is not enough: some people post-process
  12365. # each Makefile.in and add a new line on top of each file to say so.
  12366. # Grep'ing the whole file is not good either: AIX grep has a line
  12367. # limit of 2048, but all sed's we know have understand at least 4000.
  12368. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12369. dirpart=`$as_dirname -- "$mf" ||
  12370. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12371. X"$mf" : 'X\(//\)[^/]' \| \
  12372. X"$mf" : 'X\(//\)$' \| \
  12373. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12374. $as_echo X"$mf" |
  12375. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12376. s//\1/
  12377. q
  12378. }
  12379. /^X\(\/\/\)[^/].*/{
  12380. s//\1/
  12381. q
  12382. }
  12383. /^X\(\/\/\)$/{
  12384. s//\1/
  12385. q
  12386. }
  12387. /^X\(\/\).*/{
  12388. s//\1/
  12389. q
  12390. }
  12391. s/.*/./; q'`
  12392. else
  12393. continue
  12394. fi
  12395. # Extract the definition of DEPDIR, am__include, and am__quote
  12396. # from the Makefile without running `make'.
  12397. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12398. test -z "$DEPDIR" && continue
  12399. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12400. test -z "am__include" && continue
  12401. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12402. # When using ansi2knr, U may be empty or an underscore; expand it
  12403. U=`sed -n 's/^U = //p' < "$mf"`
  12404. # Find all dependency output files, they are included files with
  12405. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12406. # simplest approach to changing $(DEPDIR) to its actual value in the
  12407. # expansion.
  12408. for file in `sed -n "
  12409. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12410. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12411. # Make sure the directory exists.
  12412. test -f "$dirpart/$file" && continue
  12413. fdir=`$as_dirname -- "$file" ||
  12414. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12415. X"$file" : 'X\(//\)[^/]' \| \
  12416. X"$file" : 'X\(//\)$' \| \
  12417. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12418. $as_echo X"$file" |
  12419. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12420. s//\1/
  12421. q
  12422. }
  12423. /^X\(\/\/\)[^/].*/{
  12424. s//\1/
  12425. q
  12426. }
  12427. /^X\(\/\/\)$/{
  12428. s//\1/
  12429. q
  12430. }
  12431. /^X\(\/\).*/{
  12432. s//\1/
  12433. q
  12434. }
  12435. s/.*/./; q'`
  12436. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12437. # echo "creating $dirpart/$file"
  12438. echo '# dummy' > "$dirpart/$file"
  12439. done
  12440. done
  12441. }
  12442. ;;
  12443. "libtool":C)
  12444. # See if we are running on zsh, and set the options which allow our
  12445. # commands through without removal of \ escapes.
  12446. if test -n "${ZSH_VERSION+set}" ; then
  12447. setopt NO_GLOB_SUBST
  12448. fi
  12449. cfgfile="${ofile}T"
  12450. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12451. $RM "$cfgfile"
  12452. cat <<_LT_EOF >> "$cfgfile"
  12453. #! $SHELL
  12454. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12455. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12456. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12457. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12458. #
  12459. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12460. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12461. # Written by Gordon Matzigkeit, 1996
  12462. #
  12463. # This file is part of GNU Libtool.
  12464. #
  12465. # GNU Libtool is free software; you can redistribute it and/or
  12466. # modify it under the terms of the GNU General Public License as
  12467. # published by the Free Software Foundation; either version 2 of
  12468. # the License, or (at your option) any later version.
  12469. #
  12470. # As a special exception to the GNU General Public License,
  12471. # if you distribute this file as part of a program or library that
  12472. # is built using GNU Libtool, you may include this file under the
  12473. # same distribution terms that you use for the rest of that program.
  12474. #
  12475. # GNU Libtool is distributed in the hope that it will be useful,
  12476. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12477. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12478. # GNU General Public License for more details.
  12479. #
  12480. # You should have received a copy of the GNU General Public License
  12481. # along with GNU Libtool; see the file COPYING. If not, a copy
  12482. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12483. # obtained by writing to the Free Software Foundation, Inc.,
  12484. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12485. # The names of the tagged configurations supported by this script.
  12486. available_tags=""
  12487. # ### BEGIN LIBTOOL CONFIG
  12488. # Which release of libtool.m4 was used?
  12489. macro_version=$macro_version
  12490. macro_revision=$macro_revision
  12491. # Whether or not to build shared libraries.
  12492. build_libtool_libs=$enable_shared
  12493. # Whether or not to build static libraries.
  12494. build_old_libs=$enable_static
  12495. # What type of objects to build.
  12496. pic_mode=$pic_mode
  12497. # Whether or not to optimize for fast installation.
  12498. fast_install=$enable_fast_install
  12499. # The host system.
  12500. host_alias=$host_alias
  12501. host=$host
  12502. host_os=$host_os
  12503. # The build system.
  12504. build_alias=$build_alias
  12505. build=$build
  12506. build_os=$build_os
  12507. # A sed program that does not truncate output.
  12508. SED=$lt_SED
  12509. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12510. Xsed="\$SED -e 1s/^X//"
  12511. # A grep program that handles long lines.
  12512. GREP=$lt_GREP
  12513. # An ERE matcher.
  12514. EGREP=$lt_EGREP
  12515. # A literal string matcher.
  12516. FGREP=$lt_FGREP
  12517. # A BSD- or MS-compatible name lister.
  12518. NM=$lt_NM
  12519. # Whether we need soft or hard links.
  12520. LN_S=$lt_LN_S
  12521. # What is the maximum length of a command?
  12522. max_cmd_len=$max_cmd_len
  12523. # Object file suffix (normally "o").
  12524. objext=$ac_objext
  12525. # Executable file suffix (normally "").
  12526. exeext=$exeext
  12527. # whether the shell understands "unset".
  12528. lt_unset=$lt_unset
  12529. # turn spaces into newlines.
  12530. SP2NL=$lt_lt_SP2NL
  12531. # turn newlines into spaces.
  12532. NL2SP=$lt_lt_NL2SP
  12533. # How to create reloadable object files.
  12534. reload_flag=$lt_reload_flag
  12535. reload_cmds=$lt_reload_cmds
  12536. # An object symbol dumper.
  12537. OBJDUMP=$lt_OBJDUMP
  12538. # Method to check whether dependent libraries are shared objects.
  12539. deplibs_check_method=$lt_deplibs_check_method
  12540. # Command to use when deplibs_check_method == "file_magic".
  12541. file_magic_cmd=$lt_file_magic_cmd
  12542. # The archiver.
  12543. AR=$lt_AR
  12544. AR_FLAGS=$lt_AR_FLAGS
  12545. # A symbol stripping program.
  12546. STRIP=$lt_STRIP
  12547. # Commands used to install an old-style archive.
  12548. RANLIB=$lt_RANLIB
  12549. old_postinstall_cmds=$lt_old_postinstall_cmds
  12550. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12551. # A C compiler.
  12552. LTCC=$lt_CC
  12553. # LTCC compiler flags.
  12554. LTCFLAGS=$lt_CFLAGS
  12555. # Take the output of nm and produce a listing of raw symbols and C names.
  12556. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12557. # Transform the output of nm in a proper C declaration.
  12558. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12559. # Transform the output of nm in a C name address pair.
  12560. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12561. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12562. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12563. # The name of the directory that contains temporary libtool files.
  12564. objdir=$objdir
  12565. # Shell to use when invoking shell scripts.
  12566. SHELL=$lt_SHELL
  12567. # An echo program that does not interpret backslashes.
  12568. ECHO=$lt_ECHO
  12569. # Used to examine libraries when file_magic_cmd begins with "file".
  12570. MAGIC_CMD=$MAGIC_CMD
  12571. # Must we lock files when doing compilation?
  12572. need_locks=$lt_need_locks
  12573. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12574. DSYMUTIL=$lt_DSYMUTIL
  12575. # Tool to change global to local symbols on Mac OS X.
  12576. NMEDIT=$lt_NMEDIT
  12577. # Tool to manipulate fat objects and archives on Mac OS X.
  12578. LIPO=$lt_LIPO
  12579. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12580. OTOOL=$lt_OTOOL
  12581. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12582. OTOOL64=$lt_OTOOL64
  12583. # Old archive suffix (normally "a").
  12584. libext=$libext
  12585. # Shared library suffix (normally ".so").
  12586. shrext_cmds=$lt_shrext_cmds
  12587. # The commands to extract the exported symbol list from a shared archive.
  12588. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12589. # Variables whose values should be saved in libtool wrapper scripts and
  12590. # restored at link time.
  12591. variables_saved_for_relink=$lt_variables_saved_for_relink
  12592. # Do we need the "lib" prefix for modules?
  12593. need_lib_prefix=$need_lib_prefix
  12594. # Do we need a version for libraries?
  12595. need_version=$need_version
  12596. # Library versioning type.
  12597. version_type=$version_type
  12598. # Shared library runtime path variable.
  12599. runpath_var=$runpath_var
  12600. # Shared library path variable.
  12601. shlibpath_var=$shlibpath_var
  12602. # Is shlibpath searched before the hard-coded library search path?
  12603. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12604. # Format of library name prefix.
  12605. libname_spec=$lt_libname_spec
  12606. # List of archive names. First name is the real one, the rest are links.
  12607. # The last name is the one that the linker finds with -lNAME
  12608. library_names_spec=$lt_library_names_spec
  12609. # The coded name of the library, if different from the real name.
  12610. soname_spec=$lt_soname_spec
  12611. # Command to use after installation of a shared archive.
  12612. postinstall_cmds=$lt_postinstall_cmds
  12613. # Command to use after uninstallation of a shared archive.
  12614. postuninstall_cmds=$lt_postuninstall_cmds
  12615. # Commands used to finish a libtool library installation in a directory.
  12616. finish_cmds=$lt_finish_cmds
  12617. # As "finish_cmds", except a single script fragment to be evaled but
  12618. # not shown.
  12619. finish_eval=$lt_finish_eval
  12620. # Whether we should hardcode library paths into libraries.
  12621. hardcode_into_libs=$hardcode_into_libs
  12622. # Compile-time system search path for libraries.
  12623. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12624. # Run-time system search path for libraries.
  12625. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12626. # Whether dlopen is supported.
  12627. dlopen_support=$enable_dlopen
  12628. # Whether dlopen of programs is supported.
  12629. dlopen_self=$enable_dlopen_self
  12630. # Whether dlopen of statically linked programs is supported.
  12631. dlopen_self_static=$enable_dlopen_self_static
  12632. # Commands to strip libraries.
  12633. old_striplib=$lt_old_striplib
  12634. striplib=$lt_striplib
  12635. # The linker used to build libraries.
  12636. LD=$lt_LD
  12637. # Commands used to build an old-style archive.
  12638. old_archive_cmds=$lt_old_archive_cmds
  12639. # A language specific compiler.
  12640. CC=$lt_compiler
  12641. # Is the compiler the GNU compiler?
  12642. with_gcc=$GCC
  12643. # Compiler flag to turn off builtin functions.
  12644. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12645. # How to pass a linker flag through the compiler.
  12646. wl=$lt_lt_prog_compiler_wl
  12647. # Additional compiler flags for building library objects.
  12648. pic_flag=$lt_lt_prog_compiler_pic
  12649. # Compiler flag to prevent dynamic linking.
  12650. link_static_flag=$lt_lt_prog_compiler_static
  12651. # Does compiler simultaneously support -c and -o options?
  12652. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12653. # Whether or not to add -lc for building shared libraries.
  12654. build_libtool_need_lc=$archive_cmds_need_lc
  12655. # Whether or not to disallow shared libs when runtime libs are static.
  12656. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12657. # Compiler flag to allow reflexive dlopens.
  12658. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12659. # Compiler flag to generate shared objects directly from archives.
  12660. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12661. # Whether the compiler copes with passing no objects directly.
  12662. compiler_needs_object=$lt_compiler_needs_object
  12663. # Create an old-style archive from a shared archive.
  12664. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12665. # Create a temporary old-style archive to link instead of a shared archive.
  12666. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12667. # Commands used to build a shared archive.
  12668. archive_cmds=$lt_archive_cmds
  12669. archive_expsym_cmds=$lt_archive_expsym_cmds
  12670. # Commands used to build a loadable module if different from building
  12671. # a shared archive.
  12672. module_cmds=$lt_module_cmds
  12673. module_expsym_cmds=$lt_module_expsym_cmds
  12674. # Whether we are building with GNU ld or not.
  12675. with_gnu_ld=$lt_with_gnu_ld
  12676. # Flag that allows shared libraries with undefined symbols to be built.
  12677. allow_undefined_flag=$lt_allow_undefined_flag
  12678. # Flag that enforces no undefined symbols.
  12679. no_undefined_flag=$lt_no_undefined_flag
  12680. # Flag to hardcode \$libdir into a binary during linking.
  12681. # This must work even if \$libdir does not exist
  12682. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12683. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12684. # during linking. This must work even if \$libdir does not exist.
  12685. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12686. # Whether we need a single "-rpath" flag with a separated argument.
  12687. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12688. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12689. # DIR into the resulting binary.
  12690. hardcode_direct=$hardcode_direct
  12691. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12692. # DIR into the resulting binary and the resulting library dependency is
  12693. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12694. # library is relocated.
  12695. hardcode_direct_absolute=$hardcode_direct_absolute
  12696. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12697. # into the resulting binary.
  12698. hardcode_minus_L=$hardcode_minus_L
  12699. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12700. # into the resulting binary.
  12701. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12702. # Set to "yes" if building a shared library automatically hardcodes DIR
  12703. # into the library and all subsequent libraries and executables linked
  12704. # against it.
  12705. hardcode_automatic=$hardcode_automatic
  12706. # Set to yes if linker adds runtime paths of dependent libraries
  12707. # to runtime path list.
  12708. inherit_rpath=$inherit_rpath
  12709. # Whether libtool must link a program against all its dependency libraries.
  12710. link_all_deplibs=$link_all_deplibs
  12711. # Fix the shell variable \$srcfile for the compiler.
  12712. fix_srcfile_path=$lt_fix_srcfile_path
  12713. # Set to "yes" if exported symbols are required.
  12714. always_export_symbols=$always_export_symbols
  12715. # The commands to list exported symbols.
  12716. export_symbols_cmds=$lt_export_symbols_cmds
  12717. # Symbols that should not be listed in the preloaded symbols.
  12718. exclude_expsyms=$lt_exclude_expsyms
  12719. # Symbols that must always be exported.
  12720. include_expsyms=$lt_include_expsyms
  12721. # Commands necessary for linking programs (against libraries) with templates.
  12722. prelink_cmds=$lt_prelink_cmds
  12723. # Specify filename containing input files.
  12724. file_list_spec=$lt_file_list_spec
  12725. # How to hardcode a shared library path into an executable.
  12726. hardcode_action=$hardcode_action
  12727. # ### END LIBTOOL CONFIG
  12728. _LT_EOF
  12729. case $host_os in
  12730. aix3*)
  12731. cat <<\_LT_EOF >> "$cfgfile"
  12732. # AIX sometimes has problems with the GCC collect2 program. For some
  12733. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12734. # vanish in a puff of smoke.
  12735. if test "X${COLLECT_NAMES+set}" != Xset; then
  12736. COLLECT_NAMES=
  12737. export COLLECT_NAMES
  12738. fi
  12739. _LT_EOF
  12740. ;;
  12741. esac
  12742. ltmain="$ac_aux_dir/ltmain.sh"
  12743. # We use sed instead of cat because bash on DJGPP gets confused if
  12744. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12745. # text mode, it properly converts lines to CR/LF. This bash problem
  12746. # is reportedly fixed, but why not run on old versions too?
  12747. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12748. || (rm -f "$cfgfile"; exit 1)
  12749. case $xsi_shell in
  12750. yes)
  12751. cat << \_LT_EOF >> "$cfgfile"
  12752. # func_dirname file append nondir_replacement
  12753. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12754. # otherwise set result to NONDIR_REPLACEMENT.
  12755. func_dirname ()
  12756. {
  12757. case ${1} in
  12758. */*) func_dirname_result="${1%/*}${2}" ;;
  12759. * ) func_dirname_result="${3}" ;;
  12760. esac
  12761. }
  12762. # func_basename file
  12763. func_basename ()
  12764. {
  12765. func_basename_result="${1##*/}"
  12766. }
  12767. # func_dirname_and_basename file append nondir_replacement
  12768. # perform func_basename and func_dirname in a single function
  12769. # call:
  12770. # dirname: Compute the dirname of FILE. If nonempty,
  12771. # add APPEND to the result, otherwise set result
  12772. # to NONDIR_REPLACEMENT.
  12773. # value returned in "$func_dirname_result"
  12774. # basename: Compute filename of FILE.
  12775. # value retuned in "$func_basename_result"
  12776. # Implementation must be kept synchronized with func_dirname
  12777. # and func_basename. For efficiency, we do not delegate to
  12778. # those functions but instead duplicate the functionality here.
  12779. func_dirname_and_basename ()
  12780. {
  12781. case ${1} in
  12782. */*) func_dirname_result="${1%/*}${2}" ;;
  12783. * ) func_dirname_result="${3}" ;;
  12784. esac
  12785. func_basename_result="${1##*/}"
  12786. }
  12787. # func_stripname prefix suffix name
  12788. # strip PREFIX and SUFFIX off of NAME.
  12789. # PREFIX and SUFFIX must not contain globbing or regex special
  12790. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12791. # dot (in which case that matches only a dot).
  12792. func_stripname ()
  12793. {
  12794. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12795. # positional parameters, so assign one to ordinary parameter first.
  12796. func_stripname_result=${3}
  12797. func_stripname_result=${func_stripname_result#"${1}"}
  12798. func_stripname_result=${func_stripname_result%"${2}"}
  12799. }
  12800. # func_opt_split
  12801. func_opt_split ()
  12802. {
  12803. func_opt_split_opt=${1%%=*}
  12804. func_opt_split_arg=${1#*=}
  12805. }
  12806. # func_lo2o object
  12807. func_lo2o ()
  12808. {
  12809. case ${1} in
  12810. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12811. *) func_lo2o_result=${1} ;;
  12812. esac
  12813. }
  12814. # func_xform libobj-or-source
  12815. func_xform ()
  12816. {
  12817. func_xform_result=${1%.*}.lo
  12818. }
  12819. # func_arith arithmetic-term...
  12820. func_arith ()
  12821. {
  12822. func_arith_result=$(( $* ))
  12823. }
  12824. # func_len string
  12825. # STRING may not start with a hyphen.
  12826. func_len ()
  12827. {
  12828. func_len_result=${#1}
  12829. }
  12830. _LT_EOF
  12831. ;;
  12832. *) # Bourne compatible functions.
  12833. cat << \_LT_EOF >> "$cfgfile"
  12834. # func_dirname file append nondir_replacement
  12835. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12836. # otherwise set result to NONDIR_REPLACEMENT.
  12837. func_dirname ()
  12838. {
  12839. # Extract subdirectory from the argument.
  12840. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  12841. if test "X$func_dirname_result" = "X${1}"; then
  12842. func_dirname_result="${3}"
  12843. else
  12844. func_dirname_result="$func_dirname_result${2}"
  12845. fi
  12846. }
  12847. # func_basename file
  12848. func_basename ()
  12849. {
  12850. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  12851. }
  12852. # func_stripname prefix suffix name
  12853. # strip PREFIX and SUFFIX off of NAME.
  12854. # PREFIX and SUFFIX must not contain globbing or regex special
  12855. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12856. # dot (in which case that matches only a dot).
  12857. # func_strip_suffix prefix name
  12858. func_stripname ()
  12859. {
  12860. case ${2} in
  12861. .*) func_stripname_result=`$ECHO "X${3}" \
  12862. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  12863. *) func_stripname_result=`$ECHO "X${3}" \
  12864. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  12865. esac
  12866. }
  12867. # sed scripts:
  12868. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12869. my_sed_long_arg='1s/^-[^=]*=//'
  12870. # func_opt_split
  12871. func_opt_split ()
  12872. {
  12873. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  12874. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  12875. }
  12876. # func_lo2o object
  12877. func_lo2o ()
  12878. {
  12879. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  12880. }
  12881. # func_xform libobj-or-source
  12882. func_xform ()
  12883. {
  12884. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  12885. }
  12886. # func_arith arithmetic-term...
  12887. func_arith ()
  12888. {
  12889. func_arith_result=`expr "$@"`
  12890. }
  12891. # func_len string
  12892. # STRING may not start with a hyphen.
  12893. func_len ()
  12894. {
  12895. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12896. }
  12897. _LT_EOF
  12898. esac
  12899. case $lt_shell_append in
  12900. yes)
  12901. cat << \_LT_EOF >> "$cfgfile"
  12902. # func_append var value
  12903. # Append VALUE to the end of shell variable VAR.
  12904. func_append ()
  12905. {
  12906. eval "$1+=\$2"
  12907. }
  12908. _LT_EOF
  12909. ;;
  12910. *)
  12911. cat << \_LT_EOF >> "$cfgfile"
  12912. # func_append var value
  12913. # Append VALUE to the end of shell variable VAR.
  12914. func_append ()
  12915. {
  12916. eval "$1=\$$1\$2"
  12917. }
  12918. _LT_EOF
  12919. ;;
  12920. esac
  12921. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12922. || (rm -f "$cfgfile"; exit 1)
  12923. mv -f "$cfgfile" "$ofile" ||
  12924. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12925. chmod +x "$ofile"
  12926. ;;
  12927. "include":C) test -d include || mkdir include ;;
  12928. "src":C)
  12929. test -d src || mkdir src
  12930. test -d src/$TARGETDIR || mkdir src/$TARGETDIR
  12931. ;;
  12932. esac
  12933. done # for ac_tag
  12934. as_fn_exit 0
  12935. _ACEOF
  12936. ac_clean_files=$ac_clean_files_save
  12937. test $ac_write_fail = 0 ||
  12938. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12939. # configure is writing to config.log, and then calls config.status.
  12940. # config.status does its own redirection, appending to config.log.
  12941. # Unfortunately, on DOS this fails, as config.log is still kept open
  12942. # by configure, so config.status won't be able to write to it; its
  12943. # output is simply discarded. So we exec the FD to /dev/null,
  12944. # effectively closing config.log, so it can be properly (re)opened and
  12945. # appended to by config.status. When coming back to configure, we
  12946. # need to make the FD available again.
  12947. if test "$no_create" != yes; then
  12948. ac_cs_success=:
  12949. ac_config_status_args=
  12950. test "$silent" = yes &&
  12951. ac_config_status_args="$ac_config_status_args --quiet"
  12952. exec 5>/dev/null
  12953. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12954. exec 5>>config.log
  12955. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12956. # would make configure fail if this is the last instruction.
  12957. $ac_cs_success || as_fn_exit $?
  12958. fi
  12959. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12961. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12962. fi