PageRenderTime 128ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 2ms

/GraphicsMagick-1.3.16/configure.rpath

#
Shell | 16732 lines | 15190 code | 647 blank | 895 comment | 693 complexity | 2977b6c7270ee5cb3d0c93f44cddab72 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. lt_ltdl_dir='ltdl'
  521. lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
  522. test -n "$DJDIR" || exec 7<&0 </dev/null
  523. exec 6>&1
  524. # Name of the host.
  525. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  526. # so uname gets run too.
  527. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  528. #
  529. # Initializations.
  530. #
  531. ac_default_prefix=/usr/local
  532. ac_clean_files=
  533. ac_config_libobj_dir=.
  534. LIBOBJS=
  535. cross_compiling=no
  536. subdirs=
  537. MFLAGS=
  538. MAKEFLAGS=
  539. # Identity of this package.
  540. PACKAGE_NAME=
  541. PACKAGE_TARNAME=
  542. PACKAGE_VERSION=
  543. PACKAGE_STRING=
  544. PACKAGE_BUGREPORT=
  545. PACKAGE_URL=
  546. ac_unique_file="magick/magick.h"
  547. ac_config_libobj_dir=ltdl
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='ltdl_LTLIBOBJS
  584. ltdl_LIBOBJS
  585. am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. MAGICK_API_LIBS
  590. MAGICK_API_LDFLAGS
  591. MAGICK_API_PC_CPPFLAGS
  592. MAGICK_API_CPPFLAGS
  593. MAGICK_API_CFLAGS
  594. MAGICK_DEP_LIBS
  595. MAGICK_LTDLDEPS
  596. MAGICK_LIBLTDL
  597. DELEGATES
  598. MAGICKLIBDIR
  599. MAGICKLIB
  600. PERL_SUPPORTS_DESTDIR
  601. WITH_PERL_DYNAMIC_FALSE
  602. WITH_PERL_DYNAMIC_TRUE
  603. WITH_PERL_STATIC_FALSE
  604. WITH_PERL_STATIC_TRUE
  605. WITH_PERL_FALSE
  606. WITH_PERL_TRUE
  607. PERL
  608. GSVersion
  609. GSEPSDevice
  610. GSPSDevice
  611. GSPDFDevice
  612. GSColorAlphaDevice
  613. GSColorDevice
  614. GSPaletteDevice
  615. GSGrayDevice
  616. GSCMYKDevice
  617. GSMonoDevice
  618. HAS_ZIP_FALSE
  619. HAS_ZIP_TRUE
  620. ZIP
  621. HAS_P7ZIP_FALSE
  622. HAS_P7ZIP_TRUE
  623. P7ZIP
  624. HAS_RPM_FALSE
  625. HAS_RPM_TRUE
  626. RPM
  627. ShowImageDelegate
  628. MogrifyDelegate
  629. ConvertDelegate
  630. type_include_files
  631. ghostscript_font_dir
  632. windows_font_dir
  633. HasTXT2HTML_FALSE
  634. HasTXT2HTML_TRUE
  635. TXT2HTML
  636. HasRST2HTML_FALSE
  637. HasRST2HTML_TRUE
  638. RST2HTML
  639. HasPSDelegate_FALSE
  640. HasPSDelegate_TRUE
  641. PrintDelegate
  642. ZipDelegate
  643. WWWDecodeDelegate
  644. WMFDecodeDelegate
  645. TXTDelegate
  646. SCANDecodeDelegate
  647. RMDelegate
  648. RLEEncodeDelegate
  649. RADDecodeDelegate
  650. PSDelegate
  651. POVDelegate
  652. PGPDecodeDelegate
  653. MVDelegate
  654. MPEGEncodeDelegate
  655. MPEGDecodeDelegate
  656. MANDelegate
  657. LaunchDelegate
  658. LZWEncodeDelegate
  659. LZWDecodeDelegate
  660. LPRDelegate
  661. LPDelegate
  662. ILBMEncodeDelegate
  663. ILBMDecodeDelegate
  664. HTMLDecodeDelegate
  665. HPGLDecodeDelegate
  666. GnuplotDecodeDelegate
  667. GMDelegate
  668. FIGDecodeDelegate
  669. EditorDelegate
  670. EchoDelegate
  671. DVIDecodeDelegate
  672. DOTDecodeDelegate
  673. DCRAWDecodeDelegate
  674. CatDelegate
  675. CGMDecodeDelegate
  676. BrowseDelegate
  677. BZIPDelegate
  678. AutotraceDecodeDelegate
  679. MagickShareConfigPath
  680. MagickSharePath
  681. MagickFilterModulesPath
  682. MagickCoderModulesPath
  683. MagickLibConfigPath
  684. MagickLibPath
  685. MagickBinPath
  686. PERLMAINCC
  687. LIB_WMF_DEPS
  688. LIB_WMF
  689. HasWMF_FALSE
  690. HasWMF_TRUE
  691. LIB_XML
  692. HasXML_FALSE
  693. HasXML_TRUE
  694. xml2_config
  695. LIB_JBIG
  696. HasJBIG_FALSE
  697. HasJBIG_TRUE
  698. LIB_TIFF
  699. HasTIFF_FALSE
  700. HasTIFF_TRUE
  701. LIB_TTF
  702. HasTTF_FALSE
  703. HasTTF_TRUE
  704. freetype_config
  705. LIB_GS
  706. HasGS_FALSE
  707. HasGS_TRUE
  708. LIB_JP2
  709. HasJP2_FALSE
  710. HasJP2_TRUE
  711. LIB_JPEG
  712. HasJPEG_FALSE
  713. HasJPEG_TRUE
  714. LIB_PNG
  715. HasPNG_FALSE
  716. HasPNG_TRUE
  717. LIB_LCMS
  718. HasLCMS_FALSE
  719. HasLCMS_TRUE
  720. LIB_FPX
  721. HasFPX_FALSE
  722. HasFPX_TRUE
  723. LIB_DPS
  724. HasDPS_FALSE
  725. HasDPS_TRUE
  726. LIB_DL
  727. LIB_XEXT
  728. LIB_X11
  729. HasX11_FALSE
  730. HasX11_TRUE
  731. X_EXTRA_LIBS
  732. X_LIBS
  733. X_PRE_LIBS
  734. X_CFLAGS
  735. XMKMF
  736. LIB_LZMA
  737. HasLZMA_FALSE
  738. HasLZMA_TRUE
  739. LIB_BZLIB
  740. HasBZLIB_FALSE
  741. HasBZLIB_TRUE
  742. LIB_ZLIB
  743. HasZLIB_FALSE
  744. HasZLIB_TRUE
  745. LIB_TRIO
  746. LIB_MATH
  747. CCMALLOCDelegate
  748. LIB_OMP
  749. LIB_UMEM
  750. HasUMEM_FALSE
  751. HasUMEM_TRUE
  752. LIB_THREAD
  753. WITH_MAGICK_PLUS_PLUS_FALSE
  754. WITH_MAGICK_PLUS_PLUS_TRUE
  755. SysCtlDelegate
  756. UINTPTR_F
  757. UINTPTR_T
  758. UINTMAX_F
  759. UINTMAX_T
  760. UINT64_F
  761. UINT64_T
  762. INT64_F
  763. INT64_T
  764. UINT32_F
  765. UINT32_T
  766. INT32_F
  767. INT32_T
  768. UINT16_T
  769. INT16_T
  770. UINT8_T
  771. INT8_T
  772. LIBRARY_EXTRA_CPPFLAGS
  773. MODULE_EXTRA_CPPFLAGS
  774. LIBSTDCLDFLAGS
  775. PERL_MAKE_OPTIONS
  776. QuantumDepth
  777. MAGICK_COMPAT_FALSE
  778. MAGICK_COMPAT_TRUE
  779. MAINT
  780. MAINTAINER_MODE_FALSE
  781. MAINTAINER_MODE_TRUE
  782. DLLDFLAGS
  783. WITH_LTDL_FALSE
  784. WITH_LTDL_TRUE
  785. WITH_MODULES_FALSE
  786. WITH_MODULES_TRUE
  787. WITH_SHARED_LIBS_FALSE
  788. WITH_SHARED_LIBS_TRUE
  789. LTDLOPEN
  790. LT_CONFIG_H
  791. CONVENIENCE_LTDL_FALSE
  792. CONVENIENCE_LTDL_TRUE
  793. INSTALL_LTDL_FALSE
  794. INSTALL_LTDL_TRUE
  795. ARGZ_H
  796. sys_symbol_underscore
  797. LIBADD_DL
  798. LT_DLPREOPEN
  799. LIBADD_DLD_LINK
  800. LIBADD_SHL_LOAD
  801. LIBADD_DLOPEN
  802. LT_DLLOADERS
  803. INCLTDL
  804. LTDLINCL
  805. LTDLDEPS
  806. LIBLTDL
  807. LIBTOOL_DEPS
  808. CXXCPP
  809. am__fastdepCXX_FALSE
  810. am__fastdepCXX_TRUE
  811. CXXDEPMODE
  812. ac_ct_CXX
  813. CXXFLAGS
  814. CXX
  815. OTOOL64
  816. OTOOL
  817. LIPO
  818. NMEDIT
  819. DSYMUTIL
  820. MANIFEST_TOOL
  821. RANLIB
  822. ac_ct_AR
  823. AR
  824. NM
  825. ac_ct_DUMPBIN
  826. DUMPBIN
  827. LIBTOOL
  828. OBJDUMP
  829. DLLTOOL
  830. AS
  831. LFS_CPPFLAGS
  832. OPENMP_CFLAGS
  833. PTHREAD_CFLAGS
  834. PTHREAD_LIBS
  835. PTHREAD_CXX
  836. PTHREAD_CC
  837. acx_pthread_config
  838. WinPathScript
  839. CYGWIN_BUILD_FALSE
  840. CYGWIN_BUILD_TRUE
  841. WIN32_NATIVE_BUILD_FALSE
  842. WIN32_NATIVE_BUILD_TRUE
  843. HasWINGDI32_FALSE
  844. HasWINGDI32_TRUE
  845. LIB_GDI32
  846. LN_S
  847. LD
  848. FGREP
  849. SED
  850. DIRSEP
  851. MAGICK_FILTER_MODULE_PATH
  852. MAGICK_CONFIGURE_BUILD_PATH
  853. MAGICK_CONFIGURE_SRC_PATH
  854. MAGICK_CODER_MODULE_PATH
  855. MAN_DIR
  856. INFO_DIR
  857. OLDINCLUDE_DIR
  858. INCLUDE_DIR
  859. LIB_DIR
  860. LOCALSTATE_DIR
  861. SHAREDSTATE_DIR
  862. SYSCONF_DIR
  863. HTML_DIR
  864. DOC_DIR
  865. DATA_DIR
  866. LIBEXEC_DIR
  867. SBIN_DIR
  868. BIN_DIR
  869. EXEC_PREFIX_DIR
  870. PREFIX_DIR
  871. EGREP
  872. GREP
  873. CPP
  874. am__fastdepCC_FALSE
  875. am__fastdepCC_TRUE
  876. CCDEPMODE
  877. am__nodep
  878. AMDEPBACKSLASH
  879. AMDEP_FALSE
  880. AMDEP_TRUE
  881. am__quote
  882. am__include
  883. DEPDIR
  884. OBJEXT
  885. EXEEXT
  886. ac_ct_CC
  887. CPPFLAGS
  888. LDFLAGS
  889. CFLAGS
  890. CC
  891. CONFIG_STATUS_DEPENDENCIES
  892. AM_BACKSLASH
  893. AM_DEFAULT_VERBOSITY
  894. am__untar
  895. am__tar
  896. AMTAR
  897. am__leading_dot
  898. SET_MAKE
  899. AWK
  900. mkdir_p
  901. MKDIR_P
  902. INSTALL_STRIP_PROGRAM
  903. STRIP
  904. install_sh
  905. MAKEINFO
  906. AUTOHEADER
  907. AUTOMAKE
  908. AUTOCONF
  909. ACLOCAL
  910. VERSION
  911. PACKAGE
  912. CYGPATH_W
  913. am__isrc
  914. INSTALL_DATA
  915. INSTALL_SCRIPT
  916. INSTALL_PROGRAM
  917. MAGICK_LIB_VERSION_NUMBER
  918. MAGICK_LIB_VERSION_TEXT
  919. MAGICK_LIB_VERSION
  920. HG_BRANCH_TAG
  921. PACKAGE_RELEASE_DATE
  922. PACKAGE_CHANGE_DATE
  923. PACKAGE_VERSION_ADDENDUM
  924. MAGICK_WAND_LIBRARY_AGE
  925. MAGICK_WAND_LIBRARY_REVISION
  926. MAGICK_WAND_LIBRARY_CURRENT
  927. MAGICK_PLUS_PLUS_LIBRARY_AGE
  928. MAGICK_PLUS_PLUS_LIBRARY_REVISION
  929. MAGICK_PLUS_PLUS_LIBRARY_CURRENT
  930. MAGICK_LIB_INTERFACE_OLDEST
  931. MAGICK_LIB_INTERFACE_NEWEST
  932. MAGICK_LIBRARY_AGE
  933. MAGICK_LIBRARY_REVISION
  934. MAGICK_LIBRARY_CURRENT
  935. MAGICK_TARGET_OS
  936. MAGICK_TARGET_VENDOR
  937. MAGICK_TARGET_CPU
  938. host_os
  939. host_vendor
  940. host_cpu
  941. host
  942. build_os
  943. build_vendor
  944. build_cpu
  945. build
  946. DISTCHECK_CONFIG_FLAGS
  947. target_alias
  948. host_alias
  949. build_alias
  950. LIBS
  951. ECHO_T
  952. ECHO_N
  953. ECHO_C
  954. DEFS
  955. mandir
  956. localedir
  957. libdir
  958. psdir
  959. pdfdir
  960. dvidir
  961. htmldir
  962. infodir
  963. docdir
  964. oldincludedir
  965. includedir
  966. localstatedir
  967. sharedstatedir
  968. sysconfdir
  969. datadir
  970. datarootdir
  971. libexecdir
  972. sbindir
  973. bindir
  974. program_transform_name
  975. prefix
  976. exec_prefix
  977. PACKAGE_URL
  978. PACKAGE_BUGREPORT
  979. PACKAGE_STRING
  980. PACKAGE_VERSION
  981. PACKAGE_TARNAME
  982. PACKAGE_NAME
  983. PATH_SEPARATOR
  984. SHELL'
  985. ac_subst_files=''
  986. ac_user_opts='
  987. enable_option_checking
  988. enable_silent_rules
  989. enable_dependency_tracking
  990. with_gnu_ld
  991. with_threads
  992. enable_openmp
  993. enable_openmp_slow
  994. enable_largefile
  995. enable_shared
  996. enable_static
  997. with_pic
  998. enable_fast_install
  999. with_sysroot
  1000. enable_libtool_lock
  1001. with_included_ltdl
  1002. with_ltdl_include
  1003. with_ltdl_lib
  1004. enable_ltdl_install
  1005. with_modules
  1006. enable_installed
  1007. enable_maintainer_mode
  1008. enable_ccmalloc
  1009. enable_efence
  1010. enable_prof
  1011. enable_gprof
  1012. enable_gcov
  1013. enable_symbol_prefix
  1014. enable_magick_compat
  1015. with_quantum_depth
  1016. with_frozenpaths
  1017. with_magick_plus_plus
  1018. with_perl
  1019. with_perl_options
  1020. with_bzlib
  1021. with_dps
  1022. with_fpx
  1023. with_gslib
  1024. with_jbig
  1025. with_jpeg
  1026. with_jp2
  1027. with_lcms
  1028. with_lcms2
  1029. with_lzma
  1030. with_png
  1031. with_tiff
  1032. with_trio
  1033. with_ttf
  1034. with_umem
  1035. with_wmf
  1036. with_fontpath
  1037. with_gs_font_dir
  1038. with_windows_font_dir
  1039. with_xml
  1040. with_zlib
  1041. with_libstdc
  1042. with_x
  1043. '
  1044. ac_precious_vars='build_alias
  1045. host_alias
  1046. target_alias
  1047. CC
  1048. CFLAGS
  1049. LDFLAGS
  1050. LIBS
  1051. CPPFLAGS
  1052. CPP
  1053. CXX
  1054. CXXFLAGS
  1055. CCC
  1056. CXXCPP
  1057. XMKMF'
  1058. # Initialize some variables set by options.
  1059. ac_init_help=
  1060. ac_init_version=false
  1061. ac_unrecognized_opts=
  1062. ac_unrecognized_sep=
  1063. # The variables have the same names as the options, with
  1064. # dashes changed to underlines.
  1065. cache_file=/dev/null
  1066. exec_prefix=NONE
  1067. no_create=
  1068. no_recursion=
  1069. prefix=NONE
  1070. program_prefix=NONE
  1071. program_suffix=NONE
  1072. program_transform_name=s,x,x,
  1073. silent=
  1074. site=
  1075. srcdir=
  1076. verbose=
  1077. x_includes=NONE
  1078. x_libraries=NONE
  1079. # Installation directory options.
  1080. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1081. # and all the variables that are supposed to be based on exec_prefix
  1082. # by default will actually change.
  1083. # Use braces instead of parens because sh, perl, etc. also accept them.
  1084. # (The list follows the same order as the GNU Coding Standards.)
  1085. bindir='${exec_prefix}/bin'
  1086. sbindir='${exec_prefix}/sbin'
  1087. libexecdir='${exec_prefix}/libexec'
  1088. datarootdir='${prefix}/share'
  1089. datadir='${datarootdir}'
  1090. sysconfdir='${prefix}/etc'
  1091. sharedstatedir='${prefix}/com'
  1092. localstatedir='${prefix}/var'
  1093. includedir='${prefix}/include'
  1094. oldincludedir='/usr/include'
  1095. docdir='${datarootdir}/doc/${PACKAGE}'
  1096. infodir='${datarootdir}/info'
  1097. htmldir='${docdir}'
  1098. dvidir='${docdir}'
  1099. pdfdir='${docdir}'
  1100. psdir='${docdir}'
  1101. libdir='${exec_prefix}/lib'
  1102. localedir='${datarootdir}/locale'
  1103. mandir='${datarootdir}/man'
  1104. ac_prev=
  1105. ac_dashdash=
  1106. for ac_option
  1107. do
  1108. # If the previous option needs an argument, assign it.
  1109. if test -n "$ac_prev"; then
  1110. eval $ac_prev=\$ac_option
  1111. ac_prev=
  1112. continue
  1113. fi
  1114. case $ac_option in
  1115. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1116. *=) ac_optarg= ;;
  1117. *) ac_optarg=yes ;;
  1118. esac
  1119. # Accept the important Cygnus configure options, so we can diagnose typos.
  1120. case $ac_dashdash$ac_option in
  1121. --)
  1122. ac_dashdash=yes ;;
  1123. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1124. ac_prev=bindir ;;
  1125. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1126. bindir=$ac_optarg ;;
  1127. -build | --build | --buil | --bui | --bu)
  1128. ac_prev=build_alias ;;
  1129. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1130. build_alias=$ac_optarg ;;
  1131. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1132. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1133. ac_prev=cache_file ;;
  1134. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1135. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1136. cache_file=$ac_optarg ;;
  1137. --config-cache | -C)
  1138. cache_file=config.cache ;;
  1139. -datadir | --datadir | --datadi | --datad)
  1140. ac_prev=datadir ;;
  1141. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1142. datadir=$ac_optarg ;;
  1143. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1144. | --dataroo | --dataro | --datar)
  1145. ac_prev=datarootdir ;;
  1146. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1147. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1148. datarootdir=$ac_optarg ;;
  1149. -disable-* | --disable-*)
  1150. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1153. as_fn_error $? "invalid feature name: $ac_useropt"
  1154. ac_useropt_orig=$ac_useropt
  1155. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1156. case $ac_user_opts in
  1157. *"
  1158. "enable_$ac_useropt"
  1159. "*) ;;
  1160. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1161. ac_unrecognized_sep=', ';;
  1162. esac
  1163. eval enable_$ac_useropt=no ;;
  1164. -docdir | --docdir | --docdi | --doc | --do)
  1165. ac_prev=docdir ;;
  1166. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1167. docdir=$ac_optarg ;;
  1168. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1169. ac_prev=dvidir ;;
  1170. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1171. dvidir=$ac_optarg ;;
  1172. -enable-* | --enable-*)
  1173. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1174. # Reject names that are not valid shell variable names.
  1175. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1176. as_fn_error $? "invalid feature name: $ac_useropt"
  1177. ac_useropt_orig=$ac_useropt
  1178. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1179. case $ac_user_opts in
  1180. *"
  1181. "enable_$ac_useropt"
  1182. "*) ;;
  1183. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1184. ac_unrecognized_sep=', ';;
  1185. esac
  1186. eval enable_$ac_useropt=\$ac_optarg ;;
  1187. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1188. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1189. | --exec | --exe | --ex)
  1190. ac_prev=exec_prefix ;;
  1191. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1192. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1193. | --exec=* | --exe=* | --ex=*)
  1194. exec_prefix=$ac_optarg ;;
  1195. -gas | --gas | --ga | --g)
  1196. # Obsolete; use --with-gas.
  1197. with_gas=yes ;;
  1198. -help | --help | --hel | --he | -h)
  1199. ac_init_help=long ;;
  1200. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1201. ac_init_help=recursive ;;
  1202. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1203. ac_init_help=short ;;
  1204. -host | --host | --hos | --ho)
  1205. ac_prev=host_alias ;;
  1206. -host=* | --host=* | --hos=* | --ho=*)
  1207. host_alias=$ac_optarg ;;
  1208. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1209. ac_prev=htmldir ;;
  1210. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1211. | --ht=*)
  1212. htmldir=$ac_optarg ;;
  1213. -includedir | --includedir | --includedi | --included | --include \
  1214. | --includ | --inclu | --incl | --inc)
  1215. ac_prev=includedir ;;
  1216. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1217. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1218. includedir=$ac_optarg ;;
  1219. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1220. ac_prev=infodir ;;
  1221. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1222. infodir=$ac_optarg ;;
  1223. -libdir | --libdir | --libdi | --libd)
  1224. ac_prev=libdir ;;
  1225. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1226. libdir=$ac_optarg ;;
  1227. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1228. | --libexe | --libex | --libe)
  1229. ac_prev=libexecdir ;;
  1230. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1231. | --libexe=* | --libex=* | --libe=*)
  1232. libexecdir=$ac_optarg ;;
  1233. -localedir | --localedir | --localedi | --localed | --locale)
  1234. ac_prev=localedir ;;
  1235. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1236. localedir=$ac_optarg ;;
  1237. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1238. | --localstate | --localstat | --localsta | --localst | --locals)
  1239. ac_prev=localstatedir ;;
  1240. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1241. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1242. localstatedir=$ac_optarg ;;
  1243. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1244. ac_prev=mandir ;;
  1245. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1246. mandir=$ac_optarg ;;
  1247. -nfp | --nfp | --nf)
  1248. # Obsolete; use --without-fp.
  1249. with_fp=no ;;
  1250. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1251. | --no-cr | --no-c | -n)
  1252. no_create=yes ;;
  1253. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1254. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1255. no_recursion=yes ;;
  1256. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1257. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1258. | --oldin | --oldi | --old | --ol | --o)
  1259. ac_prev=oldincludedir ;;
  1260. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1261. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1262. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1263. oldincludedir=$ac_optarg ;;
  1264. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1265. ac_prev=prefix ;;
  1266. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1267. prefix=$ac_optarg ;;
  1268. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1269. | --program-pre | --program-pr | --program-p)
  1270. ac_prev=program_prefix ;;
  1271. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1272. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1273. program_prefix=$ac_optarg ;;
  1274. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1275. | --program-suf | --program-su | --program-s)
  1276. ac_prev=program_suffix ;;
  1277. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1278. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1279. program_suffix=$ac_optarg ;;
  1280. -program-transform-name | --program-transform-name \
  1281. | --program-transform-nam | --program-transform-na \
  1282. | --program-transform-n | --program-transform- \
  1283. | --program-transform | --program-transfor \
  1284. | --program-transfo | --program-transf \
  1285. | --program-trans | --program-tran \
  1286. | --progr-tra | --program-tr | --program-t)
  1287. ac_prev=program_transform_name ;;
  1288. -program-transform-name=* | --program-transform-name=* \
  1289. | --program-transform-nam=* | --program-transform-na=* \
  1290. | --program-transform-n=* | --program-transform-=* \
  1291. | --program-transform=* | --program-transfor=* \
  1292. | --program-transfo=* | --program-transf=* \
  1293. | --program-trans=* | --program-tran=* \
  1294. | --progr-tra=* | --program-tr=* | --program-t=*)
  1295. program_transform_name=$ac_optarg ;;
  1296. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1297. ac_prev=pdfdir ;;
  1298. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1299. pdfdir=$ac_optarg ;;
  1300. -psdir | --psdir | --psdi | --psd | --ps)
  1301. ac_prev=psdir ;;
  1302. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1303. psdir=$ac_optarg ;;
  1304. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1305. | -silent | --silent | --silen | --sile | --sil)
  1306. silent=yes ;;
  1307. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1308. ac_prev=sbindir ;;
  1309. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1310. | --sbi=* | --sb=*)
  1311. sbindir=$ac_optarg ;;
  1312. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1313. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1314. | --sharedst | --shareds | --shared | --share | --shar \
  1315. | --sha | --sh)
  1316. ac_prev=sharedstatedir ;;
  1317. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1318. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1319. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1320. | --sha=* | --sh=*)
  1321. sharedstatedir=$ac_optarg ;;
  1322. -site | --site | --sit)
  1323. ac_prev=site ;;
  1324. -site=* | --site=* | --sit=*)
  1325. site=$ac_optarg ;;
  1326. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1327. ac_prev=srcdir ;;
  1328. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1329. srcdir=$ac_optarg ;;
  1330. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1331. | --syscon | --sysco | --sysc | --sys | --sy)
  1332. ac_prev=sysconfdir ;;
  1333. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1334. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1335. sysconfdir=$ac_optarg ;;
  1336. -target | --target | --targe | --targ | --tar | --ta | --t)
  1337. ac_prev=target_alias ;;
  1338. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1339. target_alias=$ac_optarg ;;
  1340. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1341. verbose=yes ;;
  1342. -version | --version | --versio | --versi | --vers | -V)
  1343. ac_init_version=: ;;
  1344. -with-* | --with-*)
  1345. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1346. # Reject names that are not valid shell variable names.
  1347. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1348. as_fn_error $? "invalid package name: $ac_useropt"
  1349. ac_useropt_orig=$ac_useropt
  1350. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1351. case $ac_user_opts in
  1352. *"
  1353. "with_$ac_useropt"
  1354. "*) ;;
  1355. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1356. ac_unrecognized_sep=', ';;
  1357. esac
  1358. eval with_$ac_useropt=\$ac_optarg ;;
  1359. -without-* | --without-*)
  1360. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1361. # Reject names that are not valid shell variable names.
  1362. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1363. as_fn_error $? "invalid package name: $ac_useropt"
  1364. ac_useropt_orig=$ac_useropt
  1365. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1366. case $ac_user_opts in
  1367. *"
  1368. "with_$ac_useropt"
  1369. "*) ;;
  1370. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1371. ac_unrecognized_sep=', ';;
  1372. esac
  1373. eval with_$ac_useropt=no ;;
  1374. --x)
  1375. # Obsolete; use --with-x.
  1376. with_x=yes ;;
  1377. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1378. | --x-incl | --x-inc | --x-in | --x-i)
  1379. ac_prev=x_includes ;;
  1380. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1381. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1382. x_includes=$ac_optarg ;;
  1383. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1384. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1385. ac_prev=x_libraries ;;
  1386. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1387. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1388. x_libraries=$ac_optarg ;;
  1389. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1390. Try \`$0 --help' for more information"
  1391. ;;
  1392. *=*)
  1393. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1394. # Reject names that are not valid shell variable names.
  1395. case $ac_envvar in #(
  1396. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1397. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1398. esac
  1399. eval $ac_envvar=\$ac_optarg
  1400. export $ac_envvar ;;
  1401. *)
  1402. # FIXME: should be removed in autoconf 3.0.
  1403. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1404. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1405. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1406. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1407. ;;
  1408. esac
  1409. done
  1410. if test -n "$ac_prev"; then
  1411. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1412. as_fn_error $? "missing argument to $ac_option"
  1413. fi
  1414. if test -n "$ac_unrecognized_opts"; then
  1415. case $enable_option_checking in
  1416. no) ;;
  1417. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1418. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1419. esac
  1420. fi
  1421. # Check all directory arguments for consistency.
  1422. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1423. datadir sysconfdir sharedstatedir localstatedir includedir \
  1424. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1425. libdir localedir mandir
  1426. do
  1427. eval ac_val=\$$ac_var
  1428. # Remove trailing slashes.
  1429. case $ac_val in
  1430. */ )
  1431. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1432. eval $ac_var=\$ac_val;;
  1433. esac
  1434. # Be sure to have absolute directory names.
  1435. case $ac_val in
  1436. [\\/$]* | ?:[\\/]* ) continue;;
  1437. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1438. esac
  1439. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1440. done
  1441. # There might be people who depend on the old broken behavior: `$host'
  1442. # used to hold the argument of --host etc.
  1443. # FIXME: To remove some day.
  1444. build=$build_alias
  1445. host=$host_alias
  1446. target=$target_alias
  1447. # FIXME: To remove some day.
  1448. if test "x$host_alias" != x; then
  1449. if test "x$build_alias" = x; then
  1450. cross_compiling=maybe
  1451. elif test "x$build_alias" != "x$host_alias"; then
  1452. cross_compiling=yes
  1453. fi
  1454. fi
  1455. ac_tool_prefix=
  1456. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1457. test "$silent" = yes && exec 6>/dev/null
  1458. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1459. ac_ls_di=`ls -di .` &&
  1460. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1461. as_fn_error $? "working directory cannot be determined"
  1462. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1463. as_fn_error $? "pwd does not report name of working directory"
  1464. # Find the source files, if location was not specified.
  1465. if test -z "$srcdir"; then
  1466. ac_srcdir_defaulted=yes
  1467. # Try the directory containing this script, then the parent directory.
  1468. ac_confdir=`$as_dirname -- "$as_myself" ||
  1469. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1470. X"$as_myself" : 'X\(//\)[^/]' \| \
  1471. X"$as_myself" : 'X\(//\)$' \| \
  1472. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1473. $as_echo X"$as_myself" |
  1474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1475. s//\1/
  1476. q
  1477. }
  1478. /^X\(\/\/\)[^/].*/{
  1479. s//\1/
  1480. q
  1481. }
  1482. /^X\(\/\/\)$/{
  1483. s//\1/
  1484. q
  1485. }
  1486. /^X\(\/\).*/{
  1487. s//\1/
  1488. q
  1489. }
  1490. s/.*/./; q'`
  1491. srcdir=$ac_confdir
  1492. if test ! -r "$srcdir/$ac_unique_file"; then
  1493. srcdir=..
  1494. fi
  1495. else
  1496. ac_srcdir_defaulted=no
  1497. fi
  1498. if test ! -r "$srcdir/$ac_unique_file"; then
  1499. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1500. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1501. fi
  1502. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1503. ac_abs_confdir=`(
  1504. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1505. pwd)`
  1506. # When building in place, set srcdir=.
  1507. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1508. srcdir=.
  1509. fi
  1510. # Remove unnecessary trailing slashes from srcdir.
  1511. # Double slashes in file names in object file debugging info
  1512. # mess up M-x gdb in Emacs.
  1513. case $srcdir in
  1514. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1515. esac
  1516. for ac_var in $ac_precious_vars; do
  1517. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1518. eval ac_env_${ac_var}_value=\$${ac_var}
  1519. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1520. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1521. done
  1522. #
  1523. # Report the --help message.
  1524. #
  1525. if test "$ac_init_help" = "long"; then
  1526. # Omit some internal or obsolete options to make the list less imposing.
  1527. # This message is too long to be a string in the A/UX 3.1 sh.
  1528. cat <<_ACEOF
  1529. \`configure' configures this package to adapt to many kinds of systems.
  1530. Usage: $0 [OPTION]... [VAR=VALUE]...
  1531. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1532. VAR=VALUE. See below for descriptions of some of the useful variables.
  1533. Defaults for the options are specified in brackets.
  1534. Configuration:
  1535. -h, --help display this help and exit
  1536. --help=short display options specific to this package
  1537. --help=recursive display the short help of all the included packages
  1538. -V, --version display version information and exit
  1539. -q, --quiet, --silent do not print \`checking ...' messages
  1540. --cache-file=FILE cache test results in FILE [disabled]
  1541. -C, --config-cache alias for \`--cache-file=config.cache'
  1542. -n, --no-create do not create output files
  1543. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1544. Installation directories:
  1545. --prefix=PREFIX install architecture-independent files in PREFIX
  1546. [$ac_default_prefix]
  1547. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1548. [PREFIX]
  1549. By default, \`make install' will install all the files in
  1550. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1551. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1552. for instance \`--prefix=\$HOME'.
  1553. For better control, use the options below.
  1554. Fine tuning of the installation directories:
  1555. --bindir=DIR user executables [EPREFIX/bin]
  1556. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1557. --libexecdir=DIR program executables [EPREFIX/libexec]
  1558. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1559. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1560. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1561. --libdir=DIR object code libraries [EPREFIX/lib]
  1562. --includedir=DIR C header files [PREFIX/include]
  1563. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1564. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1565. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1566. --infodir=DIR info documentation [DATAROOTDIR/info]
  1567. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1568. --mandir=DIR man documentation [DATAROOTDIR/man]
  1569. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1570. --htmldir=DIR html documentation [DOCDIR]
  1571. --dvidir=DIR dvi documentation [DOCDIR]
  1572. --pdfdir=DIR pdf documentation [DOCDIR]
  1573. --psdir=DIR ps documentation [DOCDIR]
  1574. _ACEOF
  1575. cat <<\_ACEOF
  1576. Program names:
  1577. --program-prefix=PREFIX prepend PREFIX to installed program names
  1578. --program-suffix=SUFFIX append SUFFIX to installed program names
  1579. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1580. X features:
  1581. --x-includes=DIR X include files are in DIR
  1582. --x-libraries=DIR X library files are in DIR
  1583. System types:
  1584. --build=BUILD configure for building on BUILD [guessed]
  1585. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1586. _ACEOF
  1587. fi
  1588. if test -n "$ac_init_help"; then
  1589. cat <<\_ACEOF
  1590. Optional Features:
  1591. --disable-option-checking ignore unrecognized --enable/--with options
  1592. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1593. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1594. --enable-silent-rules less verbose build output (undo: `make V=1')
  1595. --disable-silent-rules verbose build output (undo: `make V=0')
  1596. --disable-dependency-tracking speeds up one-time build
  1597. --enable-dependency-tracking do not reject slow dependency extractors
  1598. --disable-openmp do not use OpenMP
  1599. --enable-openmp-slow enable OpenMP for algorithms which sometimes run slower
  1600. --disable-largefile omit support for large files
  1601. --enable-shared[=PKGS] build shared libraries [default=no]
  1602. --enable-static[=PKGS] build static libraries [default=yes]
  1603. --enable-fast-install[=PKGS]
  1604. optimize for fast installation [default=yes]
  1605. --disable-libtool-lock avoid locking (might break parallel builds)
  1606. --enable-ltdl-install install libltdl
  1607. --disable-installed disable building an installed GraphicsMagick
  1608. (default enabled)
  1609. --enable-maintainer-mode enable make rules and dependencies not useful
  1610. (and sometimes confusing) to the casual installer
  1611. --enable-ccmalloc enable 'ccmalloc' memory debug support (default disabled)
  1612. --enable-efence enable 'Electric Fence' memory debug support (default disabled)
  1613. --enable-prof enable 'prof' profiling support (default disabled)
  1614. --enable-gprof enable 'gprof' profiling support (default disabled)
  1615. --enable-gcov enable 'gcov' profiling support (default disabled)
  1616. --enable-symbol-prefix enable prefixing library symbols with "Gm"
  1617. --enable-magick-compat install ImageMagick utility shortcuts (default disabled)
  1618. Optional Packages:
  1619. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1620. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1621. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1622. --without-threads disable threads support
  1623. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1624. both]
  1625. --with-sysroot=DIR Search for dependent libraries within DIR
  1626. (or the compiler's sysroot if not specified).
  1627. --with-included-ltdl use the GNU ltdl sources included here
  1628. --with-ltdl-include=DIR use the ltdl headers installed in DIR
  1629. --with-ltdl-lib=DIR use the libltdl.la installed in DIR
  1630. --with-modules enable building dynamically loadable modules
  1631. --with-quantum-depth number of bits in a pixel quantum (default 8)
  1632. --with-frozenpaths enable frozen delegate paths
  1633. --without-magick-plus-plus disable build/install of Magick++
  1634. --with-perl enable build/install of PerlMagick
  1635. or
  1636. --with-perl=PERL use specified Perl binary to configure PerlMagick
  1637. --with-perl-options=OPTIONS options to pass on command-line when
  1638. generating PerlMagick's Makefile from Makefile.PL
  1639. --without-bzlib disable BZLIB support
  1640. --without-dps disable Display Postscript support
  1641. --with-fpx enable FlashPIX support
  1642. --with-gslib enable Ghostscript library support (not recommended)
  1643. --without-jbig disable JBIG support
  1644. --without-jpeg disable JPEG support
  1645. --without-jp2 disable JPEG v2 support
  1646. --without-lcms disable lcms (v1.1X) support
  1647. --without-lcms2 disable lcms (v2.X) support
  1648. --without-lzma disable LZMA support
  1649. --without-png disable PNG support
  1650. --without-tiff disable TIFF support
  1651. --without-trio disable TRIO support
  1652. --without-ttf disable TrueType support
  1653. --with-umem enable umem memory allocation library support
  1654. --without-wmf disable WMF support
  1655. --with-fontpath=DIR prepend to default font search path
  1656. --with-gs-font-dir=DIR directory containing Ghostscript fonts
  1657. --with-windows-font-dir=DIR
  1658. directory containing MS-Windows fonts
  1659. --without-xml disable XML support
  1660. --without-zlib disable ZLIB support
  1661. --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
  1662. --with-x use the X Window System
  1663. --without-png disable PNG support
  1664. Some influential environment variables:
  1665. CC C compiler command
  1666. CFLAGS C compiler flags
  1667. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1668. nonstandard directory <lib dir>
  1669. LIBS libraries to pass to the linker, e.g. -l<library>
  1670. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1671. you have headers in a nonstandard directory <include dir>
  1672. CPP C preprocessor
  1673. CXX C++ compiler command
  1674. CXXFLAGS C++ compiler flags
  1675. CXXCPP C++ preprocessor
  1676. XMKMF Path to xmkmf, Makefile generator for X Window System
  1677. Use these variables to override the choices made by `configure' or to help
  1678. it to find libraries and programs with nonstandard names/locations.
  1679. Report bugs to the package provider.
  1680. _ACEOF
  1681. ac_status=$?
  1682. fi
  1683. if test "$ac_init_help" = "recursive"; then
  1684. # If there are subdirs, report their specific --help.
  1685. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1686. test -d "$ac_dir" ||
  1687. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1688. continue
  1689. ac_builddir=.
  1690. case "$ac_dir" in
  1691. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1692. *)
  1693. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1694. # A ".." for each directory in $ac_dir_suffix.
  1695. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1696. case $ac_top_builddir_sub in
  1697. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1698. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1699. esac ;;
  1700. esac
  1701. ac_abs_top_builddir=$ac_pwd
  1702. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1703. # for backward compatibility:
  1704. ac_top_builddir=$ac_top_build_prefix
  1705. case $srcdir in
  1706. .) # We are building in place.
  1707. ac_srcdir=.
  1708. ac_top_srcdir=$ac_top_builddir_sub
  1709. ac_abs_top_srcdir=$ac_pwd ;;
  1710. [\\/]* | ?:[\\/]* ) # Absolute name.
  1711. ac_srcdir=$srcdir$ac_dir_suffix;
  1712. ac_top_srcdir=$srcdir
  1713. ac_abs_top_srcdir=$srcdir ;;
  1714. *) # Relative name.
  1715. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1716. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1717. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1718. esac
  1719. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1720. cd "$ac_dir" || { ac_status=$?; continue; }
  1721. # Check for guested configure.
  1722. if test -f "$ac_srcdir/configure.gnu"; then
  1723. echo &&
  1724. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1725. elif test -f "$ac_srcdir/configure"; then
  1726. echo &&
  1727. $SHELL "$ac_srcdir/configure" --help=recursive
  1728. else
  1729. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1730. fi || ac_status=$?
  1731. cd "$ac_pwd" || { ac_status=$?; break; }
  1732. done
  1733. fi
  1734. test -n "$ac_init_help" && exit $ac_status
  1735. if $ac_init_version; then
  1736. cat <<\_ACEOF
  1737. configure
  1738. generated by GNU Autoconf 2.69
  1739. Copyright (C) 2012 Free Software Foundation, Inc.
  1740. This configure script is free software; the Free Software Foundation
  1741. gives unlimited permission to copy, distribute and modify it.
  1742. _ACEOF
  1743. exit
  1744. fi
  1745. ## ------------------------ ##
  1746. ## Autoconf initialization. ##
  1747. ## ------------------------ ##
  1748. # ac_fn_c_try_compile LINENO
  1749. # --------------------------
  1750. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1751. ac_fn_c_try_compile ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. rm -f conftest.$ac_objext
  1755. if { { ac_try="$ac_compile"
  1756. case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. $as_echo "$ac_try_echo"; } >&5
  1762. (eval "$ac_compile") 2>conftest.err
  1763. ac_status=$?
  1764. if test -s conftest.err; then
  1765. grep -v '^ *+' conftest.err >conftest.er1
  1766. cat conftest.er1 >&5
  1767. mv -f conftest.er1 conftest.err
  1768. fi
  1769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1770. test $ac_status = 0; } && {
  1771. test -z "$ac_c_werror_flag" ||
  1772. test ! -s conftest.err
  1773. } && test -s conftest.$ac_objext; then :
  1774. ac_retval=0
  1775. else
  1776. $as_echo "$as_me: failed program was:" >&5
  1777. sed 's/^/| /' conftest.$ac_ext >&5
  1778. ac_retval=1
  1779. fi
  1780. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781. as_fn_set_status $ac_retval
  1782. } # ac_fn_c_try_compile
  1783. # ac_fn_c_try_cpp LINENO
  1784. # ----------------------
  1785. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1786. ac_fn_c_try_cpp ()
  1787. {
  1788. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1789. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } > conftest.i && {
  1805. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1806. test ! -s conftest.err
  1807. }; then :
  1808. ac_retval=0
  1809. else
  1810. $as_echo "$as_me: failed program was:" >&5
  1811. sed 's/^/| /' conftest.$ac_ext >&5
  1812. ac_retval=1
  1813. fi
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_cpp
  1817. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1818. # -------------------------------------------------------
  1819. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1820. # the include files in INCLUDES and setting the cache variable VAR
  1821. # accordingly.
  1822. ac_fn_c_check_header_mongrel ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. if eval \${$3+:} false; then :
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1827. $as_echo_n "checking for $2... " >&6; }
  1828. if eval \${$3+:} false; then :
  1829. $as_echo_n "(cached) " >&6
  1830. fi
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. else
  1835. # Is the header compilable?
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1837. $as_echo_n "checking $2 usability... " >&6; }
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. #include <$2>
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844. ac_header_compiler=yes
  1845. else
  1846. ac_header_compiler=no
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1850. $as_echo "$ac_header_compiler" >&6; }
  1851. # Is the header present?
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1853. $as_echo_n "checking $2 presence... " >&6; }
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. #include <$2>
  1857. _ACEOF
  1858. if ac_fn_c_try_cpp "$LINENO"; then :
  1859. ac_header_preproc=yes
  1860. else
  1861. ac_header_preproc=no
  1862. fi
  1863. rm -f conftest.err conftest.i conftest.$ac_ext
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1865. $as_echo "$ac_header_preproc" >&6; }
  1866. # So? What about this header?
  1867. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1868. yes:no: )
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1870. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1872. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1873. ;;
  1874. no:yes:* )
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1876. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1878. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1880. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1882. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1884. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1885. ;;
  1886. esac
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1888. $as_echo_n "checking for $2... " >&6; }
  1889. if eval \${$3+:} false; then :
  1890. $as_echo_n "(cached) " >&6
  1891. else
  1892. eval "$3=\$ac_header_compiler"
  1893. fi
  1894. eval ac_res=\$$3
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1896. $as_echo "$ac_res" >&6; }
  1897. fi
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. } # ac_fn_c_check_header_mongrel
  1900. # ac_fn_c_try_run LINENO
  1901. # ----------------------
  1902. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1903. # that executables *can* be run.
  1904. ac_fn_c_try_run ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. if { { ac_try="$ac_link"
  1908. case "(($ac_try" in
  1909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1910. *) ac_try_echo=$ac_try;;
  1911. esac
  1912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1913. $as_echo "$ac_try_echo"; } >&5
  1914. (eval "$ac_link") 2>&5
  1915. ac_status=$?
  1916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1917. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1918. { { case "(($ac_try" in
  1919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1920. *) ac_try_echo=$ac_try;;
  1921. esac
  1922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1923. $as_echo "$ac_try_echo"; } >&5
  1924. (eval "$ac_try") 2>&5
  1925. ac_status=$?
  1926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1927. test $ac_status = 0; }; }; then :
  1928. ac_retval=0
  1929. else
  1930. $as_echo "$as_me: program exited with status $ac_status" >&5
  1931. $as_echo "$as_me: failed program was:" >&5
  1932. sed 's/^/| /' conftest.$ac_ext >&5
  1933. ac_retval=$ac_status
  1934. fi
  1935. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. as_fn_set_status $ac_retval
  1938. } # ac_fn_c_try_run
  1939. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1940. # -------------------------------------------------------
  1941. # Tests whether HEADER exists and can be compiled using the include files in
  1942. # INCLUDES, setting the cache variable VAR accordingly.
  1943. ac_fn_c_check_header_compile ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1947. $as_echo_n "checking for $2... " >&6; }
  1948. if eval \${$3+:} false; then :
  1949. $as_echo_n "(cached) " >&6
  1950. else
  1951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1952. /* end confdefs.h. */
  1953. $4
  1954. #include <$2>
  1955. _ACEOF
  1956. if ac_fn_c_try_compile "$LINENO"; then :
  1957. eval "$3=yes"
  1958. else
  1959. eval "$3=no"
  1960. fi
  1961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. } # ac_fn_c_check_header_compile
  1968. # ac_fn_c_try_link LINENO
  1969. # -----------------------
  1970. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1971. ac_fn_c_try_link ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. rm -f conftest.$ac_objext conftest$ac_exeext
  1975. if { { ac_try="$ac_link"
  1976. case "(($ac_try" in
  1977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1978. *) ac_try_echo=$ac_try;;
  1979. esac
  1980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1981. $as_echo "$ac_try_echo"; } >&5
  1982. (eval "$ac_link") 2>conftest.err
  1983. ac_status=$?
  1984. if test -s conftest.err; then
  1985. grep -v '^ *+' conftest.err >conftest.er1
  1986. cat conftest.er1 >&5
  1987. mv -f conftest.er1 conftest.err
  1988. fi
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1990. test $ac_status = 0; } && {
  1991. test -z "$ac_c_werror_flag" ||
  1992. test ! -s conftest.err
  1993. } && test -s conftest$ac_exeext && {
  1994. test "$cross_compiling" = yes ||
  1995. test -x conftest$ac_exeext
  1996. }; then :
  1997. ac_retval=0
  1998. else
  1999. $as_echo "$as_me: failed program was:" >&5
  2000. sed 's/^/| /' conftest.$ac_ext >&5
  2001. ac_retval=1
  2002. fi
  2003. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2004. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2005. # interfere with the next link command; also delete a directory that is
  2006. # left behind by Apple's compiler. We do this before executing the actions.
  2007. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_c_try_link
  2011. # ac_fn_c_check_func LINENO FUNC VAR
  2012. # ----------------------------------
  2013. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2014. ac_fn_c_check_func ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2018. $as_echo_n "checking for $2... " >&6; }
  2019. if eval \${$3+:} false; then :
  2020. $as_echo_n "(cached) " >&6
  2021. else
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2025. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2026. #define $2 innocuous_$2
  2027. /* System header to define __stub macros and hopefully few prototypes,
  2028. which can conflict with char $2 (); below.
  2029. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2030. <limits.h> exists even on freestanding compilers. */
  2031. #ifdef __STDC__
  2032. # include <limits.h>
  2033. #else
  2034. # include <assert.h>
  2035. #endif
  2036. #undef $2
  2037. /* Override any GCC internal prototype to avoid an error.
  2038. Use char because int might match the return type of a GCC
  2039. builtin and then its argument prototype would still apply. */
  2040. #ifdef __cplusplus
  2041. extern "C"
  2042. #endif
  2043. char $2 ();
  2044. /* The GNU C library defines this for functions which it implements
  2045. to always fail with ENOSYS. Some functions are actually named
  2046. something starting with __ and the normal name is an alias. */
  2047. #if defined __stub_$2 || defined __stub___$2
  2048. choke me
  2049. #endif
  2050. int
  2051. main ()
  2052. {
  2053. return $2 ();
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. if ac_fn_c_try_link "$LINENO"; then :
  2059. eval "$3=yes"
  2060. else
  2061. eval "$3=no"
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext \
  2064. conftest$ac_exeext conftest.$ac_ext
  2065. fi
  2066. eval ac_res=\$$3
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2068. $as_echo "$ac_res" >&6; }
  2069. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070. } # ac_fn_c_check_func
  2071. # ac_fn_cxx_try_compile LINENO
  2072. # ----------------------------
  2073. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2074. ac_fn_cxx_try_compile ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. rm -f conftest.$ac_objext
  2078. if { { ac_try="$ac_compile"
  2079. case "(($ac_try" in
  2080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2081. *) ac_try_echo=$ac_try;;
  2082. esac
  2083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2084. $as_echo "$ac_try_echo"; } >&5
  2085. (eval "$ac_compile") 2>conftest.err
  2086. ac_status=$?
  2087. if test -s conftest.err; then
  2088. grep -v '^ *+' conftest.err >conftest.er1
  2089. cat conftest.er1 >&5
  2090. mv -f conftest.er1 conftest.err
  2091. fi
  2092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2093. test $ac_status = 0; } && {
  2094. test -z "$ac_cxx_werror_flag" ||
  2095. test ! -s conftest.err
  2096. } && test -s conftest.$ac_objext; then :
  2097. ac_retval=0
  2098. else
  2099. $as_echo "$as_me: failed program was:" >&5
  2100. sed 's/^/| /' conftest.$ac_ext >&5
  2101. ac_retval=1
  2102. fi
  2103. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2104. as_fn_set_status $ac_retval
  2105. } # ac_fn_cxx_try_compile
  2106. # ac_fn_cxx_try_cpp LINENO
  2107. # ------------------------
  2108. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2109. ac_fn_cxx_try_cpp ()
  2110. {
  2111. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2113. case "(($ac_try" in
  2114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2115. *) ac_try_echo=$ac_try;;
  2116. esac
  2117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2118. $as_echo "$ac_try_echo"; } >&5
  2119. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2120. ac_status=$?
  2121. if test -s conftest.err; then
  2122. grep -v '^ *+' conftest.err >conftest.er1
  2123. cat conftest.er1 >&5
  2124. mv -f conftest.er1 conftest.err
  2125. fi
  2126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2127. test $ac_status = 0; } > conftest.i && {
  2128. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2129. test ! -s conftest.err
  2130. }; then :
  2131. ac_retval=0
  2132. else
  2133. $as_echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. ac_retval=1
  2136. fi
  2137. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2138. as_fn_set_status $ac_retval
  2139. } # ac_fn_cxx_try_cpp
  2140. # ac_fn_cxx_try_link LINENO
  2141. # -------------------------
  2142. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_cxx_try_link ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. rm -f conftest.$ac_objext conftest$ac_exeext
  2147. if { { ac_try="$ac_link"
  2148. case "(($ac_try" in
  2149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2150. *) ac_try_echo=$ac_try;;
  2151. esac
  2152. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2153. $as_echo "$ac_try_echo"; } >&5
  2154. (eval "$ac_link") 2>conftest.err
  2155. ac_status=$?
  2156. if test -s conftest.err; then
  2157. grep -v '^ *+' conftest.err >conftest.er1
  2158. cat conftest.er1 >&5
  2159. mv -f conftest.er1 conftest.err
  2160. fi
  2161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } && {
  2163. test -z "$ac_cxx_werror_flag" ||
  2164. test ! -s conftest.err
  2165. } && test -s conftest$ac_exeext && {
  2166. test "$cross_compiling" = yes ||
  2167. test -x conftest$ac_exeext
  2168. }; then :
  2169. ac_retval=0
  2170. else
  2171. $as_echo "$as_me: failed program was:" >&5
  2172. sed 's/^/| /' conftest.$ac_ext >&5
  2173. ac_retval=1
  2174. fi
  2175. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2176. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2177. # interfere with the next link command; also delete a directory that is
  2178. # left behind by Apple's compiler. We do this before executing the actions.
  2179. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2180. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2181. as_fn_set_status $ac_retval
  2182. } # ac_fn_cxx_try_link
  2183. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2184. # ---------------------------------------------
  2185. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2186. # accordingly.
  2187. ac_fn_c_check_decl ()
  2188. {
  2189. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2190. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2191. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2193. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2194. if eval \${$3+:} false; then :
  2195. $as_echo_n "(cached) " >&6
  2196. else
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $4
  2200. int
  2201. main ()
  2202. {
  2203. #ifndef $as_decl_name
  2204. #ifdef __cplusplus
  2205. (void) $as_decl_use;
  2206. #else
  2207. (void) $as_decl_name;
  2208. #endif
  2209. #endif
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. eval "$3=yes"
  2216. else
  2217. eval "$3=no"
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. eval ac_res=\$$3
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2223. $as_echo "$ac_res" >&6; }
  2224. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2225. } # ac_fn_c_check_decl
  2226. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2227. # -------------------------------------------
  2228. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2229. # variable VAR accordingly.
  2230. ac_fn_c_check_type ()
  2231. {
  2232. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2234. $as_echo_n "checking for $2... " >&6; }
  2235. if eval \${$3+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. eval "$3=no"
  2239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2240. /* end confdefs.h. */
  2241. $4
  2242. int
  2243. main ()
  2244. {
  2245. if (sizeof ($2))
  2246. return 0;
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. if ac_fn_c_try_compile "$LINENO"; then :
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $4
  2255. int
  2256. main ()
  2257. {
  2258. if (sizeof (($2)))
  2259. return 0;
  2260. ;
  2261. return 0;
  2262. }
  2263. _ACEOF
  2264. if ac_fn_c_try_compile "$LINENO"; then :
  2265. else
  2266. eval "$3=yes"
  2267. fi
  2268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. eval ac_res=\$$3
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2274. $as_echo "$ac_res" >&6; }
  2275. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2276. } # ac_fn_c_check_type
  2277. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2278. # --------------------------------------------
  2279. # Tries to find the compile-time value of EXPR in a program that includes
  2280. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2281. # computed
  2282. ac_fn_c_compute_int ()
  2283. {
  2284. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2285. if test "$cross_compiling" = yes; then
  2286. # Depending upon the size, compute the lo and hi bounds.
  2287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2288. /* end confdefs.h. */
  2289. $4
  2290. int
  2291. main ()
  2292. {
  2293. static int test_array [1 - 2 * !(($2) >= 0)];
  2294. test_array [0] = 0;
  2295. return test_array [0];
  2296. ;
  2297. return 0;
  2298. }
  2299. _ACEOF
  2300. if ac_fn_c_try_compile "$LINENO"; then :
  2301. ac_lo=0 ac_mid=0
  2302. while :; do
  2303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2304. /* end confdefs.h. */
  2305. $4
  2306. int
  2307. main ()
  2308. {
  2309. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2310. test_array [0] = 0;
  2311. return test_array [0];
  2312. ;
  2313. return 0;
  2314. }
  2315. _ACEOF
  2316. if ac_fn_c_try_compile "$LINENO"; then :
  2317. ac_hi=$ac_mid; break
  2318. else
  2319. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2320. if test $ac_lo -le $ac_mid; then
  2321. ac_lo= ac_hi=
  2322. break
  2323. fi
  2324. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2325. fi
  2326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2327. done
  2328. else
  2329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2330. /* end confdefs.h. */
  2331. $4
  2332. int
  2333. main ()
  2334. {
  2335. static int test_array [1 - 2 * !(($2) < 0)];
  2336. test_array [0] = 0;
  2337. return test_array [0];
  2338. ;
  2339. return 0;
  2340. }
  2341. _ACEOF
  2342. if ac_fn_c_try_compile "$LINENO"; then :
  2343. ac_hi=-1 ac_mid=-1
  2344. while :; do
  2345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2346. /* end confdefs.h. */
  2347. $4
  2348. int
  2349. main ()
  2350. {
  2351. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2352. test_array [0] = 0;
  2353. return test_array [0];
  2354. ;
  2355. return 0;
  2356. }
  2357. _ACEOF
  2358. if ac_fn_c_try_compile "$LINENO"; then :
  2359. ac_lo=$ac_mid; break
  2360. else
  2361. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2362. if test $ac_mid -le $ac_hi; then
  2363. ac_lo= ac_hi=
  2364. break
  2365. fi
  2366. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2367. fi
  2368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2369. done
  2370. else
  2371. ac_lo= ac_hi=
  2372. fi
  2373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2374. fi
  2375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2376. # Binary search between lo and hi bounds.
  2377. while test "x$ac_lo" != "x$ac_hi"; do
  2378. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h. */
  2381. $4
  2382. int
  2383. main ()
  2384. {
  2385. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2386. test_array [0] = 0;
  2387. return test_array [0];
  2388. ;
  2389. return 0;
  2390. }
  2391. _ACEOF
  2392. if ac_fn_c_try_compile "$LINENO"; then :
  2393. ac_hi=$ac_mid
  2394. else
  2395. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2396. fi
  2397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2398. done
  2399. case $ac_lo in #((
  2400. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2401. '') ac_retval=1 ;;
  2402. esac
  2403. else
  2404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2405. /* end confdefs.h. */
  2406. $4
  2407. static long int longval () { return $2; }
  2408. static unsigned long int ulongval () { return $2; }
  2409. #include <stdio.h>
  2410. #include <stdlib.h>
  2411. int
  2412. main ()
  2413. {
  2414. FILE *f = fopen ("conftest.val", "w");
  2415. if (! f)
  2416. return 1;
  2417. if (($2) < 0)
  2418. {
  2419. long int i = longval ();
  2420. if (i != ($2))
  2421. return 1;
  2422. fprintf (f, "%ld", i);
  2423. }
  2424. else
  2425. {
  2426. unsigned long int i = ulongval ();
  2427. if (i != ($2))
  2428. return 1;
  2429. fprintf (f, "%lu", i);
  2430. }
  2431. /* Do not output a trailing newline, as this causes \r\n confusion
  2432. on some platforms. */
  2433. return ferror (f) || fclose (f) != 0;
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. if ac_fn_c_try_run "$LINENO"; then :
  2439. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2440. else
  2441. ac_retval=1
  2442. fi
  2443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2445. rm -f conftest.val
  2446. fi
  2447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2448. as_fn_set_status $ac_retval
  2449. } # ac_fn_c_compute_int
  2450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2451. # ---------------------------------------------------------
  2452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2453. # the include files in INCLUDES and setting the cache variable VAR
  2454. # accordingly.
  2455. ac_fn_cxx_check_header_mongrel ()
  2456. {
  2457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2458. if eval \${$3+:} false; then :
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2460. $as_echo_n "checking for $2... " >&6; }
  2461. if eval \${$3+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. fi
  2464. eval ac_res=\$$3
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2466. $as_echo "$ac_res" >&6; }
  2467. else
  2468. # Is the header compilable?
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2470. $as_echo_n "checking $2 usability... " >&6; }
  2471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2472. /* end confdefs.h. */
  2473. $4
  2474. #include <$2>
  2475. _ACEOF
  2476. if ac_fn_cxx_try_compile "$LINENO"; then :
  2477. ac_header_compiler=yes
  2478. else
  2479. ac_header_compiler=no
  2480. fi
  2481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2483. $as_echo "$ac_header_compiler" >&6; }
  2484. # Is the header present?
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2486. $as_echo_n "checking $2 presence... " >&6; }
  2487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2488. /* end confdefs.h. */
  2489. #include <$2>
  2490. _ACEOF
  2491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2492. ac_header_preproc=yes
  2493. else
  2494. ac_header_preproc=no
  2495. fi
  2496. rm -f conftest.err conftest.i conftest.$ac_ext
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2498. $as_echo "$ac_header_preproc" >&6; }
  2499. # So? What about this header?
  2500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2501. yes:no: )
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2506. ;;
  2507. no:yes:* )
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2518. ;;
  2519. esac
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2521. $as_echo_n "checking for $2... " >&6; }
  2522. if eval \${$3+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. eval "$3=\$ac_header_compiler"
  2526. fi
  2527. eval ac_res=\$$3
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2529. $as_echo "$ac_res" >&6; }
  2530. fi
  2531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2532. } # ac_fn_cxx_check_header_mongrel
  2533. cat >config.log <<_ACEOF
  2534. This file contains any messages produced by compilers while
  2535. running configure, to aid debugging if configure makes a mistake.
  2536. It was created by $as_me, which was
  2537. generated by GNU Autoconf 2.69. Invocation command line was
  2538. $ $0 $@
  2539. _ACEOF
  2540. exec 5>>config.log
  2541. {
  2542. cat <<_ASUNAME
  2543. ## --------- ##
  2544. ## Platform. ##
  2545. ## --------- ##
  2546. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2547. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2548. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2549. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2550. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2551. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2552. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2553. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2554. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2555. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2556. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2557. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2558. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2559. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2560. _ASUNAME
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. $as_echo "PATH: $as_dir"
  2567. done
  2568. IFS=$as_save_IFS
  2569. } >&5
  2570. cat >&5 <<_ACEOF
  2571. ## ----------- ##
  2572. ## Core tests. ##
  2573. ## ----------- ##
  2574. _ACEOF
  2575. # Keep a trace of the command line.
  2576. # Strip out --no-create and --no-recursion so they do not pile up.
  2577. # Strip out --silent because we don't want to record it for future runs.
  2578. # Also quote any args containing shell meta-characters.
  2579. # Make two passes to allow for proper duplicate-argument suppression.
  2580. ac_configure_args=
  2581. ac_configure_args0=
  2582. ac_configure_args1=
  2583. ac_must_keep_next=false
  2584. for ac_pass in 1 2
  2585. do
  2586. for ac_arg
  2587. do
  2588. case $ac_arg in
  2589. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2590. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2591. | -silent | --silent | --silen | --sile | --sil)
  2592. continue ;;
  2593. *\'*)
  2594. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2595. esac
  2596. case $ac_pass in
  2597. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2598. 2)
  2599. as_fn_append ac_configure_args1 " '$ac_arg'"
  2600. if test $ac_must_keep_next = true; then
  2601. ac_must_keep_next=false # Got value, back to normal.
  2602. else
  2603. case $ac_arg in
  2604. *=* | --config-cache | -C | -disable-* | --disable-* \
  2605. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2606. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2607. | -with-* | --with-* | -without-* | --without-* | --x)
  2608. case "$ac_configure_args0 " in
  2609. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2610. esac
  2611. ;;
  2612. -* ) ac_must_keep_next=true ;;
  2613. esac
  2614. fi
  2615. as_fn_append ac_configure_args " '$ac_arg'"
  2616. ;;
  2617. esac
  2618. done
  2619. done
  2620. { ac_configure_args0=; unset ac_configure_args0;}
  2621. { ac_configure_args1=; unset ac_configure_args1;}
  2622. # When interrupted or exit'd, cleanup temporary files, and complete
  2623. # config.log. We remove comments because anyway the quotes in there
  2624. # would cause problems or look ugly.
  2625. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2626. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2627. trap 'exit_status=$?
  2628. # Save into config.log some information that might help in debugging.
  2629. {
  2630. echo
  2631. $as_echo "## ---------------- ##
  2632. ## Cache variables. ##
  2633. ## ---------------- ##"
  2634. echo
  2635. # The following way of writing the cache mishandles newlines in values,
  2636. (
  2637. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2638. eval ac_val=\$$ac_var
  2639. case $ac_val in #(
  2640. *${as_nl}*)
  2641. case $ac_var in #(
  2642. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2643. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2644. esac
  2645. case $ac_var in #(
  2646. _ | IFS | as_nl) ;; #(
  2647. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2648. *) { eval $ac_var=; unset $ac_var;} ;;
  2649. esac ;;
  2650. esac
  2651. done
  2652. (set) 2>&1 |
  2653. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2654. *${as_nl}ac_space=\ *)
  2655. sed -n \
  2656. "s/'\''/'\''\\\\'\'''\''/g;
  2657. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2658. ;; #(
  2659. *)
  2660. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2661. ;;
  2662. esac |
  2663. sort
  2664. )
  2665. echo
  2666. $as_echo "## ----------------- ##
  2667. ## Output variables. ##
  2668. ## ----------------- ##"
  2669. echo
  2670. for ac_var in $ac_subst_vars
  2671. do
  2672. eval ac_val=\$$ac_var
  2673. case $ac_val in
  2674. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2675. esac
  2676. $as_echo "$ac_var='\''$ac_val'\''"
  2677. done | sort
  2678. echo
  2679. if test -n "$ac_subst_files"; then
  2680. $as_echo "## ------------------- ##
  2681. ## File substitutions. ##
  2682. ## ------------------- ##"
  2683. echo
  2684. for ac_var in $ac_subst_files
  2685. do
  2686. eval ac_val=\$$ac_var
  2687. case $ac_val in
  2688. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2689. esac
  2690. $as_echo "$ac_var='\''$ac_val'\''"
  2691. done | sort
  2692. echo
  2693. fi
  2694. if test -s confdefs.h; then
  2695. $as_echo "## ----------- ##
  2696. ## confdefs.h. ##
  2697. ## ----------- ##"
  2698. echo
  2699. cat confdefs.h
  2700. echo
  2701. fi
  2702. test "$ac_signal" != 0 &&
  2703. $as_echo "$as_me: caught signal $ac_signal"
  2704. $as_echo "$as_me: exit $exit_status"
  2705. } >&5
  2706. rm -f core *.core core.conftest.* &&
  2707. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2708. exit $exit_status
  2709. ' 0
  2710. for ac_signal in 1 2 13 15; do
  2711. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2712. done
  2713. ac_signal=0
  2714. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2715. rm -f -r conftest* confdefs.h
  2716. $as_echo "/* confdefs.h */" > confdefs.h
  2717. # Predefined preprocessor variables.
  2718. cat >>confdefs.h <<_ACEOF
  2719. #define PACKAGE_NAME "$PACKAGE_NAME"
  2720. _ACEOF
  2721. cat >>confdefs.h <<_ACEOF
  2722. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2723. _ACEOF
  2724. cat >>confdefs.h <<_ACEOF
  2725. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2726. _ACEOF
  2727. cat >>confdefs.h <<_ACEOF
  2728. #define PACKAGE_STRING "$PACKAGE_STRING"
  2729. _ACEOF
  2730. cat >>confdefs.h <<_ACEOF
  2731. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2732. _ACEOF
  2733. cat >>confdefs.h <<_ACEOF
  2734. #define PACKAGE_URL "$PACKAGE_URL"
  2735. _ACEOF
  2736. # Let the site file select an alternate cache file if it wants to.
  2737. # Prefer an explicitly selected file to automatically selected ones.
  2738. ac_site_file1=NONE
  2739. ac_site_file2=NONE
  2740. if test -n "$CONFIG_SITE"; then
  2741. # We do not want a PATH search for config.site.
  2742. case $CONFIG_SITE in #((
  2743. -*) ac_site_file1=./$CONFIG_SITE;;
  2744. */*) ac_site_file1=$CONFIG_SITE;;
  2745. *) ac_site_file1=./$CONFIG_SITE;;
  2746. esac
  2747. elif test "x$prefix" != xNONE; then
  2748. ac_site_file1=$prefix/share/config.site
  2749. ac_site_file2=$prefix/etc/config.site
  2750. else
  2751. ac_site_file1=$ac_default_prefix/share/config.site
  2752. ac_site_file2=$ac_default_prefix/etc/config.site
  2753. fi
  2754. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2755. do
  2756. test "x$ac_site_file" = xNONE && continue
  2757. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2759. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2760. sed 's/^/| /' "$ac_site_file" >&5
  2761. . "$ac_site_file" \
  2762. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2764. as_fn_error $? "failed to load site script $ac_site_file
  2765. See \`config.log' for more details" "$LINENO" 5; }
  2766. fi
  2767. done
  2768. if test -r "$cache_file"; then
  2769. # Some versions of bash will fail to source /dev/null (special files
  2770. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2771. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2773. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2774. case $cache_file in
  2775. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2776. *) . "./$cache_file";;
  2777. esac
  2778. fi
  2779. else
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2781. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2782. >$cache_file
  2783. fi
  2784. # Check that the precious variables saved in the cache have kept the same
  2785. # value.
  2786. ac_cache_corrupted=false
  2787. for ac_var in $ac_precious_vars; do
  2788. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2789. eval ac_new_set=\$ac_env_${ac_var}_set
  2790. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2791. eval ac_new_val=\$ac_env_${ac_var}_value
  2792. case $ac_old_set,$ac_new_set in
  2793. set,)
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2795. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2796. ac_cache_corrupted=: ;;
  2797. ,set)
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2799. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2800. ac_cache_corrupted=: ;;
  2801. ,);;
  2802. *)
  2803. if test "x$ac_old_val" != "x$ac_new_val"; then
  2804. # differences in whitespace do not lead to failure.
  2805. ac_old_val_w=`echo x $ac_old_val`
  2806. ac_new_val_w=`echo x $ac_new_val`
  2807. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2809. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2810. ac_cache_corrupted=:
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2813. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2814. eval $ac_var=\$ac_old_val
  2815. fi
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2817. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2819. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2820. fi;;
  2821. esac
  2822. # Pass precious variables to config.status.
  2823. if test "$ac_new_set" = set; then
  2824. case $ac_new_val in
  2825. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2826. *) ac_arg=$ac_var=$ac_new_val ;;
  2827. esac
  2828. case " $ac_configure_args " in
  2829. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2830. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2831. esac
  2832. fi
  2833. done
  2834. if $ac_cache_corrupted; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2838. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2839. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2840. fi
  2841. ## -------------------- ##
  2842. ## Main body of script. ##
  2843. ## -------------------- ##
  2844. ac_ext=c
  2845. ac_cpp='$CPP $CPPFLAGS'
  2846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2849. # Specify directory where m4 macros may be found.
  2850. # Directory where AC_LIBOBJ replacement files are to be found.
  2851. # Directory where autotools helper scripts lives.
  2852. ac_aux_dir=
  2853. for ac_dir in ltdl/config "$srcdir"/ltdl/config; do
  2854. if test -f "$ac_dir/install-sh"; then
  2855. ac_aux_dir=$ac_dir
  2856. ac_install_sh="$ac_aux_dir/install-sh -c"
  2857. break
  2858. elif test -f "$ac_dir/install.sh"; then
  2859. ac_aux_dir=$ac_dir
  2860. ac_install_sh="$ac_aux_dir/install.sh -c"
  2861. break
  2862. elif test -f "$ac_dir/shtool"; then
  2863. ac_aux_dir=$ac_dir
  2864. ac_install_sh="$ac_aux_dir/shtool install -c"
  2865. break
  2866. fi
  2867. done
  2868. if test -z "$ac_aux_dir"; then
  2869. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ltdl/config \"$srcdir\"/ltdl/config" "$LINENO" 5
  2870. fi
  2871. # These three variables are undocumented and unsupported,
  2872. # and are intended to be withdrawn in a future Autoconf release.
  2873. # They can cause serious problems if a builder's source tree is in a directory
  2874. # whose full name contains unusual characters.
  2875. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2876. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2877. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2878. #
  2879. # Save initial user-tunable values
  2880. #
  2881. LIBS_USER=$LIBS
  2882. for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
  2883. eval isset=\${$var+set}
  2884. if test "$isset" = 'set' ; then
  2885. eval val=$`echo $var`
  2886. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
  2887. fi
  2888. done
  2889. # Source file containing package/library versioning information.
  2890. . ${srcdir}/version.sh
  2891. echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
  2892. # Make sure we can run config.sub.
  2893. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2894. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2896. $as_echo_n "checking build system type... " >&6; }
  2897. if ${ac_cv_build+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. ac_build_alias=$build_alias
  2901. test "x$ac_build_alias" = x &&
  2902. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2903. test "x$ac_build_alias" = x &&
  2904. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2905. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2906. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2907. fi
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2909. $as_echo "$ac_cv_build" >&6; }
  2910. case $ac_cv_build in
  2911. *-*-*) ;;
  2912. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2913. esac
  2914. build=$ac_cv_build
  2915. ac_save_IFS=$IFS; IFS='-'
  2916. set x $ac_cv_build
  2917. shift
  2918. build_cpu=$1
  2919. build_vendor=$2
  2920. shift; shift
  2921. # Remember, the first character of IFS is used to create $*,
  2922. # except with old shells:
  2923. build_os=$*
  2924. IFS=$ac_save_IFS
  2925. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2927. $as_echo_n "checking host system type... " >&6; }
  2928. if ${ac_cv_host+:} false; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. if test "x$host_alias" = x; then
  2932. ac_cv_host=$ac_cv_build
  2933. else
  2934. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2935. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2936. fi
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2939. $as_echo "$ac_cv_host" >&6; }
  2940. case $ac_cv_host in
  2941. *-*-*) ;;
  2942. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2943. esac
  2944. host=$ac_cv_host
  2945. ac_save_IFS=$IFS; IFS='-'
  2946. set x $ac_cv_host
  2947. shift
  2948. host_cpu=$1
  2949. host_vendor=$2
  2950. shift; shift
  2951. # Remember, the first character of IFS is used to create $*,
  2952. # except with old shells:
  2953. host_os=$*
  2954. IFS=$ac_save_IFS
  2955. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2956. MAGICK_TARGET_CPU=$host_cpu
  2957. MAGICK_TARGET_VENDOR=$host_vendor
  2958. MAGICK_TARGET_OS=$host_os
  2959. # Compute newest and oldest interface numbers.
  2960. MAGICK_LIB_INTERFACE_NEWEST=$MAGICK_LIBRARY_CURRENT
  2961. MAGICK_LIB_INTERFACE_OLDEST=`expr ${MAGICK_LIBRARY_CURRENT} - ${MAGICK_LIBRARY_AGE}`
  2962. # Substitute Magick library versioning
  2963. # Substitute Magick++ library versioning
  2964. # Substitute Magick Wand library versioning
  2965. # Substitute Mercurial branch tag
  2966. # Definition used to define MagickLibVersion in version.h
  2967. MAGICK_LIB_VERSION="0x"
  2968. if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
  2969. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2970. fi
  2971. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
  2972. if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
  2973. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2974. fi
  2975. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
  2976. if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
  2977. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2978. fi
  2979. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
  2980. # Definition used to define MagickLibVersionText in version.h
  2981. MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
  2982. # Definition used to define MagickLibVersionNumber in version.h
  2983. MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
  2984. # Ensure that make can run correctly
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2986. $as_echo_n "checking whether build environment is sane... " >&6; }
  2987. # Just in case
  2988. sleep 1
  2989. echo timestamp > conftest.file
  2990. # Reject unsafe characters in $srcdir or the absolute working directory
  2991. # name. Accept space and tab only in the latter.
  2992. am_lf='
  2993. '
  2994. case `pwd` in
  2995. *[\\\"\#\$\&\'\`$am_lf]*)
  2996. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2997. esac
  2998. case $srcdir in
  2999. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3000. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3001. esac
  3002. # Do `set' in a subshell so we don't clobber the current shell's
  3003. # arguments. Must try -L first in case configure is actually a
  3004. # symlink; some systems play weird games with the mod time of symlinks
  3005. # (eg FreeBSD returns the mod time of the symlink's containing
  3006. # directory).
  3007. if (
  3008. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3009. if test "$*" = "X"; then
  3010. # -L didn't work.
  3011. set X `ls -t "$srcdir/configure" conftest.file`
  3012. fi
  3013. rm -f conftest.file
  3014. if test "$*" != "X $srcdir/configure conftest.file" \
  3015. && test "$*" != "X conftest.file $srcdir/configure"; then
  3016. # If neither matched, then we have a broken ls. This can happen
  3017. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3018. # broken ls alias from the environment. This has actually
  3019. # happened. Such a system could not be considered "sane".
  3020. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3021. alias in your environment" "$LINENO" 5
  3022. fi
  3023. test "$2" = conftest.file
  3024. )
  3025. then
  3026. # Ok.
  3027. :
  3028. else
  3029. as_fn_error $? "newly created file is older than distributed files!
  3030. Check your system clock" "$LINENO" 5
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3033. $as_echo "yes" >&6; }
  3034. # Generate configure header.
  3035. ac_config_headers="$ac_config_headers magick/magick_config.h magick/magick_config_api.h"
  3036. am__api_version='1.11'
  3037. # Find a good install program. We prefer a C program (faster),
  3038. # so one script is as good as another. But avoid the broken or
  3039. # incompatible versions:
  3040. # SysV /etc/install, /usr/sbin/install
  3041. # SunOS /usr/etc/install
  3042. # IRIX /sbin/install
  3043. # AIX /bin/install
  3044. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3045. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3046. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3047. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3048. # OS/2's system install, which has a completely different semantic
  3049. # ./install, which can be erroneously created by make from ./install.sh.
  3050. # Reject install programs that cannot install multiple files.
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3052. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3053. if test -z "$INSTALL"; then
  3054. if ${ac_cv_path_install+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3058. for as_dir in $PATH
  3059. do
  3060. IFS=$as_save_IFS
  3061. test -z "$as_dir" && as_dir=.
  3062. # Account for people who put trailing slashes in PATH elements.
  3063. case $as_dir/ in #((
  3064. ./ | .// | /[cC]/* | \
  3065. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3066. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3067. /usr/ucb/* ) ;;
  3068. *)
  3069. # OSF1 and SCO ODT 3.0 have their own names for install.
  3070. # Don't use installbsd from OSF since it installs stuff as root
  3071. # by default.
  3072. for ac_prog in ginstall scoinst install; do
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3075. if test $ac_prog = install &&
  3076. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3077. # AIX install. It has an incompatible calling convention.
  3078. :
  3079. elif test $ac_prog = install &&
  3080. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3081. # program-specific install script used by HP pwplus--don't use.
  3082. :
  3083. else
  3084. rm -rf conftest.one conftest.two conftest.dir
  3085. echo one > conftest.one
  3086. echo two > conftest.two
  3087. mkdir conftest.dir
  3088. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3089. test -s conftest.one && test -s conftest.two &&
  3090. test -s conftest.dir/conftest.one &&
  3091. test -s conftest.dir/conftest.two
  3092. then
  3093. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3094. break 3
  3095. fi
  3096. fi
  3097. fi
  3098. done
  3099. done
  3100. ;;
  3101. esac
  3102. done
  3103. IFS=$as_save_IFS
  3104. rm -rf conftest.one conftest.two conftest.dir
  3105. fi
  3106. if test "${ac_cv_path_install+set}" = set; then
  3107. INSTALL=$ac_cv_path_install
  3108. else
  3109. # As a last resort, use the slow shell script. Don't cache a
  3110. # value for INSTALL within a source directory, because that will
  3111. # break other packages using the cache if that directory is
  3112. # removed, or if the value is a relative name.
  3113. INSTALL=$ac_install_sh
  3114. fi
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3117. $as_echo "$INSTALL" >&6; }
  3118. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3119. # It thinks the first close brace ends the variable substitution.
  3120. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3121. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3122. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3123. test "$program_prefix" != NONE &&
  3124. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3125. # Use a double $ so make ignores it.
  3126. test "$program_suffix" != NONE &&
  3127. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3128. # Double any \ or $.
  3129. # By default was `s,x,x', remove it if useless.
  3130. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3131. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3132. # expand $ac_aux_dir to an absolute path
  3133. am_aux_dir=`cd $ac_aux_dir && pwd`
  3134. if test x"${MISSING+set}" != xset; then
  3135. case $am_aux_dir in
  3136. *\ * | *\ *)
  3137. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3138. *)
  3139. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3140. esac
  3141. fi
  3142. # Use eval to expand $SHELL
  3143. if eval "$MISSING --run true"; then
  3144. am_missing_run="$MISSING --run "
  3145. else
  3146. am_missing_run=
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3148. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3149. fi
  3150. if test x"${install_sh}" != xset; then
  3151. case $am_aux_dir in
  3152. *\ * | *\ *)
  3153. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3154. *)
  3155. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3156. esac
  3157. fi
  3158. # Installed binaries are usually stripped using `strip' when the user
  3159. # run `make install-strip'. However `strip' might not be the right
  3160. # tool to use in cross-compilation environments, therefore Automake
  3161. # will honor the `STRIP' environment variable to overrule this program.
  3162. if test "$cross_compiling" != no; then
  3163. if test -n "$ac_tool_prefix"; then
  3164. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3165. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3167. $as_echo_n "checking for $ac_word... " >&6; }
  3168. if ${ac_cv_prog_STRIP+:} false; then :
  3169. $as_echo_n "(cached) " >&6
  3170. else
  3171. if test -n "$STRIP"; then
  3172. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3173. else
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3181. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. fi
  3189. fi
  3190. STRIP=$ac_cv_prog_STRIP
  3191. if test -n "$STRIP"; then
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3193. $as_echo "$STRIP" >&6; }
  3194. else
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3196. $as_echo "no" >&6; }
  3197. fi
  3198. fi
  3199. if test -z "$ac_cv_prog_STRIP"; then
  3200. ac_ct_STRIP=$STRIP
  3201. # Extract the first word of "strip", so it can be a program name with args.
  3202. set dummy strip; ac_word=$2
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3204. $as_echo_n "checking for $ac_word... " >&6; }
  3205. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -n "$ac_ct_STRIP"; then
  3209. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3210. else
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_exec_ext in '' $ac_executable_extensions; do
  3217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3218. ac_cv_prog_ac_ct_STRIP="strip"
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3220. break 2
  3221. fi
  3222. done
  3223. done
  3224. IFS=$as_save_IFS
  3225. fi
  3226. fi
  3227. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3228. if test -n "$ac_ct_STRIP"; then
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3230. $as_echo "$ac_ct_STRIP" >&6; }
  3231. else
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. $as_echo "no" >&6; }
  3234. fi
  3235. if test "x$ac_ct_STRIP" = x; then
  3236. STRIP=":"
  3237. else
  3238. case $cross_compiling:$ac_tool_warned in
  3239. yes:)
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3242. ac_tool_warned=yes ;;
  3243. esac
  3244. STRIP=$ac_ct_STRIP
  3245. fi
  3246. else
  3247. STRIP="$ac_cv_prog_STRIP"
  3248. fi
  3249. fi
  3250. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3252. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3253. if test -z "$MKDIR_P"; then
  3254. if ${ac_cv_path_mkdir+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3259. do
  3260. IFS=$as_save_IFS
  3261. test -z "$as_dir" && as_dir=.
  3262. for ac_prog in mkdir gmkdir; do
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3265. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3266. 'mkdir (GNU coreutils) '* | \
  3267. 'mkdir (coreutils) '* | \
  3268. 'mkdir (fileutils) '4.1*)
  3269. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3270. break 3;;
  3271. esac
  3272. done
  3273. done
  3274. done
  3275. IFS=$as_save_IFS
  3276. fi
  3277. test -d ./--version && rmdir ./--version
  3278. if test "${ac_cv_path_mkdir+set}" = set; then
  3279. MKDIR_P="$ac_cv_path_mkdir -p"
  3280. else
  3281. # As a last resort, use the slow shell script. Don't cache a
  3282. # value for MKDIR_P within a source directory, because that will
  3283. # break other packages using the cache if that directory is
  3284. # removed, or if the value is a relative name.
  3285. MKDIR_P="$ac_install_sh -d"
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3289. $as_echo "$MKDIR_P" >&6; }
  3290. mkdir_p="$MKDIR_P"
  3291. case $mkdir_p in
  3292. [\\/$]* | ?:[\\/]*) ;;
  3293. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3294. esac
  3295. for ac_prog in gawk mawk nawk awk
  3296. do
  3297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3298. set dummy $ac_prog; ac_word=$2
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3300. $as_echo_n "checking for $ac_word... " >&6; }
  3301. if ${ac_cv_prog_AWK+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. if test -n "$AWK"; then
  3305. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_exec_ext in '' $ac_executable_extensions; do
  3313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3314. ac_cv_prog_AWK="$ac_prog"
  3315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3316. break 2
  3317. fi
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. fi
  3323. AWK=$ac_cv_prog_AWK
  3324. if test -n "$AWK"; then
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3326. $as_echo "$AWK" >&6; }
  3327. else
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3329. $as_echo "no" >&6; }
  3330. fi
  3331. test -n "$AWK" && break
  3332. done
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3334. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3335. set x ${MAKE-make}
  3336. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3337. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. cat >conftest.make <<\_ACEOF
  3341. SHELL = /bin/sh
  3342. all:
  3343. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3344. _ACEOF
  3345. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3346. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3347. *@@@%%%=?*=@@@%%%*)
  3348. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3349. *)
  3350. eval ac_cv_prog_make_${ac_make}_set=no;;
  3351. esac
  3352. rm -f conftest.make
  3353. fi
  3354. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3356. $as_echo "yes" >&6; }
  3357. SET_MAKE=
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3360. $as_echo "no" >&6; }
  3361. SET_MAKE="MAKE=${MAKE-make}"
  3362. fi
  3363. rm -rf .tst 2>/dev/null
  3364. mkdir .tst 2>/dev/null
  3365. if test -d .tst; then
  3366. am__leading_dot=.
  3367. else
  3368. am__leading_dot=_
  3369. fi
  3370. rmdir .tst 2>/dev/null
  3371. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3372. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3373. # is not polluted with repeated "-I."
  3374. am__isrc=' -I$(srcdir)'
  3375. # test to see if srcdir already configured
  3376. if test -f $srcdir/config.status; then
  3377. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3378. fi
  3379. fi
  3380. # test whether we have cygpath
  3381. if test -z "$CYGPATH_W"; then
  3382. if (cygpath --version) >/dev/null 2>/dev/null; then
  3383. CYGPATH_W='cygpath -w'
  3384. else
  3385. CYGPATH_W=echo
  3386. fi
  3387. fi
  3388. # Define the identity of the package.
  3389. PACKAGE=$PACKAGE_NAME
  3390. VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
  3391. # Some tools Automake needs.
  3392. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3393. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3394. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3395. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3396. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3397. # We need awk for the "check" target. The system "awk" is bad on
  3398. # some platforms.
  3399. # Always define AMTAR for backward compatibility.
  3400. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3401. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3402. # Enable support for silent build rules
  3403. # Check whether --enable-silent-rules was given.
  3404. if test "${enable_silent_rules+set}" = set; then :
  3405. enableval=$enable_silent_rules;
  3406. fi
  3407. case $enable_silent_rules in
  3408. yes) AM_DEFAULT_VERBOSITY=0;;
  3409. no) AM_DEFAULT_VERBOSITY=1;;
  3410. *) AM_DEFAULT_VERBOSITY=1;;
  3411. esac
  3412. AM_BACKSLASH='\'
  3413. # Regenerate config.status if ChangeLog or version.sh is updated.
  3414. CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/ChangeLog $(top_srcdir)/version.sh'
  3415. PERLMAINCC=$CC
  3416. MAGICK_API_CFLAGS=''
  3417. MAGICK_API_CPPFLAGS=''
  3418. MAGICK_API_PC_CPPFLAGS=''
  3419. MAGICK_API_LDFLAGS=''
  3420. MAGICK_API_LIBS=''
  3421. #
  3422. # Standards compliance definitions
  3423. #
  3424. #AC_DEFINE(_XOPEN_SOURCE,500,[Required X Open interface level (500)])
  3425. #AC_DEFINE(_POSIX_C_SOURCE,199506L,[Required POSIX interface level (199506L)])
  3426. #AC_DEFINE(_ISOC99_SOURCE,1,[Code may make use of ISO C '99 features])
  3427. #AC_DEFINE(__EXTENSIONS__,1,[Enable all API extensions (for Solaris)])
  3428. #AC_DEFINE(_GNU_SOURCE,1,[Enable all API extensions (for GNU Linux libc)])
  3429. #AC_DEFINE(_NETBSD_SOURCE,1,[Enable all API extensions (for NetBSD)])
  3430. DEPDIR="${am__leading_dot}deps"
  3431. ac_config_commands="$ac_config_commands depfiles"
  3432. am_make=${MAKE-make}
  3433. cat > confinc << 'END'
  3434. am__doit:
  3435. @echo this is the am__doit target
  3436. .PHONY: am__doit
  3437. END
  3438. # If we don't find an include directive, just comment out the code.
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3440. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3441. am__include="#"
  3442. am__quote=
  3443. _am_result=none
  3444. # First try GNU make style include.
  3445. echo "include confinc" > confmf
  3446. # Ignore all kinds of additional output from `make'.
  3447. case `$am_make -s -f confmf 2> /dev/null` in #(
  3448. *the\ am__doit\ target*)
  3449. am__include=include
  3450. am__quote=
  3451. _am_result=GNU
  3452. ;;
  3453. esac
  3454. # Now try BSD make style include.
  3455. if test "$am__include" = "#"; then
  3456. echo '.include "confinc"' > confmf
  3457. case `$am_make -s -f confmf 2> /dev/null` in #(
  3458. *the\ am__doit\ target*)
  3459. am__include=.include
  3460. am__quote="\""
  3461. _am_result=BSD
  3462. ;;
  3463. esac
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3466. $as_echo "$_am_result" >&6; }
  3467. rm -f confinc confmf
  3468. # Check whether --enable-dependency-tracking was given.
  3469. if test "${enable_dependency_tracking+set}" = set; then :
  3470. enableval=$enable_dependency_tracking;
  3471. fi
  3472. if test "x$enable_dependency_tracking" != xno; then
  3473. am_depcomp="$ac_aux_dir/depcomp"
  3474. AMDEPBACKSLASH='\'
  3475. am__nodep='_no'
  3476. fi
  3477. if test "x$enable_dependency_tracking" != xno; then
  3478. AMDEP_TRUE=
  3479. AMDEP_FALSE='#'
  3480. else
  3481. AMDEP_TRUE='#'
  3482. AMDEP_FALSE=
  3483. fi
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. if test -n "$ac_tool_prefix"; then
  3490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_CC+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. $as_echo "$CC" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. fi
  3525. if test -z "$ac_cv_prog_CC"; then
  3526. ac_ct_CC=$CC
  3527. # Extract the first word of "gcc", so it can be a program name with args.
  3528. set dummy gcc; ac_word=$2
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3530. $as_echo_n "checking for $ac_word... " >&6; }
  3531. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -n "$ac_ct_CC"; then
  3535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3536. else
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3544. ac_cv_prog_ac_ct_CC="gcc"
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3546. break 2
  3547. fi
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. fi
  3552. fi
  3553. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3554. if test -n "$ac_ct_CC"; then
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3556. $as_echo "$ac_ct_CC" >&6; }
  3557. else
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3559. $as_echo "no" >&6; }
  3560. fi
  3561. if test "x$ac_ct_CC" = x; then
  3562. CC=""
  3563. else
  3564. case $cross_compiling:$ac_tool_warned in
  3565. yes:)
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3568. ac_tool_warned=yes ;;
  3569. esac
  3570. CC=$ac_ct_CC
  3571. fi
  3572. else
  3573. CC="$ac_cv_prog_CC"
  3574. fi
  3575. if test -z "$CC"; then
  3576. if test -n "$ac_tool_prefix"; then
  3577. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3578. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if ${ac_cv_prog_CC+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. $as_echo "$CC" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. fi
  3613. if test -z "$CC"; then
  3614. # Extract the first word of "cc", so it can be a program name with args.
  3615. set dummy cc; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if ${ac_cv_prog_CC+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$CC"; then
  3622. ac_cv_prog_CC="$CC" # Let the user override the test.
  3623. else
  3624. ac_prog_rejected=no
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3633. ac_prog_rejected=yes
  3634. continue
  3635. fi
  3636. ac_cv_prog_CC="cc"
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test $ac_prog_rejected = yes; then
  3644. # We found a bogon in the path, so make sure we never use it.
  3645. set dummy $ac_cv_prog_CC
  3646. shift
  3647. if test $# != 0; then
  3648. # We chose a different compiler from the bogus one.
  3649. # However, it has the same basename, so the bogon will be chosen
  3650. # first if we set CC to just the basename; use the full file name.
  3651. shift
  3652. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3653. fi
  3654. fi
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. $as_echo "$CC" >&6; }
  3661. else
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. fi
  3665. fi
  3666. if test -z "$CC"; then
  3667. if test -n "$ac_tool_prefix"; then
  3668. for ac_prog in cl.exe
  3669. do
  3670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3673. $as_echo_n "checking for $ac_word... " >&6; }
  3674. if ${ac_cv_prog_CC+:} false; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. if test -n "$CC"; then
  3678. ac_cv_prog_CC="$CC" # Let the user override the test.
  3679. else
  3680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3681. for as_dir in $PATH
  3682. do
  3683. IFS=$as_save_IFS
  3684. test -z "$as_dir" && as_dir=.
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3687. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704. test -n "$CC" && break
  3705. done
  3706. fi
  3707. if test -z "$CC"; then
  3708. ac_ct_CC=$CC
  3709. for ac_prog in cl.exe
  3710. do
  3711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3712. set dummy $ac_prog; ac_word=$2
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3714. $as_echo_n "checking for $ac_word... " >&6; }
  3715. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -n "$ac_ct_CC"; then
  3719. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3720. else
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_prog"
  3729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730. break 2
  3731. fi
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. fi
  3736. fi
  3737. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3738. if test -n "$ac_ct_CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3740. $as_echo "$ac_ct_CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. test -n "$ac_ct_CC" && break
  3746. done
  3747. if test "x$ac_ct_CC" = x; then
  3748. CC=""
  3749. else
  3750. case $cross_compiling:$ac_tool_warned in
  3751. yes:)
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3754. ac_tool_warned=yes ;;
  3755. esac
  3756. CC=$ac_ct_CC
  3757. fi
  3758. fi
  3759. fi
  3760. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "no acceptable C compiler found in \$PATH
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764. # Provide some information about the compiler.
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3766. set X $ac_compile
  3767. ac_compiler=$2
  3768. for ac_option in --version -v -V -qversion; do
  3769. { { ac_try="$ac_compiler $ac_option >&5"
  3770. case "(($ac_try" in
  3771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3772. *) ac_try_echo=$ac_try;;
  3773. esac
  3774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3775. $as_echo "$ac_try_echo"; } >&5
  3776. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3777. ac_status=$?
  3778. if test -s conftest.err; then
  3779. sed '10a\
  3780. ... rest of stderr output deleted ...
  3781. 10q' conftest.err >conftest.er1
  3782. cat conftest.er1 >&5
  3783. fi
  3784. rm -f conftest.er1 conftest.err
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3786. test $ac_status = 0; }
  3787. done
  3788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3789. /* end confdefs.h. */
  3790. int
  3791. main ()
  3792. {
  3793. ;
  3794. return 0;
  3795. }
  3796. _ACEOF
  3797. ac_clean_files_save=$ac_clean_files
  3798. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3799. # Try to create an executable without -o first, disregard a.out.
  3800. # It will help us diagnose broken compilers, and finding out an intuition
  3801. # of exeext.
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3803. $as_echo_n "checking whether the C compiler works... " >&6; }
  3804. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3805. # The possible output files:
  3806. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3807. ac_rmfiles=
  3808. for ac_file in $ac_files
  3809. do
  3810. case $ac_file in
  3811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3812. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3813. esac
  3814. done
  3815. rm -f $ac_rmfiles
  3816. if { { ac_try="$ac_link_default"
  3817. case "(($ac_try" in
  3818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819. *) ac_try_echo=$ac_try;;
  3820. esac
  3821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3822. $as_echo "$ac_try_echo"; } >&5
  3823. (eval "$ac_link_default") 2>&5
  3824. ac_status=$?
  3825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3826. test $ac_status = 0; }; then :
  3827. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3828. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3829. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3830. # so that the user can short-circuit this test for compilers unknown to
  3831. # Autoconf.
  3832. for ac_file in $ac_files ''
  3833. do
  3834. test -f "$ac_file" || continue
  3835. case $ac_file in
  3836. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3837. ;;
  3838. [ab].out )
  3839. # We found the default executable, but exeext='' is most
  3840. # certainly right.
  3841. break;;
  3842. *.* )
  3843. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3844. then :; else
  3845. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3846. fi
  3847. # We set ac_cv_exeext here because the later test for it is not
  3848. # safe: cross compilers may not add the suffix if given an `-o'
  3849. # argument, so we may need to know it at that point already.
  3850. # Even if this section looks crufty: it has the advantage of
  3851. # actually working.
  3852. break;;
  3853. * )
  3854. break;;
  3855. esac
  3856. done
  3857. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3858. else
  3859. ac_file=''
  3860. fi
  3861. if test -z "$ac_file"; then :
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. $as_echo "no" >&6; }
  3864. $as_echo "$as_me: failed program was:" >&5
  3865. sed 's/^/| /' conftest.$ac_ext >&5
  3866. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3867. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3868. as_fn_error 77 "C compiler cannot create executables
  3869. See \`config.log' for more details" "$LINENO" 5; }
  3870. else
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3872. $as_echo "yes" >&6; }
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3875. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3877. $as_echo "$ac_file" >&6; }
  3878. ac_exeext=$ac_cv_exeext
  3879. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3880. ac_clean_files=$ac_clean_files_save
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3882. $as_echo_n "checking for suffix of executables... " >&6; }
  3883. if { { ac_try="$ac_link"
  3884. case "(($ac_try" in
  3885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3886. *) ac_try_echo=$ac_try;;
  3887. esac
  3888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3889. $as_echo "$ac_try_echo"; } >&5
  3890. (eval "$ac_link") 2>&5
  3891. ac_status=$?
  3892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3893. test $ac_status = 0; }; then :
  3894. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3895. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3896. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3897. # `rm'.
  3898. for ac_file in conftest.exe conftest conftest.*; do
  3899. test -f "$ac_file" || continue
  3900. case $ac_file in
  3901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3902. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3903. break;;
  3904. * ) break;;
  3905. esac
  3906. done
  3907. else
  3908. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3909. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3910. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3911. See \`config.log' for more details" "$LINENO" 5; }
  3912. fi
  3913. rm -f conftest conftest$ac_cv_exeext
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3915. $as_echo "$ac_cv_exeext" >&6; }
  3916. rm -f conftest.$ac_ext
  3917. EXEEXT=$ac_cv_exeext
  3918. ac_exeext=$EXEEXT
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. #include <stdio.h>
  3922. int
  3923. main ()
  3924. {
  3925. FILE *f = fopen ("conftest.out", "w");
  3926. return ferror (f) || fclose (f) != 0;
  3927. ;
  3928. return 0;
  3929. }
  3930. _ACEOF
  3931. ac_clean_files="$ac_clean_files conftest.out"
  3932. # Check that the compiler produces executables we can run. If not, either
  3933. # the compiler is broken, or we cross compile.
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3935. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3936. if test "$cross_compiling" != yes; then
  3937. { { ac_try="$ac_link"
  3938. case "(($ac_try" in
  3939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3940. *) ac_try_echo=$ac_try;;
  3941. esac
  3942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3943. $as_echo "$ac_try_echo"; } >&5
  3944. (eval "$ac_link") 2>&5
  3945. ac_status=$?
  3946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3947. test $ac_status = 0; }
  3948. if { ac_try='./conftest$ac_cv_exeext'
  3949. { { case "(($ac_try" in
  3950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3951. *) ac_try_echo=$ac_try;;
  3952. esac
  3953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3954. $as_echo "$ac_try_echo"; } >&5
  3955. (eval "$ac_try") 2>&5
  3956. ac_status=$?
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3958. test $ac_status = 0; }; }; then
  3959. cross_compiling=no
  3960. else
  3961. if test "$cross_compiling" = maybe; then
  3962. cross_compiling=yes
  3963. else
  3964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3966. as_fn_error $? "cannot run C compiled programs.
  3967. If you meant to cross compile, use \`--host'.
  3968. See \`config.log' for more details" "$LINENO" 5; }
  3969. fi
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3973. $as_echo "$cross_compiling" >&6; }
  3974. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3975. ac_clean_files=$ac_clean_files_save
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3977. $as_echo_n "checking for suffix of object files... " >&6; }
  3978. if ${ac_cv_objext+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. int
  3984. main ()
  3985. {
  3986. ;
  3987. return 0;
  3988. }
  3989. _ACEOF
  3990. rm -f conftest.o conftest.obj
  3991. if { { ac_try="$ac_compile"
  3992. 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_compile") 2>&5
  3999. ac_status=$?
  4000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4001. test $ac_status = 0; }; then :
  4002. for ac_file in conftest.o conftest.obj conftest.*; do
  4003. test -f "$ac_file" || continue;
  4004. case $ac_file in
  4005. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4006. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4007. break;;
  4008. esac
  4009. done
  4010. else
  4011. $as_echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4015. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4016. See \`config.log' for more details" "$LINENO" 5; }
  4017. fi
  4018. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4021. $as_echo "$ac_cv_objext" >&6; }
  4022. OBJEXT=$ac_cv_objext
  4023. ac_objext=$OBJEXT
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4025. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4026. if ${ac_cv_c_compiler_gnu+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4030. /* end confdefs.h. */
  4031. int
  4032. main ()
  4033. {
  4034. #ifndef __GNUC__
  4035. choke me
  4036. #endif
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. if ac_fn_c_try_compile "$LINENO"; then :
  4042. ac_compiler_gnu=yes
  4043. else
  4044. ac_compiler_gnu=no
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4047. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4050. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4051. if test $ac_compiler_gnu = yes; then
  4052. GCC=yes
  4053. else
  4054. GCC=
  4055. fi
  4056. ac_test_CFLAGS=${CFLAGS+set}
  4057. ac_save_CFLAGS=$CFLAGS
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4059. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4060. if ${ac_cv_prog_cc_g+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. ac_save_c_werror_flag=$ac_c_werror_flag
  4064. ac_c_werror_flag=yes
  4065. ac_cv_prog_cc_g=no
  4066. CFLAGS="-g"
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. int
  4070. main ()
  4071. {
  4072. ;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_c_try_compile "$LINENO"; then :
  4077. ac_cv_prog_cc_g=yes
  4078. else
  4079. CFLAGS=""
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main ()
  4084. {
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. if ac_fn_c_try_compile "$LINENO"; then :
  4090. else
  4091. ac_c_werror_flag=$ac_save_c_werror_flag
  4092. CFLAGS="-g"
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. int
  4096. main ()
  4097. {
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. if ac_fn_c_try_compile "$LINENO"; then :
  4103. ac_cv_prog_cc_g=yes
  4104. fi
  4105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4106. fi
  4107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4108. fi
  4109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4110. ac_c_werror_flag=$ac_save_c_werror_flag
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4113. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4114. if test "$ac_test_CFLAGS" = set; then
  4115. CFLAGS=$ac_save_CFLAGS
  4116. elif test $ac_cv_prog_cc_g = yes; then
  4117. if test "$GCC" = yes; then
  4118. CFLAGS="-g -O2"
  4119. else
  4120. CFLAGS="-g"
  4121. fi
  4122. else
  4123. if test "$GCC" = yes; then
  4124. CFLAGS="-O2"
  4125. else
  4126. CFLAGS=
  4127. fi
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4130. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4131. if ${ac_cv_prog_cc_c89+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. ac_cv_prog_cc_c89=no
  4135. ac_save_CC=$CC
  4136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4137. /* end confdefs.h. */
  4138. #include <stdarg.h>
  4139. #include <stdio.h>
  4140. struct stat;
  4141. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4142. struct buf { int x; };
  4143. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4144. static char *e (p, i)
  4145. char **p;
  4146. int i;
  4147. {
  4148. return p[i];
  4149. }
  4150. static char *f (char * (*g) (char **, int), char **p, ...)
  4151. {
  4152. char *s;
  4153. va_list v;
  4154. va_start (v,p);
  4155. s = g (p, va_arg (v,int));
  4156. va_end (v);
  4157. return s;
  4158. }
  4159. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4160. function prototypes and stuff, but not '\xHH' hex character constants.
  4161. These don't provoke an error unfortunately, instead are silently treated
  4162. as 'x'. The following induces an error, until -std is added to get
  4163. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4164. array size at least. It's necessary to write '\x00'==0 to get something
  4165. that's true only with -std. */
  4166. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4167. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4168. inside strings and character constants. */
  4169. #define FOO(x) 'x'
  4170. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4171. int test (int i, double x);
  4172. struct s1 {int (*f) (int a);};
  4173. struct s2 {int (*f) (double a);};
  4174. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4175. int argc;
  4176. char **argv;
  4177. int
  4178. main ()
  4179. {
  4180. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4186. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"; then :
  4190. ac_cv_prog_cc_c89=$ac_arg
  4191. fi
  4192. rm -f core conftest.err conftest.$ac_objext
  4193. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4194. done
  4195. rm -f conftest.$ac_ext
  4196. CC=$ac_save_CC
  4197. fi
  4198. # AC_CACHE_VAL
  4199. case "x$ac_cv_prog_cc_c89" in
  4200. x)
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4202. $as_echo "none needed" >&6; } ;;
  4203. xno)
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4205. $as_echo "unsupported" >&6; } ;;
  4206. *)
  4207. CC="$CC $ac_cv_prog_cc_c89"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4209. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4210. esac
  4211. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4212. fi
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. depcc="$CC" am_compiler_list=
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4220. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4221. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4225. # We make a subdir and do the tests there. Otherwise we can end up
  4226. # making bogus files that we don't know about and never remove. For
  4227. # instance it was reported that on HP-UX the gcc test will end up
  4228. # making a dummy file named `D' -- because `-MD' means `put the output
  4229. # in D'.
  4230. rm -rf conftest.dir
  4231. mkdir conftest.dir
  4232. # Copy depcomp to subdir because otherwise we won't find it if we're
  4233. # using a relative directory.
  4234. cp "$am_depcomp" conftest.dir
  4235. cd conftest.dir
  4236. # We will build objects and dependencies in a subdirectory because
  4237. # it helps to detect inapplicable dependency modes. For instance
  4238. # both Tru64's cc and ICC support -MD to output dependencies as a
  4239. # side effect of compilation, but ICC will put the dependencies in
  4240. # the current directory while Tru64 will put them in the object
  4241. # directory.
  4242. mkdir sub
  4243. am_cv_CC_dependencies_compiler_type=none
  4244. if test "$am_compiler_list" = ""; then
  4245. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4246. fi
  4247. am__universal=false
  4248. case " $depcc " in #(
  4249. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4250. esac
  4251. for depmode in $am_compiler_list; do
  4252. # Setup a source with many dependencies, because some compilers
  4253. # like to wrap large dependency lists on column 80 (with \), and
  4254. # we should not choose a depcomp mode which is confused by this.
  4255. #
  4256. # We need to recreate these files for each test, as the compiler may
  4257. # overwrite some of them when testing with obscure command lines.
  4258. # This happens at least with the AIX C compiler.
  4259. : > sub/conftest.c
  4260. for i in 1 2 3 4 5 6; do
  4261. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4262. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4263. # Solaris 8's {/usr,}/bin/sh.
  4264. touch sub/conftst$i.h
  4265. done
  4266. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4267. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4268. # mode. It turns out that the SunPro C++ compiler does not properly
  4269. # handle `-M -o', and we need to detect this. Also, some Intel
  4270. # versions had trouble with output in subdirs
  4271. am__obj=sub/conftest.${OBJEXT-o}
  4272. am__minus_obj="-o $am__obj"
  4273. case $depmode in
  4274. gcc)
  4275. # This depmode causes a compiler race in universal mode.
  4276. test "$am__universal" = false || continue
  4277. ;;
  4278. nosideeffect)
  4279. # after this tag, mechanisms are not by side-effect, so they'll
  4280. # only be used when explicitly requested
  4281. if test "x$enable_dependency_tracking" = xyes; then
  4282. continue
  4283. else
  4284. break
  4285. fi
  4286. ;;
  4287. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4288. # This compiler won't grok `-c -o', but also, the minuso test has
  4289. # not run yet. These depmodes are late enough in the game, and
  4290. # so weak that their functioning should not be impacted.
  4291. am__obj=conftest.${OBJEXT-o}
  4292. am__minus_obj=
  4293. ;;
  4294. none) break ;;
  4295. esac
  4296. if depmode=$depmode \
  4297. source=sub/conftest.c object=$am__obj \
  4298. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4299. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4300. >/dev/null 2>conftest.err &&
  4301. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4302. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4303. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4304. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4305. # icc doesn't choke on unknown options, it will just issue warnings
  4306. # or remarks (even with -Werror). So we grep stderr for any message
  4307. # that says an option was ignored or not supported.
  4308. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4309. # icc: Command line warning: ignoring option '-M'; no argument required
  4310. # The diagnosis changed in icc 8.0:
  4311. # icc: Command line remark: option '-MP' not supported
  4312. if (grep 'ignoring option' conftest.err ||
  4313. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4314. am_cv_CC_dependencies_compiler_type=$depmode
  4315. break
  4316. fi
  4317. fi
  4318. done
  4319. cd ..
  4320. rm -rf conftest.dir
  4321. else
  4322. am_cv_CC_dependencies_compiler_type=none
  4323. fi
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4326. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4327. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4328. if
  4329. test "x$enable_dependency_tracking" != xno \
  4330. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4331. am__fastdepCC_TRUE=
  4332. am__fastdepCC_FALSE='#'
  4333. else
  4334. am__fastdepCC_TRUE='#'
  4335. am__fastdepCC_FALSE=
  4336. fi
  4337. ac_ext=c
  4338. ac_cpp='$CPP $CPPFLAGS'
  4339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4343. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4344. # On Suns, sometimes $CPP names a directory.
  4345. if test -n "$CPP" && test -d "$CPP"; then
  4346. CPP=
  4347. fi
  4348. if test -z "$CPP"; then
  4349. if ${ac_cv_prog_CPP+:} false; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. # Double quotes because CPP needs to be expanded
  4353. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4354. do
  4355. ac_preproc_ok=false
  4356. for ac_c_preproc_warn_flag in '' yes
  4357. do
  4358. # Use a header file that comes with gcc, so configuring glibc
  4359. # with a fresh cross-compiler works.
  4360. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4361. # <limits.h> exists even on freestanding compilers.
  4362. # On the NeXT, cc -E runs the code through the compiler's parser,
  4363. # not just through cpp. "Syntax error" is here to catch this case.
  4364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4365. /* end confdefs.h. */
  4366. #ifdef __STDC__
  4367. # include <limits.h>
  4368. #else
  4369. # include <assert.h>
  4370. #endif
  4371. Syntax error
  4372. _ACEOF
  4373. if ac_fn_c_try_cpp "$LINENO"; then :
  4374. else
  4375. # Broken: fails on valid input.
  4376. continue
  4377. fi
  4378. rm -f conftest.err conftest.i conftest.$ac_ext
  4379. # OK, works on sane cases. Now check whether nonexistent headers
  4380. # can be detected and how.
  4381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4382. /* end confdefs.h. */
  4383. #include <ac_nonexistent.h>
  4384. _ACEOF
  4385. if ac_fn_c_try_cpp "$LINENO"; then :
  4386. # Broken: success on invalid input.
  4387. continue
  4388. else
  4389. # Passes both tests.
  4390. ac_preproc_ok=:
  4391. break
  4392. fi
  4393. rm -f conftest.err conftest.i conftest.$ac_ext
  4394. done
  4395. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4396. rm -f conftest.i conftest.err conftest.$ac_ext
  4397. if $ac_preproc_ok; then :
  4398. break
  4399. fi
  4400. done
  4401. ac_cv_prog_CPP=$CPP
  4402. fi
  4403. CPP=$ac_cv_prog_CPP
  4404. else
  4405. ac_cv_prog_CPP=$CPP
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4408. $as_echo "$CPP" >&6; }
  4409. ac_preproc_ok=false
  4410. for ac_c_preproc_warn_flag in '' yes
  4411. do
  4412. # Use a header file that comes with gcc, so configuring glibc
  4413. # with a fresh cross-compiler works.
  4414. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4415. # <limits.h> exists even on freestanding compilers.
  4416. # On the NeXT, cc -E runs the code through the compiler's parser,
  4417. # not just through cpp. "Syntax error" is here to catch this case.
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. #ifdef __STDC__
  4421. # include <limits.h>
  4422. #else
  4423. # include <assert.h>
  4424. #endif
  4425. Syntax error
  4426. _ACEOF
  4427. if ac_fn_c_try_cpp "$LINENO"; then :
  4428. else
  4429. # Broken: fails on valid input.
  4430. continue
  4431. fi
  4432. rm -f conftest.err conftest.i conftest.$ac_ext
  4433. # OK, works on sane cases. Now check whether nonexistent headers
  4434. # can be detected and how.
  4435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4436. /* end confdefs.h. */
  4437. #include <ac_nonexistent.h>
  4438. _ACEOF
  4439. if ac_fn_c_try_cpp "$LINENO"; then :
  4440. # Broken: success on invalid input.
  4441. continue
  4442. else
  4443. # Passes both tests.
  4444. ac_preproc_ok=:
  4445. break
  4446. fi
  4447. rm -f conftest.err conftest.i conftest.$ac_ext
  4448. done
  4449. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4450. rm -f conftest.i conftest.err conftest.$ac_ext
  4451. if $ac_preproc_ok; then :
  4452. else
  4453. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4454. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4455. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4456. See \`config.log' for more details" "$LINENO" 5; }
  4457. fi
  4458. ac_ext=c
  4459. ac_cpp='$CPP $CPPFLAGS'
  4460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4464. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4465. if ${ac_cv_path_GREP+:} false; then :
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. if test -z "$GREP"; then
  4469. ac_path_GREP_found=false
  4470. # Loop through the user's path and test for each of PROGNAME-LIST
  4471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4472. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4473. do
  4474. IFS=$as_save_IFS
  4475. test -z "$as_dir" && as_dir=.
  4476. for ac_prog in grep ggrep; do
  4477. for ac_exec_ext in '' $ac_executable_extensions; do
  4478. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4479. as_fn_executable_p "$ac_path_GREP" || continue
  4480. # Check for GNU ac_path_GREP and select it if it is found.
  4481. # Check for GNU $ac_path_GREP
  4482. case `"$ac_path_GREP" --version 2>&1` in
  4483. *GNU*)
  4484. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4485. *)
  4486. ac_count=0
  4487. $as_echo_n 0123456789 >"conftest.in"
  4488. while :
  4489. do
  4490. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4491. mv "conftest.tmp" "conftest.in"
  4492. cp "conftest.in" "conftest.nl"
  4493. $as_echo 'GREP' >> "conftest.nl"
  4494. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4495. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4496. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4497. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4498. # Best one so far, save it but keep looking for a better one
  4499. ac_cv_path_GREP="$ac_path_GREP"
  4500. ac_path_GREP_max=$ac_count
  4501. fi
  4502. # 10*(2^10) chars as input seems more than enough
  4503. test $ac_count -gt 10 && break
  4504. done
  4505. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4506. esac
  4507. $ac_path_GREP_found && break 3
  4508. done
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. if test -z "$ac_cv_path_GREP"; then
  4513. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4514. fi
  4515. else
  4516. ac_cv_path_GREP=$GREP
  4517. fi
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4520. $as_echo "$ac_cv_path_GREP" >&6; }
  4521. GREP="$ac_cv_path_GREP"
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4523. $as_echo_n "checking for egrep... " >&6; }
  4524. if ${ac_cv_path_EGREP+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4528. then ac_cv_path_EGREP="$GREP -E"
  4529. else
  4530. if test -z "$EGREP"; then
  4531. ac_path_EGREP_found=false
  4532. # Loop through the user's path and test for each of PROGNAME-LIST
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_prog in egrep; do
  4539. for ac_exec_ext in '' $ac_executable_extensions; do
  4540. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4541. as_fn_executable_p "$ac_path_EGREP" || continue
  4542. # Check for GNU ac_path_EGREP and select it if it is found.
  4543. # Check for GNU $ac_path_EGREP
  4544. case `"$ac_path_EGREP" --version 2>&1` in
  4545. *GNU*)
  4546. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4547. *)
  4548. ac_count=0
  4549. $as_echo_n 0123456789 >"conftest.in"
  4550. while :
  4551. do
  4552. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4553. mv "conftest.tmp" "conftest.in"
  4554. cp "conftest.in" "conftest.nl"
  4555. $as_echo 'EGREP' >> "conftest.nl"
  4556. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4557. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4558. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4559. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4560. # Best one so far, save it but keep looking for a better one
  4561. ac_cv_path_EGREP="$ac_path_EGREP"
  4562. ac_path_EGREP_max=$ac_count
  4563. fi
  4564. # 10*(2^10) chars as input seems more than enough
  4565. test $ac_count -gt 10 && break
  4566. done
  4567. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4568. esac
  4569. $ac_path_EGREP_found && break 3
  4570. done
  4571. done
  4572. done
  4573. IFS=$as_save_IFS
  4574. if test -z "$ac_cv_path_EGREP"; then
  4575. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4576. fi
  4577. else
  4578. ac_cv_path_EGREP=$EGREP
  4579. fi
  4580. fi
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4583. $as_echo "$ac_cv_path_EGREP" >&6; }
  4584. EGREP="$ac_cv_path_EGREP"
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4586. $as_echo_n "checking for ANSI C header files... " >&6; }
  4587. if ${ac_cv_header_stdc+:} false; then :
  4588. $as_echo_n "(cached) " >&6
  4589. else
  4590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4591. /* end confdefs.h. */
  4592. #include <stdlib.h>
  4593. #include <stdarg.h>
  4594. #include <string.h>
  4595. #include <float.h>
  4596. int
  4597. main ()
  4598. {
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. if ac_fn_c_try_compile "$LINENO"; then :
  4604. ac_cv_header_stdc=yes
  4605. else
  4606. ac_cv_header_stdc=no
  4607. fi
  4608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4609. if test $ac_cv_header_stdc = yes; then
  4610. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. /* end confdefs.h. */
  4613. #include <string.h>
  4614. _ACEOF
  4615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4616. $EGREP "memchr" >/dev/null 2>&1; then :
  4617. else
  4618. ac_cv_header_stdc=no
  4619. fi
  4620. rm -f conftest*
  4621. fi
  4622. if test $ac_cv_header_stdc = yes; then
  4623. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4625. /* end confdefs.h. */
  4626. #include <stdlib.h>
  4627. _ACEOF
  4628. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4629. $EGREP "free" >/dev/null 2>&1; then :
  4630. else
  4631. ac_cv_header_stdc=no
  4632. fi
  4633. rm -f conftest*
  4634. fi
  4635. if test $ac_cv_header_stdc = yes; then
  4636. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4637. if test "$cross_compiling" = yes; then :
  4638. :
  4639. else
  4640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4641. /* end confdefs.h. */
  4642. #include <ctype.h>
  4643. #include <stdlib.h>
  4644. #if ((' ' & 0x0FF) == 0x020)
  4645. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4646. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4647. #else
  4648. # define ISLOWER(c) \
  4649. (('a' <= (c) && (c) <= 'i') \
  4650. || ('j' <= (c) && (c) <= 'r') \
  4651. || ('s' <= (c) && (c) <= 'z'))
  4652. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4653. #endif
  4654. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4655. int
  4656. main ()
  4657. {
  4658. int i;
  4659. for (i = 0; i < 256; i++)
  4660. if (XOR (islower (i), ISLOWER (i))
  4661. || toupper (i) != TOUPPER (i))
  4662. return 2;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. if ac_fn_c_try_run "$LINENO"; then :
  4667. else
  4668. ac_cv_header_stdc=no
  4669. fi
  4670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4671. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4672. fi
  4673. fi
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4676. $as_echo "$ac_cv_header_stdc" >&6; }
  4677. if test $ac_cv_header_stdc = yes; then
  4678. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4679. fi
  4680. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4681. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4682. inttypes.h stdint.h unistd.h
  4683. do :
  4684. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4685. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4686. "
  4687. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4688. cat >>confdefs.h <<_ACEOF
  4689. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4690. _ACEOF
  4691. fi
  4692. done
  4693. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4694. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4695. MINIX=yes
  4696. else
  4697. MINIX=
  4698. fi
  4699. if test "$MINIX" = yes; then
  4700. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4701. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4702. $as_echo "#define _MINIX 1" >>confdefs.h
  4703. fi
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4705. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4706. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. # define __EXTENSIONS__ 1
  4712. $ac_includes_default
  4713. int
  4714. main ()
  4715. {
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. if ac_fn_c_try_compile "$LINENO"; then :
  4721. ac_cv_safe_to_define___extensions__=yes
  4722. else
  4723. ac_cv_safe_to_define___extensions__=no
  4724. fi
  4725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4728. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4729. test $ac_cv_safe_to_define___extensions__ = yes &&
  4730. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4731. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4732. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4733. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4734. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4735. #
  4736. # Evaluate shell variable equivalents to Makefile directory variables
  4737. #
  4738. if test "x$prefix" = xNONE
  4739. then
  4740. prefix=$ac_default_prefix
  4741. fi
  4742. # Let make expand exec_prefix.
  4743. if test "x$exec_prefix" = xNONE
  4744. then
  4745. exec_prefix='${prefix}'
  4746. fi
  4747. #
  4748. eval "eval PREFIX_DIR=${prefix}"
  4749. eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
  4750. eval "eval BIN_DIR=$bindir"
  4751. eval "eval SBIN_DIR=$sbindir"
  4752. eval "eval LIBEXEC_DIR=$libexecdir"
  4753. eval "eval DATA_DIR=$datadir"
  4754. eval "eval DOC_DIR=$docdir"
  4755. eval "eval HTML_DIR=$htmldir"
  4756. eval "eval SYSCONF_DIR=$sysconfdir"
  4757. eval "eval SHAREDSTATE_DIR=$sharedstatedir"
  4758. eval "eval LOCALSTATE_DIR=$localstatedir"
  4759. eval "eval LIB_DIR=$libdir"
  4760. eval "eval INCLUDE_DIR=$includedir"
  4761. eval "eval OLDINCLUDE_DIR=$oldincludedir"
  4762. eval "eval INFO_DIR=$infodir"
  4763. eval "eval MAN_DIR=$mandir"
  4764. # Get full paths to source and build directories
  4765. srcdirfull="`cd $srcdir && pwd`"
  4766. builddir="`pwd`"
  4767. #
  4768. # Compute variables useful for running uninstalled software
  4769. #
  4770. MAGICK_CODER_MODULE_PATH="${builddir}/coders"
  4771. MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
  4772. MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
  4773. MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
  4774. DIRSEP=':'
  4775. case "${build_os}" in
  4776. mingw* )
  4777. MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
  4778. MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
  4779. MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
  4780. MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
  4781. ;;
  4782. esac
  4783. case "${host_os}" in
  4784. mingw* )
  4785. DIRSEP=';'
  4786. ;;
  4787. esac
  4788. # Check for programs
  4789. ac_ext=c
  4790. ac_cpp='$CPP $CPPFLAGS'
  4791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4794. if test -n "$ac_tool_prefix"; then
  4795. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4796. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4798. $as_echo_n "checking for $ac_word... " >&6; }
  4799. if ${ac_cv_prog_CC+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -n "$CC"; then
  4803. ac_cv_prog_CC="$CC" # Let the user override the test.
  4804. else
  4805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4806. for as_dir in $PATH
  4807. do
  4808. IFS=$as_save_IFS
  4809. test -z "$as_dir" && as_dir=.
  4810. for ac_exec_ext in '' $ac_executable_extensions; do
  4811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4812. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4814. break 2
  4815. fi
  4816. done
  4817. done
  4818. IFS=$as_save_IFS
  4819. fi
  4820. fi
  4821. CC=$ac_cv_prog_CC
  4822. if test -n "$CC"; then
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4824. $as_echo "$CC" >&6; }
  4825. else
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. fi
  4829. fi
  4830. if test -z "$ac_cv_prog_CC"; then
  4831. ac_ct_CC=$CC
  4832. # Extract the first word of "gcc", so it can be a program name with args.
  4833. set dummy gcc; ac_word=$2
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -n "$ac_ct_CC"; then
  4840. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4849. ac_cv_prog_ac_ct_CC="gcc"
  4850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. fi
  4857. fi
  4858. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4859. if test -n "$ac_ct_CC"; then
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4861. $as_echo "$ac_ct_CC" >&6; }
  4862. else
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. fi
  4866. if test "x$ac_ct_CC" = x; then
  4867. CC=""
  4868. else
  4869. case $cross_compiling:$ac_tool_warned in
  4870. yes:)
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4873. ac_tool_warned=yes ;;
  4874. esac
  4875. CC=$ac_ct_CC
  4876. fi
  4877. else
  4878. CC="$ac_cv_prog_CC"
  4879. fi
  4880. if test -z "$CC"; then
  4881. if test -n "$ac_tool_prefix"; then
  4882. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4883. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4885. $as_echo_n "checking for $ac_word... " >&6; }
  4886. if ${ac_cv_prog_CC+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. if test -n "$CC"; then
  4890. ac_cv_prog_CC="$CC" # Let the user override the test.
  4891. else
  4892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4893. for as_dir in $PATH
  4894. do
  4895. IFS=$as_save_IFS
  4896. test -z "$as_dir" && as_dir=.
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4899. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4901. break 2
  4902. fi
  4903. done
  4904. done
  4905. IFS=$as_save_IFS
  4906. fi
  4907. fi
  4908. CC=$ac_cv_prog_CC
  4909. if test -n "$CC"; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4911. $as_echo "$CC" >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4914. $as_echo "no" >&6; }
  4915. fi
  4916. fi
  4917. fi
  4918. if test -z "$CC"; then
  4919. # Extract the first word of "cc", so it can be a program name with args.
  4920. set dummy cc; ac_word=$2
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4922. $as_echo_n "checking for $ac_word... " >&6; }
  4923. if ${ac_cv_prog_CC+:} false; then :
  4924. $as_echo_n "(cached) " >&6
  4925. else
  4926. if test -n "$CC"; then
  4927. ac_cv_prog_CC="$CC" # Let the user override the test.
  4928. else
  4929. ac_prog_rejected=no
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4937. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4938. ac_prog_rejected=yes
  4939. continue
  4940. fi
  4941. ac_cv_prog_CC="cc"
  4942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. if test $ac_prog_rejected = yes; then
  4949. # We found a bogon in the path, so make sure we never use it.
  4950. set dummy $ac_cv_prog_CC
  4951. shift
  4952. if test $# != 0; then
  4953. # We chose a different compiler from the bogus one.
  4954. # However, it has the same basename, so the bogon will be chosen
  4955. # first if we set CC to just the basename; use the full file name.
  4956. shift
  4957. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4958. fi
  4959. fi
  4960. fi
  4961. fi
  4962. CC=$ac_cv_prog_CC
  4963. if test -n "$CC"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4965. $as_echo "$CC" >&6; }
  4966. else
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970. fi
  4971. if test -z "$CC"; then
  4972. if test -n "$ac_tool_prefix"; then
  4973. for ac_prog in cl.exe
  4974. do
  4975. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4976. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4978. $as_echo_n "checking for $ac_word... " >&6; }
  4979. if ${ac_cv_prog_CC+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -n "$CC"; then
  4983. ac_cv_prog_CC="$CC" # Let the user override the test.
  4984. else
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4992. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. CC=$ac_cv_prog_CC
  5002. if test -n "$CC"; then
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5004. $as_echo "$CC" >&6; }
  5005. else
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5007. $as_echo "no" >&6; }
  5008. fi
  5009. test -n "$CC" && break
  5010. done
  5011. fi
  5012. if test -z "$CC"; then
  5013. ac_ct_CC=$CC
  5014. for ac_prog in cl.exe
  5015. do
  5016. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5017. set dummy $ac_prog; ac_word=$2
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5019. $as_echo_n "checking for $ac_word... " >&6; }
  5020. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -n "$ac_ct_CC"; then
  5024. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5025. else
  5026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5027. for as_dir in $PATH
  5028. do
  5029. IFS=$as_save_IFS
  5030. test -z "$as_dir" && as_dir=.
  5031. for ac_exec_ext in '' $ac_executable_extensions; do
  5032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5033. ac_cv_prog_ac_ct_CC="$ac_prog"
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5035. break 2
  5036. fi
  5037. done
  5038. done
  5039. IFS=$as_save_IFS
  5040. fi
  5041. fi
  5042. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5043. if test -n "$ac_ct_CC"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5045. $as_echo "$ac_ct_CC" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5048. $as_echo "no" >&6; }
  5049. fi
  5050. test -n "$ac_ct_CC" && break
  5051. done
  5052. if test "x$ac_ct_CC" = x; then
  5053. CC=""
  5054. else
  5055. case $cross_compiling:$ac_tool_warned in
  5056. yes:)
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5059. ac_tool_warned=yes ;;
  5060. esac
  5061. CC=$ac_ct_CC
  5062. fi
  5063. fi
  5064. fi
  5065. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5067. as_fn_error $? "no acceptable C compiler found in \$PATH
  5068. See \`config.log' for more details" "$LINENO" 5; }
  5069. # Provide some information about the compiler.
  5070. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5071. set X $ac_compile
  5072. ac_compiler=$2
  5073. for ac_option in --version -v -V -qversion; do
  5074. { { ac_try="$ac_compiler $ac_option >&5"
  5075. case "(($ac_try" in
  5076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5077. *) ac_try_echo=$ac_try;;
  5078. esac
  5079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5080. $as_echo "$ac_try_echo"; } >&5
  5081. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5082. ac_status=$?
  5083. if test -s conftest.err; then
  5084. sed '10a\
  5085. ... rest of stderr output deleted ...
  5086. 10q' conftest.err >conftest.er1
  5087. cat conftest.er1 >&5
  5088. fi
  5089. rm -f conftest.er1 conftest.err
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5091. test $ac_status = 0; }
  5092. done
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5094. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5095. if ${ac_cv_c_compiler_gnu+:} false; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5099. /* end confdefs.h. */
  5100. int
  5101. main ()
  5102. {
  5103. #ifndef __GNUC__
  5104. choke me
  5105. #endif
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_c_try_compile "$LINENO"; then :
  5111. ac_compiler_gnu=yes
  5112. else
  5113. ac_compiler_gnu=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5117. fi
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5119. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5120. if test $ac_compiler_gnu = yes; then
  5121. GCC=yes
  5122. else
  5123. GCC=
  5124. fi
  5125. ac_test_CFLAGS=${CFLAGS+set}
  5126. ac_save_CFLAGS=$CFLAGS
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5128. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5129. if ${ac_cv_prog_cc_g+:} false; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. ac_save_c_werror_flag=$ac_c_werror_flag
  5133. ac_c_werror_flag=yes
  5134. ac_cv_prog_cc_g=no
  5135. CFLAGS="-g"
  5136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5137. /* end confdefs.h. */
  5138. int
  5139. main ()
  5140. {
  5141. ;
  5142. return 0;
  5143. }
  5144. _ACEOF
  5145. if ac_fn_c_try_compile "$LINENO"; then :
  5146. ac_cv_prog_cc_g=yes
  5147. else
  5148. CFLAGS=""
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int
  5152. main ()
  5153. {
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_compile "$LINENO"; then :
  5159. else
  5160. ac_c_werror_flag=$ac_save_c_werror_flag
  5161. CFLAGS="-g"
  5162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5163. /* end confdefs.h. */
  5164. int
  5165. main ()
  5166. {
  5167. ;
  5168. return 0;
  5169. }
  5170. _ACEOF
  5171. if ac_fn_c_try_compile "$LINENO"; then :
  5172. ac_cv_prog_cc_g=yes
  5173. fi
  5174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5175. fi
  5176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5177. fi
  5178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5179. ac_c_werror_flag=$ac_save_c_werror_flag
  5180. fi
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5182. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5183. if test "$ac_test_CFLAGS" = set; then
  5184. CFLAGS=$ac_save_CFLAGS
  5185. elif test $ac_cv_prog_cc_g = yes; then
  5186. if test "$GCC" = yes; then
  5187. CFLAGS="-g -O2"
  5188. else
  5189. CFLAGS="-g"
  5190. fi
  5191. else
  5192. if test "$GCC" = yes; then
  5193. CFLAGS="-O2"
  5194. else
  5195. CFLAGS=
  5196. fi
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5199. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5200. if ${ac_cv_prog_cc_c89+:} false; then :
  5201. $as_echo_n "(cached) " >&6
  5202. else
  5203. ac_cv_prog_cc_c89=no
  5204. ac_save_CC=$CC
  5205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5206. /* end confdefs.h. */
  5207. #include <stdarg.h>
  5208. #include <stdio.h>
  5209. struct stat;
  5210. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5211. struct buf { int x; };
  5212. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5213. static char *e (p, i)
  5214. char **p;
  5215. int i;
  5216. {
  5217. return p[i];
  5218. }
  5219. static char *f (char * (*g) (char **, int), char **p, ...)
  5220. {
  5221. char *s;
  5222. va_list v;
  5223. va_start (v,p);
  5224. s = g (p, va_arg (v,int));
  5225. va_end (v);
  5226. return s;
  5227. }
  5228. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5229. function prototypes and stuff, but not '\xHH' hex character constants.
  5230. These don't provoke an error unfortunately, instead are silently treated
  5231. as 'x'. The following induces an error, until -std is added to get
  5232. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5233. array size at least. It's necessary to write '\x00'==0 to get something
  5234. that's true only with -std. */
  5235. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5236. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5237. inside strings and character constants. */
  5238. #define FOO(x) 'x'
  5239. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5240. int test (int i, double x);
  5241. struct s1 {int (*f) (int a);};
  5242. struct s2 {int (*f) (double a);};
  5243. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5244. int argc;
  5245. char **argv;
  5246. int
  5247. main ()
  5248. {
  5249. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5250. ;
  5251. return 0;
  5252. }
  5253. _ACEOF
  5254. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5255. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5256. do
  5257. CC="$ac_save_CC $ac_arg"
  5258. if ac_fn_c_try_compile "$LINENO"; then :
  5259. ac_cv_prog_cc_c89=$ac_arg
  5260. fi
  5261. rm -f core conftest.err conftest.$ac_objext
  5262. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5263. done
  5264. rm -f conftest.$ac_ext
  5265. CC=$ac_save_CC
  5266. fi
  5267. # AC_CACHE_VAL
  5268. case "x$ac_cv_prog_cc_c89" in
  5269. x)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5271. $as_echo "none needed" >&6; } ;;
  5272. xno)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5274. $as_echo "unsupported" >&6; } ;;
  5275. *)
  5276. CC="$CC $ac_cv_prog_cc_c89"
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5278. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5279. esac
  5280. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5281. fi
  5282. ac_ext=c
  5283. ac_cpp='$CPP $CPPFLAGS'
  5284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5287. depcc="$CC" am_compiler_list=
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5289. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5290. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5291. $as_echo_n "(cached) " >&6
  5292. else
  5293. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5294. # We make a subdir and do the tests there. Otherwise we can end up
  5295. # making bogus files that we don't know about and never remove. For
  5296. # instance it was reported that on HP-UX the gcc test will end up
  5297. # making a dummy file named `D' -- because `-MD' means `put the output
  5298. # in D'.
  5299. rm -rf conftest.dir
  5300. mkdir conftest.dir
  5301. # Copy depcomp to subdir because otherwise we won't find it if we're
  5302. # using a relative directory.
  5303. cp "$am_depcomp" conftest.dir
  5304. cd conftest.dir
  5305. # We will build objects and dependencies in a subdirectory because
  5306. # it helps to detect inapplicable dependency modes. For instance
  5307. # both Tru64's cc and ICC support -MD to output dependencies as a
  5308. # side effect of compilation, but ICC will put the dependencies in
  5309. # the current directory while Tru64 will put them in the object
  5310. # directory.
  5311. mkdir sub
  5312. am_cv_CC_dependencies_compiler_type=none
  5313. if test "$am_compiler_list" = ""; then
  5314. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5315. fi
  5316. am__universal=false
  5317. case " $depcc " in #(
  5318. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5319. esac
  5320. for depmode in $am_compiler_list; do
  5321. # Setup a source with many dependencies, because some compilers
  5322. # like to wrap large dependency lists on column 80 (with \), and
  5323. # we should not choose a depcomp mode which is confused by this.
  5324. #
  5325. # We need to recreate these files for each test, as the compiler may
  5326. # overwrite some of them when testing with obscure command lines.
  5327. # This happens at least with the AIX C compiler.
  5328. : > sub/conftest.c
  5329. for i in 1 2 3 4 5 6; do
  5330. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5331. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5332. # Solaris 8's {/usr,}/bin/sh.
  5333. touch sub/conftst$i.h
  5334. done
  5335. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5336. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5337. # mode. It turns out that the SunPro C++ compiler does not properly
  5338. # handle `-M -o', and we need to detect this. Also, some Intel
  5339. # versions had trouble with output in subdirs
  5340. am__obj=sub/conftest.${OBJEXT-o}
  5341. am__minus_obj="-o $am__obj"
  5342. case $depmode in
  5343. gcc)
  5344. # This depmode causes a compiler race in universal mode.
  5345. test "$am__universal" = false || continue
  5346. ;;
  5347. nosideeffect)
  5348. # after this tag, mechanisms are not by side-effect, so they'll
  5349. # only be used when explicitly requested
  5350. if test "x$enable_dependency_tracking" = xyes; then
  5351. continue
  5352. else
  5353. break
  5354. fi
  5355. ;;
  5356. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5357. # This compiler won't grok `-c -o', but also, the minuso test has
  5358. # not run yet. These depmodes are late enough in the game, and
  5359. # so weak that their functioning should not be impacted.
  5360. am__obj=conftest.${OBJEXT-o}
  5361. am__minus_obj=
  5362. ;;
  5363. none) break ;;
  5364. esac
  5365. if depmode=$depmode \
  5366. source=sub/conftest.c object=$am__obj \
  5367. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5368. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5369. >/dev/null 2>conftest.err &&
  5370. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5371. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5372. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5373. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5374. # icc doesn't choke on unknown options, it will just issue warnings
  5375. # or remarks (even with -Werror). So we grep stderr for any message
  5376. # that says an option was ignored or not supported.
  5377. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5378. # icc: Command line warning: ignoring option '-M'; no argument required
  5379. # The diagnosis changed in icc 8.0:
  5380. # icc: Command line remark: option '-MP' not supported
  5381. if (grep 'ignoring option' conftest.err ||
  5382. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5383. am_cv_CC_dependencies_compiler_type=$depmode
  5384. break
  5385. fi
  5386. fi
  5387. done
  5388. cd ..
  5389. rm -rf conftest.dir
  5390. else
  5391. am_cv_CC_dependencies_compiler_type=none
  5392. fi
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5395. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5396. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5397. if
  5398. test "x$enable_dependency_tracking" != xno \
  5399. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5400. am__fastdepCC_TRUE=
  5401. am__fastdepCC_FALSE='#'
  5402. else
  5403. am__fastdepCC_TRUE='#'
  5404. am__fastdepCC_FALSE=
  5405. fi
  5406. case $ac_cv_prog_cc_stdc in #(
  5407. no) :
  5408. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  5409. *) :
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5411. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5412. if ${ac_cv_prog_cc_c99+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. ac_cv_prog_cc_c99=no
  5416. ac_save_CC=$CC
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. #include <stdarg.h>
  5420. #include <stdbool.h>
  5421. #include <stdlib.h>
  5422. #include <wchar.h>
  5423. #include <stdio.h>
  5424. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5425. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5426. #define showlist(...) puts (#__VA_ARGS__)
  5427. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5428. static void
  5429. test_varargs_macros (void)
  5430. {
  5431. int x = 1234;
  5432. int y = 5678;
  5433. debug ("Flag");
  5434. debug ("X = %d\n", x);
  5435. showlist (The first, second, and third items.);
  5436. report (x>y, "x is %d but y is %d", x, y);
  5437. }
  5438. // Check long long types.
  5439. #define BIG64 18446744073709551615ull
  5440. #define BIG32 4294967295ul
  5441. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  5442. #if !BIG_OK
  5443. your preprocessor is broken;
  5444. #endif
  5445. #if BIG_OK
  5446. #else
  5447. your preprocessor is broken;
  5448. #endif
  5449. static long long int bignum = -9223372036854775807LL;
  5450. static unsigned long long int ubignum = BIG64;
  5451. struct incomplete_array
  5452. {
  5453. int datasize;
  5454. double data[];
  5455. };
  5456. struct named_init {
  5457. int number;
  5458. const wchar_t *name;
  5459. double average;
  5460. };
  5461. typedef const char *ccp;
  5462. static inline int
  5463. test_restrict (ccp restrict text)
  5464. {
  5465. // See if C++-style comments work.
  5466. // Iterate through items via the restricted pointer.
  5467. // Also check for declarations in for loops.
  5468. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  5469. continue;
  5470. return 0;
  5471. }
  5472. // Check varargs and va_copy.
  5473. static void
  5474. test_varargs (const char *format, ...)
  5475. {
  5476. va_list args;
  5477. va_start (args, format);
  5478. va_list args_copy;
  5479. va_copy (args_copy, args);
  5480. const char *str;
  5481. int number;
  5482. float fnumber;
  5483. while (*format)
  5484. {
  5485. switch (*format++)
  5486. {
  5487. case 's': // string
  5488. str = va_arg (args_copy, const char *);
  5489. break;
  5490. case 'd': // int
  5491. number = va_arg (args_copy, int);
  5492. break;
  5493. case 'f': // float
  5494. fnumber = va_arg (args_copy, double);
  5495. break;
  5496. default:
  5497. break;
  5498. }
  5499. }
  5500. va_end (args_copy);
  5501. va_end (args);
  5502. }
  5503. int
  5504. main ()
  5505. {
  5506. // Check bool.
  5507. _Bool success = false;
  5508. // Check restrict.
  5509. if (test_restrict ("String literal") == 0)
  5510. success = true;
  5511. char *restrict newvar = "Another string";
  5512. // Check varargs.
  5513. test_varargs ("s, d' f .", "string", 65, 34.234);
  5514. test_varargs_macros ();
  5515. // Check flexible array members.
  5516. struct incomplete_array *ia =
  5517. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5518. ia->datasize = 10;
  5519. for (int i = 0; i < ia->datasize; ++i)
  5520. ia->data[i] = i * 1.234;
  5521. // Check named initializers.
  5522. struct named_init ni = {
  5523. .number = 34,
  5524. .name = L"Test wide string",
  5525. .average = 543.34343,
  5526. };
  5527. ni.number = 58;
  5528. int dynamic_array[ni.number];
  5529. dynamic_array[ni.number - 1] = 543;
  5530. // work around unused variable warnings
  5531. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5532. || dynamic_array[ni.number - 1] != 543);
  5533. ;
  5534. return 0;
  5535. }
  5536. _ACEOF
  5537. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  5538. do
  5539. CC="$ac_save_CC $ac_arg"
  5540. if ac_fn_c_try_compile "$LINENO"; then :
  5541. ac_cv_prog_cc_c99=$ac_arg
  5542. fi
  5543. rm -f core conftest.err conftest.$ac_objext
  5544. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5545. done
  5546. rm -f conftest.$ac_ext
  5547. CC=$ac_save_CC
  5548. fi
  5549. # AC_CACHE_VAL
  5550. case "x$ac_cv_prog_cc_c99" in
  5551. x)
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5553. $as_echo "none needed" >&6; } ;;
  5554. xno)
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5556. $as_echo "unsupported" >&6; } ;;
  5557. *)
  5558. CC="$CC $ac_cv_prog_cc_c99"
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5560. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5561. esac
  5562. if test "x$ac_cv_prog_cc_c99" != xno; then :
  5563. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5564. else
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5566. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5567. if ${ac_cv_prog_cc_c89+:} false; then :
  5568. $as_echo_n "(cached) " >&6
  5569. else
  5570. ac_cv_prog_cc_c89=no
  5571. ac_save_CC=$CC
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. #include <stdarg.h>
  5575. #include <stdio.h>
  5576. struct stat;
  5577. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5578. struct buf { int x; };
  5579. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5580. static char *e (p, i)
  5581. char **p;
  5582. int i;
  5583. {
  5584. return p[i];
  5585. }
  5586. static char *f (char * (*g) (char **, int), char **p, ...)
  5587. {
  5588. char *s;
  5589. va_list v;
  5590. va_start (v,p);
  5591. s = g (p, va_arg (v,int));
  5592. va_end (v);
  5593. return s;
  5594. }
  5595. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5596. function prototypes and stuff, but not '\xHH' hex character constants.
  5597. These don't provoke an error unfortunately, instead are silently treated
  5598. as 'x'. The following induces an error, until -std is added to get
  5599. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5600. array size at least. It's necessary to write '\x00'==0 to get something
  5601. that's true only with -std. */
  5602. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5603. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5604. inside strings and character constants. */
  5605. #define FOO(x) 'x'
  5606. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5607. int test (int i, double x);
  5608. struct s1 {int (*f) (int a);};
  5609. struct s2 {int (*f) (double a);};
  5610. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5611. int argc;
  5612. char **argv;
  5613. int
  5614. main ()
  5615. {
  5616. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5617. ;
  5618. return 0;
  5619. }
  5620. _ACEOF
  5621. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5622. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5623. do
  5624. CC="$ac_save_CC $ac_arg"
  5625. if ac_fn_c_try_compile "$LINENO"; then :
  5626. ac_cv_prog_cc_c89=$ac_arg
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext
  5629. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5630. done
  5631. rm -f conftest.$ac_ext
  5632. CC=$ac_save_CC
  5633. fi
  5634. # AC_CACHE_VAL
  5635. case "x$ac_cv_prog_cc_c89" in
  5636. x)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5638. $as_echo "none needed" >&6; } ;;
  5639. xno)
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5641. $as_echo "unsupported" >&6; } ;;
  5642. *)
  5643. CC="$CC $ac_cv_prog_cc_c89"
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5645. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5646. esac
  5647. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5648. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5649. else
  5650. ac_cv_prog_cc_stdc=no
  5651. fi
  5652. fi
  5653. ;;
  5654. esac
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  5656. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  5657. if ${ac_cv_prog_cc_stdc+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. fi
  5660. case $ac_cv_prog_cc_stdc in #(
  5661. no) :
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5663. $as_echo "unsupported" >&6; } ;; #(
  5664. '') :
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5666. $as_echo "none needed" >&6; } ;; #(
  5667. *) :
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  5669. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  5670. esac
  5671. ac_ext=c
  5672. ac_cpp='$CPP $CPPFLAGS'
  5673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5677. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5678. # On Suns, sometimes $CPP names a directory.
  5679. if test -n "$CPP" && test -d "$CPP"; then
  5680. CPP=
  5681. fi
  5682. if test -z "$CPP"; then
  5683. if ${ac_cv_prog_CPP+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. # Double quotes because CPP needs to be expanded
  5687. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5688. do
  5689. ac_preproc_ok=false
  5690. for ac_c_preproc_warn_flag in '' yes
  5691. do
  5692. # Use a header file that comes with gcc, so configuring glibc
  5693. # with a fresh cross-compiler works.
  5694. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5695. # <limits.h> exists even on freestanding compilers.
  5696. # On the NeXT, cc -E runs the code through the compiler's parser,
  5697. # not just through cpp. "Syntax error" is here to catch this case.
  5698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5699. /* end confdefs.h. */
  5700. #ifdef __STDC__
  5701. # include <limits.h>
  5702. #else
  5703. # include <assert.h>
  5704. #endif
  5705. Syntax error
  5706. _ACEOF
  5707. if ac_fn_c_try_cpp "$LINENO"; then :
  5708. else
  5709. # Broken: fails on valid input.
  5710. continue
  5711. fi
  5712. rm -f conftest.err conftest.i conftest.$ac_ext
  5713. # OK, works on sane cases. Now check whether nonexistent headers
  5714. # can be detected and how.
  5715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5716. /* end confdefs.h. */
  5717. #include <ac_nonexistent.h>
  5718. _ACEOF
  5719. if ac_fn_c_try_cpp "$LINENO"; then :
  5720. # Broken: success on invalid input.
  5721. continue
  5722. else
  5723. # Passes both tests.
  5724. ac_preproc_ok=:
  5725. break
  5726. fi
  5727. rm -f conftest.err conftest.i conftest.$ac_ext
  5728. done
  5729. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5730. rm -f conftest.i conftest.err conftest.$ac_ext
  5731. if $ac_preproc_ok; then :
  5732. break
  5733. fi
  5734. done
  5735. ac_cv_prog_CPP=$CPP
  5736. fi
  5737. CPP=$ac_cv_prog_CPP
  5738. else
  5739. ac_cv_prog_CPP=$CPP
  5740. fi
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5742. $as_echo "$CPP" >&6; }
  5743. ac_preproc_ok=false
  5744. for ac_c_preproc_warn_flag in '' yes
  5745. do
  5746. # Use a header file that comes with gcc, so configuring glibc
  5747. # with a fresh cross-compiler works.
  5748. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5749. # <limits.h> exists even on freestanding compilers.
  5750. # On the NeXT, cc -E runs the code through the compiler's parser,
  5751. # not just through cpp. "Syntax error" is here to catch this case.
  5752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5753. /* end confdefs.h. */
  5754. #ifdef __STDC__
  5755. # include <limits.h>
  5756. #else
  5757. # include <assert.h>
  5758. #endif
  5759. Syntax error
  5760. _ACEOF
  5761. if ac_fn_c_try_cpp "$LINENO"; then :
  5762. else
  5763. # Broken: fails on valid input.
  5764. continue
  5765. fi
  5766. rm -f conftest.err conftest.i conftest.$ac_ext
  5767. # OK, works on sane cases. Now check whether nonexistent headers
  5768. # can be detected and how.
  5769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5770. /* end confdefs.h. */
  5771. #include <ac_nonexistent.h>
  5772. _ACEOF
  5773. if ac_fn_c_try_cpp "$LINENO"; then :
  5774. # Broken: success on invalid input.
  5775. continue
  5776. else
  5777. # Passes both tests.
  5778. ac_preproc_ok=:
  5779. break
  5780. fi
  5781. rm -f conftest.err conftest.i conftest.$ac_ext
  5782. done
  5783. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5784. rm -f conftest.i conftest.err conftest.$ac_ext
  5785. if $ac_preproc_ok; then :
  5786. else
  5787. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5789. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5790. See \`config.log' for more details" "$LINENO" 5; }
  5791. fi
  5792. ac_ext=c
  5793. ac_cpp='$CPP $CPPFLAGS'
  5794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5798. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5799. if ${ac_cv_path_SED+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5803. for ac_i in 1 2 3 4 5 6 7; do
  5804. ac_script="$ac_script$as_nl$ac_script"
  5805. done
  5806. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5807. { ac_script=; unset ac_script;}
  5808. if test -z "$SED"; then
  5809. ac_path_SED_found=false
  5810. # Loop through the user's path and test for each of PROGNAME-LIST
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_prog in sed gsed; do
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5819. as_fn_executable_p "$ac_path_SED" || continue
  5820. # Check for GNU ac_path_SED and select it if it is found.
  5821. # Check for GNU $ac_path_SED
  5822. case `"$ac_path_SED" --version 2>&1` in
  5823. *GNU*)
  5824. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5825. *)
  5826. ac_count=0
  5827. $as_echo_n 0123456789 >"conftest.in"
  5828. while :
  5829. do
  5830. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5831. mv "conftest.tmp" "conftest.in"
  5832. cp "conftest.in" "conftest.nl"
  5833. $as_echo '' >> "conftest.nl"
  5834. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5835. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5836. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5837. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5838. # Best one so far, save it but keep looking for a better one
  5839. ac_cv_path_SED="$ac_path_SED"
  5840. ac_path_SED_max=$ac_count
  5841. fi
  5842. # 10*(2^10) chars as input seems more than enough
  5843. test $ac_count -gt 10 && break
  5844. done
  5845. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5846. esac
  5847. $ac_path_SED_found && break 3
  5848. done
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. if test -z "$ac_cv_path_SED"; then
  5853. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5854. fi
  5855. else
  5856. ac_cv_path_SED=$SED
  5857. fi
  5858. fi
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5860. $as_echo "$ac_cv_path_SED" >&6; }
  5861. SED="$ac_cv_path_SED"
  5862. rm -f conftest.sed
  5863. test -z "$SED" && SED=sed
  5864. Xsed="$SED -e 1s/^X//"
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5866. $as_echo_n "checking for fgrep... " >&6; }
  5867. if ${ac_cv_path_FGREP+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5871. then ac_cv_path_FGREP="$GREP -F"
  5872. else
  5873. if test -z "$FGREP"; then
  5874. ac_path_FGREP_found=false
  5875. # Loop through the user's path and test for each of PROGNAME-LIST
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_prog in fgrep; do
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5884. as_fn_executable_p "$ac_path_FGREP" || continue
  5885. # Check for GNU ac_path_FGREP and select it if it is found.
  5886. # Check for GNU $ac_path_FGREP
  5887. case `"$ac_path_FGREP" --version 2>&1` in
  5888. *GNU*)
  5889. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5890. *)
  5891. ac_count=0
  5892. $as_echo_n 0123456789 >"conftest.in"
  5893. while :
  5894. do
  5895. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5896. mv "conftest.tmp" "conftest.in"
  5897. cp "conftest.in" "conftest.nl"
  5898. $as_echo 'FGREP' >> "conftest.nl"
  5899. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5900. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5901. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5902. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5903. # Best one so far, save it but keep looking for a better one
  5904. ac_cv_path_FGREP="$ac_path_FGREP"
  5905. ac_path_FGREP_max=$ac_count
  5906. fi
  5907. # 10*(2^10) chars as input seems more than enough
  5908. test $ac_count -gt 10 && break
  5909. done
  5910. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5911. esac
  5912. $ac_path_FGREP_found && break 3
  5913. done
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. if test -z "$ac_cv_path_FGREP"; then
  5918. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5919. fi
  5920. else
  5921. ac_cv_path_FGREP=$FGREP
  5922. fi
  5923. fi
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5926. $as_echo "$ac_cv_path_FGREP" >&6; }
  5927. FGREP="$ac_cv_path_FGREP"
  5928. test -z "$GREP" && GREP=grep
  5929. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5930. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5931. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5933. $as_echo_n "checking how to print strings... " >&6; }
  5934. # Test print first, because it will be a builtin if present.
  5935. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5936. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5937. ECHO='print -r --'
  5938. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5939. ECHO='printf %s\n'
  5940. else
  5941. # Use this function as a fallback that always works.
  5942. func_fallback_echo ()
  5943. {
  5944. eval 'cat <<_LTECHO_EOF
  5945. $1
  5946. _LTECHO_EOF'
  5947. }
  5948. ECHO='func_fallback_echo'
  5949. fi
  5950. # func_echo_all arg...
  5951. # Invoke $ECHO with all args, space-separated.
  5952. func_echo_all ()
  5953. {
  5954. $ECHO ""
  5955. }
  5956. case "$ECHO" in
  5957. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5958. $as_echo "printf" >&6; } ;;
  5959. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5960. $as_echo "print -r" >&6; } ;;
  5961. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5962. $as_echo "cat" >&6; } ;;
  5963. esac
  5964. # Check whether --with-gnu-ld was given.
  5965. if test "${with_gnu_ld+set}" = set; then :
  5966. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5967. else
  5968. with_gnu_ld=no
  5969. fi
  5970. ac_prog=ld
  5971. if test "$GCC" = yes; then
  5972. # Check if gcc -print-prog-name=ld gives a path.
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5974. $as_echo_n "checking for ld used by $CC... " >&6; }
  5975. case $host in
  5976. *-*-mingw*)
  5977. # gcc leaves a trailing carriage return which upsets mingw
  5978. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5979. *)
  5980. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5981. esac
  5982. case $ac_prog in
  5983. # Accept absolute paths.
  5984. [\\/]* | ?:[\\/]*)
  5985. re_direlt='/[^/][^/]*/\.\./'
  5986. # Canonicalize the pathname of ld
  5987. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5988. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5989. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5990. done
  5991. test -z "$LD" && LD="$ac_prog"
  5992. ;;
  5993. "")
  5994. # If it fails, then pretend we aren't using GCC.
  5995. ac_prog=ld
  5996. ;;
  5997. *)
  5998. # If it is relative, then search for the first ld in PATH.
  5999. with_gnu_ld=unknown
  6000. ;;
  6001. esac
  6002. elif test "$with_gnu_ld" = yes; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6004. $as_echo_n "checking for GNU ld... " >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6007. $as_echo_n "checking for non-GNU ld... " >&6; }
  6008. fi
  6009. if ${lt_cv_path_LD+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -z "$LD"; then
  6013. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6014. for ac_dir in $PATH; do
  6015. IFS="$lt_save_ifs"
  6016. test -z "$ac_dir" && ac_dir=.
  6017. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6018. lt_cv_path_LD="$ac_dir/$ac_prog"
  6019. # Check to see if the program is GNU ld. I'd rather use --version,
  6020. # but apparently some variants of GNU ld only accept -v.
  6021. # Break only if it was the GNU/non-GNU ld that we prefer.
  6022. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6023. *GNU* | *'with BFD'*)
  6024. test "$with_gnu_ld" != no && break
  6025. ;;
  6026. *)
  6027. test "$with_gnu_ld" != yes && break
  6028. ;;
  6029. esac
  6030. fi
  6031. done
  6032. IFS="$lt_save_ifs"
  6033. else
  6034. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6035. fi
  6036. fi
  6037. LD="$lt_cv_path_LD"
  6038. if test -n "$LD"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6040. $as_echo "$LD" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6047. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6048. if ${lt_cv_prog_gnu_ld+:} false; then :
  6049. $as_echo_n "(cached) " >&6
  6050. else
  6051. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6052. case `$LD -v 2>&1 </dev/null` in
  6053. *GNU* | *'with BFD'*)
  6054. lt_cv_prog_gnu_ld=yes
  6055. ;;
  6056. *)
  6057. lt_cv_prog_gnu_ld=no
  6058. ;;
  6059. esac
  6060. fi
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6062. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6063. with_gnu_ld=$lt_cv_prog_gnu_ld
  6064. if test "x$CC" != xcc; then
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  6066. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  6067. else
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  6069. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  6070. fi
  6071. set dummy $CC; ac_cc=`$as_echo "$2" |
  6072. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  6073. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. int
  6079. main ()
  6080. {
  6081. ;
  6082. return 0;
  6083. }
  6084. _ACEOF
  6085. # Make sure it works both with $CC and with simple cc.
  6086. # We do the test twice because some compilers refuse to overwrite an
  6087. # existing .o file with -o, though they will create one.
  6088. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  6089. rm -f conftest2.*
  6090. if { { case "(($ac_try" in
  6091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6092. *) ac_try_echo=$ac_try;;
  6093. esac
  6094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6095. $as_echo "$ac_try_echo"; } >&5
  6096. (eval "$ac_try") 2>&5
  6097. ac_status=$?
  6098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6099. test $ac_status = 0; } &&
  6100. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  6101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6102. *) ac_try_echo=$ac_try;;
  6103. esac
  6104. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6105. $as_echo "$ac_try_echo"; } >&5
  6106. (eval "$ac_try") 2>&5
  6107. ac_status=$?
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6109. test $ac_status = 0; };
  6110. then
  6111. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  6112. if test "x$CC" != xcc; then
  6113. # Test first that cc exists at all.
  6114. if { ac_try='cc -c conftest.$ac_ext >&5'
  6115. { { case "(($ac_try" in
  6116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6117. *) ac_try_echo=$ac_try;;
  6118. esac
  6119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6120. $as_echo "$ac_try_echo"; } >&5
  6121. (eval "$ac_try") 2>&5
  6122. ac_status=$?
  6123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6124. test $ac_status = 0; }; }; then
  6125. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  6126. rm -f conftest2.*
  6127. if { { case "(($ac_try" in
  6128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6129. *) ac_try_echo=$ac_try;;
  6130. esac
  6131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6132. $as_echo "$ac_try_echo"; } >&5
  6133. (eval "$ac_try") 2>&5
  6134. ac_status=$?
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6136. test $ac_status = 0; } &&
  6137. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  6138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6139. *) ac_try_echo=$ac_try;;
  6140. esac
  6141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6142. $as_echo "$ac_try_echo"; } >&5
  6143. (eval "$ac_try") 2>&5
  6144. ac_status=$?
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6146. test $ac_status = 0; };
  6147. then
  6148. # cc works too.
  6149. :
  6150. else
  6151. # cc exists but doesn't like -o.
  6152. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  6153. fi
  6154. fi
  6155. fi
  6156. else
  6157. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  6158. fi
  6159. rm -f core conftest*
  6160. fi
  6161. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6163. $as_echo "yes" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  6168. fi
  6169. # FIXME: we rely on the cache variable name because
  6170. # there is no other way.
  6171. set dummy $CC
  6172. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  6173. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  6174. if test "$am_t" != yes; then
  6175. # Losing compiler, so override with the script.
  6176. # FIXME: It is wrong to rewrite CC.
  6177. # But if we don't then we get into trouble of one sort or another.
  6178. # A longer-term fix would be to have automake use am__CC in this case,
  6179. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  6180. CC="$am_aux_dir/compile $CC"
  6181. fi
  6182. # Necessary if objects are placed in subdirectories.
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  6184. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  6185. set x ${MAKE-make}
  6186. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  6187. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. cat >conftest.make <<\_ACEOF
  6191. SHELL = /bin/sh
  6192. all:
  6193. @echo '@@@%%%=$(MAKE)=@@@%%%'
  6194. _ACEOF
  6195. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6196. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  6197. *@@@%%%=?*=@@@%%%*)
  6198. eval ac_cv_prog_make_${ac_make}_set=yes;;
  6199. *)
  6200. eval ac_cv_prog_make_${ac_make}_set=no;;
  6201. esac
  6202. rm -f conftest.make
  6203. fi
  6204. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6206. $as_echo "yes" >&6; }
  6207. SET_MAKE=
  6208. else
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6210. $as_echo "no" >&6; }
  6211. SET_MAKE="MAKE=${MAKE-make}"
  6212. fi
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6214. $as_echo_n "checking whether ln -s works... " >&6; }
  6215. LN_S=$as_ln_s
  6216. if test "$LN_S" = "ln -s"; then
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6218. $as_echo "yes" >&6; }
  6219. else
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6221. $as_echo "no, using $LN_S" >&6; }
  6222. fi
  6223. #
  6224. # Tests for Windows
  6225. #
  6226. LIB_GDI32=''
  6227. native_win32_build='no'
  6228. cygwin_build='no'
  6229. case "${host_os}" in
  6230. cygwin* )
  6231. cygwin_build='yes'
  6232. LIB_GDI32='-lgdi32'
  6233. ;;
  6234. mingw* )
  6235. native_win32_build='yes'
  6236. LIB_GDI32='-lgdi32'
  6237. ;;
  6238. esac
  6239. if test "${LIB_GDI32}x" != 'x'
  6240. then
  6241. $as_echo "#define HasWINGDI32 1" >>confdefs.h
  6242. fi
  6243. if test "${LIB_GDI32}x" != 'x' ; then
  6244. HasWINGDI32_TRUE=
  6245. HasWINGDI32_FALSE='#'
  6246. else
  6247. HasWINGDI32_TRUE='#'
  6248. HasWINGDI32_FALSE=
  6249. fi
  6250. if test "${native_win32_build}" = 'yes' ; then
  6251. WIN32_NATIVE_BUILD_TRUE=
  6252. WIN32_NATIVE_BUILD_FALSE='#'
  6253. else
  6254. WIN32_NATIVE_BUILD_TRUE='#'
  6255. WIN32_NATIVE_BUILD_FALSE=
  6256. fi
  6257. if test "${cygwin_build}" = 'yes' ; then
  6258. CYGWIN_BUILD_TRUE=
  6259. CYGWIN_BUILD_FALSE='#'
  6260. else
  6261. CYGWIN_BUILD_TRUE='#'
  6262. CYGWIN_BUILD_FALSE=
  6263. fi
  6264. WinPathScript="${srcdirfull}/winpath.sh"
  6265. #
  6266. # Compiler flags tweaks
  6267. #
  6268. if test "${GCC}" != "yes"
  6269. then
  6270. case "${host}" in
  6271. *-*-hpux* )
  6272. # aCC: HP ANSI C++ B3910B A.03.34
  6273. CFLAGS="${CFLAGS} -Wp,-H30000"
  6274. if test -n "${CXXFLAGS}"
  6275. then
  6276. CXXFLAGS='-AA'
  6277. else
  6278. CXXFLAGS="${CXXFLAGS} -AA"
  6279. fi
  6280. ;;
  6281. *-dec-osf5.* )
  6282. # Compaq alphaev68-dec-osf5.1 compiler
  6283. if test -n "${CXXFLAGS}"
  6284. then
  6285. CXXFLAGS='-std strict_ansi -noimplicit_include'
  6286. else
  6287. CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
  6288. fi
  6289. ;;
  6290. esac
  6291. else
  6292. CFLAGS="${CFLAGS} -Wall"
  6293. fi
  6294. # Reduce utility startup overhead by lazy-loading dependency libraries
  6295. # if possible.
  6296. #
  6297. # http://developers.sun.com/solaris/articles/reducing_app.html
  6298. # http://wikis.sun.com/display/AppPerfTuning/ImageMagick
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
  6300. $as_echo_n "checking for linker lazyload option... " >&6; }
  6301. if ${gm_cv_ld_lazyload+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. gm_cv_ld_lazyload='none'
  6305. case "${host}" in
  6306. *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
  6307. if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
  6308. gm_cv_ld_lazyload='-Wl,-zlazyload'
  6309. fi
  6310. ;;
  6311. esac
  6312. fi
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gm_cv_ld_lazyload" >&5
  6314. $as_echo "$gm_cv_ld_lazyload" >&6; }
  6315. if test "${gm_cv_ld_lazyload}" != 'none' ; then
  6316. if test -z "${LDFLAGS}" ; then
  6317. LDFLAGS="${gm_cv_ld_lazyload}"
  6318. else
  6319. LDFLAGS="${gm_cv_ld_lazyload} ${LDFLAGS}"
  6320. fi
  6321. fi
  6322. #
  6323. # Determine Posix threads settings
  6324. #
  6325. # Enable support for threads
  6326. # Check whether --with-threads was given.
  6327. if test "${with_threads+set}" = set; then :
  6328. withval=$with_threads; with_threads=$withval
  6329. else
  6330. with_threads='yes'
  6331. fi
  6332. have_threads=no
  6333. if test "$with_threads" != 'no'
  6334. then
  6335. ac_ext=c
  6336. ac_cpp='$CPP $CPPFLAGS'
  6337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6340. acx_pthread_ok=no
  6341. # We used to check for pthread.h first, but this fails if pthread.h
  6342. # requires special compiler flags (e.g. on True64 or Sequent).
  6343. # It gets checked for in the link test anyway.
  6344. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6345. # etcetera environment variables, and if threads linking works using
  6346. # them:
  6347. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  6348. save_CFLAGS="$CFLAGS"
  6349. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6350. save_LIBS="$LIBS"
  6351. LIBS="$PTHREAD_LIBS $LIBS"
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  6353. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. /* Override any GCC internal prototype to avoid an error.
  6357. Use char because int might match the return type of a GCC
  6358. builtin and then its argument prototype would still apply. */
  6359. #ifdef __cplusplus
  6360. extern "C"
  6361. #endif
  6362. char pthread_join ();
  6363. int
  6364. main ()
  6365. {
  6366. return pthread_join ();
  6367. ;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_link "$LINENO"; then :
  6372. acx_pthread_ok=yes
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext \
  6375. conftest$ac_exeext conftest.$ac_ext
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  6377. $as_echo "$acx_pthread_ok" >&6; }
  6378. if test x"$acx_pthread_ok" = xno; then
  6379. PTHREAD_LIBS=""
  6380. PTHREAD_CFLAGS=""
  6381. fi
  6382. LIBS="$save_LIBS"
  6383. CFLAGS="$save_CFLAGS"
  6384. fi
  6385. # We must check for the threads library under a number of different
  6386. # names; the ordering is very important because some systems
  6387. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  6388. # libraries is broken (non-POSIX).
  6389. # Create a list of thread flags to try. Items starting with a "-" are
  6390. # C compiler flags, and other items are library names, except for "none"
  6391. # which indicates that we try without any flags at all, and "pthread-config"
  6392. # which is a program returning the flags for the Pth emulation library.
  6393. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
  6394. # The ordering *is* (sometimes) important. Some notes on the
  6395. # individual items follow:
  6396. # pthreads: AIX (must check this before -lpthread)
  6397. # none: in case threads are in libc; should be tried before -Kthread and
  6398. # other compiler flags to prevent continual compiler warnings
  6399. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  6400. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  6401. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  6402. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  6403. # -pthreads: Solaris/gcc
  6404. # -mthreads: Mingw32/gcc, Lynx/gcc
  6405. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  6406. # doesn't hurt to check since this sometimes defines pthreads too;
  6407. # also defines -D_REENTRANT)
  6408. # ... -mt is also the pthreads flag for HP/aCC
  6409. # pthread: Linux, etcetera
  6410. # --thread-safe: KAI C++
  6411. # pthread-config: use pthread-config program (for GNU Pth library)
  6412. case "${host_cpu}-${host_os}" in
  6413. *solaris*)
  6414. # On Solaris (at least, for some versions), libc contains stubbed
  6415. # (non-functional) versions of the pthreads routines, so link-based
  6416. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  6417. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  6418. # a function called by this macro, so we could check for that, but
  6419. # who knows whether they'll stub that too in a future libc.) So,
  6420. # we'll just look for -pthreads and -lpthread first:
  6421. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  6422. ;;
  6423. # The HP-UX compiler just warns about options it does not understand
  6424. # but it needs -mt.
  6425. *-hpux*)
  6426. acx_pthread_flags="-mt $acx_pthread_flags"
  6427. ;;
  6428. esac
  6429. if test x"$acx_pthread_ok" = xno; then
  6430. for flag in $acx_pthread_flags; do
  6431. case $flag in
  6432. none)
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  6434. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  6435. ;;
  6436. -*)
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  6438. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  6439. PTHREAD_CFLAGS="$flag"
  6440. ;;
  6441. pthread-config)
  6442. # Extract the first word of "pthread-config", so it can be a program name with args.
  6443. set dummy pthread-config; ac_word=$2
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$acx_pthread_config"; then
  6450. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  6451. else
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_acx_pthread_config="yes"
  6460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  6467. fi
  6468. fi
  6469. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  6470. if test -n "$acx_pthread_config"; then
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  6472. $as_echo "$acx_pthread_config" >&6; }
  6473. else
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6475. $as_echo "no" >&6; }
  6476. fi
  6477. if test x"$acx_pthread_config" = xno; then continue; fi
  6478. PTHREAD_CFLAGS="`pthread-config --cflags`"
  6479. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  6480. ;;
  6481. *)
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  6483. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  6484. PTHREAD_LIBS="-l$flag"
  6485. ;;
  6486. esac
  6487. save_LIBS="$LIBS"
  6488. save_CFLAGS="$CFLAGS"
  6489. LIBS="$PTHREAD_LIBS $LIBS"
  6490. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6491. # Check for various functions. We must include pthread.h,
  6492. # since some functions may be macros. (On the Sequent, we
  6493. # need a special flag -Kthread to make this header compile.)
  6494. # We check for pthread_join because it is in -lpthread on IRIX
  6495. # while pthread_create is in libc. We check for pthread_attr_init
  6496. # due to DEC craziness with -lpthreads. We check for
  6497. # pthread_cleanup_push because it is one of the few pthread
  6498. # functions on Solaris that doesn't have a non-functional libc stub.
  6499. # We try pthread_create on general principles.
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <pthread.h>
  6503. int
  6504. main ()
  6505. {
  6506. pthread_t th; pthread_join(th, 0);
  6507. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  6508. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. if ac_fn_c_try_link "$LINENO"; then :
  6514. acx_pthread_ok=yes
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext \
  6517. conftest$ac_exeext conftest.$ac_ext
  6518. LIBS="$save_LIBS"
  6519. CFLAGS="$save_CFLAGS"
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  6521. $as_echo "$acx_pthread_ok" >&6; }
  6522. if test "x$acx_pthread_ok" = xyes; then
  6523. break;
  6524. fi
  6525. PTHREAD_LIBS=""
  6526. PTHREAD_CFLAGS=""
  6527. done
  6528. fi
  6529. # Various other checks:
  6530. if test "x$acx_pthread_ok" = xyes; then
  6531. save_LIBS="$LIBS"
  6532. LIBS="$PTHREAD_LIBS $LIBS"
  6533. save_CFLAGS="$CFLAGS"
  6534. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6535. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  6537. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  6538. attr_name=unknown
  6539. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. #include <pthread.h>
  6543. int
  6544. main ()
  6545. {
  6546. int attr=$attr; return attr;
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. if ac_fn_c_try_link "$LINENO"; then :
  6552. attr_name=$attr; break
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext \
  6555. conftest$ac_exeext conftest.$ac_ext
  6556. done
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  6558. $as_echo "$attr_name" >&6; }
  6559. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  6560. cat >>confdefs.h <<_ACEOF
  6561. #define PTHREAD_CREATE_JOINABLE $attr_name
  6562. _ACEOF
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  6565. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  6566. flag=no
  6567. case "${host_cpu}-${host_os}" in
  6568. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  6569. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  6570. esac
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  6572. $as_echo "${flag}" >&6; }
  6573. if test "x$flag" != xno; then
  6574. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  6575. fi
  6576. LIBS="$save_LIBS"
  6577. CFLAGS="$save_CFLAGS"
  6578. # More AIX lossage: must compile with xlc_r or cc_r
  6579. case "${host_os}" in
  6580. aix* )
  6581. if test x"$GCC" != xyes; then
  6582. case "$CC" in
  6583. *xlc )
  6584. # Extract the first word of "xlc_r", so it can be a program name with args.
  6585. set dummy xlc_r; ac_word=$2
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6587. $as_echo_n "checking for $ac_word... " >&6; }
  6588. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. if test -n "$PTHREAD_CC"; then
  6592. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  6593. else
  6594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6595. for as_dir in $PATH
  6596. do
  6597. IFS=$as_save_IFS
  6598. test -z "$as_dir" && as_dir=.
  6599. for ac_exec_ext in '' $ac_executable_extensions; do
  6600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6601. ac_cv_prog_PTHREAD_CC="xlc_r"
  6602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6603. break 2
  6604. fi
  6605. done
  6606. done
  6607. IFS=$as_save_IFS
  6608. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  6609. fi
  6610. fi
  6611. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6612. if test -n "$PTHREAD_CC"; then
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6614. $as_echo "$PTHREAD_CC" >&6; }
  6615. else
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. $as_echo "no" >&6; }
  6618. fi
  6619. ;;
  6620. *cc )
  6621. # Extract the first word of "cc_r", so it can be a program name with args.
  6622. set dummy cc_r; ac_word=$2
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. $as_echo_n "checking for $ac_word... " >&6; }
  6625. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. if test -n "$PTHREAD_CC"; then
  6629. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  6630. else
  6631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6632. for as_dir in $PATH
  6633. do
  6634. IFS=$as_save_IFS
  6635. test -z "$as_dir" && as_dir=.
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_PTHREAD_CC="cc_r"
  6639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  6646. fi
  6647. fi
  6648. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6649. if test -n "$PTHREAD_CC"; then
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6651. $as_echo "$PTHREAD_CC" >&6; }
  6652. else
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. $as_echo "no" >&6; }
  6655. fi
  6656. ;;
  6657. esac
  6658. fi
  6659. case "$CXX" in
  6660. *xlC )
  6661. # Extract the first word of "xlC_r", so it can be a program name with args.
  6662. set dummy xlC_r; ac_word=$2
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6664. $as_echo_n "checking for $ac_word... " >&6; }
  6665. if ${ac_cv_prog_PTHREAD_CXX+:} false; then :
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. if test -n "$PTHREAD_CXX"; then
  6669. ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
  6670. else
  6671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6672. for as_dir in $PATH
  6673. do
  6674. IFS=$as_save_IFS
  6675. test -z "$as_dir" && as_dir=.
  6676. for ac_exec_ext in '' $ac_executable_extensions; do
  6677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6678. ac_cv_prog_PTHREAD_CXX="xlC_r"
  6679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6680. break 2
  6681. fi
  6682. done
  6683. done
  6684. IFS=$as_save_IFS
  6685. test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
  6686. fi
  6687. fi
  6688. PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
  6689. if test -n "$PTHREAD_CXX"; then
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
  6691. $as_echo "$PTHREAD_CXX" >&6; }
  6692. else
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6694. $as_echo "no" >&6; }
  6695. fi
  6696. ;;
  6697. esac
  6698. ;;
  6699. esac
  6700. fi
  6701. if test "${PTHREAD_CC}x" = "x"
  6702. then
  6703. PTHREAD_CC="$CC"
  6704. fi
  6705. if test "${PTHREAD_CXX}x" = "x"
  6706. then
  6707. PTHREAD_CXX="$CXX"
  6708. fi
  6709. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  6710. if test x"$acx_pthread_ok" = xyes; then
  6711. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  6712. :
  6713. else
  6714. acx_pthread_ok=no
  6715. fi
  6716. ac_ext=c
  6717. ac_cpp='$CPP $CPPFLAGS'
  6718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6721. if test "$acx_pthread_ok" = yes
  6722. then
  6723. have_threads=yes
  6724. DEF_THREAD="$PTHREAD_CFLAGS"
  6725. CFLAGS="$CFLAGS $DEF_THREAD"
  6726. CXXFLAGS="$CXXFLAGS $DEF_THREAD"
  6727. if test "$CC" != "$PTHREAD_CC"
  6728. then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
  6730. $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
  6731. CC="$PTHREAD_CC"
  6732. fi
  6733. if test "$CXX" != "$PTHREAD_CXX"
  6734. then
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
  6736. $as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
  6737. CXX="$PTHREAD_CXX"
  6738. fi
  6739. fi
  6740. fi
  6741. #
  6742. # Determine options necessary to enable OpenMP support
  6743. #
  6744. # Sets Set the OPENMP_CFLAGS / OPENMP_CXXFLAGS / OPENMP_FFLAGS
  6745. # variable to these options.
  6746. if test "$have_threads" != 'yes'
  6747. then
  6748. ac_cv_prog_c_openmp=unsupported
  6749. fi
  6750. OPENMP_CFLAGS=
  6751. # Check whether --enable-openmp was given.
  6752. if test "${enable_openmp+set}" = set; then :
  6753. enableval=$enable_openmp;
  6754. fi
  6755. if test "$enable_openmp" != no; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
  6757. $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
  6758. if ${ac_cv_prog_c_openmp+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h. */
  6763. #ifndef _OPENMP
  6764. choke me
  6765. #endif
  6766. #include <omp.h>
  6767. int main () { return omp_get_num_threads (); }
  6768. _ACEOF
  6769. if ac_fn_c_try_link "$LINENO"; then :
  6770. ac_cv_prog_c_openmp='none needed'
  6771. else
  6772. ac_cv_prog_c_openmp='unsupported'
  6773. for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
  6774. -Popenmp --openmp; do
  6775. ac_save_CFLAGS=$CFLAGS
  6776. CFLAGS="$CFLAGS $ac_option"
  6777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6778. /* end confdefs.h. */
  6779. #ifndef _OPENMP
  6780. choke me
  6781. #endif
  6782. #include <omp.h>
  6783. int main () { return omp_get_num_threads (); }
  6784. _ACEOF
  6785. if ac_fn_c_try_link "$LINENO"; then :
  6786. ac_cv_prog_c_openmp=$ac_option
  6787. fi
  6788. rm -f core conftest.err conftest.$ac_objext \
  6789. conftest$ac_exeext conftest.$ac_ext
  6790. CFLAGS=$ac_save_CFLAGS
  6791. if test "$ac_cv_prog_c_openmp" != unsupported; then
  6792. break
  6793. fi
  6794. done
  6795. fi
  6796. rm -f core conftest.err conftest.$ac_objext \
  6797. conftest$ac_exeext conftest.$ac_ext
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
  6800. $as_echo "$ac_cv_prog_c_openmp" >&6; }
  6801. case $ac_cv_prog_c_openmp in #(
  6802. "none needed" | unsupported)
  6803. ;; #(
  6804. *)
  6805. OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
  6806. esac
  6807. fi
  6808. CFLAGS="$OPENMP_CFLAGS $CFLAGS"
  6809. #CXXFLAGS="$OPENMP_CXXFLAGS $CXXFLAGS"
  6810. #LDFLAGS="$LDFLAGS $OPENMP_CFLAGS"
  6811. # Allow the user to disable use of OpenMP where algorithms sometimes run slower.
  6812. # Check whether --enable-openmp-slow was given.
  6813. if test "${enable_openmp_slow+set}" = set; then :
  6814. enableval=$enable_openmp_slow; with_openmp_slow=$enableval
  6815. else
  6816. with_openmp_slow='no'
  6817. fi
  6818. if test "$with_openmp_slow" = 'no'
  6819. then
  6820. $as_echo "#define DisableSlowOpenMP 1" >>confdefs.h
  6821. fi
  6822. ########
  6823. #
  6824. # Check for large file support
  6825. #
  6826. # According to the X/Open LFS standard, setting _FILE_OFFSET_BITS to 64
  6827. # remaps standard functions to their 64-bit equivalents.
  6828. #
  6829. # The LFS_CPPFLAGS substition is used to support building PerlMagick.
  6830. #
  6831. #
  6832. ########
  6833. # Check whether --enable-largefile was given.
  6834. if test "${enable_largefile+set}" = set; then :
  6835. enableval=$enable_largefile;
  6836. fi
  6837. if test "$enable_largefile" != no; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6839. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6840. if ${ac_cv_sys_largefile_CC+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. ac_cv_sys_largefile_CC=no
  6844. if test "$GCC" != yes; then
  6845. ac_save_CC=$CC
  6846. while :; do
  6847. # IRIX 6.2 and later do not support large files by default,
  6848. # so use the C compiler's -n32 option if that helps.
  6849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6850. /* end confdefs.h. */
  6851. #include <sys/types.h>
  6852. /* Check that off_t can represent 2**63 - 1 correctly.
  6853. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6854. since some C++ compilers masquerading as C compilers
  6855. incorrectly reject 9223372036854775807. */
  6856. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6857. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6858. && LARGE_OFF_T % 2147483647 == 1)
  6859. ? 1 : -1];
  6860. int
  6861. main ()
  6862. {
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. if ac_fn_c_try_compile "$LINENO"; then :
  6868. break
  6869. fi
  6870. rm -f core conftest.err conftest.$ac_objext
  6871. CC="$CC -n32"
  6872. if ac_fn_c_try_compile "$LINENO"; then :
  6873. ac_cv_sys_largefile_CC=' -n32'; break
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext
  6876. break
  6877. done
  6878. CC=$ac_save_CC
  6879. rm -f conftest.$ac_ext
  6880. fi
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6883. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6884. if test "$ac_cv_sys_largefile_CC" != no; then
  6885. CC=$CC$ac_cv_sys_largefile_CC
  6886. fi
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6888. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6889. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. while :; do
  6893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6894. /* end confdefs.h. */
  6895. #include <sys/types.h>
  6896. /* Check that off_t can represent 2**63 - 1 correctly.
  6897. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6898. since some C++ compilers masquerading as C compilers
  6899. incorrectly reject 9223372036854775807. */
  6900. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6901. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6902. && LARGE_OFF_T % 2147483647 == 1)
  6903. ? 1 : -1];
  6904. int
  6905. main ()
  6906. {
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. if ac_fn_c_try_compile "$LINENO"; then :
  6912. ac_cv_sys_file_offset_bits=no; break
  6913. fi
  6914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6916. /* end confdefs.h. */
  6917. #define _FILE_OFFSET_BITS 64
  6918. #include <sys/types.h>
  6919. /* Check that off_t can represent 2**63 - 1 correctly.
  6920. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6921. since some C++ compilers masquerading as C compilers
  6922. incorrectly reject 9223372036854775807. */
  6923. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6924. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6925. && LARGE_OFF_T % 2147483647 == 1)
  6926. ? 1 : -1];
  6927. int
  6928. main ()
  6929. {
  6930. ;
  6931. return 0;
  6932. }
  6933. _ACEOF
  6934. if ac_fn_c_try_compile "$LINENO"; then :
  6935. ac_cv_sys_file_offset_bits=64; break
  6936. fi
  6937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6938. ac_cv_sys_file_offset_bits=unknown
  6939. break
  6940. done
  6941. fi
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6943. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6944. case $ac_cv_sys_file_offset_bits in #(
  6945. no | unknown) ;;
  6946. *)
  6947. cat >>confdefs.h <<_ACEOF
  6948. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6949. _ACEOF
  6950. ;;
  6951. esac
  6952. rm -rf conftest*
  6953. if test $ac_cv_sys_file_offset_bits = unknown; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6955. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6956. if ${ac_cv_sys_large_files+:} false; then :
  6957. $as_echo_n "(cached) " >&6
  6958. else
  6959. while :; do
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. #include <sys/types.h>
  6963. /* Check that off_t can represent 2**63 - 1 correctly.
  6964. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6965. since some C++ compilers masquerading as C compilers
  6966. incorrectly reject 9223372036854775807. */
  6967. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6968. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6969. && LARGE_OFF_T % 2147483647 == 1)
  6970. ? 1 : -1];
  6971. int
  6972. main ()
  6973. {
  6974. ;
  6975. return 0;
  6976. }
  6977. _ACEOF
  6978. if ac_fn_c_try_compile "$LINENO"; then :
  6979. ac_cv_sys_large_files=no; break
  6980. fi
  6981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. #define _LARGE_FILES 1
  6985. #include <sys/types.h>
  6986. /* Check that off_t can represent 2**63 - 1 correctly.
  6987. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6988. since some C++ compilers masquerading as C compilers
  6989. incorrectly reject 9223372036854775807. */
  6990. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6991. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6992. && LARGE_OFF_T % 2147483647 == 1)
  6993. ? 1 : -1];
  6994. int
  6995. main ()
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_c_try_compile "$LINENO"; then :
  7002. ac_cv_sys_large_files=1; break
  7003. fi
  7004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7005. ac_cv_sys_large_files=unknown
  7006. break
  7007. done
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7010. $as_echo "$ac_cv_sys_large_files" >&6; }
  7011. case $ac_cv_sys_large_files in #(
  7012. no | unknown) ;;
  7013. *)
  7014. cat >>confdefs.h <<_ACEOF
  7015. #define _LARGE_FILES $ac_cv_sys_large_files
  7016. _ACEOF
  7017. ;;
  7018. esac
  7019. rm -rf conftest*
  7020. fi
  7021. fi
  7022. # If the `fseeko' function is available, define `HAVE_FSEEKO'. Define
  7023. # `_LARGEFILE_SOURCE' if necessary.
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  7025. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  7026. if ${ac_cv_sys_largefile_source+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. while :; do
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. #include <sys/types.h> /* for off_t */
  7033. #include <stdio.h>
  7034. int
  7035. main ()
  7036. {
  7037. int (*fp) (FILE *, off_t, int) = fseeko;
  7038. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7039. ;
  7040. return 0;
  7041. }
  7042. _ACEOF
  7043. if ac_fn_c_try_link "$LINENO"; then :
  7044. ac_cv_sys_largefile_source=no; break
  7045. fi
  7046. rm -f core conftest.err conftest.$ac_objext \
  7047. conftest$ac_exeext conftest.$ac_ext
  7048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7049. /* end confdefs.h. */
  7050. #define _LARGEFILE_SOURCE 1
  7051. #include <sys/types.h> /* for off_t */
  7052. #include <stdio.h>
  7053. int
  7054. main ()
  7055. {
  7056. int (*fp) (FILE *, off_t, int) = fseeko;
  7057. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7058. ;
  7059. return 0;
  7060. }
  7061. _ACEOF
  7062. if ac_fn_c_try_link "$LINENO"; then :
  7063. ac_cv_sys_largefile_source=1; break
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext \
  7066. conftest$ac_exeext conftest.$ac_ext
  7067. ac_cv_sys_largefile_source=unknown
  7068. break
  7069. done
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  7072. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  7073. case $ac_cv_sys_largefile_source in #(
  7074. no | unknown) ;;
  7075. *)
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  7078. _ACEOF
  7079. ;;
  7080. esac
  7081. rm -rf conftest*
  7082. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  7083. # in glibc 2.1.3, but that breaks too many other things.
  7084. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  7085. if test $ac_cv_sys_largefile_source != unknown; then
  7086. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  7087. fi
  7088. LFS_CPPFLAGS=''
  7089. if test "$enable_largefile" != no
  7090. then
  7091. if test "$ac_cv_sys_file_offset_bits" != 'no'
  7092. then
  7093. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  7094. fi
  7095. if test "$ac_cv_sys_large_files" != 'no'
  7096. then
  7097. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
  7098. fi
  7099. if test "$ac_cv_sys_largefile_source" != 'no'
  7100. then
  7101. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
  7102. fi
  7103. fi
  7104. #
  7105. # Configure libtool & libltdl
  7106. #
  7107. # Configure libtool
  7108. enable_dlopen=yes
  7109. case `pwd` in
  7110. *\ * | *\ *)
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7112. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7113. esac
  7114. macro_version='2.4.2'
  7115. macro_revision='1.3337'
  7116. ltmain="$ac_aux_dir/ltmain.sh"
  7117. # Backslashify metacharacters that are still active within
  7118. # double-quoted strings.
  7119. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7120. # Same as above, but do not quote variable references.
  7121. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7122. # Sed substitution to delay expansion of an escaped shell variable in a
  7123. # double_quote_subst'ed string.
  7124. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7125. # Sed substitution to delay expansion of an escaped single quote.
  7126. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7127. # Sed substitution to avoid accidental globbing in evaled expressions
  7128. no_glob_subst='s/\*/\\\*/g'
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7130. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7131. if ${lt_cv_path_NM+:} false; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. if test -n "$NM"; then
  7135. # Let the user override the test.
  7136. lt_cv_path_NM="$NM"
  7137. else
  7138. lt_nm_to_check="${ac_tool_prefix}nm"
  7139. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7140. lt_nm_to_check="$lt_nm_to_check nm"
  7141. fi
  7142. for lt_tmp_nm in $lt_nm_to_check; do
  7143. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7144. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7145. IFS="$lt_save_ifs"
  7146. test -z "$ac_dir" && ac_dir=.
  7147. tmp_nm="$ac_dir/$lt_tmp_nm"
  7148. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7149. # Check to see if the nm accepts a BSD-compat flag.
  7150. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7151. # nm: unknown option "B" ignored
  7152. # Tru64's nm complains that /dev/null is an invalid object file
  7153. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7154. */dev/null* | *'Invalid file or object type'*)
  7155. lt_cv_path_NM="$tmp_nm -B"
  7156. break
  7157. ;;
  7158. *)
  7159. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7160. */dev/null*)
  7161. lt_cv_path_NM="$tmp_nm -p"
  7162. break
  7163. ;;
  7164. *)
  7165. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7166. continue # so that we can try to find one that supports BSD flags
  7167. ;;
  7168. esac
  7169. ;;
  7170. esac
  7171. fi
  7172. done
  7173. IFS="$lt_save_ifs"
  7174. done
  7175. : ${lt_cv_path_NM=no}
  7176. fi
  7177. fi
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7179. $as_echo "$lt_cv_path_NM" >&6; }
  7180. if test "$lt_cv_path_NM" != "no"; then
  7181. NM="$lt_cv_path_NM"
  7182. else
  7183. # Didn't find any BSD compatible name lister, look for dumpbin.
  7184. if test -n "$DUMPBIN"; then :
  7185. # Let the user override the test.
  7186. else
  7187. if test -n "$ac_tool_prefix"; then
  7188. for ac_prog in dumpbin "link -dump"
  7189. do
  7190. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7191. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$DUMPBIN"; then
  7198. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7207. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. DUMPBIN=$ac_cv_prog_DUMPBIN
  7217. if test -n "$DUMPBIN"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7219. $as_echo "$DUMPBIN" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. test -n "$DUMPBIN" && break
  7225. done
  7226. fi
  7227. if test -z "$DUMPBIN"; then
  7228. ac_ct_DUMPBIN=$DUMPBIN
  7229. for ac_prog in dumpbin "link -dump"
  7230. do
  7231. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7232. set dummy $ac_prog; ac_word=$2
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7234. $as_echo_n "checking for $ac_word... " >&6; }
  7235. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. if test -n "$ac_ct_DUMPBIN"; then
  7239. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7240. else
  7241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7242. for as_dir in $PATH
  7243. do
  7244. IFS=$as_save_IFS
  7245. test -z "$as_dir" && as_dir=.
  7246. for ac_exec_ext in '' $ac_executable_extensions; do
  7247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7248. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7250. break 2
  7251. fi
  7252. done
  7253. done
  7254. IFS=$as_save_IFS
  7255. fi
  7256. fi
  7257. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7258. if test -n "$ac_ct_DUMPBIN"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7260. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265. test -n "$ac_ct_DUMPBIN" && break
  7266. done
  7267. if test "x$ac_ct_DUMPBIN" = x; then
  7268. DUMPBIN=":"
  7269. else
  7270. case $cross_compiling:$ac_tool_warned in
  7271. yes:)
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7274. ac_tool_warned=yes ;;
  7275. esac
  7276. DUMPBIN=$ac_ct_DUMPBIN
  7277. fi
  7278. fi
  7279. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  7280. *COFF*)
  7281. DUMPBIN="$DUMPBIN -symbols"
  7282. ;;
  7283. *)
  7284. DUMPBIN=:
  7285. ;;
  7286. esac
  7287. fi
  7288. if test "$DUMPBIN" != ":"; then
  7289. NM="$DUMPBIN"
  7290. fi
  7291. fi
  7292. test -z "$NM" && NM=nm
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7294. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7295. if ${lt_cv_nm_interface+:} false; then :
  7296. $as_echo_n "(cached) " >&6
  7297. else
  7298. lt_cv_nm_interface="BSD nm"
  7299. echo "int some_variable = 0;" > conftest.$ac_ext
  7300. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7301. (eval "$ac_compile" 2>conftest.err)
  7302. cat conftest.err >&5
  7303. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7304. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7305. cat conftest.err >&5
  7306. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7307. cat conftest.out >&5
  7308. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7309. lt_cv_nm_interface="MS dumpbin"
  7310. fi
  7311. rm -f conftest*
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7314. $as_echo "$lt_cv_nm_interface" >&6; }
  7315. # find the maximum length of command line arguments
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7317. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7318. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. i=0
  7322. teststring="ABCD"
  7323. case $build_os in
  7324. msdosdjgpp*)
  7325. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7326. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7327. # during glob expansion). Even if it were fixed, the result of this
  7328. # check would be larger than it should be.
  7329. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7330. ;;
  7331. gnu*)
  7332. # Under GNU Hurd, this test is not required because there is
  7333. # no limit to the length of command line arguments.
  7334. # Libtool will interpret -1 as no limit whatsoever
  7335. lt_cv_sys_max_cmd_len=-1;
  7336. ;;
  7337. cygwin* | mingw* | cegcc*)
  7338. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7339. # about 5 minutes as the teststring grows exponentially.
  7340. # Worse, since 9x/ME are not pre-emptively multitasking,
  7341. # you end up with a "frozen" computer, even though with patience
  7342. # the test eventually succeeds (with a max line length of 256k).
  7343. # Instead, let's just punt: use the minimum linelength reported by
  7344. # all of the supported platforms: 8192 (on NT/2K/XP).
  7345. lt_cv_sys_max_cmd_len=8192;
  7346. ;;
  7347. mint*)
  7348. # On MiNT this can take a long time and run out of memory.
  7349. lt_cv_sys_max_cmd_len=8192;
  7350. ;;
  7351. amigaos*)
  7352. # On AmigaOS with pdksh, this test takes hours, literally.
  7353. # So we just punt and use a minimum line length of 8192.
  7354. lt_cv_sys_max_cmd_len=8192;
  7355. ;;
  7356. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7357. # This has been around since 386BSD, at least. Likely further.
  7358. if test -x /sbin/sysctl; then
  7359. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7360. elif test -x /usr/sbin/sysctl; then
  7361. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7362. else
  7363. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7364. fi
  7365. # And add a safety zone
  7366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7367. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7368. ;;
  7369. interix*)
  7370. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7371. lt_cv_sys_max_cmd_len=196608
  7372. ;;
  7373. os2*)
  7374. # The test takes a long time on OS/2.
  7375. lt_cv_sys_max_cmd_len=8192
  7376. ;;
  7377. osf*)
  7378. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7379. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7380. # nice to cause kernel panics so lets avoid the loop below.
  7381. # First set a reasonable default.
  7382. lt_cv_sys_max_cmd_len=16384
  7383. #
  7384. if test -x /sbin/sysconfig; then
  7385. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7386. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7387. esac
  7388. fi
  7389. ;;
  7390. sco3.2v5*)
  7391. lt_cv_sys_max_cmd_len=102400
  7392. ;;
  7393. sysv5* | sco5v6* | sysv4.2uw2*)
  7394. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7395. if test -n "$kargmax"; then
  7396. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7397. else
  7398. lt_cv_sys_max_cmd_len=32768
  7399. fi
  7400. ;;
  7401. *)
  7402. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7403. if test -n "$lt_cv_sys_max_cmd_len"; then
  7404. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7405. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7406. else
  7407. # Make teststring a little bigger before we do anything with it.
  7408. # a 1K string should be a reasonable start.
  7409. for i in 1 2 3 4 5 6 7 8 ; do
  7410. teststring=$teststring$teststring
  7411. done
  7412. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7413. # If test is not a shell built-in, we'll probably end up computing a
  7414. # maximum length that is only half of the actual maximum length, but
  7415. # we can't tell.
  7416. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  7417. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7418. test $i != 17 # 1/2 MB should be enough
  7419. do
  7420. i=`expr $i + 1`
  7421. teststring=$teststring$teststring
  7422. done
  7423. # Only check the string length outside the loop.
  7424. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7425. teststring=
  7426. # Add a significant safety factor because C++ compilers can tack on
  7427. # massive amounts of additional arguments before passing them to the
  7428. # linker. It appears as though 1/2 is a usable value.
  7429. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7430. fi
  7431. ;;
  7432. esac
  7433. fi
  7434. if test -n $lt_cv_sys_max_cmd_len ; then
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7436. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7437. else
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7439. $as_echo "none" >&6; }
  7440. fi
  7441. max_cmd_len=$lt_cv_sys_max_cmd_len
  7442. : ${CP="cp -f"}
  7443. : ${MV="mv -f"}
  7444. : ${RM="rm -f"}
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  7446. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7447. # Try some XSI features
  7448. xsi_shell=no
  7449. ( _lt_dummy="a/b/c"
  7450. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7451. = c,a/b,b/c, \
  7452. && eval 'test $(( 1 + 1 )) -eq 2 \
  7453. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7454. && xsi_shell=yes
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  7456. $as_echo "$xsi_shell" >&6; }
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  7458. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7459. lt_shell_append=no
  7460. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7461. >/dev/null 2>&1 \
  7462. && lt_shell_append=yes
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  7464. $as_echo "$lt_shell_append" >&6; }
  7465. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7466. lt_unset=unset
  7467. else
  7468. lt_unset=false
  7469. fi
  7470. # test EBCDIC or ASCII
  7471. case `echo X|tr X '\101'` in
  7472. A) # ASCII based system
  7473. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7474. lt_SP2NL='tr \040 \012'
  7475. lt_NL2SP='tr \015\012 \040\040'
  7476. ;;
  7477. *) # EBCDIC based system
  7478. lt_SP2NL='tr \100 \n'
  7479. lt_NL2SP='tr \r\n \100\100'
  7480. ;;
  7481. esac
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7483. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7484. if ${lt_cv_to_host_file_cmd+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. case $host in
  7488. *-*-mingw* )
  7489. case $build in
  7490. *-*-mingw* ) # actually msys
  7491. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7492. ;;
  7493. *-*-cygwin* )
  7494. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7495. ;;
  7496. * ) # otherwise, assume *nix
  7497. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7498. ;;
  7499. esac
  7500. ;;
  7501. *-*-cygwin* )
  7502. case $build in
  7503. *-*-mingw* ) # actually msys
  7504. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7505. ;;
  7506. *-*-cygwin* )
  7507. lt_cv_to_host_file_cmd=func_convert_file_noop
  7508. ;;
  7509. * ) # otherwise, assume *nix
  7510. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7511. ;;
  7512. esac
  7513. ;;
  7514. * ) # unhandled hosts (and "normal" native builds)
  7515. lt_cv_to_host_file_cmd=func_convert_file_noop
  7516. ;;
  7517. esac
  7518. fi
  7519. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7521. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7523. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7524. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7525. $as_echo_n "(cached) " >&6
  7526. else
  7527. #assume ordinary cross tools, or native build.
  7528. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7529. case $host in
  7530. *-*-mingw* )
  7531. case $build in
  7532. *-*-mingw* ) # actually msys
  7533. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7534. ;;
  7535. esac
  7536. ;;
  7537. esac
  7538. fi
  7539. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7541. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7543. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7544. if ${lt_cv_ld_reload_flag+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. lt_cv_ld_reload_flag='-r'
  7548. fi
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7550. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7551. reload_flag=$lt_cv_ld_reload_flag
  7552. case $reload_flag in
  7553. "" | " "*) ;;
  7554. *) reload_flag=" $reload_flag" ;;
  7555. esac
  7556. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7557. case $host_os in
  7558. cygwin* | mingw* | pw32* | cegcc*)
  7559. if test "$GCC" != yes; then
  7560. reload_cmds=false
  7561. fi
  7562. ;;
  7563. darwin*)
  7564. if test "$GCC" = yes; then
  7565. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7566. else
  7567. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7568. fi
  7569. ;;
  7570. esac
  7571. if test -n "$ac_tool_prefix"; then
  7572. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7573. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7575. $as_echo_n "checking for $ac_word... " >&6; }
  7576. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. if test -n "$OBJDUMP"; then
  7580. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7581. else
  7582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7583. for as_dir in $PATH
  7584. do
  7585. IFS=$as_save_IFS
  7586. test -z "$as_dir" && as_dir=.
  7587. for ac_exec_ext in '' $ac_executable_extensions; do
  7588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7589. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7591. break 2
  7592. fi
  7593. done
  7594. done
  7595. IFS=$as_save_IFS
  7596. fi
  7597. fi
  7598. OBJDUMP=$ac_cv_prog_OBJDUMP
  7599. if test -n "$OBJDUMP"; then
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7601. $as_echo "$OBJDUMP" >&6; }
  7602. else
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7604. $as_echo "no" >&6; }
  7605. fi
  7606. fi
  7607. if test -z "$ac_cv_prog_OBJDUMP"; then
  7608. ac_ct_OBJDUMP=$OBJDUMP
  7609. # Extract the first word of "objdump", so it can be a program name with args.
  7610. set dummy objdump; ac_word=$2
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7612. $as_echo_n "checking for $ac_word... " >&6; }
  7613. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7614. $as_echo_n "(cached) " >&6
  7615. else
  7616. if test -n "$ac_ct_OBJDUMP"; then
  7617. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7618. else
  7619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7620. for as_dir in $PATH
  7621. do
  7622. IFS=$as_save_IFS
  7623. test -z "$as_dir" && as_dir=.
  7624. for ac_exec_ext in '' $ac_executable_extensions; do
  7625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7626. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7628. break 2
  7629. fi
  7630. done
  7631. done
  7632. IFS=$as_save_IFS
  7633. fi
  7634. fi
  7635. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7636. if test -n "$ac_ct_OBJDUMP"; then
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7638. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7639. else
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7641. $as_echo "no" >&6; }
  7642. fi
  7643. if test "x$ac_ct_OBJDUMP" = x; then
  7644. OBJDUMP="false"
  7645. else
  7646. case $cross_compiling:$ac_tool_warned in
  7647. yes:)
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7650. ac_tool_warned=yes ;;
  7651. esac
  7652. OBJDUMP=$ac_ct_OBJDUMP
  7653. fi
  7654. else
  7655. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7656. fi
  7657. test -z "$OBJDUMP" && OBJDUMP=objdump
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7659. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7660. if ${lt_cv_deplibs_check_method+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7664. lt_cv_file_magic_test_file=
  7665. lt_cv_deplibs_check_method='unknown'
  7666. # Need to set the preceding variable on all platforms that support
  7667. # interlibrary dependencies.
  7668. # 'none' -- dependencies not supported.
  7669. # `unknown' -- same as none, but documents that we really don't know.
  7670. # 'pass_all' -- all dependencies passed with no checks.
  7671. # 'test_compile' -- check by making test program.
  7672. # 'file_magic [[regex]]' -- check by looking for files in library path
  7673. # which responds to the $file_magic_cmd with a given extended regex.
  7674. # If you have `file' or equivalent on your system and you're not sure
  7675. # whether `pass_all' will *always* work, you probably want this one.
  7676. case $host_os in
  7677. aix[4-9]*)
  7678. lt_cv_deplibs_check_method=pass_all
  7679. ;;
  7680. beos*)
  7681. lt_cv_deplibs_check_method=pass_all
  7682. ;;
  7683. bsdi[45]*)
  7684. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7685. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7686. lt_cv_file_magic_test_file=/shlib/libc.so
  7687. ;;
  7688. cygwin*)
  7689. # func_win32_libid is a shell function defined in ltmain.sh
  7690. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7691. lt_cv_file_magic_cmd='func_win32_libid'
  7692. ;;
  7693. mingw* | pw32*)
  7694. # Base MSYS/MinGW do not provide the 'file' command needed by
  7695. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7696. # unless we find 'file', for example because we are cross-compiling.
  7697. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7698. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7700. lt_cv_file_magic_cmd='func_win32_libid'
  7701. else
  7702. # Keep this pattern in sync with the one in func_win32_libid.
  7703. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7704. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7705. fi
  7706. ;;
  7707. cegcc*)
  7708. # use the weaker test based on 'objdump'. See mingw*.
  7709. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7710. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7711. ;;
  7712. darwin* | rhapsody*)
  7713. lt_cv_deplibs_check_method=pass_all
  7714. ;;
  7715. freebsd* | dragonfly*)
  7716. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7717. case $host_cpu in
  7718. i*86 )
  7719. # Not sure whether the presence of OpenBSD here was a mistake.
  7720. # Let's accept both of them until this is cleared up.
  7721. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7722. lt_cv_file_magic_cmd=/usr/bin/file
  7723. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7724. ;;
  7725. esac
  7726. else
  7727. lt_cv_deplibs_check_method=pass_all
  7728. fi
  7729. ;;
  7730. gnu*)
  7731. lt_cv_deplibs_check_method=pass_all
  7732. ;;
  7733. haiku*)
  7734. lt_cv_deplibs_check_method=pass_all
  7735. ;;
  7736. hpux10.20* | hpux11*)
  7737. lt_cv_file_magic_cmd=/usr/bin/file
  7738. case $host_cpu in
  7739. ia64*)
  7740. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7741. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7742. ;;
  7743. hppa*64*)
  7744. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  7745. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7746. ;;
  7747. *)
  7748. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7749. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7750. ;;
  7751. esac
  7752. ;;
  7753. interix[3-9]*)
  7754. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7755. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7756. ;;
  7757. irix5* | irix6* | nonstopux*)
  7758. case $LD in
  7759. *-32|*"-32 ") libmagic=32-bit;;
  7760. *-n32|*"-n32 ") libmagic=N32;;
  7761. *-64|*"-64 ") libmagic=64-bit;;
  7762. *) libmagic=never-match;;
  7763. esac
  7764. lt_cv_deplibs_check_method=pass_all
  7765. ;;
  7766. # This must be glibc/ELF.
  7767. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7768. lt_cv_deplibs_check_method=pass_all
  7769. ;;
  7770. netbsd*)
  7771. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7773. else
  7774. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7775. fi
  7776. ;;
  7777. newos6*)
  7778. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7779. lt_cv_file_magic_cmd=/usr/bin/file
  7780. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7781. ;;
  7782. *nto* | *qnx*)
  7783. lt_cv_deplibs_check_method=pass_all
  7784. ;;
  7785. openbsd*)
  7786. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7787. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7788. else
  7789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7790. fi
  7791. ;;
  7792. osf3* | osf4* | osf5*)
  7793. lt_cv_deplibs_check_method=pass_all
  7794. ;;
  7795. rdos*)
  7796. lt_cv_deplibs_check_method=pass_all
  7797. ;;
  7798. solaris*)
  7799. lt_cv_deplibs_check_method=pass_all
  7800. ;;
  7801. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7802. lt_cv_deplibs_check_method=pass_all
  7803. ;;
  7804. sysv4 | sysv4.3*)
  7805. case $host_vendor in
  7806. motorola)
  7807. 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]'
  7808. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7809. ;;
  7810. ncr)
  7811. lt_cv_deplibs_check_method=pass_all
  7812. ;;
  7813. sequent)
  7814. lt_cv_file_magic_cmd='/bin/file'
  7815. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7816. ;;
  7817. sni)
  7818. lt_cv_file_magic_cmd='/bin/file'
  7819. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7820. lt_cv_file_magic_test_file=/lib/libc.so
  7821. ;;
  7822. siemens)
  7823. lt_cv_deplibs_check_method=pass_all
  7824. ;;
  7825. pc)
  7826. lt_cv_deplibs_check_method=pass_all
  7827. ;;
  7828. esac
  7829. ;;
  7830. tpf*)
  7831. lt_cv_deplibs_check_method=pass_all
  7832. ;;
  7833. esac
  7834. fi
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7836. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7837. file_magic_glob=
  7838. want_nocaseglob=no
  7839. if test "$build" = "$host"; then
  7840. case $host_os in
  7841. mingw* | pw32*)
  7842. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7843. want_nocaseglob=yes
  7844. else
  7845. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7846. fi
  7847. ;;
  7848. esac
  7849. fi
  7850. file_magic_cmd=$lt_cv_file_magic_cmd
  7851. deplibs_check_method=$lt_cv_deplibs_check_method
  7852. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7853. if test -n "$ac_tool_prefix"; then
  7854. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7855. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7857. $as_echo_n "checking for $ac_word... " >&6; }
  7858. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7859. $as_echo_n "(cached) " >&6
  7860. else
  7861. if test -n "$DLLTOOL"; then
  7862. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7863. else
  7864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7865. for as_dir in $PATH
  7866. do
  7867. IFS=$as_save_IFS
  7868. test -z "$as_dir" && as_dir=.
  7869. for ac_exec_ext in '' $ac_executable_extensions; do
  7870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7871. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7873. break 2
  7874. fi
  7875. done
  7876. done
  7877. IFS=$as_save_IFS
  7878. fi
  7879. fi
  7880. DLLTOOL=$ac_cv_prog_DLLTOOL
  7881. if test -n "$DLLTOOL"; then
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7883. $as_echo "$DLLTOOL" >&6; }
  7884. else
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7886. $as_echo "no" >&6; }
  7887. fi
  7888. fi
  7889. if test -z "$ac_cv_prog_DLLTOOL"; then
  7890. ac_ct_DLLTOOL=$DLLTOOL
  7891. # Extract the first word of "dlltool", so it can be a program name with args.
  7892. set dummy dlltool; ac_word=$2
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. $as_echo_n "checking for $ac_word... " >&6; }
  7895. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. if test -n "$ac_ct_DLLTOOL"; then
  7899. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7900. else
  7901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7902. for as_dir in $PATH
  7903. do
  7904. IFS=$as_save_IFS
  7905. test -z "$as_dir" && as_dir=.
  7906. for ac_exec_ext in '' $ac_executable_extensions; do
  7907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7908. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7910. break 2
  7911. fi
  7912. done
  7913. done
  7914. IFS=$as_save_IFS
  7915. fi
  7916. fi
  7917. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7918. if test -n "$ac_ct_DLLTOOL"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7920. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. if test "x$ac_ct_DLLTOOL" = x; then
  7926. DLLTOOL="false"
  7927. else
  7928. case $cross_compiling:$ac_tool_warned in
  7929. yes:)
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7932. ac_tool_warned=yes ;;
  7933. esac
  7934. DLLTOOL=$ac_ct_DLLTOOL
  7935. fi
  7936. else
  7937. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7938. fi
  7939. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7941. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7942. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7943. $as_echo_n "(cached) " >&6
  7944. else
  7945. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7946. case $host_os in
  7947. cygwin* | mingw* | pw32* | cegcc*)
  7948. # two different shell functions defined in ltmain.sh
  7949. # decide which to use based on capabilities of $DLLTOOL
  7950. case `$DLLTOOL --help 2>&1` in
  7951. *--identify-strict*)
  7952. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7953. ;;
  7954. *)
  7955. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7956. ;;
  7957. esac
  7958. ;;
  7959. *)
  7960. # fallback: assume linklib IS sharedlib
  7961. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7962. ;;
  7963. esac
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7966. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7967. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7968. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7969. if test -n "$ac_tool_prefix"; then
  7970. for ac_prog in ar
  7971. do
  7972. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7973. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7975. $as_echo_n "checking for $ac_word... " >&6; }
  7976. if ${ac_cv_prog_AR+:} false; then :
  7977. $as_echo_n "(cached) " >&6
  7978. else
  7979. if test -n "$AR"; then
  7980. ac_cv_prog_AR="$AR" # Let the user override the test.
  7981. else
  7982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7983. for as_dir in $PATH
  7984. do
  7985. IFS=$as_save_IFS
  7986. test -z "$as_dir" && as_dir=.
  7987. for ac_exec_ext in '' $ac_executable_extensions; do
  7988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7989. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7991. break 2
  7992. fi
  7993. done
  7994. done
  7995. IFS=$as_save_IFS
  7996. fi
  7997. fi
  7998. AR=$ac_cv_prog_AR
  7999. if test -n "$AR"; then
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8001. $as_echo "$AR" >&6; }
  8002. else
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8004. $as_echo "no" >&6; }
  8005. fi
  8006. test -n "$AR" && break
  8007. done
  8008. fi
  8009. if test -z "$AR"; then
  8010. ac_ct_AR=$AR
  8011. for ac_prog in ar
  8012. do
  8013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8014. set dummy $ac_prog; ac_word=$2
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8016. $as_echo_n "checking for $ac_word... " >&6; }
  8017. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. if test -n "$ac_ct_AR"; then
  8021. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8022. else
  8023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8024. for as_dir in $PATH
  8025. do
  8026. IFS=$as_save_IFS
  8027. test -z "$as_dir" && as_dir=.
  8028. for ac_exec_ext in '' $ac_executable_extensions; do
  8029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8030. ac_cv_prog_ac_ct_AR="$ac_prog"
  8031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8032. break 2
  8033. fi
  8034. done
  8035. done
  8036. IFS=$as_save_IFS
  8037. fi
  8038. fi
  8039. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8040. if test -n "$ac_ct_AR"; then
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8042. $as_echo "$ac_ct_AR" >&6; }
  8043. else
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8045. $as_echo "no" >&6; }
  8046. fi
  8047. test -n "$ac_ct_AR" && break
  8048. done
  8049. if test "x$ac_ct_AR" = x; then
  8050. AR="false"
  8051. else
  8052. case $cross_compiling:$ac_tool_warned in
  8053. yes:)
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8056. ac_tool_warned=yes ;;
  8057. esac
  8058. AR=$ac_ct_AR
  8059. fi
  8060. fi
  8061. : ${AR=ar}
  8062. : ${AR_FLAGS=cru}
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8064. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8065. if ${lt_cv_ar_at_file+:} false; then :
  8066. $as_echo_n "(cached) " >&6
  8067. else
  8068. lt_cv_ar_at_file=no
  8069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8070. /* end confdefs.h. */
  8071. int
  8072. main ()
  8073. {
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. if ac_fn_c_try_compile "$LINENO"; then :
  8079. echo conftest.$ac_objext > conftest.lst
  8080. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8081. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8082. (eval $lt_ar_try) 2>&5
  8083. ac_status=$?
  8084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8085. test $ac_status = 0; }
  8086. if test "$ac_status" -eq 0; then
  8087. # Ensure the archiver fails upon bogus file names.
  8088. rm -f conftest.$ac_objext libconftest.a
  8089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8090. (eval $lt_ar_try) 2>&5
  8091. ac_status=$?
  8092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8093. test $ac_status = 0; }
  8094. if test "$ac_status" -ne 0; then
  8095. lt_cv_ar_at_file=@
  8096. fi
  8097. fi
  8098. rm -f conftest.* libconftest.a
  8099. fi
  8100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8103. $as_echo "$lt_cv_ar_at_file" >&6; }
  8104. if test "x$lt_cv_ar_at_file" = xno; then
  8105. archiver_list_spec=
  8106. else
  8107. archiver_list_spec=$lt_cv_ar_at_file
  8108. fi
  8109. if test -n "$ac_tool_prefix"; then
  8110. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8111. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8113. $as_echo_n "checking for $ac_word... " >&6; }
  8114. if ${ac_cv_prog_STRIP+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. if test -n "$STRIP"; then
  8118. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8119. else
  8120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8121. for as_dir in $PATH
  8122. do
  8123. IFS=$as_save_IFS
  8124. test -z "$as_dir" && as_dir=.
  8125. for ac_exec_ext in '' $ac_executable_extensions; do
  8126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8127. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8129. break 2
  8130. fi
  8131. done
  8132. done
  8133. IFS=$as_save_IFS
  8134. fi
  8135. fi
  8136. STRIP=$ac_cv_prog_STRIP
  8137. if test -n "$STRIP"; then
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8139. $as_echo "$STRIP" >&6; }
  8140. else
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8142. $as_echo "no" >&6; }
  8143. fi
  8144. fi
  8145. if test -z "$ac_cv_prog_STRIP"; then
  8146. ac_ct_STRIP=$STRIP
  8147. # Extract the first word of "strip", so it can be a program name with args.
  8148. set dummy strip; ac_word=$2
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8150. $as_echo_n "checking for $ac_word... " >&6; }
  8151. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. if test -n "$ac_ct_STRIP"; then
  8155. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8156. else
  8157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8158. for as_dir in $PATH
  8159. do
  8160. IFS=$as_save_IFS
  8161. test -z "$as_dir" && as_dir=.
  8162. for ac_exec_ext in '' $ac_executable_extensions; do
  8163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8164. ac_cv_prog_ac_ct_STRIP="strip"
  8165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8166. break 2
  8167. fi
  8168. done
  8169. done
  8170. IFS=$as_save_IFS
  8171. fi
  8172. fi
  8173. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8174. if test -n "$ac_ct_STRIP"; then
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8176. $as_echo "$ac_ct_STRIP" >&6; }
  8177. else
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8179. $as_echo "no" >&6; }
  8180. fi
  8181. if test "x$ac_ct_STRIP" = x; then
  8182. STRIP=":"
  8183. else
  8184. case $cross_compiling:$ac_tool_warned in
  8185. yes:)
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8188. ac_tool_warned=yes ;;
  8189. esac
  8190. STRIP=$ac_ct_STRIP
  8191. fi
  8192. else
  8193. STRIP="$ac_cv_prog_STRIP"
  8194. fi
  8195. test -z "$STRIP" && STRIP=:
  8196. if test -n "$ac_tool_prefix"; then
  8197. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8198. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8200. $as_echo_n "checking for $ac_word... " >&6; }
  8201. if ${ac_cv_prog_RANLIB+:} false; then :
  8202. $as_echo_n "(cached) " >&6
  8203. else
  8204. if test -n "$RANLIB"; then
  8205. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8206. else
  8207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8208. for as_dir in $PATH
  8209. do
  8210. IFS=$as_save_IFS
  8211. test -z "$as_dir" && as_dir=.
  8212. for ac_exec_ext in '' $ac_executable_extensions; do
  8213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8214. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8216. break 2
  8217. fi
  8218. done
  8219. done
  8220. IFS=$as_save_IFS
  8221. fi
  8222. fi
  8223. RANLIB=$ac_cv_prog_RANLIB
  8224. if test -n "$RANLIB"; then
  8225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8226. $as_echo "$RANLIB" >&6; }
  8227. else
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8229. $as_echo "no" >&6; }
  8230. fi
  8231. fi
  8232. if test -z "$ac_cv_prog_RANLIB"; then
  8233. ac_ct_RANLIB=$RANLIB
  8234. # Extract the first word of "ranlib", so it can be a program name with args.
  8235. set dummy ranlib; ac_word=$2
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8237. $as_echo_n "checking for $ac_word... " >&6; }
  8238. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8239. $as_echo_n "(cached) " >&6
  8240. else
  8241. if test -n "$ac_ct_RANLIB"; then
  8242. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8243. else
  8244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8245. for as_dir in $PATH
  8246. do
  8247. IFS=$as_save_IFS
  8248. test -z "$as_dir" && as_dir=.
  8249. for ac_exec_ext in '' $ac_executable_extensions; do
  8250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8251. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8253. break 2
  8254. fi
  8255. done
  8256. done
  8257. IFS=$as_save_IFS
  8258. fi
  8259. fi
  8260. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8261. if test -n "$ac_ct_RANLIB"; then
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8263. $as_echo "$ac_ct_RANLIB" >&6; }
  8264. else
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8266. $as_echo "no" >&6; }
  8267. fi
  8268. if test "x$ac_ct_RANLIB" = x; then
  8269. RANLIB=":"
  8270. else
  8271. case $cross_compiling:$ac_tool_warned in
  8272. yes:)
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8275. ac_tool_warned=yes ;;
  8276. esac
  8277. RANLIB=$ac_ct_RANLIB
  8278. fi
  8279. else
  8280. RANLIB="$ac_cv_prog_RANLIB"
  8281. fi
  8282. test -z "$RANLIB" && RANLIB=:
  8283. # Determine commands to create old-style static archives.
  8284. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8285. old_postinstall_cmds='chmod 644 $oldlib'
  8286. old_postuninstall_cmds=
  8287. if test -n "$RANLIB"; then
  8288. case $host_os in
  8289. openbsd*)
  8290. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8291. ;;
  8292. *)
  8293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8294. ;;
  8295. esac
  8296. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8297. fi
  8298. case $host_os in
  8299. darwin*)
  8300. lock_old_archive_extraction=yes ;;
  8301. *)
  8302. lock_old_archive_extraction=no ;;
  8303. esac
  8304. # If no C compiler was specified, use CC.
  8305. LTCC=${LTCC-"$CC"}
  8306. # If no C compiler flags were specified, use CFLAGS.
  8307. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8308. # Allow CC to be a program name with arguments.
  8309. compiler=$CC
  8310. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8312. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8313. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8314. $as_echo_n "(cached) " >&6
  8315. else
  8316. # These are sane defaults that work on at least a few old systems.
  8317. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8318. # Character class describing NM global symbol codes.
  8319. symcode='[BCDEGRST]'
  8320. # Regexp to match symbols that can be accessed directly from C.
  8321. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8322. # Define system-specific variables.
  8323. case $host_os in
  8324. aix*)
  8325. symcode='[BCDT]'
  8326. ;;
  8327. cygwin* | mingw* | pw32* | cegcc*)
  8328. symcode='[ABCDGISTW]'
  8329. ;;
  8330. hpux*)
  8331. if test "$host_cpu" = ia64; then
  8332. symcode='[ABCDEGRST]'
  8333. fi
  8334. ;;
  8335. irix* | nonstopux*)
  8336. symcode='[BCDEGRST]'
  8337. ;;
  8338. osf*)
  8339. symcode='[BCDEGQRST]'
  8340. ;;
  8341. solaris*)
  8342. symcode='[BDRT]'
  8343. ;;
  8344. sco3.2v5*)
  8345. symcode='[DT]'
  8346. ;;
  8347. sysv4.2uw2*)
  8348. symcode='[DT]'
  8349. ;;
  8350. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8351. symcode='[ABDT]'
  8352. ;;
  8353. sysv4)
  8354. symcode='[DFNSTU]'
  8355. ;;
  8356. esac
  8357. # If we're using GNU nm, then use its standard symbol codes.
  8358. case `$NM -V 2>&1` in
  8359. *GNU* | *'with BFD'*)
  8360. symcode='[ABCDGIRSTW]' ;;
  8361. esac
  8362. # Transform an extracted symbol line into a proper C declaration.
  8363. # Some systems (esp. on ia64) link data and code symbols differently,
  8364. # so use this general approach.
  8365. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8366. # Transform an extracted symbol line into symbol name and symbol address
  8367. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8368. 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'"
  8369. # Handle CRLF in mingw tool chain
  8370. opt_cr=
  8371. case $build_os in
  8372. mingw*)
  8373. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8374. ;;
  8375. esac
  8376. # Try without a prefix underscore, then with it.
  8377. for ac_symprfx in "" "_"; do
  8378. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8379. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8380. # Write the raw and C identifiers.
  8381. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8382. # Fake it for dumpbin and say T for any non-static function
  8383. # and D for any global variable.
  8384. # Also find C++ and __fastcall symbols from MSVC++,
  8385. # which start with @ or ?.
  8386. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8387. " {last_section=section; section=\$ 3};"\
  8388. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8389. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8390. " \$ 0!~/External *\|/{next};"\
  8391. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8392. " {if(hide[section]) next};"\
  8393. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8394. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8395. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8396. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8397. " ' prfx=^$ac_symprfx"
  8398. else
  8399. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8400. fi
  8401. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8402. # Check to see that the pipe works correctly.
  8403. pipe_works=no
  8404. rm -f conftest*
  8405. cat > conftest.$ac_ext <<_LT_EOF
  8406. #ifdef __cplusplus
  8407. extern "C" {
  8408. #endif
  8409. char nm_test_var;
  8410. void nm_test_func(void);
  8411. void nm_test_func(void){}
  8412. #ifdef __cplusplus
  8413. }
  8414. #endif
  8415. int main(){nm_test_var='a';nm_test_func();return(0);}
  8416. _LT_EOF
  8417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8418. (eval $ac_compile) 2>&5
  8419. ac_status=$?
  8420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8421. test $ac_status = 0; }; then
  8422. # Now try to grab the symbols.
  8423. nlist=conftest.nm
  8424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8425. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8426. ac_status=$?
  8427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8428. test $ac_status = 0; } && test -s "$nlist"; then
  8429. # Try sorting and uniquifying the output.
  8430. if sort "$nlist" | uniq > "$nlist"T; then
  8431. mv -f "$nlist"T "$nlist"
  8432. else
  8433. rm -f "$nlist"T
  8434. fi
  8435. # Make sure that we snagged all the symbols we need.
  8436. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8437. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8438. cat <<_LT_EOF > conftest.$ac_ext
  8439. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8440. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  8441. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  8442. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8443. # define LT_DLSYM_CONST
  8444. #elif defined(__osf__)
  8445. /* This system does not cope well with relocations in const data. */
  8446. # define LT_DLSYM_CONST
  8447. #else
  8448. # define LT_DLSYM_CONST const
  8449. #endif
  8450. #ifdef __cplusplus
  8451. extern "C" {
  8452. #endif
  8453. _LT_EOF
  8454. # Now generate the symbol file.
  8455. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8456. cat <<_LT_EOF >> conftest.$ac_ext
  8457. /* The mapping between symbol names and symbols. */
  8458. LT_DLSYM_CONST struct {
  8459. const char *name;
  8460. void *address;
  8461. }
  8462. lt__PROGRAM__LTX_preloaded_symbols[] =
  8463. {
  8464. { "@PROGRAM@", (void *) 0 },
  8465. _LT_EOF
  8466. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8467. cat <<\_LT_EOF >> conftest.$ac_ext
  8468. {0, (void *) 0}
  8469. };
  8470. /* This works around a problem in FreeBSD linker */
  8471. #ifdef FREEBSD_WORKAROUND
  8472. static const void *lt_preloaded_setup() {
  8473. return lt__PROGRAM__LTX_preloaded_symbols;
  8474. }
  8475. #endif
  8476. #ifdef __cplusplus
  8477. }
  8478. #endif
  8479. _LT_EOF
  8480. # Now try linking the two files.
  8481. mv conftest.$ac_objext conftstm.$ac_objext
  8482. lt_globsym_save_LIBS=$LIBS
  8483. lt_globsym_save_CFLAGS=$CFLAGS
  8484. LIBS="conftstm.$ac_objext"
  8485. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8487. (eval $ac_link) 2>&5
  8488. ac_status=$?
  8489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8490. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8491. pipe_works=yes
  8492. fi
  8493. LIBS=$lt_globsym_save_LIBS
  8494. CFLAGS=$lt_globsym_save_CFLAGS
  8495. else
  8496. echo "cannot find nm_test_func in $nlist" >&5
  8497. fi
  8498. else
  8499. echo "cannot find nm_test_var in $nlist" >&5
  8500. fi
  8501. else
  8502. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8503. fi
  8504. else
  8505. echo "$progname: failed program was:" >&5
  8506. cat conftest.$ac_ext >&5
  8507. fi
  8508. rm -rf conftest* conftst*
  8509. # Do not use the global_symbol_pipe unless it works.
  8510. if test "$pipe_works" = yes; then
  8511. break
  8512. else
  8513. lt_cv_sys_global_symbol_pipe=
  8514. fi
  8515. done
  8516. fi
  8517. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8518. lt_cv_sys_global_symbol_to_cdecl=
  8519. fi
  8520. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8522. $as_echo "failed" >&6; }
  8523. else
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8525. $as_echo "ok" >&6; }
  8526. fi
  8527. # Response file support.
  8528. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8529. nm_file_list_spec='@'
  8530. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8531. nm_file_list_spec='@'
  8532. fi
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8534. $as_echo_n "checking for sysroot... " >&6; }
  8535. # Check whether --with-sysroot was given.
  8536. if test "${with_sysroot+set}" = set; then :
  8537. withval=$with_sysroot;
  8538. else
  8539. with_sysroot=no
  8540. fi
  8541. lt_sysroot=
  8542. case ${with_sysroot} in #(
  8543. yes)
  8544. if test "$GCC" = yes; then
  8545. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8546. fi
  8547. ;; #(
  8548. /*)
  8549. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8550. ;; #(
  8551. no|'')
  8552. ;; #(
  8553. *)
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  8555. $as_echo "${with_sysroot}" >&6; }
  8556. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8557. ;;
  8558. esac
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8560. $as_echo "${lt_sysroot:-no}" >&6; }
  8561. # Check whether --enable-libtool-lock was given.
  8562. if test "${enable_libtool_lock+set}" = set; then :
  8563. enableval=$enable_libtool_lock;
  8564. fi
  8565. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8566. # Some flags need to be propagated to the compiler or linker for good
  8567. # libtool support.
  8568. case $host in
  8569. ia64-*-hpux*)
  8570. # Find out which ABI we are using.
  8571. echo 'int i;' > conftest.$ac_ext
  8572. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8573. (eval $ac_compile) 2>&5
  8574. ac_status=$?
  8575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8576. test $ac_status = 0; }; then
  8577. case `/usr/bin/file conftest.$ac_objext` in
  8578. *ELF-32*)
  8579. HPUX_IA64_MODE="32"
  8580. ;;
  8581. *ELF-64*)
  8582. HPUX_IA64_MODE="64"
  8583. ;;
  8584. esac
  8585. fi
  8586. rm -rf conftest*
  8587. ;;
  8588. *-*-irix6*)
  8589. # Find out which ABI we are using.
  8590. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8592. (eval $ac_compile) 2>&5
  8593. ac_status=$?
  8594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8595. test $ac_status = 0; }; then
  8596. if test "$lt_cv_prog_gnu_ld" = yes; then
  8597. case `/usr/bin/file conftest.$ac_objext` in
  8598. *32-bit*)
  8599. LD="${LD-ld} -melf32bsmip"
  8600. ;;
  8601. *N32*)
  8602. LD="${LD-ld} -melf32bmipn32"
  8603. ;;
  8604. *64-bit*)
  8605. LD="${LD-ld} -melf64bmip"
  8606. ;;
  8607. esac
  8608. else
  8609. case `/usr/bin/file conftest.$ac_objext` in
  8610. *32-bit*)
  8611. LD="${LD-ld} -32"
  8612. ;;
  8613. *N32*)
  8614. LD="${LD-ld} -n32"
  8615. ;;
  8616. *64-bit*)
  8617. LD="${LD-ld} -64"
  8618. ;;
  8619. esac
  8620. fi
  8621. fi
  8622. rm -rf conftest*
  8623. ;;
  8624. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8625. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8626. # Find out which ABI we are using.
  8627. echo 'int i;' > conftest.$ac_ext
  8628. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8629. (eval $ac_compile) 2>&5
  8630. ac_status=$?
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8632. test $ac_status = 0; }; then
  8633. case `/usr/bin/file conftest.o` in
  8634. *32-bit*)
  8635. case $host in
  8636. x86_64-*kfreebsd*-gnu)
  8637. LD="${LD-ld} -m elf_i386_fbsd"
  8638. ;;
  8639. x86_64-*linux*)
  8640. LD="${LD-ld} -m elf_i386"
  8641. ;;
  8642. ppc64-*linux*|powerpc64-*linux*)
  8643. LD="${LD-ld} -m elf32ppclinux"
  8644. ;;
  8645. s390x-*linux*)
  8646. LD="${LD-ld} -m elf_s390"
  8647. ;;
  8648. sparc64-*linux*)
  8649. LD="${LD-ld} -m elf32_sparc"
  8650. ;;
  8651. esac
  8652. ;;
  8653. *64-bit*)
  8654. case $host in
  8655. x86_64-*kfreebsd*-gnu)
  8656. LD="${LD-ld} -m elf_x86_64_fbsd"
  8657. ;;
  8658. x86_64-*linux*)
  8659. LD="${LD-ld} -m elf_x86_64"
  8660. ;;
  8661. ppc*-*linux*|powerpc*-*linux*)
  8662. LD="${LD-ld} -m elf64ppc"
  8663. ;;
  8664. s390*-*linux*|s390*-*tpf*)
  8665. LD="${LD-ld} -m elf64_s390"
  8666. ;;
  8667. sparc*-*linux*)
  8668. LD="${LD-ld} -m elf64_sparc"
  8669. ;;
  8670. esac
  8671. ;;
  8672. esac
  8673. fi
  8674. rm -rf conftest*
  8675. ;;
  8676. *-*-sco3.2v5*)
  8677. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8678. SAVE_CFLAGS="$CFLAGS"
  8679. CFLAGS="$CFLAGS -belf"
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8681. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8682. if ${lt_cv_cc_needs_belf+:} false; then :
  8683. $as_echo_n "(cached) " >&6
  8684. else
  8685. ac_ext=c
  8686. ac_cpp='$CPP $CPPFLAGS'
  8687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8691. /* end confdefs.h. */
  8692. int
  8693. main ()
  8694. {
  8695. ;
  8696. return 0;
  8697. }
  8698. _ACEOF
  8699. if ac_fn_c_try_link "$LINENO"; then :
  8700. lt_cv_cc_needs_belf=yes
  8701. else
  8702. lt_cv_cc_needs_belf=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext \
  8705. conftest$ac_exeext conftest.$ac_ext
  8706. ac_ext=c
  8707. ac_cpp='$CPP $CPPFLAGS'
  8708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8713. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8714. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8715. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8716. CFLAGS="$SAVE_CFLAGS"
  8717. fi
  8718. ;;
  8719. *-*solaris*)
  8720. # Find out which ABI we are using.
  8721. echo 'int i;' > conftest.$ac_ext
  8722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8723. (eval $ac_compile) 2>&5
  8724. ac_status=$?
  8725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8726. test $ac_status = 0; }; then
  8727. case `/usr/bin/file conftest.o` in
  8728. *64-bit*)
  8729. case $lt_cv_prog_gnu_ld in
  8730. yes*)
  8731. case $host in
  8732. i?86-*-solaris*)
  8733. LD="${LD-ld} -m elf_x86_64"
  8734. ;;
  8735. sparc*-*-solaris*)
  8736. LD="${LD-ld} -m elf64_sparc"
  8737. ;;
  8738. esac
  8739. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8740. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8741. LD="${LD-ld}_sol2"
  8742. fi
  8743. ;;
  8744. *)
  8745. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8746. LD="${LD-ld} -64"
  8747. fi
  8748. ;;
  8749. esac
  8750. ;;
  8751. esac
  8752. fi
  8753. rm -rf conftest*
  8754. ;;
  8755. esac
  8756. need_locks="$enable_libtool_lock"
  8757. if test -n "$ac_tool_prefix"; then
  8758. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8759. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8761. $as_echo_n "checking for $ac_word... " >&6; }
  8762. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. if test -n "$MANIFEST_TOOL"; then
  8766. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8767. else
  8768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8769. for as_dir in $PATH
  8770. do
  8771. IFS=$as_save_IFS
  8772. test -z "$as_dir" && as_dir=.
  8773. for ac_exec_ext in '' $ac_executable_extensions; do
  8774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8775. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8777. break 2
  8778. fi
  8779. done
  8780. done
  8781. IFS=$as_save_IFS
  8782. fi
  8783. fi
  8784. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8785. if test -n "$MANIFEST_TOOL"; then
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8787. $as_echo "$MANIFEST_TOOL" >&6; }
  8788. else
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8790. $as_echo "no" >&6; }
  8791. fi
  8792. fi
  8793. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8794. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8795. # Extract the first word of "mt", so it can be a program name with args.
  8796. set dummy mt; ac_word=$2
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8798. $as_echo_n "checking for $ac_word... " >&6; }
  8799. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8800. $as_echo_n "(cached) " >&6
  8801. else
  8802. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8803. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8804. else
  8805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8806. for as_dir in $PATH
  8807. do
  8808. IFS=$as_save_IFS
  8809. test -z "$as_dir" && as_dir=.
  8810. for ac_exec_ext in '' $ac_executable_extensions; do
  8811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8812. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8814. break 2
  8815. fi
  8816. done
  8817. done
  8818. IFS=$as_save_IFS
  8819. fi
  8820. fi
  8821. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8822. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8824. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8825. else
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8827. $as_echo "no" >&6; }
  8828. fi
  8829. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8830. MANIFEST_TOOL=":"
  8831. else
  8832. case $cross_compiling:$ac_tool_warned in
  8833. yes:)
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8836. ac_tool_warned=yes ;;
  8837. esac
  8838. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8839. fi
  8840. else
  8841. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8842. fi
  8843. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8845. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8846. if ${lt_cv_path_mainfest_tool+:} false; then :
  8847. $as_echo_n "(cached) " >&6
  8848. else
  8849. lt_cv_path_mainfest_tool=no
  8850. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8851. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8852. cat conftest.err >&5
  8853. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8854. lt_cv_path_mainfest_tool=yes
  8855. fi
  8856. rm -f conftest*
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8859. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8860. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8861. MANIFEST_TOOL=:
  8862. fi
  8863. case $host_os in
  8864. rhapsody* | darwin*)
  8865. if test -n "$ac_tool_prefix"; then
  8866. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8867. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8869. $as_echo_n "checking for $ac_word... " >&6; }
  8870. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. if test -n "$DSYMUTIL"; then
  8874. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8875. else
  8876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8877. for as_dir in $PATH
  8878. do
  8879. IFS=$as_save_IFS
  8880. test -z "$as_dir" && as_dir=.
  8881. for ac_exec_ext in '' $ac_executable_extensions; do
  8882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8883. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8885. break 2
  8886. fi
  8887. done
  8888. done
  8889. IFS=$as_save_IFS
  8890. fi
  8891. fi
  8892. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8893. if test -n "$DSYMUTIL"; then
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8895. $as_echo "$DSYMUTIL" >&6; }
  8896. else
  8897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8898. $as_echo "no" >&6; }
  8899. fi
  8900. fi
  8901. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8902. ac_ct_DSYMUTIL=$DSYMUTIL
  8903. # Extract the first word of "dsymutil", so it can be a program name with args.
  8904. set dummy dsymutil; ac_word=$2
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8906. $as_echo_n "checking for $ac_word... " >&6; }
  8907. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. if test -n "$ac_ct_DSYMUTIL"; then
  8911. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8920. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8930. if test -n "$ac_ct_DSYMUTIL"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8932. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8933. else
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8935. $as_echo "no" >&6; }
  8936. fi
  8937. if test "x$ac_ct_DSYMUTIL" = x; then
  8938. DSYMUTIL=":"
  8939. else
  8940. case $cross_compiling:$ac_tool_warned in
  8941. yes:)
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8944. ac_tool_warned=yes ;;
  8945. esac
  8946. DSYMUTIL=$ac_ct_DSYMUTIL
  8947. fi
  8948. else
  8949. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8950. fi
  8951. if test -n "$ac_tool_prefix"; then
  8952. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8953. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8955. $as_echo_n "checking for $ac_word... " >&6; }
  8956. if ${ac_cv_prog_NMEDIT+:} false; then :
  8957. $as_echo_n "(cached) " >&6
  8958. else
  8959. if test -n "$NMEDIT"; then
  8960. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8961. else
  8962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8963. for as_dir in $PATH
  8964. do
  8965. IFS=$as_save_IFS
  8966. test -z "$as_dir" && as_dir=.
  8967. for ac_exec_ext in '' $ac_executable_extensions; do
  8968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8969. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8971. break 2
  8972. fi
  8973. done
  8974. done
  8975. IFS=$as_save_IFS
  8976. fi
  8977. fi
  8978. NMEDIT=$ac_cv_prog_NMEDIT
  8979. if test -n "$NMEDIT"; then
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8981. $as_echo "$NMEDIT" >&6; }
  8982. else
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8984. $as_echo "no" >&6; }
  8985. fi
  8986. fi
  8987. if test -z "$ac_cv_prog_NMEDIT"; then
  8988. ac_ct_NMEDIT=$NMEDIT
  8989. # Extract the first word of "nmedit", so it can be a program name with args.
  8990. set dummy nmedit; ac_word=$2
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8992. $as_echo_n "checking for $ac_word... " >&6; }
  8993. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. if test -n "$ac_ct_NMEDIT"; then
  8997. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8998. else
  8999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9000. for as_dir in $PATH
  9001. do
  9002. IFS=$as_save_IFS
  9003. test -z "$as_dir" && as_dir=.
  9004. for ac_exec_ext in '' $ac_executable_extensions; do
  9005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9006. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9008. break 2
  9009. fi
  9010. done
  9011. done
  9012. IFS=$as_save_IFS
  9013. fi
  9014. fi
  9015. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9016. if test -n "$ac_ct_NMEDIT"; then
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9018. $as_echo "$ac_ct_NMEDIT" >&6; }
  9019. else
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9021. $as_echo "no" >&6; }
  9022. fi
  9023. if test "x$ac_ct_NMEDIT" = x; then
  9024. NMEDIT=":"
  9025. else
  9026. case $cross_compiling:$ac_tool_warned in
  9027. yes:)
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9030. ac_tool_warned=yes ;;
  9031. esac
  9032. NMEDIT=$ac_ct_NMEDIT
  9033. fi
  9034. else
  9035. NMEDIT="$ac_cv_prog_NMEDIT"
  9036. fi
  9037. if test -n "$ac_tool_prefix"; then
  9038. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9039. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9041. $as_echo_n "checking for $ac_word... " >&6; }
  9042. if ${ac_cv_prog_LIPO+:} false; then :
  9043. $as_echo_n "(cached) " >&6
  9044. else
  9045. if test -n "$LIPO"; then
  9046. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9047. else
  9048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9049. for as_dir in $PATH
  9050. do
  9051. IFS=$as_save_IFS
  9052. test -z "$as_dir" && as_dir=.
  9053. for ac_exec_ext in '' $ac_executable_extensions; do
  9054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9055. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9057. break 2
  9058. fi
  9059. done
  9060. done
  9061. IFS=$as_save_IFS
  9062. fi
  9063. fi
  9064. LIPO=$ac_cv_prog_LIPO
  9065. if test -n "$LIPO"; then
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9067. $as_echo "$LIPO" >&6; }
  9068. else
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9070. $as_echo "no" >&6; }
  9071. fi
  9072. fi
  9073. if test -z "$ac_cv_prog_LIPO"; then
  9074. ac_ct_LIPO=$LIPO
  9075. # Extract the first word of "lipo", so it can be a program name with args.
  9076. set dummy lipo; ac_word=$2
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9078. $as_echo_n "checking for $ac_word... " >&6; }
  9079. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9080. $as_echo_n "(cached) " >&6
  9081. else
  9082. if test -n "$ac_ct_LIPO"; then
  9083. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9084. else
  9085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9086. for as_dir in $PATH
  9087. do
  9088. IFS=$as_save_IFS
  9089. test -z "$as_dir" && as_dir=.
  9090. for ac_exec_ext in '' $ac_executable_extensions; do
  9091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9092. ac_cv_prog_ac_ct_LIPO="lipo"
  9093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9094. break 2
  9095. fi
  9096. done
  9097. done
  9098. IFS=$as_save_IFS
  9099. fi
  9100. fi
  9101. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9102. if test -n "$ac_ct_LIPO"; then
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9104. $as_echo "$ac_ct_LIPO" >&6; }
  9105. else
  9106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9107. $as_echo "no" >&6; }
  9108. fi
  9109. if test "x$ac_ct_LIPO" = x; then
  9110. LIPO=":"
  9111. else
  9112. case $cross_compiling:$ac_tool_warned in
  9113. yes:)
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9116. ac_tool_warned=yes ;;
  9117. esac
  9118. LIPO=$ac_ct_LIPO
  9119. fi
  9120. else
  9121. LIPO="$ac_cv_prog_LIPO"
  9122. fi
  9123. if test -n "$ac_tool_prefix"; then
  9124. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9125. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9127. $as_echo_n "checking for $ac_word... " >&6; }
  9128. if ${ac_cv_prog_OTOOL+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. if test -n "$OTOOL"; then
  9132. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9133. else
  9134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9135. for as_dir in $PATH
  9136. do
  9137. IFS=$as_save_IFS
  9138. test -z "$as_dir" && as_dir=.
  9139. for ac_exec_ext in '' $ac_executable_extensions; do
  9140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9141. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9143. break 2
  9144. fi
  9145. done
  9146. done
  9147. IFS=$as_save_IFS
  9148. fi
  9149. fi
  9150. OTOOL=$ac_cv_prog_OTOOL
  9151. if test -n "$OTOOL"; then
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9153. $as_echo "$OTOOL" >&6; }
  9154. else
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9156. $as_echo "no" >&6; }
  9157. fi
  9158. fi
  9159. if test -z "$ac_cv_prog_OTOOL"; then
  9160. ac_ct_OTOOL=$OTOOL
  9161. # Extract the first word of "otool", so it can be a program name with args.
  9162. set dummy otool; ac_word=$2
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9164. $as_echo_n "checking for $ac_word... " >&6; }
  9165. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9166. $as_echo_n "(cached) " >&6
  9167. else
  9168. if test -n "$ac_ct_OTOOL"; then
  9169. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9170. else
  9171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9172. for as_dir in $PATH
  9173. do
  9174. IFS=$as_save_IFS
  9175. test -z "$as_dir" && as_dir=.
  9176. for ac_exec_ext in '' $ac_executable_extensions; do
  9177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9178. ac_cv_prog_ac_ct_OTOOL="otool"
  9179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9180. break 2
  9181. fi
  9182. done
  9183. done
  9184. IFS=$as_save_IFS
  9185. fi
  9186. fi
  9187. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9188. if test -n "$ac_ct_OTOOL"; then
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9190. $as_echo "$ac_ct_OTOOL" >&6; }
  9191. else
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9193. $as_echo "no" >&6; }
  9194. fi
  9195. if test "x$ac_ct_OTOOL" = x; then
  9196. OTOOL=":"
  9197. else
  9198. case $cross_compiling:$ac_tool_warned in
  9199. yes:)
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9202. ac_tool_warned=yes ;;
  9203. esac
  9204. OTOOL=$ac_ct_OTOOL
  9205. fi
  9206. else
  9207. OTOOL="$ac_cv_prog_OTOOL"
  9208. fi
  9209. if test -n "$ac_tool_prefix"; then
  9210. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9211. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9213. $as_echo_n "checking for $ac_word... " >&6; }
  9214. if ${ac_cv_prog_OTOOL64+:} false; then :
  9215. $as_echo_n "(cached) " >&6
  9216. else
  9217. if test -n "$OTOOL64"; then
  9218. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9219. else
  9220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9221. for as_dir in $PATH
  9222. do
  9223. IFS=$as_save_IFS
  9224. test -z "$as_dir" && as_dir=.
  9225. for ac_exec_ext in '' $ac_executable_extensions; do
  9226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9227. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9229. break 2
  9230. fi
  9231. done
  9232. done
  9233. IFS=$as_save_IFS
  9234. fi
  9235. fi
  9236. OTOOL64=$ac_cv_prog_OTOOL64
  9237. if test -n "$OTOOL64"; then
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9239. $as_echo "$OTOOL64" >&6; }
  9240. else
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9242. $as_echo "no" >&6; }
  9243. fi
  9244. fi
  9245. if test -z "$ac_cv_prog_OTOOL64"; then
  9246. ac_ct_OTOOL64=$OTOOL64
  9247. # Extract the first word of "otool64", so it can be a program name with args.
  9248. set dummy otool64; ac_word=$2
  9249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9250. $as_echo_n "checking for $ac_word... " >&6; }
  9251. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9252. $as_echo_n "(cached) " >&6
  9253. else
  9254. if test -n "$ac_ct_OTOOL64"; then
  9255. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9256. else
  9257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9258. for as_dir in $PATH
  9259. do
  9260. IFS=$as_save_IFS
  9261. test -z "$as_dir" && as_dir=.
  9262. for ac_exec_ext in '' $ac_executable_extensions; do
  9263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9264. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9266. break 2
  9267. fi
  9268. done
  9269. done
  9270. IFS=$as_save_IFS
  9271. fi
  9272. fi
  9273. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9274. if test -n "$ac_ct_OTOOL64"; then
  9275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9276. $as_echo "$ac_ct_OTOOL64" >&6; }
  9277. else
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9279. $as_echo "no" >&6; }
  9280. fi
  9281. if test "x$ac_ct_OTOOL64" = x; then
  9282. OTOOL64=":"
  9283. else
  9284. case $cross_compiling:$ac_tool_warned in
  9285. yes:)
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9288. ac_tool_warned=yes ;;
  9289. esac
  9290. OTOOL64=$ac_ct_OTOOL64
  9291. fi
  9292. else
  9293. OTOOL64="$ac_cv_prog_OTOOL64"
  9294. fi
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9296. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9297. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9298. $as_echo_n "(cached) " >&6
  9299. else
  9300. lt_cv_apple_cc_single_mod=no
  9301. if test -z "${LT_MULTI_MODULE}"; then
  9302. # By default we will add the -single_module flag. You can override
  9303. # by either setting the environment variable LT_MULTI_MODULE
  9304. # non-empty at configure time, or by adding -multi_module to the
  9305. # link flags.
  9306. rm -rf libconftest.dylib*
  9307. echo "int foo(void){return 1;}" > conftest.c
  9308. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9309. -dynamiclib -Wl,-single_module conftest.c" >&5
  9310. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9311. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9312. _lt_result=$?
  9313. # If there is a non-empty error log, and "single_module"
  9314. # appears in it, assume the flag caused a linker warning
  9315. if test -s conftest.err && $GREP single_module conftest.err; then
  9316. cat conftest.err >&5
  9317. # Otherwise, if the output was created with a 0 exit code from
  9318. # the compiler, it worked.
  9319. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  9320. lt_cv_apple_cc_single_mod=yes
  9321. else
  9322. cat conftest.err >&5
  9323. fi
  9324. rm -rf libconftest.dylib*
  9325. rm -f conftest.*
  9326. fi
  9327. fi
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9329. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9331. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9332. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9333. $as_echo_n "(cached) " >&6
  9334. else
  9335. lt_cv_ld_exported_symbols_list=no
  9336. save_LDFLAGS=$LDFLAGS
  9337. echo "_main" > conftest.sym
  9338. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9340. /* end confdefs.h. */
  9341. int
  9342. main ()
  9343. {
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. if ac_fn_c_try_link "$LINENO"; then :
  9349. lt_cv_ld_exported_symbols_list=yes
  9350. else
  9351. lt_cv_ld_exported_symbols_list=no
  9352. fi
  9353. rm -f core conftest.err conftest.$ac_objext \
  9354. conftest$ac_exeext conftest.$ac_ext
  9355. LDFLAGS="$save_LDFLAGS"
  9356. fi
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9358. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9360. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9361. if ${lt_cv_ld_force_load+:} false; then :
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. lt_cv_ld_force_load=no
  9365. cat > conftest.c << _LT_EOF
  9366. int forced_loaded() { return 2;}
  9367. _LT_EOF
  9368. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9369. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9370. echo "$AR cru libconftest.a conftest.o" >&5
  9371. $AR cru libconftest.a conftest.o 2>&5
  9372. echo "$RANLIB libconftest.a" >&5
  9373. $RANLIB libconftest.a 2>&5
  9374. cat > conftest.c << _LT_EOF
  9375. int main() { return 0;}
  9376. _LT_EOF
  9377. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9378. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9379. _lt_result=$?
  9380. if test -s conftest.err && $GREP force_load conftest.err; then
  9381. cat conftest.err >&5
  9382. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  9383. lt_cv_ld_force_load=yes
  9384. else
  9385. cat conftest.err >&5
  9386. fi
  9387. rm -f conftest.err libconftest.a conftest conftest.c
  9388. rm -rf conftest.dSYM
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9391. $as_echo "$lt_cv_ld_force_load" >&6; }
  9392. case $host_os in
  9393. rhapsody* | darwin1.[012])
  9394. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9395. darwin1.*)
  9396. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9397. darwin*) # darwin 5.x on
  9398. # if running on 10.5 or later, the deployment target defaults
  9399. # to the OS version, if on x86, and 10.4, the deployment
  9400. # target defaults to 10.4. Don't you love it?
  9401. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9402. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9403. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9404. 10.[012]*)
  9405. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9406. 10.*)
  9407. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9408. esac
  9409. ;;
  9410. esac
  9411. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9412. _lt_dar_single_mod='$single_module'
  9413. fi
  9414. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9415. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9416. else
  9417. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9418. fi
  9419. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  9420. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9421. else
  9422. _lt_dsymutil=
  9423. fi
  9424. ;;
  9425. esac
  9426. for ac_header in dlfcn.h
  9427. do :
  9428. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9429. "
  9430. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9431. cat >>confdefs.h <<_ACEOF
  9432. #define HAVE_DLFCN_H 1
  9433. _ACEOF
  9434. fi
  9435. done
  9436. # Set options
  9437. # Check whether --enable-shared was given.
  9438. if test "${enable_shared+set}" = set; then :
  9439. enableval=$enable_shared; p=${PACKAGE-default}
  9440. case $enableval in
  9441. yes) enable_shared=yes ;;
  9442. no) enable_shared=no ;;
  9443. *)
  9444. enable_shared=no
  9445. # Look at the argument we got. We use all the common list separators.
  9446. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9447. for pkg in $enableval; do
  9448. IFS="$lt_save_ifs"
  9449. if test "X$pkg" = "X$p"; then
  9450. enable_shared=yes
  9451. fi
  9452. done
  9453. IFS="$lt_save_ifs"
  9454. ;;
  9455. esac
  9456. else
  9457. enable_shared=no
  9458. fi
  9459. enable_win32_dll=yes
  9460. case $host in
  9461. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  9462. if test -n "$ac_tool_prefix"; then
  9463. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  9464. set dummy ${ac_tool_prefix}as; ac_word=$2
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9466. $as_echo_n "checking for $ac_word... " >&6; }
  9467. if ${ac_cv_prog_AS+:} false; then :
  9468. $as_echo_n "(cached) " >&6
  9469. else
  9470. if test -n "$AS"; then
  9471. ac_cv_prog_AS="$AS" # Let the user override the test.
  9472. else
  9473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9474. for as_dir in $PATH
  9475. do
  9476. IFS=$as_save_IFS
  9477. test -z "$as_dir" && as_dir=.
  9478. for ac_exec_ext in '' $ac_executable_extensions; do
  9479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9480. ac_cv_prog_AS="${ac_tool_prefix}as"
  9481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9482. break 2
  9483. fi
  9484. done
  9485. done
  9486. IFS=$as_save_IFS
  9487. fi
  9488. fi
  9489. AS=$ac_cv_prog_AS
  9490. if test -n "$AS"; then
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9492. $as_echo "$AS" >&6; }
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9495. $as_echo "no" >&6; }
  9496. fi
  9497. fi
  9498. if test -z "$ac_cv_prog_AS"; then
  9499. ac_ct_AS=$AS
  9500. # Extract the first word of "as", so it can be a program name with args.
  9501. set dummy as; ac_word=$2
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9503. $as_echo_n "checking for $ac_word... " >&6; }
  9504. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  9505. $as_echo_n "(cached) " >&6
  9506. else
  9507. if test -n "$ac_ct_AS"; then
  9508. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  9509. else
  9510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9511. for as_dir in $PATH
  9512. do
  9513. IFS=$as_save_IFS
  9514. test -z "$as_dir" && as_dir=.
  9515. for ac_exec_ext in '' $ac_executable_extensions; do
  9516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9517. ac_cv_prog_ac_ct_AS="as"
  9518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9519. break 2
  9520. fi
  9521. done
  9522. done
  9523. IFS=$as_save_IFS
  9524. fi
  9525. fi
  9526. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  9527. if test -n "$ac_ct_AS"; then
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  9529. $as_echo "$ac_ct_AS" >&6; }
  9530. else
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9532. $as_echo "no" >&6; }
  9533. fi
  9534. if test "x$ac_ct_AS" = x; then
  9535. AS="false"
  9536. else
  9537. case $cross_compiling:$ac_tool_warned in
  9538. yes:)
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9541. ac_tool_warned=yes ;;
  9542. esac
  9543. AS=$ac_ct_AS
  9544. fi
  9545. else
  9546. AS="$ac_cv_prog_AS"
  9547. fi
  9548. if test -n "$ac_tool_prefix"; then
  9549. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9550. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9552. $as_echo_n "checking for $ac_word... " >&6; }
  9553. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9554. $as_echo_n "(cached) " >&6
  9555. else
  9556. if test -n "$DLLTOOL"; then
  9557. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9558. else
  9559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9560. for as_dir in $PATH
  9561. do
  9562. IFS=$as_save_IFS
  9563. test -z "$as_dir" && as_dir=.
  9564. for ac_exec_ext in '' $ac_executable_extensions; do
  9565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9566. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9568. break 2
  9569. fi
  9570. done
  9571. done
  9572. IFS=$as_save_IFS
  9573. fi
  9574. fi
  9575. DLLTOOL=$ac_cv_prog_DLLTOOL
  9576. if test -n "$DLLTOOL"; then
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9578. $as_echo "$DLLTOOL" >&6; }
  9579. else
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9581. $as_echo "no" >&6; }
  9582. fi
  9583. fi
  9584. if test -z "$ac_cv_prog_DLLTOOL"; then
  9585. ac_ct_DLLTOOL=$DLLTOOL
  9586. # Extract the first word of "dlltool", so it can be a program name with args.
  9587. set dummy dlltool; ac_word=$2
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9589. $as_echo_n "checking for $ac_word... " >&6; }
  9590. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. if test -n "$ac_ct_DLLTOOL"; then
  9594. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9595. else
  9596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9597. for as_dir in $PATH
  9598. do
  9599. IFS=$as_save_IFS
  9600. test -z "$as_dir" && as_dir=.
  9601. for ac_exec_ext in '' $ac_executable_extensions; do
  9602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9603. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9605. break 2
  9606. fi
  9607. done
  9608. done
  9609. IFS=$as_save_IFS
  9610. fi
  9611. fi
  9612. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9613. if test -n "$ac_ct_DLLTOOL"; then
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9615. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9616. else
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9618. $as_echo "no" >&6; }
  9619. fi
  9620. if test "x$ac_ct_DLLTOOL" = x; then
  9621. DLLTOOL="false"
  9622. else
  9623. case $cross_compiling:$ac_tool_warned in
  9624. yes:)
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9627. ac_tool_warned=yes ;;
  9628. esac
  9629. DLLTOOL=$ac_ct_DLLTOOL
  9630. fi
  9631. else
  9632. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9633. fi
  9634. if test -n "$ac_tool_prefix"; then
  9635. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9636. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9638. $as_echo_n "checking for $ac_word... " >&6; }
  9639. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. if test -n "$OBJDUMP"; then
  9643. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9644. else
  9645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9646. for as_dir in $PATH
  9647. do
  9648. IFS=$as_save_IFS
  9649. test -z "$as_dir" && as_dir=.
  9650. for ac_exec_ext in '' $ac_executable_extensions; do
  9651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9652. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9654. break 2
  9655. fi
  9656. done
  9657. done
  9658. IFS=$as_save_IFS
  9659. fi
  9660. fi
  9661. OBJDUMP=$ac_cv_prog_OBJDUMP
  9662. if test -n "$OBJDUMP"; then
  9663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9664. $as_echo "$OBJDUMP" >&6; }
  9665. else
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9667. $as_echo "no" >&6; }
  9668. fi
  9669. fi
  9670. if test -z "$ac_cv_prog_OBJDUMP"; then
  9671. ac_ct_OBJDUMP=$OBJDUMP
  9672. # Extract the first word of "objdump", so it can be a program name with args.
  9673. set dummy objdump; ac_word=$2
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9675. $as_echo_n "checking for $ac_word... " >&6; }
  9676. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9677. $as_echo_n "(cached) " >&6
  9678. else
  9679. if test -n "$ac_ct_OBJDUMP"; then
  9680. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9681. else
  9682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9683. for as_dir in $PATH
  9684. do
  9685. IFS=$as_save_IFS
  9686. test -z "$as_dir" && as_dir=.
  9687. for ac_exec_ext in '' $ac_executable_extensions; do
  9688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9689. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9691. break 2
  9692. fi
  9693. done
  9694. done
  9695. IFS=$as_save_IFS
  9696. fi
  9697. fi
  9698. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9699. if test -n "$ac_ct_OBJDUMP"; then
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9701. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9702. else
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9704. $as_echo "no" >&6; }
  9705. fi
  9706. if test "x$ac_ct_OBJDUMP" = x; then
  9707. OBJDUMP="false"
  9708. else
  9709. case $cross_compiling:$ac_tool_warned in
  9710. yes:)
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9713. ac_tool_warned=yes ;;
  9714. esac
  9715. OBJDUMP=$ac_ct_OBJDUMP
  9716. fi
  9717. else
  9718. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9719. fi
  9720. ;;
  9721. esac
  9722. test -z "$AS" && AS=as
  9723. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9724. test -z "$OBJDUMP" && OBJDUMP=objdump
  9725. # Check whether --enable-static was given.
  9726. if test "${enable_static+set}" = set; then :
  9727. enableval=$enable_static; p=${PACKAGE-default}
  9728. case $enableval in
  9729. yes) enable_static=yes ;;
  9730. no) enable_static=no ;;
  9731. *)
  9732. enable_static=no
  9733. # Look at the argument we got. We use all the common list separators.
  9734. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9735. for pkg in $enableval; do
  9736. IFS="$lt_save_ifs"
  9737. if test "X$pkg" = "X$p"; then
  9738. enable_static=yes
  9739. fi
  9740. done
  9741. IFS="$lt_save_ifs"
  9742. ;;
  9743. esac
  9744. else
  9745. enable_static=yes
  9746. fi
  9747. # Check whether --with-pic was given.
  9748. if test "${with_pic+set}" = set; then :
  9749. withval=$with_pic; lt_p=${PACKAGE-default}
  9750. case $withval in
  9751. yes|no) pic_mode=$withval ;;
  9752. *)
  9753. pic_mode=default
  9754. # Look at the argument we got. We use all the common list separators.
  9755. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9756. for lt_pkg in $withval; do
  9757. IFS="$lt_save_ifs"
  9758. if test "X$lt_pkg" = "X$lt_p"; then
  9759. pic_mode=yes
  9760. fi
  9761. done
  9762. IFS="$lt_save_ifs"
  9763. ;;
  9764. esac
  9765. else
  9766. pic_mode=default
  9767. fi
  9768. test -z "$pic_mode" && pic_mode=default
  9769. # Check whether --enable-fast-install was given.
  9770. if test "${enable_fast_install+set}" = set; then :
  9771. enableval=$enable_fast_install; p=${PACKAGE-default}
  9772. case $enableval in
  9773. yes) enable_fast_install=yes ;;
  9774. no) enable_fast_install=no ;;
  9775. *)
  9776. enable_fast_install=no
  9777. # Look at the argument we got. We use all the common list separators.
  9778. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9779. for pkg in $enableval; do
  9780. IFS="$lt_save_ifs"
  9781. if test "X$pkg" = "X$p"; then
  9782. enable_fast_install=yes
  9783. fi
  9784. done
  9785. IFS="$lt_save_ifs"
  9786. ;;
  9787. esac
  9788. else
  9789. enable_fast_install=yes
  9790. fi
  9791. # This can be used to rebuild libtool when needed
  9792. LIBTOOL_DEPS="$ltmain"
  9793. # Always use our own libtool.
  9794. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9795. test -z "$LN_S" && LN_S="ln -s"
  9796. if test -n "${ZSH_VERSION+set}" ; then
  9797. setopt NO_GLOB_SUBST
  9798. fi
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9800. $as_echo_n "checking for objdir... " >&6; }
  9801. if ${lt_cv_objdir+:} false; then :
  9802. $as_echo_n "(cached) " >&6
  9803. else
  9804. rm -f .libs 2>/dev/null
  9805. mkdir .libs 2>/dev/null
  9806. if test -d .libs; then
  9807. lt_cv_objdir=.libs
  9808. else
  9809. # MS-DOS does not allow filenames that begin with a dot.
  9810. lt_cv_objdir=_libs
  9811. fi
  9812. rmdir .libs 2>/dev/null
  9813. fi
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9815. $as_echo "$lt_cv_objdir" >&6; }
  9816. objdir=$lt_cv_objdir
  9817. cat >>confdefs.h <<_ACEOF
  9818. #define LT_OBJDIR "$lt_cv_objdir/"
  9819. _ACEOF
  9820. case $host_os in
  9821. aix3*)
  9822. # AIX sometimes has problems with the GCC collect2 program. For some
  9823. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9824. # vanish in a puff of smoke.
  9825. if test "X${COLLECT_NAMES+set}" != Xset; then
  9826. COLLECT_NAMES=
  9827. export COLLECT_NAMES
  9828. fi
  9829. ;;
  9830. esac
  9831. # Global variables:
  9832. ofile=libtool
  9833. can_build_shared=yes
  9834. # All known linkers require a `.a' archive for static linking (except MSVC,
  9835. # which needs '.lib').
  9836. libext=a
  9837. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9838. old_CC="$CC"
  9839. old_CFLAGS="$CFLAGS"
  9840. # Set sane defaults for various variables
  9841. test -z "$CC" && CC=cc
  9842. test -z "$LTCC" && LTCC=$CC
  9843. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9844. test -z "$LD" && LD=ld
  9845. test -z "$ac_objext" && ac_objext=o
  9846. for cc_temp in $compiler""; do
  9847. case $cc_temp in
  9848. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9849. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9850. \-*) ;;
  9851. *) break;;
  9852. esac
  9853. done
  9854. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9855. # Only perform the check for file, if the check method requires it
  9856. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9857. case $deplibs_check_method in
  9858. file_magic*)
  9859. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9861. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9862. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. case $MAGIC_CMD in
  9866. [\\/*] | ?:[\\/]*)
  9867. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9868. ;;
  9869. *)
  9870. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9871. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9872. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9873. for ac_dir in $ac_dummy; do
  9874. IFS="$lt_save_ifs"
  9875. test -z "$ac_dir" && ac_dir=.
  9876. if test -f $ac_dir/${ac_tool_prefix}file; then
  9877. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9878. if test -n "$file_magic_test_file"; then
  9879. case $deplibs_check_method in
  9880. "file_magic "*)
  9881. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9882. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9883. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9884. $EGREP "$file_magic_regex" > /dev/null; then
  9885. :
  9886. else
  9887. cat <<_LT_EOF 1>&2
  9888. *** Warning: the command libtool uses to detect shared libraries,
  9889. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9890. *** The result is that libtool may fail to recognize shared libraries
  9891. *** as such. This will affect the creation of libtool libraries that
  9892. *** depend on shared libraries, but programs linked with such libtool
  9893. *** libraries will work regardless of this problem. Nevertheless, you
  9894. *** may want to report the problem to your system manager and/or to
  9895. *** bug-libtool@gnu.org
  9896. _LT_EOF
  9897. fi ;;
  9898. esac
  9899. fi
  9900. break
  9901. fi
  9902. done
  9903. IFS="$lt_save_ifs"
  9904. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9905. ;;
  9906. esac
  9907. fi
  9908. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9909. if test -n "$MAGIC_CMD"; then
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9911. $as_echo "$MAGIC_CMD" >&6; }
  9912. else
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9914. $as_echo "no" >&6; }
  9915. fi
  9916. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9917. if test -n "$ac_tool_prefix"; then
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9919. $as_echo_n "checking for file... " >&6; }
  9920. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. case $MAGIC_CMD in
  9924. [\\/*] | ?:[\\/]*)
  9925. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9926. ;;
  9927. *)
  9928. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9930. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9931. for ac_dir in $ac_dummy; do
  9932. IFS="$lt_save_ifs"
  9933. test -z "$ac_dir" && ac_dir=.
  9934. if test -f $ac_dir/file; then
  9935. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9936. if test -n "$file_magic_test_file"; then
  9937. case $deplibs_check_method in
  9938. "file_magic "*)
  9939. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9940. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9941. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9942. $EGREP "$file_magic_regex" > /dev/null; then
  9943. :
  9944. else
  9945. cat <<_LT_EOF 1>&2
  9946. *** Warning: the command libtool uses to detect shared libraries,
  9947. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9948. *** The result is that libtool may fail to recognize shared libraries
  9949. *** as such. This will affect the creation of libtool libraries that
  9950. *** depend on shared libraries, but programs linked with such libtool
  9951. *** libraries will work regardless of this problem. Nevertheless, you
  9952. *** may want to report the problem to your system manager and/or to
  9953. *** bug-libtool@gnu.org
  9954. _LT_EOF
  9955. fi ;;
  9956. esac
  9957. fi
  9958. break
  9959. fi
  9960. done
  9961. IFS="$lt_save_ifs"
  9962. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9963. ;;
  9964. esac
  9965. fi
  9966. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9967. if test -n "$MAGIC_CMD"; then
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9969. $as_echo "$MAGIC_CMD" >&6; }
  9970. else
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9972. $as_echo "no" >&6; }
  9973. fi
  9974. else
  9975. MAGIC_CMD=:
  9976. fi
  9977. fi
  9978. fi
  9979. ;;
  9980. esac
  9981. # Use C for the default configuration in the libtool script
  9982. lt_save_CC="$CC"
  9983. ac_ext=c
  9984. ac_cpp='$CPP $CPPFLAGS'
  9985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9988. # Source file extension for C test sources.
  9989. ac_ext=c
  9990. # Object file extension for compiled C test sources.
  9991. objext=o
  9992. objext=$objext
  9993. # Code to be used in simple compile tests
  9994. lt_simple_compile_test_code="int some_variable = 0;"
  9995. # Code to be used in simple link tests
  9996. lt_simple_link_test_code='int main(){return(0);}'
  9997. # If no C compiler was specified, use CC.
  9998. LTCC=${LTCC-"$CC"}
  9999. # If no C compiler flags were specified, use CFLAGS.
  10000. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10001. # Allow CC to be a program name with arguments.
  10002. compiler=$CC
  10003. # Save the default compiler, since it gets overwritten when the other
  10004. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10005. compiler_DEFAULT=$CC
  10006. # save warnings/boilerplate of simple test code
  10007. ac_outfile=conftest.$ac_objext
  10008. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10009. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10010. _lt_compiler_boilerplate=`cat conftest.err`
  10011. $RM conftest*
  10012. ac_outfile=conftest.$ac_objext
  10013. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10014. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10015. _lt_linker_boilerplate=`cat conftest.err`
  10016. $RM -r conftest*
  10017. ## CAVEAT EMPTOR:
  10018. ## There is no encapsulation within the following macros, do not change
  10019. ## the running order or otherwise move them around unless you know exactly
  10020. ## what you are doing...
  10021. if test -n "$compiler"; then
  10022. lt_prog_compiler_no_builtin_flag=
  10023. if test "$GCC" = yes; then
  10024. case $cc_basename in
  10025. nvcc*)
  10026. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10027. *)
  10028. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10029. esac
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10031. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10032. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10033. $as_echo_n "(cached) " >&6
  10034. else
  10035. lt_cv_prog_compiler_rtti_exceptions=no
  10036. ac_outfile=conftest.$ac_objext
  10037. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10038. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10039. # Insert the option either (1) after the last *FLAGS variable, or
  10040. # (2) before a word containing "conftest.", or (3) at the end.
  10041. # Note that $ac_compile itself does not contain backslashes and begins
  10042. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10043. # The option is referenced via a variable to avoid confusing sed.
  10044. lt_compile=`echo "$ac_compile" | $SED \
  10045. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10046. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10047. -e 's:$: $lt_compiler_flag:'`
  10048. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10049. (eval "$lt_compile" 2>conftest.err)
  10050. ac_status=$?
  10051. cat conftest.err >&5
  10052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. if (exit $ac_status) && test -s "$ac_outfile"; then
  10054. # The compiler can only warn and ignore the option if not recognized
  10055. # So say no if there are warnings other than the usual output.
  10056. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10057. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10058. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10059. lt_cv_prog_compiler_rtti_exceptions=yes
  10060. fi
  10061. fi
  10062. $RM conftest*
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10065. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10066. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10067. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10068. else
  10069. :
  10070. fi
  10071. fi
  10072. lt_prog_compiler_wl=
  10073. lt_prog_compiler_pic=
  10074. lt_prog_compiler_static=
  10075. if test "$GCC" = yes; then
  10076. lt_prog_compiler_wl='-Wl,'
  10077. lt_prog_compiler_static='-static'
  10078. case $host_os in
  10079. aix*)
  10080. # All AIX code is PIC.
  10081. if test "$host_cpu" = ia64; then
  10082. # AIX 5 now supports IA64 processor
  10083. lt_prog_compiler_static='-Bstatic'
  10084. fi
  10085. ;;
  10086. amigaos*)
  10087. case $host_cpu in
  10088. powerpc)
  10089. # see comment about AmigaOS4 .so support
  10090. lt_prog_compiler_pic='-fPIC'
  10091. ;;
  10092. m68k)
  10093. # FIXME: we need at least 68020 code to build shared libraries, but
  10094. # adding the `-m68020' flag to GCC prevents building anything better,
  10095. # like `-m68040'.
  10096. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10097. ;;
  10098. esac
  10099. ;;
  10100. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10101. # PIC is the default for these OSes.
  10102. ;;
  10103. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10104. # This hack is so that the source file can tell whether it is being
  10105. # built for inclusion in a dll (and should export symbols for example).
  10106. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10107. # (--disable-auto-import) libraries
  10108. lt_prog_compiler_pic='-DDLL_EXPORT'
  10109. ;;
  10110. darwin* | rhapsody*)
  10111. # PIC is the default on this platform
  10112. # Common symbols not allowed in MH_DYLIB files
  10113. lt_prog_compiler_pic='-fno-common'
  10114. ;;
  10115. haiku*)
  10116. # PIC is the default for Haiku.
  10117. # The "-static" flag exists, but is broken.
  10118. lt_prog_compiler_static=
  10119. ;;
  10120. hpux*)
  10121. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10122. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10123. # sets the default TLS model and affects inlining.
  10124. case $host_cpu in
  10125. hppa*64*)
  10126. # +Z the default
  10127. ;;
  10128. *)
  10129. lt_prog_compiler_pic='-fPIC'
  10130. ;;
  10131. esac
  10132. ;;
  10133. interix[3-9]*)
  10134. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10135. # Instead, we relocate shared libraries at runtime.
  10136. ;;
  10137. msdosdjgpp*)
  10138. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10139. # on systems that don't support them.
  10140. lt_prog_compiler_can_build_shared=no
  10141. enable_shared=no
  10142. ;;
  10143. *nto* | *qnx*)
  10144. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10145. # it will coredump.
  10146. lt_prog_compiler_pic='-fPIC -shared'
  10147. ;;
  10148. sysv4*MP*)
  10149. if test -d /usr/nec; then
  10150. lt_prog_compiler_pic=-Kconform_pic
  10151. fi
  10152. ;;
  10153. *)
  10154. lt_prog_compiler_pic='-fPIC'
  10155. ;;
  10156. esac
  10157. case $cc_basename in
  10158. nvcc*) # Cuda Compiler Driver 2.2
  10159. lt_prog_compiler_wl='-Xlinker '
  10160. if test -n "$lt_prog_compiler_pic"; then
  10161. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10162. fi
  10163. ;;
  10164. esac
  10165. else
  10166. # PORTME Check for flag to pass linker flags through the system compiler.
  10167. case $host_os in
  10168. aix*)
  10169. lt_prog_compiler_wl='-Wl,'
  10170. if test "$host_cpu" = ia64; then
  10171. # AIX 5 now supports IA64 processor
  10172. lt_prog_compiler_static='-Bstatic'
  10173. else
  10174. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10175. fi
  10176. ;;
  10177. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10178. # This hack is so that the source file can tell whether it is being
  10179. # built for inclusion in a dll (and should export symbols for example).
  10180. lt_prog_compiler_pic='-DDLL_EXPORT'
  10181. ;;
  10182. hpux9* | hpux10* | hpux11*)
  10183. lt_prog_compiler_wl='-Wl,'
  10184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10185. # not for PA HP-UX.
  10186. case $host_cpu in
  10187. hppa*64*|ia64*)
  10188. # +Z the default
  10189. ;;
  10190. *)
  10191. lt_prog_compiler_pic='+Z'
  10192. ;;
  10193. esac
  10194. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10195. lt_prog_compiler_static='${wl}-a ${wl}archive'
  10196. ;;
  10197. irix5* | irix6* | nonstopux*)
  10198. lt_prog_compiler_wl='-Wl,'
  10199. # PIC (with -KPIC) is the default.
  10200. lt_prog_compiler_static='-non_shared'
  10201. ;;
  10202. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10203. case $cc_basename in
  10204. # old Intel for x86_64 which still supported -KPIC.
  10205. ecc*)
  10206. lt_prog_compiler_wl='-Wl,'
  10207. lt_prog_compiler_pic='-KPIC'
  10208. lt_prog_compiler_static='-static'
  10209. ;;
  10210. # icc used to be incompatible with GCC.
  10211. # ICC 10 doesn't accept -KPIC any more.
  10212. icc* | ifort*)
  10213. lt_prog_compiler_wl='-Wl,'
  10214. lt_prog_compiler_pic='-fPIC'
  10215. lt_prog_compiler_static='-static'
  10216. ;;
  10217. # Lahey Fortran 8.1.
  10218. lf95*)
  10219. lt_prog_compiler_wl='-Wl,'
  10220. lt_prog_compiler_pic='--shared'
  10221. lt_prog_compiler_static='--static'
  10222. ;;
  10223. nagfor*)
  10224. # NAG Fortran compiler
  10225. lt_prog_compiler_wl='-Wl,-Wl,,'
  10226. lt_prog_compiler_pic='-PIC'
  10227. lt_prog_compiler_static='-Bstatic'
  10228. ;;
  10229. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10230. # Portland Group compilers (*not* the Pentium gcc compiler,
  10231. # which looks to be a dead project)
  10232. lt_prog_compiler_wl='-Wl,'
  10233. lt_prog_compiler_pic='-fpic'
  10234. lt_prog_compiler_static='-Bstatic'
  10235. ;;
  10236. ccc*)
  10237. lt_prog_compiler_wl='-Wl,'
  10238. # All Alpha code is PIC.
  10239. lt_prog_compiler_static='-non_shared'
  10240. ;;
  10241. xl* | bgxl* | bgf* | mpixl*)
  10242. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10243. lt_prog_compiler_wl='-Wl,'
  10244. lt_prog_compiler_pic='-qpic'
  10245. lt_prog_compiler_static='-qstaticlink'
  10246. ;;
  10247. *)
  10248. case `$CC -V 2>&1 | sed 5q` in
  10249. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10250. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10251. lt_prog_compiler_pic='-KPIC'
  10252. lt_prog_compiler_static='-Bstatic'
  10253. lt_prog_compiler_wl=''
  10254. ;;
  10255. *Sun\ F* | *Sun*Fortran*)
  10256. lt_prog_compiler_pic='-KPIC'
  10257. lt_prog_compiler_static='-Bstatic'
  10258. lt_prog_compiler_wl='-Qoption ld '
  10259. ;;
  10260. *Sun\ C*)
  10261. # Sun C 5.9
  10262. lt_prog_compiler_pic='-KPIC'
  10263. lt_prog_compiler_static='-Bstatic'
  10264. lt_prog_compiler_wl='-Wl,'
  10265. ;;
  10266. *Intel*\ [CF]*Compiler*)
  10267. lt_prog_compiler_wl='-Wl,'
  10268. lt_prog_compiler_pic='-fPIC'
  10269. lt_prog_compiler_static='-static'
  10270. ;;
  10271. *Portland\ Group*)
  10272. lt_prog_compiler_wl='-Wl,'
  10273. lt_prog_compiler_pic='-fpic'
  10274. lt_prog_compiler_static='-Bstatic'
  10275. ;;
  10276. esac
  10277. ;;
  10278. esac
  10279. ;;
  10280. newsos6)
  10281. lt_prog_compiler_pic='-KPIC'
  10282. lt_prog_compiler_static='-Bstatic'
  10283. ;;
  10284. *nto* | *qnx*)
  10285. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10286. # it will coredump.
  10287. lt_prog_compiler_pic='-fPIC -shared'
  10288. ;;
  10289. osf3* | osf4* | osf5*)
  10290. lt_prog_compiler_wl='-Wl,'
  10291. # All OSF/1 code is PIC.
  10292. lt_prog_compiler_static='-non_shared'
  10293. ;;
  10294. rdos*)
  10295. lt_prog_compiler_static='-non_shared'
  10296. ;;
  10297. solaris*)
  10298. lt_prog_compiler_pic='-KPIC'
  10299. lt_prog_compiler_static='-Bstatic'
  10300. case $cc_basename in
  10301. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10302. lt_prog_compiler_wl='-Qoption ld ';;
  10303. *)
  10304. lt_prog_compiler_wl='-Wl,';;
  10305. esac
  10306. ;;
  10307. sunos4*)
  10308. lt_prog_compiler_wl='-Qoption ld '
  10309. lt_prog_compiler_pic='-PIC'
  10310. lt_prog_compiler_static='-Bstatic'
  10311. ;;
  10312. sysv4 | sysv4.2uw2* | sysv4.3*)
  10313. lt_prog_compiler_wl='-Wl,'
  10314. lt_prog_compiler_pic='-KPIC'
  10315. lt_prog_compiler_static='-Bstatic'
  10316. ;;
  10317. sysv4*MP*)
  10318. if test -d /usr/nec ;then
  10319. lt_prog_compiler_pic='-Kconform_pic'
  10320. lt_prog_compiler_static='-Bstatic'
  10321. fi
  10322. ;;
  10323. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10324. lt_prog_compiler_wl='-Wl,'
  10325. lt_prog_compiler_pic='-KPIC'
  10326. lt_prog_compiler_static='-Bstatic'
  10327. ;;
  10328. unicos*)
  10329. lt_prog_compiler_wl='-Wl,'
  10330. lt_prog_compiler_can_build_shared=no
  10331. ;;
  10332. uts4*)
  10333. lt_prog_compiler_pic='-pic'
  10334. lt_prog_compiler_static='-Bstatic'
  10335. ;;
  10336. *)
  10337. lt_prog_compiler_can_build_shared=no
  10338. ;;
  10339. esac
  10340. fi
  10341. case $host_os in
  10342. # For platforms which do not support PIC, -DPIC is meaningless:
  10343. *djgpp*)
  10344. lt_prog_compiler_pic=
  10345. ;;
  10346. *)
  10347. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10348. ;;
  10349. esac
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10351. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10352. if ${lt_cv_prog_compiler_pic+:} false; then :
  10353. $as_echo_n "(cached) " >&6
  10354. else
  10355. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10356. fi
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10358. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10359. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10360. #
  10361. # Check to make sure the PIC flag actually works.
  10362. #
  10363. if test -n "$lt_prog_compiler_pic"; then
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10365. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10366. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. lt_cv_prog_compiler_pic_works=no
  10370. ac_outfile=conftest.$ac_objext
  10371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10372. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  10373. # Insert the option either (1) after the last *FLAGS variable, or
  10374. # (2) before a word containing "conftest.", or (3) at the end.
  10375. # Note that $ac_compile itself does not contain backslashes and begins
  10376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10377. # The option is referenced via a variable to avoid confusing sed.
  10378. lt_compile=`echo "$ac_compile" | $SED \
  10379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10381. -e 's:$: $lt_compiler_flag:'`
  10382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10383. (eval "$lt_compile" 2>conftest.err)
  10384. ac_status=$?
  10385. cat conftest.err >&5
  10386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10387. if (exit $ac_status) && test -s "$ac_outfile"; then
  10388. # The compiler can only warn and ignore the option if not recognized
  10389. # So say no if there are warnings other than the usual output.
  10390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10393. lt_cv_prog_compiler_pic_works=yes
  10394. fi
  10395. fi
  10396. $RM conftest*
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10399. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10400. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  10401. case $lt_prog_compiler_pic in
  10402. "" | " "*) ;;
  10403. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10404. esac
  10405. else
  10406. lt_prog_compiler_pic=
  10407. lt_prog_compiler_can_build_shared=no
  10408. fi
  10409. fi
  10410. #
  10411. # Check to make sure the static flag actually works.
  10412. #
  10413. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10415. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10416. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. lt_cv_prog_compiler_static_works=no
  10420. save_LDFLAGS="$LDFLAGS"
  10421. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10422. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10423. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10424. # The linker can only warn and ignore the option if not recognized
  10425. # So say no if there are warnings
  10426. if test -s conftest.err; then
  10427. # Append any errors to the config.log.
  10428. cat conftest.err 1>&5
  10429. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10431. if diff conftest.exp conftest.er2 >/dev/null; then
  10432. lt_cv_prog_compiler_static_works=yes
  10433. fi
  10434. else
  10435. lt_cv_prog_compiler_static_works=yes
  10436. fi
  10437. fi
  10438. $RM -r conftest*
  10439. LDFLAGS="$save_LDFLAGS"
  10440. fi
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10442. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10443. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  10444. :
  10445. else
  10446. lt_prog_compiler_static=
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10449. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10450. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10451. $as_echo_n "(cached) " >&6
  10452. else
  10453. lt_cv_prog_compiler_c_o=no
  10454. $RM -r conftest 2>/dev/null
  10455. mkdir conftest
  10456. cd conftest
  10457. mkdir out
  10458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10460. # Insert the option either (1) after the last *FLAGS variable, or
  10461. # (2) before a word containing "conftest.", or (3) at the end.
  10462. # Note that $ac_compile itself does not contain backslashes and begins
  10463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10464. lt_compile=`echo "$ac_compile" | $SED \
  10465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10467. -e 's:$: $lt_compiler_flag:'`
  10468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10469. (eval "$lt_compile" 2>out/conftest.err)
  10470. ac_status=$?
  10471. cat out/conftest.err >&5
  10472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10474. then
  10475. # The compiler can only warn and ignore the option if not recognized
  10476. # So say no if there are warnings
  10477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10480. lt_cv_prog_compiler_c_o=yes
  10481. fi
  10482. fi
  10483. chmod u+w . 2>&5
  10484. $RM conftest*
  10485. # SGI C++ compiler will create directory out/ii_files/ for
  10486. # template instantiation
  10487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10488. $RM out/* && rmdir out
  10489. cd ..
  10490. $RM -r conftest
  10491. $RM conftest*
  10492. fi
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10494. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10497. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. lt_cv_prog_compiler_c_o=no
  10501. $RM -r conftest 2>/dev/null
  10502. mkdir conftest
  10503. cd conftest
  10504. mkdir out
  10505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10507. # Insert the option either (1) after the last *FLAGS variable, or
  10508. # (2) before a word containing "conftest.", or (3) at the end.
  10509. # Note that $ac_compile itself does not contain backslashes and begins
  10510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10511. lt_compile=`echo "$ac_compile" | $SED \
  10512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10514. -e 's:$: $lt_compiler_flag:'`
  10515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10516. (eval "$lt_compile" 2>out/conftest.err)
  10517. ac_status=$?
  10518. cat out/conftest.err >&5
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10521. then
  10522. # The compiler can only warn and ignore the option if not recognized
  10523. # So say no if there are warnings
  10524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10527. lt_cv_prog_compiler_c_o=yes
  10528. fi
  10529. fi
  10530. chmod u+w . 2>&5
  10531. $RM conftest*
  10532. # SGI C++ compiler will create directory out/ii_files/ for
  10533. # template instantiation
  10534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10535. $RM out/* && rmdir out
  10536. cd ..
  10537. $RM -r conftest
  10538. $RM conftest*
  10539. fi
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10541. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10542. hard_links="nottested"
  10543. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  10544. # do not overwrite the value of need_locks provided by the user
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10546. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10547. hard_links=yes
  10548. $RM conftest*
  10549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10550. touch conftest.a
  10551. ln conftest.a conftest.b 2>&5 || hard_links=no
  10552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10554. $as_echo "$hard_links" >&6; }
  10555. if test "$hard_links" = no; then
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10557. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10558. need_locks=warn
  10559. fi
  10560. else
  10561. need_locks=no
  10562. fi
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10564. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10565. runpath_var=
  10566. allow_undefined_flag=
  10567. always_export_symbols=no
  10568. archive_cmds=
  10569. archive_expsym_cmds=
  10570. compiler_needs_object=no
  10571. enable_shared_with_static_runtimes=no
  10572. export_dynamic_flag_spec=
  10573. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10574. hardcode_automatic=no
  10575. hardcode_direct=no
  10576. hardcode_direct_absolute=no
  10577. hardcode_libdir_flag_spec=
  10578. hardcode_libdir_separator=
  10579. hardcode_minus_L=no
  10580. hardcode_shlibpath_var=unsupported
  10581. inherit_rpath=no
  10582. link_all_deplibs=unknown
  10583. module_cmds=
  10584. module_expsym_cmds=
  10585. old_archive_from_new_cmds=
  10586. old_archive_from_expsyms_cmds=
  10587. thread_safe_flag_spec=
  10588. whole_archive_flag_spec=
  10589. # include_expsyms should be a list of space-separated symbols to be *always*
  10590. # included in the symbol list
  10591. include_expsyms=
  10592. # exclude_expsyms can be an extended regexp of symbols to exclude
  10593. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10594. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10595. # as well as any symbol that contains `d'.
  10596. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10597. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10598. # platforms (ab)use it in PIC code, but their linkers get confused if
  10599. # the symbol is explicitly referenced. Since portable code cannot
  10600. # rely on this symbol name, it's probably fine to never include it in
  10601. # preloaded symbol tables.
  10602. # Exclude shared library initialization/finalization symbols.
  10603. extract_expsyms_cmds=
  10604. case $host_os in
  10605. cygwin* | mingw* | pw32* | cegcc*)
  10606. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10607. # When not using gcc, we currently assume that we are using
  10608. # Microsoft Visual C++.
  10609. if test "$GCC" != yes; then
  10610. with_gnu_ld=no
  10611. fi
  10612. ;;
  10613. interix*)
  10614. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10615. with_gnu_ld=yes
  10616. ;;
  10617. openbsd*)
  10618. with_gnu_ld=no
  10619. ;;
  10620. esac
  10621. ld_shlibs=yes
  10622. # On some targets, GNU ld is compatible enough with the native linker
  10623. # that we're better off using the native interface for both.
  10624. lt_use_gnu_ld_interface=no
  10625. if test "$with_gnu_ld" = yes; then
  10626. case $host_os in
  10627. aix*)
  10628. # The AIX port of GNU ld has always aspired to compatibility
  10629. # with the native linker. However, as the warning in the GNU ld
  10630. # block says, versions before 2.19.5* couldn't really create working
  10631. # shared libraries, regardless of the interface used.
  10632. case `$LD -v 2>&1` in
  10633. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10634. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10635. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10636. *)
  10637. lt_use_gnu_ld_interface=yes
  10638. ;;
  10639. esac
  10640. ;;
  10641. *)
  10642. lt_use_gnu_ld_interface=yes
  10643. ;;
  10644. esac
  10645. fi
  10646. if test "$lt_use_gnu_ld_interface" = yes; then
  10647. # If archive_cmds runs LD, not CC, wlarc should be empty
  10648. wlarc='${wl}'
  10649. # Set some defaults for GNU ld with shared library support. These
  10650. # are reset later if shared libraries are not supported. Putting them
  10651. # here allows them to be overridden if necessary.
  10652. runpath_var=LD_RUN_PATH
  10653. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10654. export_dynamic_flag_spec='${wl}--export-dynamic'
  10655. # ancient GNU ld didn't support --whole-archive et. al.
  10656. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10657. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10658. else
  10659. whole_archive_flag_spec=
  10660. fi
  10661. supports_anon_versioning=no
  10662. case `$LD -v 2>&1` in
  10663. *GNU\ gold*) supports_anon_versioning=yes ;;
  10664. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10665. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10666. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10667. *\ 2.11.*) ;; # other 2.11 versions
  10668. *) supports_anon_versioning=yes ;;
  10669. esac
  10670. # See if GNU ld supports shared libraries.
  10671. case $host_os in
  10672. aix[3-9]*)
  10673. # On AIX/PPC, the GNU linker is very broken
  10674. if test "$host_cpu" != ia64; then
  10675. ld_shlibs=no
  10676. cat <<_LT_EOF 1>&2
  10677. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10678. *** to be unable to reliably create shared libraries on AIX.
  10679. *** Therefore, libtool is disabling shared libraries support. If you
  10680. *** really care for shared libraries, you may want to install binutils
  10681. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10682. *** You will then need to restart the configuration process.
  10683. _LT_EOF
  10684. fi
  10685. ;;
  10686. amigaos*)
  10687. case $host_cpu in
  10688. powerpc)
  10689. # see comment about AmigaOS4 .so support
  10690. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10691. archive_expsym_cmds=''
  10692. ;;
  10693. m68k)
  10694. 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)'
  10695. hardcode_libdir_flag_spec='-L$libdir'
  10696. hardcode_minus_L=yes
  10697. ;;
  10698. esac
  10699. ;;
  10700. beos*)
  10701. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10702. allow_undefined_flag=unsupported
  10703. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10704. # support --undefined. This deserves some investigation. FIXME
  10705. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10706. else
  10707. ld_shlibs=no
  10708. fi
  10709. ;;
  10710. cygwin* | mingw* | pw32* | cegcc*)
  10711. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10712. # as there is no search path for DLLs.
  10713. hardcode_libdir_flag_spec='-L$libdir'
  10714. export_dynamic_flag_spec='${wl}--export-all-symbols'
  10715. allow_undefined_flag=unsupported
  10716. always_export_symbols=no
  10717. enable_shared_with_static_runtimes=yes
  10718. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  10719. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10720. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10721. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10722. # If the export-symbols file already is a .def file (1st line
  10723. # is EXPORTS), use it as is; otherwise, prepend...
  10724. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10725. cp $export_symbols $output_objdir/$soname.def;
  10726. else
  10727. echo EXPORTS > $output_objdir/$soname.def;
  10728. cat $export_symbols >> $output_objdir/$soname.def;
  10729. fi~
  10730. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10731. else
  10732. ld_shlibs=no
  10733. fi
  10734. ;;
  10735. haiku*)
  10736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10737. link_all_deplibs=yes
  10738. ;;
  10739. interix[3-9]*)
  10740. hardcode_direct=no
  10741. hardcode_shlibpath_var=no
  10742. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10743. export_dynamic_flag_spec='${wl}-E'
  10744. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10745. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10746. # default) and relocated if they conflict, which is a slow very memory
  10747. # consuming and fragmenting process. To avoid this, we pick a random,
  10748. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10749. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10750. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10751. 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'
  10752. ;;
  10753. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10754. tmp_diet=no
  10755. if test "$host_os" = linux-dietlibc; then
  10756. case $cc_basename in
  10757. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10758. esac
  10759. fi
  10760. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10761. && test "$tmp_diet" = no
  10762. then
  10763. tmp_addflag=' $pic_flag'
  10764. tmp_sharedflag='-shared'
  10765. case $cc_basename,$host_cpu in
  10766. pgcc*) # Portland Group C compiler
  10767. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10768. tmp_addflag=' $pic_flag'
  10769. ;;
  10770. pgf77* | pgf90* | pgf95* | pgfortran*)
  10771. # Portland Group f77 and f90 compilers
  10772. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10773. tmp_addflag=' $pic_flag -Mnomain' ;;
  10774. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10775. tmp_addflag=' -i_dynamic' ;;
  10776. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10777. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10778. ifc* | ifort*) # Intel Fortran compiler
  10779. tmp_addflag=' -nofor_main' ;;
  10780. lf95*) # Lahey Fortran 8.1
  10781. whole_archive_flag_spec=
  10782. tmp_sharedflag='--shared' ;;
  10783. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10784. tmp_sharedflag='-qmkshrobj'
  10785. tmp_addflag= ;;
  10786. nvcc*) # Cuda Compiler Driver 2.2
  10787. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10788. compiler_needs_object=yes
  10789. ;;
  10790. esac
  10791. case `$CC -V 2>&1 | sed 5q` in
  10792. *Sun\ C*) # Sun C 5.9
  10793. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10794. compiler_needs_object=yes
  10795. tmp_sharedflag='-G' ;;
  10796. *Sun\ F*) # Sun Fortran 8.3
  10797. tmp_sharedflag='-G' ;;
  10798. esac
  10799. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10800. if test "x$supports_anon_versioning" = xyes; then
  10801. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10802. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10803. echo "local: *; };" >> $output_objdir/$libname.ver~
  10804. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10805. fi
  10806. case $cc_basename in
  10807. xlf* | bgf* | bgxlf* | mpixlf*)
  10808. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10809. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10810. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10811. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10812. if test "x$supports_anon_versioning" = xyes; then
  10813. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10814. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10815. echo "local: *; };" >> $output_objdir/$libname.ver~
  10816. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10817. fi
  10818. ;;
  10819. esac
  10820. else
  10821. ld_shlibs=no
  10822. fi
  10823. ;;
  10824. netbsd*)
  10825. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10826. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10827. wlarc=
  10828. else
  10829. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10830. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10831. fi
  10832. ;;
  10833. solaris*)
  10834. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10835. ld_shlibs=no
  10836. cat <<_LT_EOF 1>&2
  10837. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10838. *** create shared libraries on Solaris systems. Therefore, libtool
  10839. *** is disabling shared libraries support. We urge you to upgrade GNU
  10840. *** binutils to release 2.9.1 or newer. Another option is to modify
  10841. *** your PATH or compiler configuration so that the native linker is
  10842. *** used, and then restart.
  10843. _LT_EOF
  10844. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10845. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10846. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10847. else
  10848. ld_shlibs=no
  10849. fi
  10850. ;;
  10851. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10852. case `$LD -v 2>&1` in
  10853. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10854. ld_shlibs=no
  10855. cat <<_LT_EOF 1>&2
  10856. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10857. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10858. *** is disabling shared libraries support. We urge you to upgrade GNU
  10859. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10860. *** your PATH or compiler configuration so that the native linker is
  10861. *** used, and then restart.
  10862. _LT_EOF
  10863. ;;
  10864. *)
  10865. # For security reasons, it is highly recommended that you always
  10866. # use absolute paths for naming shared libraries, and exclude the
  10867. # DT_RUNPATH tag from executables and libraries. But doing so
  10868. # requires that you compile everything twice, which is a pain.
  10869. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10870. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10871. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10872. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10873. else
  10874. ld_shlibs=no
  10875. fi
  10876. ;;
  10877. esac
  10878. ;;
  10879. sunos4*)
  10880. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10881. wlarc=
  10882. hardcode_direct=yes
  10883. hardcode_shlibpath_var=no
  10884. ;;
  10885. *)
  10886. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10887. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10888. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10889. else
  10890. ld_shlibs=no
  10891. fi
  10892. ;;
  10893. esac
  10894. if test "$ld_shlibs" = no; then
  10895. runpath_var=
  10896. hardcode_libdir_flag_spec=
  10897. export_dynamic_flag_spec=
  10898. whole_archive_flag_spec=
  10899. fi
  10900. else
  10901. # PORTME fill in a description of your system's linker (not GNU ld)
  10902. case $host_os in
  10903. aix3*)
  10904. allow_undefined_flag=unsupported
  10905. always_export_symbols=yes
  10906. 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'
  10907. # Note: this linker hardcodes the directories in LIBPATH if there
  10908. # are no directories specified by -L.
  10909. hardcode_minus_L=yes
  10910. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10911. # Neither direct hardcoding nor static linking is supported with a
  10912. # broken collect2.
  10913. hardcode_direct=unsupported
  10914. fi
  10915. ;;
  10916. aix[4-9]*)
  10917. if test "$host_cpu" = ia64; then
  10918. # On IA64, the linker does run time linking by default, so we don't
  10919. # have to do anything special.
  10920. aix_use_runtimelinking=no
  10921. exp_sym_flag='-Bexport'
  10922. no_entry_flag=""
  10923. else
  10924. # If we're using GNU nm, then we don't want the "-C" option.
  10925. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10926. # Also, AIX nm treats weak defined symbols like other global
  10927. # defined symbols, whereas GNU nm marks them as "W".
  10928. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10929. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10930. else
  10931. 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'
  10932. fi
  10933. aix_use_runtimelinking=no
  10934. # Test if we are trying to use run time linking or normal
  10935. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10936. # need to do runtime linking.
  10937. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10938. for ld_flag in $LDFLAGS; do
  10939. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10940. aix_use_runtimelinking=yes
  10941. break
  10942. fi
  10943. done
  10944. ;;
  10945. esac
  10946. exp_sym_flag='-bexport'
  10947. no_entry_flag='-bnoentry'
  10948. fi
  10949. # When large executables or shared objects are built, AIX ld can
  10950. # have problems creating the table of contents. If linking a library
  10951. # or program results in "error TOC overflow" add -mminimal-toc to
  10952. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10953. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10954. archive_cmds=''
  10955. hardcode_direct=yes
  10956. hardcode_direct_absolute=yes
  10957. hardcode_libdir_separator=':'
  10958. link_all_deplibs=yes
  10959. file_list_spec='${wl}-f,'
  10960. if test "$GCC" = yes; then
  10961. case $host_os in aix4.[012]|aix4.[012].*)
  10962. # We only want to do this on AIX 4.2 and lower, the check
  10963. # below for broken collect2 doesn't work under 4.3+
  10964. collect2name=`${CC} -print-prog-name=collect2`
  10965. if test -f "$collect2name" &&
  10966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10967. then
  10968. # We have reworked collect2
  10969. :
  10970. else
  10971. # We have old collect2
  10972. hardcode_direct=unsupported
  10973. # It fails to find uninstalled libraries when the uninstalled
  10974. # path is not listed in the libpath. Setting hardcode_minus_L
  10975. # to unsupported forces relinking
  10976. hardcode_minus_L=yes
  10977. hardcode_libdir_flag_spec='-L$libdir'
  10978. hardcode_libdir_separator=
  10979. fi
  10980. ;;
  10981. esac
  10982. shared_flag='-shared'
  10983. if test "$aix_use_runtimelinking" = yes; then
  10984. shared_flag="$shared_flag "'${wl}-G'
  10985. fi
  10986. else
  10987. # not using gcc
  10988. if test "$host_cpu" = ia64; then
  10989. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10990. # chokes on -Wl,-G. The following line is correct:
  10991. shared_flag='-G'
  10992. else
  10993. if test "$aix_use_runtimelinking" = yes; then
  10994. shared_flag='${wl}-G'
  10995. else
  10996. shared_flag='${wl}-bM:SRE'
  10997. fi
  10998. fi
  10999. fi
  11000. export_dynamic_flag_spec='${wl}-bexpall'
  11001. # It seems that -bexpall does not export symbols beginning with
  11002. # underscore (_), so it is better to generate a list of symbols to export.
  11003. always_export_symbols=yes
  11004. if test "$aix_use_runtimelinking" = yes; then
  11005. # Warning - without using the other runtime loading flags (-brtl),
  11006. # -berok will link without error, but may produce a broken library.
  11007. allow_undefined_flag='-berok'
  11008. # Determine the default libpath from the value encoded in an
  11009. # empty executable.
  11010. if test "${lt_cv_aix_libpath+set}" = set; then
  11011. aix_libpath=$lt_cv_aix_libpath
  11012. else
  11013. if ${lt_cv_aix_libpath_+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. int
  11019. main ()
  11020. {
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_link "$LINENO"; then :
  11026. lt_aix_libpath_sed='
  11027. /Import File Strings/,/^$/ {
  11028. /^0/ {
  11029. s/^0 *\([^ ]*\) *$/\1/
  11030. p
  11031. }
  11032. }'
  11033. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. # Check for a 64-bit object if we didn't find anything.
  11035. if test -z "$lt_cv_aix_libpath_"; then
  11036. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11037. fi
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. if test -z "$lt_cv_aix_libpath_"; then
  11042. lt_cv_aix_libpath_="/usr/lib:/lib"
  11043. fi
  11044. fi
  11045. aix_libpath=$lt_cv_aix_libpath_
  11046. fi
  11047. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11048. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11049. else
  11050. if test "$host_cpu" = ia64; then
  11051. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  11052. allow_undefined_flag="-z nodefs"
  11053. 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"
  11054. else
  11055. # Determine the default libpath from the value encoded in an
  11056. # empty executable.
  11057. if test "${lt_cv_aix_libpath+set}" = set; then
  11058. aix_libpath=$lt_cv_aix_libpath
  11059. else
  11060. if ${lt_cv_aix_libpath_+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main ()
  11067. {
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. if ac_fn_c_try_link "$LINENO"; then :
  11073. lt_aix_libpath_sed='
  11074. /Import File Strings/,/^$/ {
  11075. /^0/ {
  11076. s/^0 *\([^ ]*\) *$/\1/
  11077. p
  11078. }
  11079. }'
  11080. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11081. # Check for a 64-bit object if we didn't find anything.
  11082. if test -z "$lt_cv_aix_libpath_"; then
  11083. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11084. fi
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. if test -z "$lt_cv_aix_libpath_"; then
  11089. lt_cv_aix_libpath_="/usr/lib:/lib"
  11090. fi
  11091. fi
  11092. aix_libpath=$lt_cv_aix_libpath_
  11093. fi
  11094. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11095. # Warning - without using the other run time loading flags,
  11096. # -berok will link without error, but may produce a broken library.
  11097. no_undefined_flag=' ${wl}-bernotok'
  11098. allow_undefined_flag=' ${wl}-berok'
  11099. if test "$with_gnu_ld" = yes; then
  11100. # We only use this code for GNU lds that support --whole-archive.
  11101. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11102. else
  11103. # Exported symbols can be pulled into shared objects from archives
  11104. whole_archive_flag_spec='$convenience'
  11105. fi
  11106. archive_cmds_need_lc=yes
  11107. # This is similar to how AIX traditionally builds its shared libraries.
  11108. 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'
  11109. fi
  11110. fi
  11111. ;;
  11112. amigaos*)
  11113. case $host_cpu in
  11114. powerpc)
  11115. # see comment about AmigaOS4 .so support
  11116. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11117. archive_expsym_cmds=''
  11118. ;;
  11119. m68k)
  11120. 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)'
  11121. hardcode_libdir_flag_spec='-L$libdir'
  11122. hardcode_minus_L=yes
  11123. ;;
  11124. esac
  11125. ;;
  11126. bsdi[45]*)
  11127. export_dynamic_flag_spec=-rdynamic
  11128. ;;
  11129. cygwin* | mingw* | pw32* | cegcc*)
  11130. # When not using gcc, we currently assume that we are using
  11131. # Microsoft Visual C++.
  11132. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11133. # no search path for DLLs.
  11134. case $cc_basename in
  11135. cl*)
  11136. # Native MSVC
  11137. hardcode_libdir_flag_spec=' '
  11138. allow_undefined_flag=unsupported
  11139. always_export_symbols=yes
  11140. file_list_spec='@'
  11141. # Tell ltmain to make .lib files, not .a files.
  11142. libext=lib
  11143. # Tell ltmain to make .dll files, not .so files.
  11144. shrext_cmds=".dll"
  11145. # FIXME: Setting linknames here is a bad hack.
  11146. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11147. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11148. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11149. else
  11150. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11151. fi~
  11152. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11153. linknames='
  11154. # The linker will not automatically build a static lib if we build a DLL.
  11155. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11156. enable_shared_with_static_runtimes=yes
  11157. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11158. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11159. # Don't use ranlib
  11160. old_postinstall_cmds='chmod 644 $oldlib'
  11161. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11162. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11163. case $lt_outputfile in
  11164. *.exe|*.EXE) ;;
  11165. *)
  11166. lt_outputfile="$lt_outputfile.exe"
  11167. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11168. ;;
  11169. esac~
  11170. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11171. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11172. $RM "$lt_outputfile.manifest";
  11173. fi'
  11174. ;;
  11175. *)
  11176. # Assume MSVC wrapper
  11177. hardcode_libdir_flag_spec=' '
  11178. allow_undefined_flag=unsupported
  11179. # Tell ltmain to make .lib files, not .a files.
  11180. libext=lib
  11181. # Tell ltmain to make .dll files, not .so files.
  11182. shrext_cmds=".dll"
  11183. # FIXME: Setting linknames here is a bad hack.
  11184. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11185. # The linker will automatically build a .lib file if we build a DLL.
  11186. old_archive_from_new_cmds='true'
  11187. # FIXME: Should let the user specify the lib program.
  11188. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11189. enable_shared_with_static_runtimes=yes
  11190. ;;
  11191. esac
  11192. ;;
  11193. darwin* | rhapsody*)
  11194. archive_cmds_need_lc=no
  11195. hardcode_direct=no
  11196. hardcode_automatic=yes
  11197. hardcode_shlibpath_var=unsupported
  11198. if test "$lt_cv_ld_force_load" = "yes"; then
  11199. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11200. else
  11201. whole_archive_flag_spec=''
  11202. fi
  11203. link_all_deplibs=yes
  11204. allow_undefined_flag="$_lt_dar_allow_undefined"
  11205. case $cc_basename in
  11206. ifort*) _lt_dar_can_shared=yes ;;
  11207. *) _lt_dar_can_shared=$GCC ;;
  11208. esac
  11209. if test "$_lt_dar_can_shared" = "yes"; then
  11210. output_verbose_link_cmd=func_echo_all
  11211. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11212. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11213. 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}"
  11214. 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}"
  11215. else
  11216. ld_shlibs=no
  11217. fi
  11218. ;;
  11219. dgux*)
  11220. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11221. hardcode_libdir_flag_spec='-L$libdir'
  11222. hardcode_shlibpath_var=no
  11223. ;;
  11224. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11225. # support. Future versions do this automatically, but an explicit c++rt0.o
  11226. # does not break anything, and helps significantly (at the cost of a little
  11227. # extra space).
  11228. freebsd2.2*)
  11229. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11230. hardcode_libdir_flag_spec='-R$libdir'
  11231. hardcode_direct=yes
  11232. hardcode_shlibpath_var=no
  11233. ;;
  11234. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11235. freebsd2.*)
  11236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11237. hardcode_direct=yes
  11238. hardcode_minus_L=yes
  11239. hardcode_shlibpath_var=no
  11240. ;;
  11241. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11242. freebsd* | dragonfly*)
  11243. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11244. hardcode_libdir_flag_spec='-R$libdir'
  11245. hardcode_direct=yes
  11246. hardcode_shlibpath_var=no
  11247. ;;
  11248. hpux9*)
  11249. if test "$GCC" = yes; then
  11250. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11251. else
  11252. 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'
  11253. fi
  11254. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11255. hardcode_libdir_separator=:
  11256. hardcode_direct=yes
  11257. # hardcode_minus_L: Not really in the search PATH,
  11258. # but as the default location of the library.
  11259. hardcode_minus_L=yes
  11260. export_dynamic_flag_spec='${wl}-E'
  11261. ;;
  11262. hpux10*)
  11263. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11264. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11265. else
  11266. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11267. fi
  11268. if test "$with_gnu_ld" = no; then
  11269. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11270. hardcode_libdir_separator=:
  11271. hardcode_direct=yes
  11272. hardcode_direct_absolute=yes
  11273. export_dynamic_flag_spec='${wl}-E'
  11274. # hardcode_minus_L: Not really in the search PATH,
  11275. # but as the default location of the library.
  11276. hardcode_minus_L=yes
  11277. fi
  11278. ;;
  11279. hpux11*)
  11280. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11281. case $host_cpu in
  11282. hppa*64*)
  11283. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11284. ;;
  11285. ia64*)
  11286. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11287. ;;
  11288. *)
  11289. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11290. ;;
  11291. esac
  11292. else
  11293. case $host_cpu in
  11294. hppa*64*)
  11295. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11296. ;;
  11297. ia64*)
  11298. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11299. ;;
  11300. *)
  11301. # Older versions of the 11.00 compiler do not understand -b yet
  11302. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11304. $as_echo_n "checking if $CC understands -b... " >&6; }
  11305. if ${lt_cv_prog_compiler__b+:} false; then :
  11306. $as_echo_n "(cached) " >&6
  11307. else
  11308. lt_cv_prog_compiler__b=no
  11309. save_LDFLAGS="$LDFLAGS"
  11310. LDFLAGS="$LDFLAGS -b"
  11311. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11312. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11313. # The linker can only warn and ignore the option if not recognized
  11314. # So say no if there are warnings
  11315. if test -s conftest.err; then
  11316. # Append any errors to the config.log.
  11317. cat conftest.err 1>&5
  11318. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11320. if diff conftest.exp conftest.er2 >/dev/null; then
  11321. lt_cv_prog_compiler__b=yes
  11322. fi
  11323. else
  11324. lt_cv_prog_compiler__b=yes
  11325. fi
  11326. fi
  11327. $RM -r conftest*
  11328. LDFLAGS="$save_LDFLAGS"
  11329. fi
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11331. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11332. if test x"$lt_cv_prog_compiler__b" = xyes; then
  11333. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11334. else
  11335. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11336. fi
  11337. ;;
  11338. esac
  11339. fi
  11340. if test "$with_gnu_ld" = no; then
  11341. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11342. hardcode_libdir_separator=:
  11343. case $host_cpu in
  11344. hppa*64*|ia64*)
  11345. hardcode_direct=no
  11346. hardcode_shlibpath_var=no
  11347. ;;
  11348. *)
  11349. hardcode_direct=yes
  11350. hardcode_direct_absolute=yes
  11351. export_dynamic_flag_spec='${wl}-E'
  11352. # hardcode_minus_L: Not really in the search PATH,
  11353. # but as the default location of the library.
  11354. hardcode_minus_L=yes
  11355. ;;
  11356. esac
  11357. fi
  11358. ;;
  11359. irix5* | irix6* | nonstopux*)
  11360. if test "$GCC" = yes; then
  11361. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11362. # Try to use the -exported_symbol ld option, if it does not
  11363. # work, assume that -exports_file does not work either and
  11364. # implicitly export all symbols.
  11365. # This should be the same for all languages, so no per-tag cache variable.
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11367. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11368. if ${lt_cv_irix_exported_symbol+:} false; then :
  11369. $as_echo_n "(cached) " >&6
  11370. else
  11371. save_LDFLAGS="$LDFLAGS"
  11372. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11374. /* end confdefs.h. */
  11375. int foo (void) { return 0; }
  11376. _ACEOF
  11377. if ac_fn_c_try_link "$LINENO"; then :
  11378. lt_cv_irix_exported_symbol=yes
  11379. else
  11380. lt_cv_irix_exported_symbol=no
  11381. fi
  11382. rm -f core conftest.err conftest.$ac_objext \
  11383. conftest$ac_exeext conftest.$ac_ext
  11384. LDFLAGS="$save_LDFLAGS"
  11385. fi
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11387. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11388. if test "$lt_cv_irix_exported_symbol" = yes; then
  11389. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  11390. fi
  11391. else
  11392. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11393. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  11394. fi
  11395. archive_cmds_need_lc='no'
  11396. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11397. hardcode_libdir_separator=:
  11398. inherit_rpath=yes
  11399. link_all_deplibs=yes
  11400. ;;
  11401. netbsd*)
  11402. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11403. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11404. else
  11405. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11406. fi
  11407. hardcode_libdir_flag_spec='-R$libdir'
  11408. hardcode_direct=yes
  11409. hardcode_shlibpath_var=no
  11410. ;;
  11411. newsos6)
  11412. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11413. hardcode_direct=yes
  11414. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11415. hardcode_libdir_separator=:
  11416. hardcode_shlibpath_var=no
  11417. ;;
  11418. *nto* | *qnx*)
  11419. ;;
  11420. openbsd*)
  11421. if test -f /usr/libexec/ld.so; then
  11422. hardcode_direct=yes
  11423. hardcode_shlibpath_var=no
  11424. hardcode_direct_absolute=yes
  11425. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11426. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11427. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11428. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11429. export_dynamic_flag_spec='${wl}-E'
  11430. else
  11431. case $host_os in
  11432. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11433. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11434. hardcode_libdir_flag_spec='-R$libdir'
  11435. ;;
  11436. *)
  11437. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11438. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11439. ;;
  11440. esac
  11441. fi
  11442. else
  11443. ld_shlibs=no
  11444. fi
  11445. ;;
  11446. os2*)
  11447. hardcode_libdir_flag_spec='-L$libdir'
  11448. hardcode_minus_L=yes
  11449. allow_undefined_flag=unsupported
  11450. 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'
  11451. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11452. ;;
  11453. osf3*)
  11454. if test "$GCC" = yes; then
  11455. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11456. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11457. else
  11458. allow_undefined_flag=' -expect_unresolved \*'
  11459. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11460. fi
  11461. archive_cmds_need_lc='no'
  11462. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11463. hardcode_libdir_separator=:
  11464. ;;
  11465. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11466. if test "$GCC" = yes; then
  11467. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11468. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11470. else
  11471. allow_undefined_flag=' -expect_unresolved \*'
  11472. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11473. 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~
  11474. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  11475. # Both c and cxx compiler support -rpath directly
  11476. hardcode_libdir_flag_spec='-rpath $libdir'
  11477. fi
  11478. archive_cmds_need_lc='no'
  11479. hardcode_libdir_separator=:
  11480. ;;
  11481. solaris*)
  11482. no_undefined_flag=' -z defs'
  11483. if test "$GCC" = yes; then
  11484. wlarc='${wl}'
  11485. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11486. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11487. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11488. else
  11489. case `$CC -V 2>&1` in
  11490. *"Compilers 5.0"*)
  11491. wlarc=''
  11492. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11493. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11494. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11495. ;;
  11496. *)
  11497. wlarc='${wl}'
  11498. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11499. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11500. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11501. ;;
  11502. esac
  11503. fi
  11504. hardcode_libdir_flag_spec='-R$libdir'
  11505. hardcode_shlibpath_var=no
  11506. case $host_os in
  11507. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11508. *)
  11509. # The compiler driver will combine and reorder linker options,
  11510. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11511. # but is careful enough not to reorder.
  11512. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11513. if test "$GCC" = yes; then
  11514. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11515. else
  11516. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11517. fi
  11518. ;;
  11519. esac
  11520. link_all_deplibs=yes
  11521. ;;
  11522. sunos4*)
  11523. if test "x$host_vendor" = xsequent; then
  11524. # Use $CC to link under sequent, because it throws in some extra .o
  11525. # files that make .init and .fini sections work.
  11526. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11527. else
  11528. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11529. fi
  11530. hardcode_libdir_flag_spec='-L$libdir'
  11531. hardcode_direct=yes
  11532. hardcode_minus_L=yes
  11533. hardcode_shlibpath_var=no
  11534. ;;
  11535. sysv4)
  11536. case $host_vendor in
  11537. sni)
  11538. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11539. hardcode_direct=yes # is this really true???
  11540. ;;
  11541. siemens)
  11542. ## LD is ld it makes a PLAMLIB
  11543. ## CC just makes a GrossModule.
  11544. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11545. reload_cmds='$CC -r -o $output$reload_objs'
  11546. hardcode_direct=no
  11547. ;;
  11548. motorola)
  11549. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11550. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11551. ;;
  11552. esac
  11553. runpath_var='LD_RUN_PATH'
  11554. hardcode_shlibpath_var=no
  11555. ;;
  11556. sysv4.3*)
  11557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11558. hardcode_shlibpath_var=no
  11559. export_dynamic_flag_spec='-Bexport'
  11560. ;;
  11561. sysv4*MP*)
  11562. if test -d /usr/nec; then
  11563. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11564. hardcode_shlibpath_var=no
  11565. runpath_var=LD_RUN_PATH
  11566. hardcode_runpath_var=yes
  11567. ld_shlibs=yes
  11568. fi
  11569. ;;
  11570. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11571. no_undefined_flag='${wl}-z,text'
  11572. archive_cmds_need_lc=no
  11573. hardcode_shlibpath_var=no
  11574. runpath_var='LD_RUN_PATH'
  11575. if test "$GCC" = yes; then
  11576. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11577. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11578. else
  11579. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11580. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11581. fi
  11582. ;;
  11583. sysv5* | sco3.2v5* | sco5v6*)
  11584. # Note: We can NOT use -z defs as we might desire, because we do not
  11585. # link with -lc, and that would cause any symbols used from libc to
  11586. # always be unresolved, which means just about no library would
  11587. # ever link correctly. If we're not using GNU ld we use -z text
  11588. # though, which does catch some bad symbols but isn't as heavy-handed
  11589. # as -z defs.
  11590. no_undefined_flag='${wl}-z,text'
  11591. allow_undefined_flag='${wl}-z,nodefs'
  11592. archive_cmds_need_lc=no
  11593. hardcode_shlibpath_var=no
  11594. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11595. hardcode_libdir_separator=':'
  11596. link_all_deplibs=yes
  11597. export_dynamic_flag_spec='${wl}-Bexport'
  11598. runpath_var='LD_RUN_PATH'
  11599. if test "$GCC" = yes; then
  11600. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11601. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11602. else
  11603. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11604. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11605. fi
  11606. ;;
  11607. uts4*)
  11608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11609. hardcode_libdir_flag_spec='-L$libdir'
  11610. hardcode_shlibpath_var=no
  11611. ;;
  11612. *)
  11613. ld_shlibs=no
  11614. ;;
  11615. esac
  11616. if test x$host_vendor = xsni; then
  11617. case $host in
  11618. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11619. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11620. ;;
  11621. esac
  11622. fi
  11623. fi
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11625. $as_echo "$ld_shlibs" >&6; }
  11626. test "$ld_shlibs" = no && can_build_shared=no
  11627. with_gnu_ld=$with_gnu_ld
  11628. #
  11629. # Do we need to explicitly link libc?
  11630. #
  11631. case "x$archive_cmds_need_lc" in
  11632. x|xyes)
  11633. # Assume -lc should be added
  11634. archive_cmds_need_lc=yes
  11635. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11636. case $archive_cmds in
  11637. *'~'*)
  11638. # FIXME: we may have to deal with multi-command sequences.
  11639. ;;
  11640. '$CC '*)
  11641. # Test whether the compiler implicitly links with -lc since on some
  11642. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11643. # to ld, don't add -lc before -lgcc.
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11645. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11646. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11647. $as_echo_n "(cached) " >&6
  11648. else
  11649. $RM conftest*
  11650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11652. (eval $ac_compile) 2>&5
  11653. ac_status=$?
  11654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11655. test $ac_status = 0; } 2>conftest.err; then
  11656. soname=conftest
  11657. lib=conftest
  11658. libobjs=conftest.$ac_objext
  11659. deplibs=
  11660. wl=$lt_prog_compiler_wl
  11661. pic_flag=$lt_prog_compiler_pic
  11662. compiler_flags=-v
  11663. linker_flags=-v
  11664. verstring=
  11665. output_objdir=.
  11666. libname=conftest
  11667. lt_save_allow_undefined_flag=$allow_undefined_flag
  11668. allow_undefined_flag=
  11669. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11670. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11671. ac_status=$?
  11672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11673. test $ac_status = 0; }
  11674. then
  11675. lt_cv_archive_cmds_need_lc=no
  11676. else
  11677. lt_cv_archive_cmds_need_lc=yes
  11678. fi
  11679. allow_undefined_flag=$lt_save_allow_undefined_flag
  11680. else
  11681. cat conftest.err 1>&5
  11682. fi
  11683. $RM conftest*
  11684. fi
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11686. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11687. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11688. ;;
  11689. esac
  11690. fi
  11691. ;;
  11692. esac
  11693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11694. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11695. if test "$GCC" = yes; then
  11696. case $host_os in
  11697. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11698. *) lt_awk_arg="/^libraries:/" ;;
  11699. esac
  11700. case $host_os in
  11701. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11702. *) lt_sed_strip_eq="s,=/,/,g" ;;
  11703. esac
  11704. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11705. case $lt_search_path_spec in
  11706. *\;*)
  11707. # if the path contains ";" then we assume it to be the separator
  11708. # otherwise default to the standard path separator (i.e. ":") - it is
  11709. # assumed that no part of a normal pathname contains ";" but that should
  11710. # okay in the real world where ";" in dirpaths is itself problematic.
  11711. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11712. ;;
  11713. *)
  11714. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11715. ;;
  11716. esac
  11717. # Ok, now we have the path, separated by spaces, we can step through it
  11718. # and add multilib dir if necessary.
  11719. lt_tmp_lt_search_path_spec=
  11720. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11721. for lt_sys_path in $lt_search_path_spec; do
  11722. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11723. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11724. else
  11725. test -d "$lt_sys_path" && \
  11726. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11727. fi
  11728. done
  11729. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11730. BEGIN {RS=" "; FS="/|\n";} {
  11731. lt_foo="";
  11732. lt_count=0;
  11733. for (lt_i = NF; lt_i > 0; lt_i--) {
  11734. if ($lt_i != "" && $lt_i != ".") {
  11735. if ($lt_i == "..") {
  11736. lt_count++;
  11737. } else {
  11738. if (lt_count == 0) {
  11739. lt_foo="/" $lt_i lt_foo;
  11740. } else {
  11741. lt_count--;
  11742. }
  11743. }
  11744. }
  11745. }
  11746. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11747. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11748. }'`
  11749. # AWK program above erroneously prepends '/' to C:/dos/paths
  11750. # for these hosts.
  11751. case $host_os in
  11752. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11753. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11754. esac
  11755. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11756. else
  11757. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11758. fi
  11759. library_names_spec=
  11760. libname_spec='lib$name'
  11761. soname_spec=
  11762. shrext_cmds=".so"
  11763. postinstall_cmds=
  11764. postuninstall_cmds=
  11765. finish_cmds=
  11766. finish_eval=
  11767. shlibpath_var=
  11768. shlibpath_overrides_runpath=unknown
  11769. version_type=none
  11770. dynamic_linker="$host_os ld.so"
  11771. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11772. need_lib_prefix=unknown
  11773. hardcode_into_libs=no
  11774. # when you set need_version to no, make sure it does not cause -set_version
  11775. # flags to be left without arguments
  11776. need_version=unknown
  11777. case $host_os in
  11778. aix3*)
  11779. version_type=linux # correct to gnu/linux during the next big refactor
  11780. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11781. shlibpath_var=LIBPATH
  11782. # AIX 3 has no versioning support, so we append a major version to the name.
  11783. soname_spec='${libname}${release}${shared_ext}$major'
  11784. ;;
  11785. aix[4-9]*)
  11786. version_type=linux # correct to gnu/linux during the next big refactor
  11787. need_lib_prefix=no
  11788. need_version=no
  11789. hardcode_into_libs=yes
  11790. if test "$host_cpu" = ia64; then
  11791. # AIX 5 supports IA64
  11792. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11793. shlibpath_var=LD_LIBRARY_PATH
  11794. else
  11795. # With GCC up to 2.95.x, collect2 would create an import file
  11796. # for dependence libraries. The import file would start with
  11797. # the line `#! .'. This would cause the generated library to
  11798. # depend on `.', always an invalid library. This was fixed in
  11799. # development snapshots of GCC prior to 3.0.
  11800. case $host_os in
  11801. aix4 | aix4.[01] | aix4.[01].*)
  11802. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11803. echo ' yes '
  11804. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11805. :
  11806. else
  11807. can_build_shared=no
  11808. fi
  11809. ;;
  11810. esac
  11811. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11812. # soname into executable. Probably we can add versioning support to
  11813. # collect2, so additional links can be useful in future.
  11814. if test "$aix_use_runtimelinking" = yes; then
  11815. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11816. # instead of lib<name>.a to let people know that these are not
  11817. # typical AIX shared libraries.
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11819. else
  11820. # We preserve .a as extension for shared libraries through AIX4.2
  11821. # and later when we are not doing run time linking.
  11822. library_names_spec='${libname}${release}.a $libname.a'
  11823. soname_spec='${libname}${release}${shared_ext}$major'
  11824. fi
  11825. shlibpath_var=LIBPATH
  11826. fi
  11827. ;;
  11828. amigaos*)
  11829. case $host_cpu in
  11830. powerpc)
  11831. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11832. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11834. ;;
  11835. m68k)
  11836. library_names_spec='$libname.ixlibrary $libname.a'
  11837. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11838. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11839. ;;
  11840. esac
  11841. ;;
  11842. beos*)
  11843. library_names_spec='${libname}${shared_ext}'
  11844. dynamic_linker="$host_os ld.so"
  11845. shlibpath_var=LIBRARY_PATH
  11846. ;;
  11847. bsdi[45]*)
  11848. version_type=linux # correct to gnu/linux during the next big refactor
  11849. need_version=no
  11850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11851. soname_spec='${libname}${release}${shared_ext}$major'
  11852. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11855. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11856. # the default ld.so.conf also contains /usr/contrib/lib and
  11857. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11858. # libtool to hard-code these into programs
  11859. ;;
  11860. cygwin* | mingw* | pw32* | cegcc*)
  11861. version_type=windows
  11862. shrext_cmds=".dll"
  11863. need_version=no
  11864. need_lib_prefix=no
  11865. case $GCC,$cc_basename in
  11866. yes,*)
  11867. # gcc
  11868. library_names_spec='$libname.dll.a'
  11869. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11870. postinstall_cmds='base_file=`basename \${file}`~
  11871. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11872. dldir=$destdir/`dirname \$dlpath`~
  11873. test -d \$dldir || mkdir -p \$dldir~
  11874. $install_prog $dir/$dlname \$dldir/$dlname~
  11875. chmod a+x \$dldir/$dlname~
  11876. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11877. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11878. fi'
  11879. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11880. dlpath=$dir/\$dldll~
  11881. $RM \$dlpath'
  11882. shlibpath_overrides_runpath=yes
  11883. case $host_os in
  11884. cygwin*)
  11885. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11886. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11887. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11888. ;;
  11889. mingw* | cegcc*)
  11890. # MinGW DLLs use traditional 'lib' prefix
  11891. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11892. ;;
  11893. pw32*)
  11894. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11895. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11896. ;;
  11897. esac
  11898. dynamic_linker='Win32 ld.exe'
  11899. ;;
  11900. *,cl*)
  11901. # Native MSVC
  11902. libname_spec='$name'
  11903. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11904. library_names_spec='${libname}.dll.lib'
  11905. case $build_os in
  11906. mingw*)
  11907. sys_lib_search_path_spec=
  11908. lt_save_ifs=$IFS
  11909. IFS=';'
  11910. for lt_path in $LIB
  11911. do
  11912. IFS=$lt_save_ifs
  11913. # Let DOS variable expansion print the short 8.3 style file name.
  11914. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11915. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11916. done
  11917. IFS=$lt_save_ifs
  11918. # Convert to MSYS style.
  11919. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11920. ;;
  11921. cygwin*)
  11922. # Convert to unix form, then to dos form, then back to unix form
  11923. # but this time dos style (no spaces!) so that the unix form looks
  11924. # like /cygdrive/c/PROGRA~1:/cygdr...
  11925. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11926. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11927. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11928. ;;
  11929. *)
  11930. sys_lib_search_path_spec="$LIB"
  11931. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11932. # It is most probably a Windows format PATH.
  11933. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11934. else
  11935. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11936. fi
  11937. # FIXME: find the short name or the path components, as spaces are
  11938. # common. (e.g. "Program Files" -> "PROGRA~1")
  11939. ;;
  11940. esac
  11941. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11942. postinstall_cmds='base_file=`basename \${file}`~
  11943. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11944. dldir=$destdir/`dirname \$dlpath`~
  11945. test -d \$dldir || mkdir -p \$dldir~
  11946. $install_prog $dir/$dlname \$dldir/$dlname'
  11947. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11948. dlpath=$dir/\$dldll~
  11949. $RM \$dlpath'
  11950. shlibpath_overrides_runpath=yes
  11951. dynamic_linker='Win32 link.exe'
  11952. ;;
  11953. *)
  11954. # Assume MSVC wrapper
  11955. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11956. dynamic_linker='Win32 ld.exe'
  11957. ;;
  11958. esac
  11959. # FIXME: first we should search . and the directory the executable is in
  11960. shlibpath_var=PATH
  11961. ;;
  11962. darwin* | rhapsody*)
  11963. dynamic_linker="$host_os dyld"
  11964. version_type=darwin
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11968. soname_spec='${libname}${release}${major}$shared_ext'
  11969. shlibpath_overrides_runpath=yes
  11970. shlibpath_var=DYLD_LIBRARY_PATH
  11971. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11972. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11973. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11974. ;;
  11975. dgux*)
  11976. version_type=linux # correct to gnu/linux during the next big refactor
  11977. need_lib_prefix=no
  11978. need_version=no
  11979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11980. soname_spec='${libname}${release}${shared_ext}$major'
  11981. shlibpath_var=LD_LIBRARY_PATH
  11982. ;;
  11983. freebsd* | dragonfly*)
  11984. # DragonFly does not have aout. When/if they implement a new
  11985. # versioning mechanism, adjust this.
  11986. if test -x /usr/bin/objformat; then
  11987. objformat=`/usr/bin/objformat`
  11988. else
  11989. case $host_os in
  11990. freebsd[23].*) objformat=aout ;;
  11991. *) objformat=elf ;;
  11992. esac
  11993. fi
  11994. version_type=freebsd-$objformat
  11995. case $version_type in
  11996. freebsd-elf*)
  11997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11998. need_version=no
  11999. need_lib_prefix=no
  12000. ;;
  12001. freebsd-*)
  12002. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12003. need_version=yes
  12004. ;;
  12005. esac
  12006. shlibpath_var=LD_LIBRARY_PATH
  12007. case $host_os in
  12008. freebsd2.*)
  12009. shlibpath_overrides_runpath=yes
  12010. ;;
  12011. freebsd3.[01]* | freebsdelf3.[01]*)
  12012. shlibpath_overrides_runpath=yes
  12013. hardcode_into_libs=yes
  12014. ;;
  12015. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12016. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12017. shlibpath_overrides_runpath=no
  12018. hardcode_into_libs=yes
  12019. ;;
  12020. *) # from 4.6 on, and DragonFly
  12021. shlibpath_overrides_runpath=yes
  12022. hardcode_into_libs=yes
  12023. ;;
  12024. esac
  12025. ;;
  12026. gnu*)
  12027. version_type=linux # correct to gnu/linux during the next big refactor
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12031. soname_spec='${libname}${release}${shared_ext}$major'
  12032. shlibpath_var=LD_LIBRARY_PATH
  12033. shlibpath_overrides_runpath=no
  12034. hardcode_into_libs=yes
  12035. ;;
  12036. haiku*)
  12037. version_type=linux # correct to gnu/linux during the next big refactor
  12038. need_lib_prefix=no
  12039. need_version=no
  12040. dynamic_linker="$host_os runtime_loader"
  12041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12042. soname_spec='${libname}${release}${shared_ext}$major'
  12043. shlibpath_var=LIBRARY_PATH
  12044. shlibpath_overrides_runpath=yes
  12045. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12046. hardcode_into_libs=yes
  12047. ;;
  12048. hpux9* | hpux10* | hpux11*)
  12049. # Give a soname corresponding to the major version so that dld.sl refuses to
  12050. # link against other versions.
  12051. version_type=sunos
  12052. need_lib_prefix=no
  12053. need_version=no
  12054. case $host_cpu in
  12055. ia64*)
  12056. shrext_cmds='.so'
  12057. hardcode_into_libs=yes
  12058. dynamic_linker="$host_os dld.so"
  12059. shlibpath_var=LD_LIBRARY_PATH
  12060. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. soname_spec='${libname}${release}${shared_ext}$major'
  12063. if test "X$HPUX_IA64_MODE" = X32; then
  12064. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12065. else
  12066. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12067. fi
  12068. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12069. ;;
  12070. hppa*64*)
  12071. shrext_cmds='.sl'
  12072. hardcode_into_libs=yes
  12073. dynamic_linker="$host_os dld.sl"
  12074. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12075. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12077. soname_spec='${libname}${release}${shared_ext}$major'
  12078. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12079. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12080. ;;
  12081. *)
  12082. shrext_cmds='.sl'
  12083. dynamic_linker="$host_os dld.sl"
  12084. shlibpath_var=SHLIB_PATH
  12085. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12087. soname_spec='${libname}${release}${shared_ext}$major'
  12088. ;;
  12089. esac
  12090. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12091. postinstall_cmds='chmod 555 $lib'
  12092. # or fails outright, so override atomically:
  12093. install_override_mode=555
  12094. ;;
  12095. interix[3-9]*)
  12096. version_type=linux # correct to gnu/linux during the next big refactor
  12097. need_lib_prefix=no
  12098. need_version=no
  12099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12100. soname_spec='${libname}${release}${shared_ext}$major'
  12101. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12102. shlibpath_var=LD_LIBRARY_PATH
  12103. shlibpath_overrides_runpath=no
  12104. hardcode_into_libs=yes
  12105. ;;
  12106. irix5* | irix6* | nonstopux*)
  12107. case $host_os in
  12108. nonstopux*) version_type=nonstopux ;;
  12109. *)
  12110. if test "$lt_cv_prog_gnu_ld" = yes; then
  12111. version_type=linux # correct to gnu/linux during the next big refactor
  12112. else
  12113. version_type=irix
  12114. fi ;;
  12115. esac
  12116. need_lib_prefix=no
  12117. need_version=no
  12118. soname_spec='${libname}${release}${shared_ext}$major'
  12119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12120. case $host_os in
  12121. irix5* | nonstopux*)
  12122. libsuff= shlibsuff=
  12123. ;;
  12124. *)
  12125. case $LD in # libtool.m4 will add one of these switches to LD
  12126. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12127. libsuff= shlibsuff= libmagic=32-bit;;
  12128. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12129. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12130. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12131. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12132. *) libsuff= shlibsuff= libmagic=never-match;;
  12133. esac
  12134. ;;
  12135. esac
  12136. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12137. shlibpath_overrides_runpath=no
  12138. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12139. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12140. hardcode_into_libs=yes
  12141. ;;
  12142. # No shared lib support for Linux oldld, aout, or coff.
  12143. linux*oldld* | linux*aout* | linux*coff*)
  12144. dynamic_linker=no
  12145. ;;
  12146. # This must be glibc/ELF.
  12147. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12148. version_type=linux # correct to gnu/linux during the next big refactor
  12149. need_lib_prefix=no
  12150. need_version=no
  12151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12152. soname_spec='${libname}${release}${shared_ext}$major'
  12153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12154. shlibpath_var=LD_LIBRARY_PATH
  12155. shlibpath_overrides_runpath=no
  12156. # Some binutils ld are patched to set DT_RUNPATH
  12157. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12158. $as_echo_n "(cached) " >&6
  12159. else
  12160. lt_cv_shlibpath_overrides_runpath=no
  12161. save_LDFLAGS=$LDFLAGS
  12162. save_libdir=$libdir
  12163. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12164. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12166. /* end confdefs.h. */
  12167. int
  12168. main ()
  12169. {
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_c_try_link "$LINENO"; then :
  12175. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12176. lt_cv_shlibpath_overrides_runpath=yes
  12177. fi
  12178. fi
  12179. rm -f core conftest.err conftest.$ac_objext \
  12180. conftest$ac_exeext conftest.$ac_ext
  12181. LDFLAGS=$save_LDFLAGS
  12182. libdir=$save_libdir
  12183. fi
  12184. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12185. # This implies no fast_install, which is unacceptable.
  12186. # Some rework will be needed to allow for fast_install
  12187. # before this can be enabled.
  12188. hardcode_into_libs=yes
  12189. # Append ld.so.conf contents to the search path
  12190. if test -f /etc/ld.so.conf; then
  12191. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12192. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12193. fi
  12194. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12195. # powerpc, because MkLinux only supported shared libraries with the
  12196. # GNU dynamic linker. Since this was broken with cross compilers,
  12197. # most powerpc-linux boxes support dynamic linking these days and
  12198. # people can always --disable-shared, the test was removed, and we
  12199. # assume the GNU/Linux dynamic linker is in use.
  12200. dynamic_linker='GNU/Linux ld.so'
  12201. ;;
  12202. netbsd*)
  12203. version_type=sunos
  12204. need_lib_prefix=no
  12205. need_version=no
  12206. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12208. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12209. dynamic_linker='NetBSD (a.out) ld.so'
  12210. else
  12211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12212. soname_spec='${libname}${release}${shared_ext}$major'
  12213. dynamic_linker='NetBSD ld.elf_so'
  12214. fi
  12215. shlibpath_var=LD_LIBRARY_PATH
  12216. shlibpath_overrides_runpath=yes
  12217. hardcode_into_libs=yes
  12218. ;;
  12219. newsos6)
  12220. version_type=linux # correct to gnu/linux during the next big refactor
  12221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12222. shlibpath_var=LD_LIBRARY_PATH
  12223. shlibpath_overrides_runpath=yes
  12224. ;;
  12225. *nto* | *qnx*)
  12226. version_type=qnx
  12227. need_lib_prefix=no
  12228. need_version=no
  12229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12230. soname_spec='${libname}${release}${shared_ext}$major'
  12231. shlibpath_var=LD_LIBRARY_PATH
  12232. shlibpath_overrides_runpath=no
  12233. hardcode_into_libs=yes
  12234. dynamic_linker='ldqnx.so'
  12235. ;;
  12236. openbsd*)
  12237. version_type=sunos
  12238. sys_lib_dlsearch_path_spec="/usr/lib"
  12239. need_lib_prefix=no
  12240. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12241. case $host_os in
  12242. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12243. *) need_version=no ;;
  12244. esac
  12245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12246. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12247. shlibpath_var=LD_LIBRARY_PATH
  12248. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12249. case $host_os in
  12250. openbsd2.[89] | openbsd2.[89].*)
  12251. shlibpath_overrides_runpath=no
  12252. ;;
  12253. *)
  12254. shlibpath_overrides_runpath=yes
  12255. ;;
  12256. esac
  12257. else
  12258. shlibpath_overrides_runpath=yes
  12259. fi
  12260. ;;
  12261. os2*)
  12262. libname_spec='$name'
  12263. shrext_cmds=".dll"
  12264. need_lib_prefix=no
  12265. library_names_spec='$libname${shared_ext} $libname.a'
  12266. dynamic_linker='OS/2 ld.exe'
  12267. shlibpath_var=LIBPATH
  12268. ;;
  12269. osf3* | osf4* | osf5*)
  12270. version_type=osf
  12271. need_lib_prefix=no
  12272. need_version=no
  12273. soname_spec='${libname}${release}${shared_ext}$major'
  12274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12275. shlibpath_var=LD_LIBRARY_PATH
  12276. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12277. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12278. ;;
  12279. rdos*)
  12280. dynamic_linker=no
  12281. ;;
  12282. solaris*)
  12283. version_type=linux # correct to gnu/linux during the next big refactor
  12284. need_lib_prefix=no
  12285. need_version=no
  12286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12287. soname_spec='${libname}${release}${shared_ext}$major'
  12288. shlibpath_var=LD_LIBRARY_PATH
  12289. shlibpath_overrides_runpath=yes
  12290. hardcode_into_libs=yes
  12291. # ldd complains unless libraries are executable
  12292. postinstall_cmds='chmod +x $lib'
  12293. ;;
  12294. sunos4*)
  12295. version_type=sunos
  12296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12297. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12298. shlibpath_var=LD_LIBRARY_PATH
  12299. shlibpath_overrides_runpath=yes
  12300. if test "$with_gnu_ld" = yes; then
  12301. need_lib_prefix=no
  12302. fi
  12303. need_version=yes
  12304. ;;
  12305. sysv4 | sysv4.3*)
  12306. version_type=linux # correct to gnu/linux during the next big refactor
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. shlibpath_var=LD_LIBRARY_PATH
  12310. case $host_vendor in
  12311. sni)
  12312. shlibpath_overrides_runpath=no
  12313. need_lib_prefix=no
  12314. runpath_var=LD_RUN_PATH
  12315. ;;
  12316. siemens)
  12317. need_lib_prefix=no
  12318. ;;
  12319. motorola)
  12320. need_lib_prefix=no
  12321. need_version=no
  12322. shlibpath_overrides_runpath=no
  12323. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12324. ;;
  12325. esac
  12326. ;;
  12327. sysv4*MP*)
  12328. if test -d /usr/nec ;then
  12329. version_type=linux # correct to gnu/linux during the next big refactor
  12330. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12331. soname_spec='$libname${shared_ext}.$major'
  12332. shlibpath_var=LD_LIBRARY_PATH
  12333. fi
  12334. ;;
  12335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12336. version_type=freebsd-elf
  12337. need_lib_prefix=no
  12338. need_version=no
  12339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12340. soname_spec='${libname}${release}${shared_ext}$major'
  12341. shlibpath_var=LD_LIBRARY_PATH
  12342. shlibpath_overrides_runpath=yes
  12343. hardcode_into_libs=yes
  12344. if test "$with_gnu_ld" = yes; then
  12345. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12346. else
  12347. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12348. case $host_os in
  12349. sco3.2v5*)
  12350. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12351. ;;
  12352. esac
  12353. fi
  12354. sys_lib_dlsearch_path_spec='/usr/lib'
  12355. ;;
  12356. tpf*)
  12357. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12358. version_type=linux # correct to gnu/linux during the next big refactor
  12359. need_lib_prefix=no
  12360. need_version=no
  12361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12362. shlibpath_var=LD_LIBRARY_PATH
  12363. shlibpath_overrides_runpath=no
  12364. hardcode_into_libs=yes
  12365. ;;
  12366. uts4*)
  12367. version_type=linux # correct to gnu/linux during the next big refactor
  12368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. shlibpath_var=LD_LIBRARY_PATH
  12371. ;;
  12372. *)
  12373. dynamic_linker=no
  12374. ;;
  12375. esac
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12377. $as_echo "$dynamic_linker" >&6; }
  12378. test "$dynamic_linker" = no && can_build_shared=no
  12379. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12380. if test "$GCC" = yes; then
  12381. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12382. fi
  12383. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12384. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12385. fi
  12386. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12387. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12390. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12391. hardcode_action=
  12392. if test -n "$hardcode_libdir_flag_spec" ||
  12393. test -n "$runpath_var" ||
  12394. test "X$hardcode_automatic" = "Xyes" ; then
  12395. # We can hardcode non-existent directories.
  12396. if test "$hardcode_direct" != no &&
  12397. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12398. # have to relink, otherwise we might link with an installed library
  12399. # when we should be linking with a yet-to-be-installed one
  12400. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  12401. test "$hardcode_minus_L" != no; then
  12402. # Linking always hardcodes the temporary library directory.
  12403. hardcode_action=relink
  12404. else
  12405. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12406. hardcode_action=immediate
  12407. fi
  12408. else
  12409. # We cannot hardcode anything, or else we can only hardcode existing
  12410. # directories.
  12411. hardcode_action=unsupported
  12412. fi
  12413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12414. $as_echo "$hardcode_action" >&6; }
  12415. if test "$hardcode_action" = relink ||
  12416. test "$inherit_rpath" = yes; then
  12417. # Fast installation is not supported
  12418. enable_fast_install=no
  12419. elif test "$shlibpath_overrides_runpath" = yes ||
  12420. test "$enable_shared" = no; then
  12421. # Fast installation is not necessary
  12422. enable_fast_install=needless
  12423. fi
  12424. if test "x$enable_dlopen" != xyes; then
  12425. enable_dlopen=unknown
  12426. enable_dlopen_self=unknown
  12427. enable_dlopen_self_static=unknown
  12428. else
  12429. lt_cv_dlopen=no
  12430. lt_cv_dlopen_libs=
  12431. case $host_os in
  12432. beos*)
  12433. lt_cv_dlopen="load_add_on"
  12434. lt_cv_dlopen_libs=
  12435. lt_cv_dlopen_self=yes
  12436. ;;
  12437. mingw* | pw32* | cegcc*)
  12438. lt_cv_dlopen="LoadLibrary"
  12439. lt_cv_dlopen_libs=
  12440. ;;
  12441. cygwin*)
  12442. lt_cv_dlopen="dlopen"
  12443. lt_cv_dlopen_libs=
  12444. ;;
  12445. darwin*)
  12446. # if libdl is installed we need to link against it
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12448. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12449. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. ac_check_lib_save_LIBS=$LIBS
  12453. LIBS="-ldl $LIBS"
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. /* Override any GCC internal prototype to avoid an error.
  12457. Use char because int might match the return type of a GCC
  12458. builtin and then its argument prototype would still apply. */
  12459. #ifdef __cplusplus
  12460. extern "C"
  12461. #endif
  12462. char dlopen ();
  12463. int
  12464. main ()
  12465. {
  12466. return dlopen ();
  12467. ;
  12468. return 0;
  12469. }
  12470. _ACEOF
  12471. if ac_fn_c_try_link "$LINENO"; then :
  12472. ac_cv_lib_dl_dlopen=yes
  12473. else
  12474. ac_cv_lib_dl_dlopen=no
  12475. fi
  12476. rm -f core conftest.err conftest.$ac_objext \
  12477. conftest$ac_exeext conftest.$ac_ext
  12478. LIBS=$ac_check_lib_save_LIBS
  12479. fi
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12481. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12482. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12483. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12484. else
  12485. lt_cv_dlopen="dyld"
  12486. lt_cv_dlopen_libs=
  12487. lt_cv_dlopen_self=yes
  12488. fi
  12489. ;;
  12490. *)
  12491. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12492. if test "x$ac_cv_func_shl_load" = xyes; then :
  12493. lt_cv_dlopen="shl_load"
  12494. else
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12496. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12497. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. ac_check_lib_save_LIBS=$LIBS
  12501. LIBS="-ldld $LIBS"
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. /* Override any GCC internal prototype to avoid an error.
  12505. Use char because int might match the return type of a GCC
  12506. builtin and then its argument prototype would still apply. */
  12507. #ifdef __cplusplus
  12508. extern "C"
  12509. #endif
  12510. char shl_load ();
  12511. int
  12512. main ()
  12513. {
  12514. return shl_load ();
  12515. ;
  12516. return 0;
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_link "$LINENO"; then :
  12520. ac_cv_lib_dld_shl_load=yes
  12521. else
  12522. ac_cv_lib_dld_shl_load=no
  12523. fi
  12524. rm -f core conftest.err conftest.$ac_objext \
  12525. conftest$ac_exeext conftest.$ac_ext
  12526. LIBS=$ac_check_lib_save_LIBS
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12529. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12530. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12531. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12532. else
  12533. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12534. if test "x$ac_cv_func_dlopen" = xyes; then :
  12535. lt_cv_dlopen="dlopen"
  12536. else
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12538. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12539. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. ac_check_lib_save_LIBS=$LIBS
  12543. LIBS="-ldl $LIBS"
  12544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12545. /* end confdefs.h. */
  12546. /* Override any GCC internal prototype to avoid an error.
  12547. Use char because int might match the return type of a GCC
  12548. builtin and then its argument prototype would still apply. */
  12549. #ifdef __cplusplus
  12550. extern "C"
  12551. #endif
  12552. char dlopen ();
  12553. int
  12554. main ()
  12555. {
  12556. return dlopen ();
  12557. ;
  12558. return 0;
  12559. }
  12560. _ACEOF
  12561. if ac_fn_c_try_link "$LINENO"; then :
  12562. ac_cv_lib_dl_dlopen=yes
  12563. else
  12564. ac_cv_lib_dl_dlopen=no
  12565. fi
  12566. rm -f core conftest.err conftest.$ac_objext \
  12567. conftest$ac_exeext conftest.$ac_ext
  12568. LIBS=$ac_check_lib_save_LIBS
  12569. fi
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12571. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12572. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12573. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12574. else
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12576. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12577. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12578. $as_echo_n "(cached) " >&6
  12579. else
  12580. ac_check_lib_save_LIBS=$LIBS
  12581. LIBS="-lsvld $LIBS"
  12582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12583. /* end confdefs.h. */
  12584. /* Override any GCC internal prototype to avoid an error.
  12585. Use char because int might match the return type of a GCC
  12586. builtin and then its argument prototype would still apply. */
  12587. #ifdef __cplusplus
  12588. extern "C"
  12589. #endif
  12590. char dlopen ();
  12591. int
  12592. main ()
  12593. {
  12594. return dlopen ();
  12595. ;
  12596. return 0;
  12597. }
  12598. _ACEOF
  12599. if ac_fn_c_try_link "$LINENO"; then :
  12600. ac_cv_lib_svld_dlopen=yes
  12601. else
  12602. ac_cv_lib_svld_dlopen=no
  12603. fi
  12604. rm -f core conftest.err conftest.$ac_objext \
  12605. conftest$ac_exeext conftest.$ac_ext
  12606. LIBS=$ac_check_lib_save_LIBS
  12607. fi
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12609. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12610. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12611. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12612. else
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12614. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12615. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. ac_check_lib_save_LIBS=$LIBS
  12619. LIBS="-ldld $LIBS"
  12620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12621. /* end confdefs.h. */
  12622. /* Override any GCC internal prototype to avoid an error.
  12623. Use char because int might match the return type of a GCC
  12624. builtin and then its argument prototype would still apply. */
  12625. #ifdef __cplusplus
  12626. extern "C"
  12627. #endif
  12628. char dld_link ();
  12629. int
  12630. main ()
  12631. {
  12632. return dld_link ();
  12633. ;
  12634. return 0;
  12635. }
  12636. _ACEOF
  12637. if ac_fn_c_try_link "$LINENO"; then :
  12638. ac_cv_lib_dld_dld_link=yes
  12639. else
  12640. ac_cv_lib_dld_dld_link=no
  12641. fi
  12642. rm -f core conftest.err conftest.$ac_objext \
  12643. conftest$ac_exeext conftest.$ac_ext
  12644. LIBS=$ac_check_lib_save_LIBS
  12645. fi
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12647. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12648. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12649. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12650. fi
  12651. fi
  12652. fi
  12653. fi
  12654. fi
  12655. fi
  12656. ;;
  12657. esac
  12658. if test "x$lt_cv_dlopen" != xno; then
  12659. enable_dlopen=yes
  12660. else
  12661. enable_dlopen=no
  12662. fi
  12663. case $lt_cv_dlopen in
  12664. dlopen)
  12665. save_CPPFLAGS="$CPPFLAGS"
  12666. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12667. save_LDFLAGS="$LDFLAGS"
  12668. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12669. save_LIBS="$LIBS"
  12670. LIBS="$lt_cv_dlopen_libs $LIBS"
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12672. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12673. if ${lt_cv_dlopen_self+:} false; then :
  12674. $as_echo_n "(cached) " >&6
  12675. else
  12676. if test "$cross_compiling" = yes; then :
  12677. lt_cv_dlopen_self=cross
  12678. else
  12679. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12680. lt_status=$lt_dlunknown
  12681. cat > conftest.$ac_ext <<_LT_EOF
  12682. #line $LINENO "configure"
  12683. #include "confdefs.h"
  12684. #if HAVE_DLFCN_H
  12685. #include <dlfcn.h>
  12686. #endif
  12687. #include <stdio.h>
  12688. #ifdef RTLD_GLOBAL
  12689. # define LT_DLGLOBAL RTLD_GLOBAL
  12690. #else
  12691. # ifdef DL_GLOBAL
  12692. # define LT_DLGLOBAL DL_GLOBAL
  12693. # else
  12694. # define LT_DLGLOBAL 0
  12695. # endif
  12696. #endif
  12697. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12698. find out it does not work in some platform. */
  12699. #ifndef LT_DLLAZY_OR_NOW
  12700. # ifdef RTLD_LAZY
  12701. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12702. # else
  12703. # ifdef DL_LAZY
  12704. # define LT_DLLAZY_OR_NOW DL_LAZY
  12705. # else
  12706. # ifdef RTLD_NOW
  12707. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12708. # else
  12709. # ifdef DL_NOW
  12710. # define LT_DLLAZY_OR_NOW DL_NOW
  12711. # else
  12712. # define LT_DLLAZY_OR_NOW 0
  12713. # endif
  12714. # endif
  12715. # endif
  12716. # endif
  12717. #endif
  12718. /* When -fvisbility=hidden is used, assume the code has been annotated
  12719. correspondingly for the symbols needed. */
  12720. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12721. int fnord () __attribute__((visibility("default")));
  12722. #endif
  12723. int fnord () { return 42; }
  12724. int main ()
  12725. {
  12726. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12727. int status = $lt_dlunknown;
  12728. if (self)
  12729. {
  12730. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12731. else
  12732. {
  12733. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12734. else puts (dlerror ());
  12735. }
  12736. /* dlclose (self); */
  12737. }
  12738. else
  12739. puts (dlerror ());
  12740. return status;
  12741. }
  12742. _LT_EOF
  12743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12744. (eval $ac_link) 2>&5
  12745. ac_status=$?
  12746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12747. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12748. (./conftest; exit; ) >&5 2>/dev/null
  12749. lt_status=$?
  12750. case x$lt_status in
  12751. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12752. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12753. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12754. esac
  12755. else :
  12756. # compilation failed
  12757. lt_cv_dlopen_self=no
  12758. fi
  12759. fi
  12760. rm -fr conftest*
  12761. fi
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12763. $as_echo "$lt_cv_dlopen_self" >&6; }
  12764. if test "x$lt_cv_dlopen_self" = xyes; then
  12765. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12767. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12768. if ${lt_cv_dlopen_self_static+:} false; then :
  12769. $as_echo_n "(cached) " >&6
  12770. else
  12771. if test "$cross_compiling" = yes; then :
  12772. lt_cv_dlopen_self_static=cross
  12773. else
  12774. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12775. lt_status=$lt_dlunknown
  12776. cat > conftest.$ac_ext <<_LT_EOF
  12777. #line $LINENO "configure"
  12778. #include "confdefs.h"
  12779. #if HAVE_DLFCN_H
  12780. #include <dlfcn.h>
  12781. #endif
  12782. #include <stdio.h>
  12783. #ifdef RTLD_GLOBAL
  12784. # define LT_DLGLOBAL RTLD_GLOBAL
  12785. #else
  12786. # ifdef DL_GLOBAL
  12787. # define LT_DLGLOBAL DL_GLOBAL
  12788. # else
  12789. # define LT_DLGLOBAL 0
  12790. # endif
  12791. #endif
  12792. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12793. find out it does not work in some platform. */
  12794. #ifndef LT_DLLAZY_OR_NOW
  12795. # ifdef RTLD_LAZY
  12796. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12797. # else
  12798. # ifdef DL_LAZY
  12799. # define LT_DLLAZY_OR_NOW DL_LAZY
  12800. # else
  12801. # ifdef RTLD_NOW
  12802. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12803. # else
  12804. # ifdef DL_NOW
  12805. # define LT_DLLAZY_OR_NOW DL_NOW
  12806. # else
  12807. # define LT_DLLAZY_OR_NOW 0
  12808. # endif
  12809. # endif
  12810. # endif
  12811. # endif
  12812. #endif
  12813. /* When -fvisbility=hidden is used, assume the code has been annotated
  12814. correspondingly for the symbols needed. */
  12815. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12816. int fnord () __attribute__((visibility("default")));
  12817. #endif
  12818. int fnord () { return 42; }
  12819. int main ()
  12820. {
  12821. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12822. int status = $lt_dlunknown;
  12823. if (self)
  12824. {
  12825. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12826. else
  12827. {
  12828. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12829. else puts (dlerror ());
  12830. }
  12831. /* dlclose (self); */
  12832. }
  12833. else
  12834. puts (dlerror ());
  12835. return status;
  12836. }
  12837. _LT_EOF
  12838. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12839. (eval $ac_link) 2>&5
  12840. ac_status=$?
  12841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12842. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12843. (./conftest; exit; ) >&5 2>/dev/null
  12844. lt_status=$?
  12845. case x$lt_status in
  12846. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12847. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12848. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12849. esac
  12850. else :
  12851. # compilation failed
  12852. lt_cv_dlopen_self_static=no
  12853. fi
  12854. fi
  12855. rm -fr conftest*
  12856. fi
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12858. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12859. fi
  12860. CPPFLAGS="$save_CPPFLAGS"
  12861. LDFLAGS="$save_LDFLAGS"
  12862. LIBS="$save_LIBS"
  12863. ;;
  12864. esac
  12865. case $lt_cv_dlopen_self in
  12866. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12867. *) enable_dlopen_self=unknown ;;
  12868. esac
  12869. case $lt_cv_dlopen_self_static in
  12870. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12871. *) enable_dlopen_self_static=unknown ;;
  12872. esac
  12873. fi
  12874. striplib=
  12875. old_striplib=
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12877. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12878. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12879. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12880. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12882. $as_echo "yes" >&6; }
  12883. else
  12884. # FIXME - insert some real tests, host_os isn't really good enough
  12885. case $host_os in
  12886. darwin*)
  12887. if test -n "$STRIP" ; then
  12888. striplib="$STRIP -x"
  12889. old_striplib="$STRIP -S"
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12891. $as_echo "yes" >&6; }
  12892. else
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12894. $as_echo "no" >&6; }
  12895. fi
  12896. ;;
  12897. *)
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12899. $as_echo "no" >&6; }
  12900. ;;
  12901. esac
  12902. fi
  12903. # Report which library types will actually be built
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12905. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12907. $as_echo "$can_build_shared" >&6; }
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12909. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12910. test "$can_build_shared" = "no" && enable_shared=no
  12911. # On AIX, shared libraries and static libraries use the same namespace, and
  12912. # are all built from PIC.
  12913. case $host_os in
  12914. aix3*)
  12915. test "$enable_shared" = yes && enable_static=no
  12916. if test -n "$RANLIB"; then
  12917. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12918. postinstall_cmds='$RANLIB $lib'
  12919. fi
  12920. ;;
  12921. aix[4-9]*)
  12922. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12923. test "$enable_shared" = yes && enable_static=no
  12924. fi
  12925. ;;
  12926. esac
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12928. $as_echo "$enable_shared" >&6; }
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12930. $as_echo_n "checking whether to build static libraries... " >&6; }
  12931. # Make sure either enable_shared or enable_static is yes.
  12932. test "$enable_shared" = yes || enable_static=yes
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12934. $as_echo "$enable_static" >&6; }
  12935. fi
  12936. ac_ext=c
  12937. ac_cpp='$CPP $CPPFLAGS'
  12938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12941. CC="$lt_save_CC"
  12942. ac_config_commands="$ac_config_commands libtool"
  12943. # Only expand once:
  12944. ac_ext=cpp
  12945. ac_cpp='$CXXCPP $CPPFLAGS'
  12946. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12947. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12948. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12949. if test -z "$CXX"; then
  12950. if test -n "$CCC"; then
  12951. CXX=$CCC
  12952. else
  12953. if test -n "$ac_tool_prefix"; then
  12954. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12955. do
  12956. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12957. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12959. $as_echo_n "checking for $ac_word... " >&6; }
  12960. if ${ac_cv_prog_CXX+:} false; then :
  12961. $as_echo_n "(cached) " >&6
  12962. else
  12963. if test -n "$CXX"; then
  12964. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12965. else
  12966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12967. for as_dir in $PATH
  12968. do
  12969. IFS=$as_save_IFS
  12970. test -z "$as_dir" && as_dir=.
  12971. for ac_exec_ext in '' $ac_executable_extensions; do
  12972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12973. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12975. break 2
  12976. fi
  12977. done
  12978. done
  12979. IFS=$as_save_IFS
  12980. fi
  12981. fi
  12982. CXX=$ac_cv_prog_CXX
  12983. if test -n "$CXX"; then
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12985. $as_echo "$CXX" >&6; }
  12986. else
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12988. $as_echo "no" >&6; }
  12989. fi
  12990. test -n "$CXX" && break
  12991. done
  12992. fi
  12993. if test -z "$CXX"; then
  12994. ac_ct_CXX=$CXX
  12995. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12996. do
  12997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12998. set dummy $ac_prog; ac_word=$2
  12999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13000. $as_echo_n "checking for $ac_word... " >&6; }
  13001. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  13002. $as_echo_n "(cached) " >&6
  13003. else
  13004. if test -n "$ac_ct_CXX"; then
  13005. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13006. else
  13007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13008. for as_dir in $PATH
  13009. do
  13010. IFS=$as_save_IFS
  13011. test -z "$as_dir" && as_dir=.
  13012. for ac_exec_ext in '' $ac_executable_extensions; do
  13013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13014. ac_cv_prog_ac_ct_CXX="$ac_prog"
  13015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13016. break 2
  13017. fi
  13018. done
  13019. done
  13020. IFS=$as_save_IFS
  13021. fi
  13022. fi
  13023. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13024. if test -n "$ac_ct_CXX"; then
  13025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13026. $as_echo "$ac_ct_CXX" >&6; }
  13027. else
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13029. $as_echo "no" >&6; }
  13030. fi
  13031. test -n "$ac_ct_CXX" && break
  13032. done
  13033. if test "x$ac_ct_CXX" = x; then
  13034. CXX="g++"
  13035. else
  13036. case $cross_compiling:$ac_tool_warned in
  13037. yes:)
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13040. ac_tool_warned=yes ;;
  13041. esac
  13042. CXX=$ac_ct_CXX
  13043. fi
  13044. fi
  13045. fi
  13046. fi
  13047. # Provide some information about the compiler.
  13048. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13049. set X $ac_compile
  13050. ac_compiler=$2
  13051. for ac_option in --version -v -V -qversion; do
  13052. { { ac_try="$ac_compiler $ac_option >&5"
  13053. case "(($ac_try" in
  13054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13055. *) ac_try_echo=$ac_try;;
  13056. esac
  13057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13058. $as_echo "$ac_try_echo"; } >&5
  13059. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13060. ac_status=$?
  13061. if test -s conftest.err; then
  13062. sed '10a\
  13063. ... rest of stderr output deleted ...
  13064. 10q' conftest.err >conftest.er1
  13065. cat conftest.er1 >&5
  13066. fi
  13067. rm -f conftest.er1 conftest.err
  13068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13069. test $ac_status = 0; }
  13070. done
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  13072. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  13073. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  13074. $as_echo_n "(cached) " >&6
  13075. else
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. int
  13079. main ()
  13080. {
  13081. #ifndef __GNUC__
  13082. choke me
  13083. #endif
  13084. ;
  13085. return 0;
  13086. }
  13087. _ACEOF
  13088. if ac_fn_cxx_try_compile "$LINENO"; then :
  13089. ac_compiler_gnu=yes
  13090. else
  13091. ac_compiler_gnu=no
  13092. fi
  13093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13094. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13095. fi
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13097. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  13098. if test $ac_compiler_gnu = yes; then
  13099. GXX=yes
  13100. else
  13101. GXX=
  13102. fi
  13103. ac_test_CXXFLAGS=${CXXFLAGS+set}
  13104. ac_save_CXXFLAGS=$CXXFLAGS
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13106. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  13107. if ${ac_cv_prog_cxx_g+:} false; then :
  13108. $as_echo_n "(cached) " >&6
  13109. else
  13110. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13111. ac_cxx_werror_flag=yes
  13112. ac_cv_prog_cxx_g=no
  13113. CXXFLAGS="-g"
  13114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13115. /* end confdefs.h. */
  13116. int
  13117. main ()
  13118. {
  13119. ;
  13120. return 0;
  13121. }
  13122. _ACEOF
  13123. if ac_fn_cxx_try_compile "$LINENO"; then :
  13124. ac_cv_prog_cxx_g=yes
  13125. else
  13126. CXXFLAGS=""
  13127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13128. /* end confdefs.h. */
  13129. int
  13130. main ()
  13131. {
  13132. ;
  13133. return 0;
  13134. }
  13135. _ACEOF
  13136. if ac_fn_cxx_try_compile "$LINENO"; then :
  13137. else
  13138. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13139. CXXFLAGS="-g"
  13140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13141. /* end confdefs.h. */
  13142. int
  13143. main ()
  13144. {
  13145. ;
  13146. return 0;
  13147. }
  13148. _ACEOF
  13149. if ac_fn_cxx_try_compile "$LINENO"; then :
  13150. ac_cv_prog_cxx_g=yes
  13151. fi
  13152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13153. fi
  13154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13155. fi
  13156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13157. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13158. fi
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13160. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  13161. if test "$ac_test_CXXFLAGS" = set; then
  13162. CXXFLAGS=$ac_save_CXXFLAGS
  13163. elif test $ac_cv_prog_cxx_g = yes; then
  13164. if test "$GXX" = yes; then
  13165. CXXFLAGS="-g -O2"
  13166. else
  13167. CXXFLAGS="-g"
  13168. fi
  13169. else
  13170. if test "$GXX" = yes; then
  13171. CXXFLAGS="-O2"
  13172. else
  13173. CXXFLAGS=
  13174. fi
  13175. fi
  13176. ac_ext=c
  13177. ac_cpp='$CPP $CPPFLAGS'
  13178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13181. depcc="$CXX" am_compiler_list=
  13182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13183. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13184. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13185. $as_echo_n "(cached) " >&6
  13186. else
  13187. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13188. # We make a subdir and do the tests there. Otherwise we can end up
  13189. # making bogus files that we don't know about and never remove. For
  13190. # instance it was reported that on HP-UX the gcc test will end up
  13191. # making a dummy file named `D' -- because `-MD' means `put the output
  13192. # in D'.
  13193. rm -rf conftest.dir
  13194. mkdir conftest.dir
  13195. # Copy depcomp to subdir because otherwise we won't find it if we're
  13196. # using a relative directory.
  13197. cp "$am_depcomp" conftest.dir
  13198. cd conftest.dir
  13199. # We will build objects and dependencies in a subdirectory because
  13200. # it helps to detect inapplicable dependency modes. For instance
  13201. # both Tru64's cc and ICC support -MD to output dependencies as a
  13202. # side effect of compilation, but ICC will put the dependencies in
  13203. # the current directory while Tru64 will put them in the object
  13204. # directory.
  13205. mkdir sub
  13206. am_cv_CXX_dependencies_compiler_type=none
  13207. if test "$am_compiler_list" = ""; then
  13208. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13209. fi
  13210. am__universal=false
  13211. case " $depcc " in #(
  13212. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13213. esac
  13214. for depmode in $am_compiler_list; do
  13215. # Setup a source with many dependencies, because some compilers
  13216. # like to wrap large dependency lists on column 80 (with \), and
  13217. # we should not choose a depcomp mode which is confused by this.
  13218. #
  13219. # We need to recreate these files for each test, as the compiler may
  13220. # overwrite some of them when testing with obscure command lines.
  13221. # This happens at least with the AIX C compiler.
  13222. : > sub/conftest.c
  13223. for i in 1 2 3 4 5 6; do
  13224. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13225. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13226. # Solaris 8's {/usr,}/bin/sh.
  13227. touch sub/conftst$i.h
  13228. done
  13229. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13230. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13231. # mode. It turns out that the SunPro C++ compiler does not properly
  13232. # handle `-M -o', and we need to detect this. Also, some Intel
  13233. # versions had trouble with output in subdirs
  13234. am__obj=sub/conftest.${OBJEXT-o}
  13235. am__minus_obj="-o $am__obj"
  13236. case $depmode in
  13237. gcc)
  13238. # This depmode causes a compiler race in universal mode.
  13239. test "$am__universal" = false || continue
  13240. ;;
  13241. nosideeffect)
  13242. # after this tag, mechanisms are not by side-effect, so they'll
  13243. # only be used when explicitly requested
  13244. if test "x$enable_dependency_tracking" = xyes; then
  13245. continue
  13246. else
  13247. break
  13248. fi
  13249. ;;
  13250. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13251. # This compiler won't grok `-c -o', but also, the minuso test has
  13252. # not run yet. These depmodes are late enough in the game, and
  13253. # so weak that their functioning should not be impacted.
  13254. am__obj=conftest.${OBJEXT-o}
  13255. am__minus_obj=
  13256. ;;
  13257. none) break ;;
  13258. esac
  13259. if depmode=$depmode \
  13260. source=sub/conftest.c object=$am__obj \
  13261. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13262. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13263. >/dev/null 2>conftest.err &&
  13264. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13265. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13266. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13267. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13268. # icc doesn't choke on unknown options, it will just issue warnings
  13269. # or remarks (even with -Werror). So we grep stderr for any message
  13270. # that says an option was ignored or not supported.
  13271. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13272. # icc: Command line warning: ignoring option '-M'; no argument required
  13273. # The diagnosis changed in icc 8.0:
  13274. # icc: Command line remark: option '-MP' not supported
  13275. if (grep 'ignoring option' conftest.err ||
  13276. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13277. am_cv_CXX_dependencies_compiler_type=$depmode
  13278. break
  13279. fi
  13280. fi
  13281. done
  13282. cd ..
  13283. rm -rf conftest.dir
  13284. else
  13285. am_cv_CXX_dependencies_compiler_type=none
  13286. fi
  13287. fi
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13289. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13290. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13291. if
  13292. test "x$enable_dependency_tracking" != xno \
  13293. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13294. am__fastdepCXX_TRUE=
  13295. am__fastdepCXX_FALSE='#'
  13296. else
  13297. am__fastdepCXX_TRUE='#'
  13298. am__fastdepCXX_FALSE=
  13299. fi
  13300. func_stripname_cnf ()
  13301. {
  13302. case ${2} in
  13303. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13304. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13305. esac
  13306. } # func_stripname_cnf
  13307. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  13308. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  13309. (test "X$CXX" != "Xg++"))) ; then
  13310. ac_ext=cpp
  13311. ac_cpp='$CXXCPP $CPPFLAGS'
  13312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13316. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  13317. if test -z "$CXXCPP"; then
  13318. if ${ac_cv_prog_CXXCPP+:} false; then :
  13319. $as_echo_n "(cached) " >&6
  13320. else
  13321. # Double quotes because CXXCPP needs to be expanded
  13322. for CXXCPP in "$CXX -E" "/lib/cpp"
  13323. do
  13324. ac_preproc_ok=false
  13325. for ac_cxx_preproc_warn_flag in '' yes
  13326. do
  13327. # Use a header file that comes with gcc, so configuring glibc
  13328. # with a fresh cross-compiler works.
  13329. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13330. # <limits.h> exists even on freestanding compilers.
  13331. # On the NeXT, cc -E runs the code through the compiler's parser,
  13332. # not just through cpp. "Syntax error" is here to catch this case.
  13333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13334. /* end confdefs.h. */
  13335. #ifdef __STDC__
  13336. # include <limits.h>
  13337. #else
  13338. # include <assert.h>
  13339. #endif
  13340. Syntax error
  13341. _ACEOF
  13342. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13343. else
  13344. # Broken: fails on valid input.
  13345. continue
  13346. fi
  13347. rm -f conftest.err conftest.i conftest.$ac_ext
  13348. # OK, works on sane cases. Now check whether nonexistent headers
  13349. # can be detected and how.
  13350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13351. /* end confdefs.h. */
  13352. #include <ac_nonexistent.h>
  13353. _ACEOF
  13354. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13355. # Broken: success on invalid input.
  13356. continue
  13357. else
  13358. # Passes both tests.
  13359. ac_preproc_ok=:
  13360. break
  13361. fi
  13362. rm -f conftest.err conftest.i conftest.$ac_ext
  13363. done
  13364. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13365. rm -f conftest.i conftest.err conftest.$ac_ext
  13366. if $ac_preproc_ok; then :
  13367. break
  13368. fi
  13369. done
  13370. ac_cv_prog_CXXCPP=$CXXCPP
  13371. fi
  13372. CXXCPP=$ac_cv_prog_CXXCPP
  13373. else
  13374. ac_cv_prog_CXXCPP=$CXXCPP
  13375. fi
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13377. $as_echo "$CXXCPP" >&6; }
  13378. ac_preproc_ok=false
  13379. for ac_cxx_preproc_warn_flag in '' yes
  13380. do
  13381. # Use a header file that comes with gcc, so configuring glibc
  13382. # with a fresh cross-compiler works.
  13383. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13384. # <limits.h> exists even on freestanding compilers.
  13385. # On the NeXT, cc -E runs the code through the compiler's parser,
  13386. # not just through cpp. "Syntax error" is here to catch this case.
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. #ifdef __STDC__
  13390. # include <limits.h>
  13391. #else
  13392. # include <assert.h>
  13393. #endif
  13394. Syntax error
  13395. _ACEOF
  13396. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13397. else
  13398. # Broken: fails on valid input.
  13399. continue
  13400. fi
  13401. rm -f conftest.err conftest.i conftest.$ac_ext
  13402. # OK, works on sane cases. Now check whether nonexistent headers
  13403. # can be detected and how.
  13404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13405. /* end confdefs.h. */
  13406. #include <ac_nonexistent.h>
  13407. _ACEOF
  13408. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13409. # Broken: success on invalid input.
  13410. continue
  13411. else
  13412. # Passes both tests.
  13413. ac_preproc_ok=:
  13414. break
  13415. fi
  13416. rm -f conftest.err conftest.i conftest.$ac_ext
  13417. done
  13418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13419. rm -f conftest.i conftest.err conftest.$ac_ext
  13420. if $ac_preproc_ok; then :
  13421. else
  13422. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13423. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13424. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13425. See \`config.log' for more details" "$LINENO" 5; }
  13426. fi
  13427. ac_ext=c
  13428. ac_cpp='$CPP $CPPFLAGS'
  13429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13432. else
  13433. _lt_caught_CXX_error=yes
  13434. fi
  13435. ac_ext=cpp
  13436. ac_cpp='$CXXCPP $CPPFLAGS'
  13437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13440. archive_cmds_need_lc_CXX=no
  13441. allow_undefined_flag_CXX=
  13442. always_export_symbols_CXX=no
  13443. archive_expsym_cmds_CXX=
  13444. compiler_needs_object_CXX=no
  13445. export_dynamic_flag_spec_CXX=
  13446. hardcode_direct_CXX=no
  13447. hardcode_direct_absolute_CXX=no
  13448. hardcode_libdir_flag_spec_CXX=
  13449. hardcode_libdir_separator_CXX=
  13450. hardcode_minus_L_CXX=no
  13451. hardcode_shlibpath_var_CXX=unsupported
  13452. hardcode_automatic_CXX=no
  13453. inherit_rpath_CXX=no
  13454. module_cmds_CXX=
  13455. module_expsym_cmds_CXX=
  13456. link_all_deplibs_CXX=unknown
  13457. old_archive_cmds_CXX=$old_archive_cmds
  13458. reload_flag_CXX=$reload_flag
  13459. reload_cmds_CXX=$reload_cmds
  13460. no_undefined_flag_CXX=
  13461. whole_archive_flag_spec_CXX=
  13462. enable_shared_with_static_runtimes_CXX=no
  13463. # Source file extension for C++ test sources.
  13464. ac_ext=cpp
  13465. # Object file extension for compiled C++ test sources.
  13466. objext=o
  13467. objext_CXX=$objext
  13468. # No sense in running all these tests if we already determined that
  13469. # the CXX compiler isn't working. Some variables (like enable_shared)
  13470. # are currently assumed to apply to all compilers on this platform,
  13471. # and will be corrupted by setting them based on a non-working compiler.
  13472. if test "$_lt_caught_CXX_error" != yes; then
  13473. # Code to be used in simple compile tests
  13474. lt_simple_compile_test_code="int some_variable = 0;"
  13475. # Code to be used in simple link tests
  13476. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13477. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13478. # If no C compiler was specified, use CC.
  13479. LTCC=${LTCC-"$CC"}
  13480. # If no C compiler flags were specified, use CFLAGS.
  13481. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13482. # Allow CC to be a program name with arguments.
  13483. compiler=$CC
  13484. # save warnings/boilerplate of simple test code
  13485. ac_outfile=conftest.$ac_objext
  13486. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13487. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13488. _lt_compiler_boilerplate=`cat conftest.err`
  13489. $RM conftest*
  13490. ac_outfile=conftest.$ac_objext
  13491. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13492. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13493. _lt_linker_boilerplate=`cat conftest.err`
  13494. $RM -r conftest*
  13495. # Allow CC to be a program name with arguments.
  13496. lt_save_CC=$CC
  13497. lt_save_CFLAGS=$CFLAGS
  13498. lt_save_LD=$LD
  13499. lt_save_GCC=$GCC
  13500. GCC=$GXX
  13501. lt_save_with_gnu_ld=$with_gnu_ld
  13502. lt_save_path_LD=$lt_cv_path_LD
  13503. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13504. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13505. else
  13506. $as_unset lt_cv_prog_gnu_ld
  13507. fi
  13508. if test -n "${lt_cv_path_LDCXX+set}"; then
  13509. lt_cv_path_LD=$lt_cv_path_LDCXX
  13510. else
  13511. $as_unset lt_cv_path_LD
  13512. fi
  13513. test -z "${LDCXX+set}" || LD=$LDCXX
  13514. CC=${CXX-"c++"}
  13515. CFLAGS=$CXXFLAGS
  13516. compiler=$CC
  13517. compiler_CXX=$CC
  13518. for cc_temp in $compiler""; do
  13519. case $cc_temp in
  13520. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13521. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13522. \-*) ;;
  13523. *) break;;
  13524. esac
  13525. done
  13526. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13527. if test -n "$compiler"; then
  13528. # We don't want -fno-exception when compiling C++ code, so set the
  13529. # no_builtin_flag separately
  13530. if test "$GXX" = yes; then
  13531. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13532. else
  13533. lt_prog_compiler_no_builtin_flag_CXX=
  13534. fi
  13535. if test "$GXX" = yes; then
  13536. # Set up default GNU C++ configuration
  13537. # Check whether --with-gnu-ld was given.
  13538. if test "${with_gnu_ld+set}" = set; then :
  13539. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13540. else
  13541. with_gnu_ld=no
  13542. fi
  13543. ac_prog=ld
  13544. if test "$GCC" = yes; then
  13545. # Check if gcc -print-prog-name=ld gives a path.
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13547. $as_echo_n "checking for ld used by $CC... " >&6; }
  13548. case $host in
  13549. *-*-mingw*)
  13550. # gcc leaves a trailing carriage return which upsets mingw
  13551. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13552. *)
  13553. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13554. esac
  13555. case $ac_prog in
  13556. # Accept absolute paths.
  13557. [\\/]* | ?:[\\/]*)
  13558. re_direlt='/[^/][^/]*/\.\./'
  13559. # Canonicalize the pathname of ld
  13560. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13561. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13562. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13563. done
  13564. test -z "$LD" && LD="$ac_prog"
  13565. ;;
  13566. "")
  13567. # If it fails, then pretend we aren't using GCC.
  13568. ac_prog=ld
  13569. ;;
  13570. *)
  13571. # If it is relative, then search for the first ld in PATH.
  13572. with_gnu_ld=unknown
  13573. ;;
  13574. esac
  13575. elif test "$with_gnu_ld" = yes; then
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13577. $as_echo_n "checking for GNU ld... " >&6; }
  13578. else
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13580. $as_echo_n "checking for non-GNU ld... " >&6; }
  13581. fi
  13582. if ${lt_cv_path_LD+:} false; then :
  13583. $as_echo_n "(cached) " >&6
  13584. else
  13585. if test -z "$LD"; then
  13586. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13587. for ac_dir in $PATH; do
  13588. IFS="$lt_save_ifs"
  13589. test -z "$ac_dir" && ac_dir=.
  13590. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13591. lt_cv_path_LD="$ac_dir/$ac_prog"
  13592. # Check to see if the program is GNU ld. I'd rather use --version,
  13593. # but apparently some variants of GNU ld only accept -v.
  13594. # Break only if it was the GNU/non-GNU ld that we prefer.
  13595. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13596. *GNU* | *'with BFD'*)
  13597. test "$with_gnu_ld" != no && break
  13598. ;;
  13599. *)
  13600. test "$with_gnu_ld" != yes && break
  13601. ;;
  13602. esac
  13603. fi
  13604. done
  13605. IFS="$lt_save_ifs"
  13606. else
  13607. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13608. fi
  13609. fi
  13610. LD="$lt_cv_path_LD"
  13611. if test -n "$LD"; then
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13613. $as_echo "$LD" >&6; }
  13614. else
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13616. $as_echo "no" >&6; }
  13617. fi
  13618. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13620. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13621. if ${lt_cv_prog_gnu_ld+:} false; then :
  13622. $as_echo_n "(cached) " >&6
  13623. else
  13624. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13625. case `$LD -v 2>&1 </dev/null` in
  13626. *GNU* | *'with BFD'*)
  13627. lt_cv_prog_gnu_ld=yes
  13628. ;;
  13629. *)
  13630. lt_cv_prog_gnu_ld=no
  13631. ;;
  13632. esac
  13633. fi
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13635. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13636. with_gnu_ld=$lt_cv_prog_gnu_ld
  13637. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13638. # archiving commands below assume that GNU ld is being used.
  13639. if test "$with_gnu_ld" = yes; then
  13640. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13641. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13642. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13643. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13644. # If archive_cmds runs LD, not CC, wlarc should be empty
  13645. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13646. # investigate it a little bit more. (MM)
  13647. wlarc='${wl}'
  13648. # ancient GNU ld didn't support --whole-archive et. al.
  13649. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13650. $GREP 'no-whole-archive' > /dev/null; then
  13651. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13652. else
  13653. whole_archive_flag_spec_CXX=
  13654. fi
  13655. else
  13656. with_gnu_ld=no
  13657. wlarc=
  13658. # A generic and very simple default shared library creation
  13659. # command for GNU C++ for the case where it uses the native
  13660. # linker, instead of GNU ld. If possible, this setting should
  13661. # overridden to take advantage of the native linker features on
  13662. # the platform it is being used on.
  13663. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13664. fi
  13665. # Commands to make compiler produce verbose output that lists
  13666. # what "hidden" libraries, object files and flags are used when
  13667. # linking a shared library.
  13668. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13669. else
  13670. GXX=no
  13671. with_gnu_ld=no
  13672. wlarc=
  13673. fi
  13674. # PORTME: fill in a description of your system's C++ link characteristics
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13676. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13677. ld_shlibs_CXX=yes
  13678. case $host_os in
  13679. aix3*)
  13680. # FIXME: insert proper C++ library support
  13681. ld_shlibs_CXX=no
  13682. ;;
  13683. aix[4-9]*)
  13684. if test "$host_cpu" = ia64; then
  13685. # On IA64, the linker does run time linking by default, so we don't
  13686. # have to do anything special.
  13687. aix_use_runtimelinking=no
  13688. exp_sym_flag='-Bexport'
  13689. no_entry_flag=""
  13690. else
  13691. aix_use_runtimelinking=no
  13692. # Test if we are trying to use run time linking or normal
  13693. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13694. # need to do runtime linking.
  13695. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13696. for ld_flag in $LDFLAGS; do
  13697. case $ld_flag in
  13698. *-brtl*)
  13699. aix_use_runtimelinking=yes
  13700. break
  13701. ;;
  13702. esac
  13703. done
  13704. ;;
  13705. esac
  13706. exp_sym_flag='-bexport'
  13707. no_entry_flag='-bnoentry'
  13708. fi
  13709. # When large executables or shared objects are built, AIX ld can
  13710. # have problems creating the table of contents. If linking a library
  13711. # or program results in "error TOC overflow" add -mminimal-toc to
  13712. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13713. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13714. archive_cmds_CXX=''
  13715. hardcode_direct_CXX=yes
  13716. hardcode_direct_absolute_CXX=yes
  13717. hardcode_libdir_separator_CXX=':'
  13718. link_all_deplibs_CXX=yes
  13719. file_list_spec_CXX='${wl}-f,'
  13720. if test "$GXX" = yes; then
  13721. case $host_os in aix4.[012]|aix4.[012].*)
  13722. # We only want to do this on AIX 4.2 and lower, the check
  13723. # below for broken collect2 doesn't work under 4.3+
  13724. collect2name=`${CC} -print-prog-name=collect2`
  13725. if test -f "$collect2name" &&
  13726. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13727. then
  13728. # We have reworked collect2
  13729. :
  13730. else
  13731. # We have old collect2
  13732. hardcode_direct_CXX=unsupported
  13733. # It fails to find uninstalled libraries when the uninstalled
  13734. # path is not listed in the libpath. Setting hardcode_minus_L
  13735. # to unsupported forces relinking
  13736. hardcode_minus_L_CXX=yes
  13737. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13738. hardcode_libdir_separator_CXX=
  13739. fi
  13740. esac
  13741. shared_flag='-shared'
  13742. if test "$aix_use_runtimelinking" = yes; then
  13743. shared_flag="$shared_flag "'${wl}-G'
  13744. fi
  13745. else
  13746. # not using gcc
  13747. if test "$host_cpu" = ia64; then
  13748. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13749. # chokes on -Wl,-G. The following line is correct:
  13750. shared_flag='-G'
  13751. else
  13752. if test "$aix_use_runtimelinking" = yes; then
  13753. shared_flag='${wl}-G'
  13754. else
  13755. shared_flag='${wl}-bM:SRE'
  13756. fi
  13757. fi
  13758. fi
  13759. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  13760. # It seems that -bexpall does not export symbols beginning with
  13761. # underscore (_), so it is better to generate a list of symbols to
  13762. # export.
  13763. always_export_symbols_CXX=yes
  13764. if test "$aix_use_runtimelinking" = yes; then
  13765. # Warning - without using the other runtime loading flags (-brtl),
  13766. # -berok will link without error, but may produce a broken library.
  13767. allow_undefined_flag_CXX='-berok'
  13768. # Determine the default libpath from the value encoded in an empty
  13769. # executable.
  13770. if test "${lt_cv_aix_libpath+set}" = set; then
  13771. aix_libpath=$lt_cv_aix_libpath
  13772. else
  13773. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. int
  13779. main ()
  13780. {
  13781. ;
  13782. return 0;
  13783. }
  13784. _ACEOF
  13785. if ac_fn_cxx_try_link "$LINENO"; then :
  13786. lt_aix_libpath_sed='
  13787. /Import File Strings/,/^$/ {
  13788. /^0/ {
  13789. s/^0 *\([^ ]*\) *$/\1/
  13790. p
  13791. }
  13792. }'
  13793. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13794. # Check for a 64-bit object if we didn't find anything.
  13795. if test -z "$lt_cv_aix_libpath__CXX"; then
  13796. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13797. fi
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext \
  13800. conftest$ac_exeext conftest.$ac_ext
  13801. if test -z "$lt_cv_aix_libpath__CXX"; then
  13802. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13803. fi
  13804. fi
  13805. aix_libpath=$lt_cv_aix_libpath__CXX
  13806. fi
  13807. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13808. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13809. else
  13810. if test "$host_cpu" = ia64; then
  13811. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  13812. allow_undefined_flag_CXX="-z nodefs"
  13813. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13814. else
  13815. # Determine the default libpath from the value encoded in an
  13816. # empty executable.
  13817. if test "${lt_cv_aix_libpath+set}" = set; then
  13818. aix_libpath=$lt_cv_aix_libpath
  13819. else
  13820. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13821. $as_echo_n "(cached) " >&6
  13822. else
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. int
  13826. main ()
  13827. {
  13828. ;
  13829. return 0;
  13830. }
  13831. _ACEOF
  13832. if ac_fn_cxx_try_link "$LINENO"; then :
  13833. lt_aix_libpath_sed='
  13834. /Import File Strings/,/^$/ {
  13835. /^0/ {
  13836. s/^0 *\([^ ]*\) *$/\1/
  13837. p
  13838. }
  13839. }'
  13840. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13841. # Check for a 64-bit object if we didn't find anything.
  13842. if test -z "$lt_cv_aix_libpath__CXX"; then
  13843. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13844. fi
  13845. fi
  13846. rm -f core conftest.err conftest.$ac_objext \
  13847. conftest$ac_exeext conftest.$ac_ext
  13848. if test -z "$lt_cv_aix_libpath__CXX"; then
  13849. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13850. fi
  13851. fi
  13852. aix_libpath=$lt_cv_aix_libpath__CXX
  13853. fi
  13854. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13855. # Warning - without using the other run time loading flags,
  13856. # -berok will link without error, but may produce a broken library.
  13857. no_undefined_flag_CXX=' ${wl}-bernotok'
  13858. allow_undefined_flag_CXX=' ${wl}-berok'
  13859. if test "$with_gnu_ld" = yes; then
  13860. # We only use this code for GNU lds that support --whole-archive.
  13861. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13862. else
  13863. # Exported symbols can be pulled into shared objects from archives
  13864. whole_archive_flag_spec_CXX='$convenience'
  13865. fi
  13866. archive_cmds_need_lc_CXX=yes
  13867. # This is similar to how AIX traditionally builds its shared
  13868. # libraries.
  13869. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13870. fi
  13871. fi
  13872. ;;
  13873. beos*)
  13874. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13875. allow_undefined_flag_CXX=unsupported
  13876. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13877. # support --undefined. This deserves some investigation. FIXME
  13878. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13879. else
  13880. ld_shlibs_CXX=no
  13881. fi
  13882. ;;
  13883. chorus*)
  13884. case $cc_basename in
  13885. *)
  13886. # FIXME: insert proper C++ library support
  13887. ld_shlibs_CXX=no
  13888. ;;
  13889. esac
  13890. ;;
  13891. cygwin* | mingw* | pw32* | cegcc*)
  13892. case $GXX,$cc_basename in
  13893. ,cl* | no,cl*)
  13894. # Native MSVC
  13895. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13896. # no search path for DLLs.
  13897. hardcode_libdir_flag_spec_CXX=' '
  13898. allow_undefined_flag_CXX=unsupported
  13899. always_export_symbols_CXX=yes
  13900. file_list_spec_CXX='@'
  13901. # Tell ltmain to make .lib files, not .a files.
  13902. libext=lib
  13903. # Tell ltmain to make .dll files, not .so files.
  13904. shrext_cmds=".dll"
  13905. # FIXME: Setting linknames here is a bad hack.
  13906. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13907. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13908. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13909. else
  13910. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13911. fi~
  13912. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13913. linknames='
  13914. # The linker will not automatically build a static lib if we build a DLL.
  13915. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13916. enable_shared_with_static_runtimes_CXX=yes
  13917. # Don't use ranlib
  13918. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13919. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13920. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13921. case $lt_outputfile in
  13922. *.exe|*.EXE) ;;
  13923. *)
  13924. lt_outputfile="$lt_outputfile.exe"
  13925. lt_tool_outputfile="$lt_tool_outputfile.exe"
  13926. ;;
  13927. esac~
  13928. func_to_tool_file "$lt_outputfile"~
  13929. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13930. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13931. $RM "$lt_outputfile.manifest";
  13932. fi'
  13933. ;;
  13934. *)
  13935. # g++
  13936. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13937. # as there is no search path for DLLs.
  13938. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13939. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  13940. allow_undefined_flag_CXX=unsupported
  13941. always_export_symbols_CXX=no
  13942. enable_shared_with_static_runtimes_CXX=yes
  13943. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13944. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13945. # If the export-symbols file already is a .def file (1st line
  13946. # is EXPORTS), use it as is; otherwise, prepend...
  13947. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13948. cp $export_symbols $output_objdir/$soname.def;
  13949. else
  13950. echo EXPORTS > $output_objdir/$soname.def;
  13951. cat $export_symbols >> $output_objdir/$soname.def;
  13952. fi~
  13953. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13954. else
  13955. ld_shlibs_CXX=no
  13956. fi
  13957. ;;
  13958. esac
  13959. ;;
  13960. darwin* | rhapsody*)
  13961. archive_cmds_need_lc_CXX=no
  13962. hardcode_direct_CXX=no
  13963. hardcode_automatic_CXX=yes
  13964. hardcode_shlibpath_var_CXX=unsupported
  13965. if test "$lt_cv_ld_force_load" = "yes"; then
  13966. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13967. else
  13968. whole_archive_flag_spec_CXX=''
  13969. fi
  13970. link_all_deplibs_CXX=yes
  13971. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  13972. case $cc_basename in
  13973. ifort*) _lt_dar_can_shared=yes ;;
  13974. *) _lt_dar_can_shared=$GCC ;;
  13975. esac
  13976. if test "$_lt_dar_can_shared" = "yes"; then
  13977. output_verbose_link_cmd=func_echo_all
  13978. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13979. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13980. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13981. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13982. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  13983. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  13984. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  13985. fi
  13986. else
  13987. ld_shlibs_CXX=no
  13988. fi
  13989. ;;
  13990. dgux*)
  13991. case $cc_basename in
  13992. ec++*)
  13993. # FIXME: insert proper C++ library support
  13994. ld_shlibs_CXX=no
  13995. ;;
  13996. ghcx*)
  13997. # Green Hills C++ Compiler
  13998. # FIXME: insert proper C++ library support
  13999. ld_shlibs_CXX=no
  14000. ;;
  14001. *)
  14002. # FIXME: insert proper C++ library support
  14003. ld_shlibs_CXX=no
  14004. ;;
  14005. esac
  14006. ;;
  14007. freebsd2.*)
  14008. # C++ shared libraries reported to be fairly broken before
  14009. # switch to ELF
  14010. ld_shlibs_CXX=no
  14011. ;;
  14012. freebsd-elf*)
  14013. archive_cmds_need_lc_CXX=no
  14014. ;;
  14015. freebsd* | dragonfly*)
  14016. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14017. # conventions
  14018. ld_shlibs_CXX=yes
  14019. ;;
  14020. gnu*)
  14021. ;;
  14022. haiku*)
  14023. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14024. link_all_deplibs_CXX=yes
  14025. ;;
  14026. hpux9*)
  14027. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  14028. hardcode_libdir_separator_CXX=:
  14029. export_dynamic_flag_spec_CXX='${wl}-E'
  14030. hardcode_direct_CXX=yes
  14031. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14032. # but as the default
  14033. # location of the library.
  14034. case $cc_basename in
  14035. CC*)
  14036. # FIXME: insert proper C++ library support
  14037. ld_shlibs_CXX=no
  14038. ;;
  14039. aCC*)
  14040. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14041. # Commands to make compiler produce verbose output that lists
  14042. # what "hidden" libraries, object files and flags are used when
  14043. # linking a shared library.
  14044. #
  14045. # There doesn't appear to be a way to prevent this compiler from
  14046. # explicitly linking system object files so we need to strip them
  14047. # from the output so that they don't get included in the library
  14048. # dependencies.
  14049. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14050. ;;
  14051. *)
  14052. if test "$GXX" = yes; then
  14053. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14054. else
  14055. # FIXME: insert proper C++ library support
  14056. ld_shlibs_CXX=no
  14057. fi
  14058. ;;
  14059. esac
  14060. ;;
  14061. hpux10*|hpux11*)
  14062. if test $with_gnu_ld = no; then
  14063. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  14064. hardcode_libdir_separator_CXX=:
  14065. case $host_cpu in
  14066. hppa*64*|ia64*)
  14067. ;;
  14068. *)
  14069. export_dynamic_flag_spec_CXX='${wl}-E'
  14070. ;;
  14071. esac
  14072. fi
  14073. case $host_cpu in
  14074. hppa*64*|ia64*)
  14075. hardcode_direct_CXX=no
  14076. hardcode_shlibpath_var_CXX=no
  14077. ;;
  14078. *)
  14079. hardcode_direct_CXX=yes
  14080. hardcode_direct_absolute_CXX=yes
  14081. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14082. # but as the default
  14083. # location of the library.
  14084. ;;
  14085. esac
  14086. case $cc_basename in
  14087. CC*)
  14088. # FIXME: insert proper C++ library support
  14089. ld_shlibs_CXX=no
  14090. ;;
  14091. aCC*)
  14092. case $host_cpu in
  14093. hppa*64*)
  14094. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14095. ;;
  14096. ia64*)
  14097. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14098. ;;
  14099. *)
  14100. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14101. ;;
  14102. esac
  14103. # Commands to make compiler produce verbose output that lists
  14104. # what "hidden" libraries, object files and flags are used when
  14105. # linking a shared library.
  14106. #
  14107. # There doesn't appear to be a way to prevent this compiler from
  14108. # explicitly linking system object files so we need to strip them
  14109. # from the output so that they don't get included in the library
  14110. # dependencies.
  14111. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14112. ;;
  14113. *)
  14114. if test "$GXX" = yes; then
  14115. if test $with_gnu_ld = no; then
  14116. case $host_cpu in
  14117. hppa*64*)
  14118. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14119. ;;
  14120. ia64*)
  14121. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14122. ;;
  14123. *)
  14124. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14125. ;;
  14126. esac
  14127. fi
  14128. else
  14129. # FIXME: insert proper C++ library support
  14130. ld_shlibs_CXX=no
  14131. fi
  14132. ;;
  14133. esac
  14134. ;;
  14135. interix[3-9]*)
  14136. hardcode_direct_CXX=no
  14137. hardcode_shlibpath_var_CXX=no
  14138. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14139. export_dynamic_flag_spec_CXX='${wl}-E'
  14140. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14141. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14142. # default) and relocated if they conflict, which is a slow very memory
  14143. # consuming and fragmenting process. To avoid this, we pick a random,
  14144. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14145. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14146. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14147. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14148. ;;
  14149. irix5* | irix6*)
  14150. case $cc_basename in
  14151. CC*)
  14152. # SGI C++
  14153. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  14154. # Archives containing C++ object files must be created using
  14155. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14156. # necessary to make sure instantiated templates are included
  14157. # in the archive.
  14158. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14159. ;;
  14160. *)
  14161. if test "$GXX" = yes; then
  14162. if test "$with_gnu_ld" = no; then
  14163. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14164. else
  14165. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  14166. fi
  14167. fi
  14168. link_all_deplibs_CXX=yes
  14169. ;;
  14170. esac
  14171. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14172. hardcode_libdir_separator_CXX=:
  14173. inherit_rpath_CXX=yes
  14174. ;;
  14175. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14176. case $cc_basename in
  14177. KCC*)
  14178. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14179. # KCC will only create a shared library if the output file
  14180. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14181. # to its proper name (with version) after linking.
  14182. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14183. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  14184. # Commands to make compiler produce verbose output that lists
  14185. # what "hidden" libraries, object files and flags are used when
  14186. # linking a shared library.
  14187. #
  14188. # There doesn't appear to be a way to prevent this compiler from
  14189. # explicitly linking system object files so we need to strip them
  14190. # from the output so that they don't get included in the library
  14191. # dependencies.
  14192. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14193. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14194. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14195. # Archives containing C++ object files must be created using
  14196. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14197. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14198. ;;
  14199. icpc* | ecpc* )
  14200. # Intel C++
  14201. with_gnu_ld=yes
  14202. # version 8.0 and above of icpc choke on multiply defined symbols
  14203. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14204. # earlier do not add the objects themselves.
  14205. case `$CC -V 2>&1` in
  14206. *"Version 7."*)
  14207. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14208. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14209. ;;
  14210. *) # Version 8.0 or newer
  14211. tmp_idyn=
  14212. case $host_cpu in
  14213. ia64*) tmp_idyn=' -i_dynamic';;
  14214. esac
  14215. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14216. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14217. ;;
  14218. esac
  14219. archive_cmds_need_lc_CXX=no
  14220. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14221. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14222. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  14223. ;;
  14224. pgCC* | pgcpp*)
  14225. # Portland Group C++ compiler
  14226. case `$CC -V` in
  14227. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14228. prelink_cmds_CXX='tpldir=Template.dir~
  14229. rm -rf $tpldir~
  14230. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14231. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14232. old_archive_cmds_CXX='tpldir=Template.dir~
  14233. rm -rf $tpldir~
  14234. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14235. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14236. $RANLIB $oldlib'
  14237. archive_cmds_CXX='tpldir=Template.dir~
  14238. rm -rf $tpldir~
  14239. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14240. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  14241. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14242. rm -rf $tpldir~
  14243. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14244. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  14245. ;;
  14246. *) # Version 6 and above use weak symbols
  14247. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  14248. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  14249. ;;
  14250. esac
  14251. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  14252. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14253. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  14254. ;;
  14255. cxx*)
  14256. # Compaq C++
  14257. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14258. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  14259. runpath_var=LD_RUN_PATH
  14260. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14261. hardcode_libdir_separator_CXX=:
  14262. # Commands to make compiler produce verbose output that lists
  14263. # what "hidden" libraries, object files and flags are used when
  14264. # linking a shared library.
  14265. #
  14266. # There doesn't appear to be a way to prevent this compiler from
  14267. # explicitly linking system object files so we need to strip them
  14268. # from the output so that they don't get included in the library
  14269. # dependencies.
  14270. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  14271. ;;
  14272. xl* | mpixl* | bgxl*)
  14273. # IBM XL 8.0 on PPC, with GNU ld
  14274. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14275. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14276. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14277. if test "x$supports_anon_versioning" = xyes; then
  14278. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14279. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14280. echo "local: *; };" >> $output_objdir/$libname.ver~
  14281. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14282. fi
  14283. ;;
  14284. *)
  14285. case `$CC -V 2>&1 | sed 5q` in
  14286. *Sun\ C*)
  14287. # Sun C++ 5.9
  14288. no_undefined_flag_CXX=' -zdefs'
  14289. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14290. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  14291. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14292. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  14293. compiler_needs_object_CXX=yes
  14294. # Not sure whether something based on
  14295. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14296. # would be better.
  14297. output_verbose_link_cmd='func_echo_all'
  14298. # Archives containing C++ object files must be created using
  14299. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14300. # necessary to make sure instantiated templates are included
  14301. # in the archive.
  14302. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14303. ;;
  14304. esac
  14305. ;;
  14306. esac
  14307. ;;
  14308. lynxos*)
  14309. # FIXME: insert proper C++ library support
  14310. ld_shlibs_CXX=no
  14311. ;;
  14312. m88k*)
  14313. # FIXME: insert proper C++ library support
  14314. ld_shlibs_CXX=no
  14315. ;;
  14316. mvs*)
  14317. case $cc_basename in
  14318. cxx*)
  14319. # FIXME: insert proper C++ library support
  14320. ld_shlibs_CXX=no
  14321. ;;
  14322. *)
  14323. # FIXME: insert proper C++ library support
  14324. ld_shlibs_CXX=no
  14325. ;;
  14326. esac
  14327. ;;
  14328. netbsd*)
  14329. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14330. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14331. wlarc=
  14332. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14333. hardcode_direct_CXX=yes
  14334. hardcode_shlibpath_var_CXX=no
  14335. fi
  14336. # Workaround some broken pre-1.5 toolchains
  14337. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14338. ;;
  14339. *nto* | *qnx*)
  14340. ld_shlibs_CXX=yes
  14341. ;;
  14342. openbsd2*)
  14343. # C++ shared libraries are fairly broken
  14344. ld_shlibs_CXX=no
  14345. ;;
  14346. openbsd*)
  14347. if test -f /usr/libexec/ld.so; then
  14348. hardcode_direct_CXX=yes
  14349. hardcode_shlibpath_var_CXX=no
  14350. hardcode_direct_absolute_CXX=yes
  14351. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14352. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14353. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14354. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  14355. export_dynamic_flag_spec_CXX='${wl}-E'
  14356. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14357. fi
  14358. output_verbose_link_cmd=func_echo_all
  14359. else
  14360. ld_shlibs_CXX=no
  14361. fi
  14362. ;;
  14363. osf3* | osf4* | osf5*)
  14364. case $cc_basename in
  14365. KCC*)
  14366. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14367. # KCC will only create a shared library if the output file
  14368. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14369. # to its proper name (with version) after linking.
  14370. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14371. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14372. hardcode_libdir_separator_CXX=:
  14373. # Archives containing C++ object files must be created using
  14374. # the KAI C++ compiler.
  14375. case $host in
  14376. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14377. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14378. esac
  14379. ;;
  14380. RCC*)
  14381. # Rational C++ 2.4.1
  14382. # FIXME: insert proper C++ library support
  14383. ld_shlibs_CXX=no
  14384. ;;
  14385. cxx*)
  14386. case $host in
  14387. osf3*)
  14388. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14389. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  14390. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14391. ;;
  14392. *)
  14393. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14394. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  14395. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14396. echo "-hidden">> $lib.exp~
  14397. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  14398. $RM $lib.exp'
  14399. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14400. ;;
  14401. esac
  14402. hardcode_libdir_separator_CXX=:
  14403. # Commands to make compiler produce verbose output that lists
  14404. # what "hidden" libraries, object files and flags are used when
  14405. # linking a shared library.
  14406. #
  14407. # There doesn't appear to be a way to prevent this compiler from
  14408. # explicitly linking system object files so we need to strip them
  14409. # from the output so that they don't get included in the library
  14410. # dependencies.
  14411. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14412. ;;
  14413. *)
  14414. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14415. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14416. case $host in
  14417. osf3*)
  14418. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14419. ;;
  14420. *)
  14421. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14422. ;;
  14423. esac
  14424. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14425. hardcode_libdir_separator_CXX=:
  14426. # Commands to make compiler produce verbose output that lists
  14427. # what "hidden" libraries, object files and flags are used when
  14428. # linking a shared library.
  14429. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14430. else
  14431. # FIXME: insert proper C++ library support
  14432. ld_shlibs_CXX=no
  14433. fi
  14434. ;;
  14435. esac
  14436. ;;
  14437. psos*)
  14438. # FIXME: insert proper C++ library support
  14439. ld_shlibs_CXX=no
  14440. ;;
  14441. sunos4*)
  14442. case $cc_basename in
  14443. CC*)
  14444. # Sun C++ 4.x
  14445. # FIXME: insert proper C++ library support
  14446. ld_shlibs_CXX=no
  14447. ;;
  14448. lcc*)
  14449. # Lucid
  14450. # FIXME: insert proper C++ library support
  14451. ld_shlibs_CXX=no
  14452. ;;
  14453. *)
  14454. # FIXME: insert proper C++ library support
  14455. ld_shlibs_CXX=no
  14456. ;;
  14457. esac
  14458. ;;
  14459. solaris*)
  14460. case $cc_basename in
  14461. CC* | sunCC*)
  14462. # Sun C++ 4.2, 5.x and Centerline C++
  14463. archive_cmds_need_lc_CXX=yes
  14464. no_undefined_flag_CXX=' -zdefs'
  14465. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14466. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14467. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14468. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14469. hardcode_shlibpath_var_CXX=no
  14470. case $host_os in
  14471. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14472. *)
  14473. # The compiler driver will combine and reorder linker options,
  14474. # but understands `-z linker_flag'.
  14475. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14476. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14477. ;;
  14478. esac
  14479. link_all_deplibs_CXX=yes
  14480. output_verbose_link_cmd='func_echo_all'
  14481. # Archives containing C++ object files must be created using
  14482. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14483. # necessary to make sure instantiated templates are included
  14484. # in the archive.
  14485. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14486. ;;
  14487. gcx*)
  14488. # Green Hills C++ Compiler
  14489. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14490. # The C++ compiler must be used to create the archive.
  14491. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14492. ;;
  14493. *)
  14494. # GNU C++ compiler with Solaris linker
  14495. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14496. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  14497. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14498. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14499. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14500. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14501. # Commands to make compiler produce verbose output that lists
  14502. # what "hidden" libraries, object files and flags are used when
  14503. # linking a shared library.
  14504. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14505. else
  14506. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  14507. # platform.
  14508. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14509. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14510. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14511. # Commands to make compiler produce verbose output that lists
  14512. # what "hidden" libraries, object files and flags are used when
  14513. # linking a shared library.
  14514. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14515. fi
  14516. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  14517. case $host_os in
  14518. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14519. *)
  14520. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14521. ;;
  14522. esac
  14523. fi
  14524. ;;
  14525. esac
  14526. ;;
  14527. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14528. no_undefined_flag_CXX='${wl}-z,text'
  14529. archive_cmds_need_lc_CXX=no
  14530. hardcode_shlibpath_var_CXX=no
  14531. runpath_var='LD_RUN_PATH'
  14532. case $cc_basename in
  14533. CC*)
  14534. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14535. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14536. ;;
  14537. *)
  14538. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14539. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14540. ;;
  14541. esac
  14542. ;;
  14543. sysv5* | sco3.2v5* | sco5v6*)
  14544. # Note: We can NOT use -z defs as we might desire, because we do not
  14545. # link with -lc, and that would cause any symbols used from libc to
  14546. # always be unresolved, which means just about no library would
  14547. # ever link correctly. If we're not using GNU ld we use -z text
  14548. # though, which does catch some bad symbols but isn't as heavy-handed
  14549. # as -z defs.
  14550. no_undefined_flag_CXX='${wl}-z,text'
  14551. allow_undefined_flag_CXX='${wl}-z,nodefs'
  14552. archive_cmds_need_l