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

/configure

https://github.com/tzhuan/scim-hangul-debian
Shell | 16621 lines | 13905 code | 1609 blank | 1107 comment | 1240 complexity | ae8e343968b4a043d11ae40ccb88cc60 MD5 | raw file
Possible License(s): GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for scim-hangul 0.4.0.
  4. #
  5. # Report bugs to <choe.hwanjing@gmail.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  163. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. PATH=/empty FPATH=/empty; export PATH FPATH
  167. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  168. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  169. test \$(( 1 + 1 )) = 2 || exit 1"
  170. if (eval "$as_required") 2>/dev/null; then :
  171. as_have_required=yes
  172. else
  173. as_have_required=no
  174. fi
  175. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  176. else
  177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  178. as_found=false
  179. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  180. do
  181. IFS=$as_save_IFS
  182. test -z "$as_dir" && as_dir=.
  183. as_found=:
  184. case $as_dir in #(
  185. /*)
  186. for as_base in sh bash ksh sh5; do
  187. # Try only shells that exist, to save several forks.
  188. as_shell=$as_dir/$as_base
  189. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$as_shell as_have_required=yes
  192. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  193. break 2
  194. fi
  195. fi
  196. done;;
  197. esac
  198. as_found=false
  199. done
  200. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  201. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  202. CONFIG_SHELL=$SHELL as_have_required=yes
  203. fi; }
  204. IFS=$as_save_IFS
  205. if test "x$CONFIG_SHELL" != x; then :
  206. # We cannot yet assume a decent shell, so we have to provide a
  207. # neutralization value for shells without unset; and this also
  208. # works around shells that cannot unset nonexistent variables.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  214. fi
  215. if test x$as_have_required = xno; then :
  216. $as_echo "$0: This script requires a shell more modern than all"
  217. $as_echo "$0: the shells that I found on your system."
  218. if test x${ZSH_VERSION+set} = xset ; then
  219. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  220. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  221. else
  222. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  223. $0: choe.hwanjing@gmail.com about your system, including
  224. $0: any error possibly output before this message. Then
  225. $0: install a modern shell, or manually run the script
  226. $0: under such a shell if you do have one."
  227. fi
  228. exit 1
  229. fi
  230. fi
  231. fi
  232. SHELL=${CONFIG_SHELL-/bin/sh}
  233. export SHELL
  234. # Unset more variables known to interfere with behavior of common tools.
  235. CLICOLOR_FORCE= GREP_OPTIONS=
  236. unset CLICOLOR_FORCE GREP_OPTIONS
  237. ## --------------------- ##
  238. ## M4sh Shell Functions. ##
  239. ## --------------------- ##
  240. # as_fn_unset VAR
  241. # ---------------
  242. # Portably unset VAR.
  243. as_fn_unset ()
  244. {
  245. { eval $1=; unset $1;}
  246. }
  247. as_unset=as_fn_unset
  248. # as_fn_set_status STATUS
  249. # -----------------------
  250. # Set $? to STATUS, without forking.
  251. as_fn_set_status ()
  252. {
  253. return $1
  254. } # as_fn_set_status
  255. # as_fn_exit STATUS
  256. # -----------------
  257. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  258. as_fn_exit ()
  259. {
  260. set +e
  261. as_fn_set_status $1
  262. exit $1
  263. } # as_fn_exit
  264. # as_fn_mkdir_p
  265. # -------------
  266. # Create "$as_dir" as a directory, including parents if necessary.
  267. as_fn_mkdir_p ()
  268. {
  269. case $as_dir in #(
  270. -*) as_dir=./$as_dir;;
  271. esac
  272. test -d "$as_dir" || eval $as_mkdir_p || {
  273. as_dirs=
  274. while :; do
  275. case $as_dir in #(
  276. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  277. *) as_qdir=$as_dir;;
  278. esac
  279. as_dirs="'$as_qdir' $as_dirs"
  280. as_dir=`$as_dirname -- "$as_dir" ||
  281. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  282. X"$as_dir" : 'X\(//\)[^/]' \| \
  283. X"$as_dir" : 'X\(//\)$' \| \
  284. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  285. $as_echo X"$as_dir" |
  286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  287. s//\1/
  288. q
  289. }
  290. /^X\(\/\/\)[^/].*/{
  291. s//\1/
  292. q
  293. }
  294. /^X\(\/\/\)$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\).*/{
  299. s//\1/
  300. q
  301. }
  302. s/.*/./; q'`
  303. test -d "$as_dir" && break
  304. done
  305. test -z "$as_dirs" || eval "mkdir $as_dirs"
  306. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  307. } # as_fn_mkdir_p
  308. # as_fn_append VAR VALUE
  309. # ----------------------
  310. # Append the text in VALUE to the end of the definition contained in VAR. Take
  311. # advantage of any shell optimizations that allow amortized linear growth over
  312. # repeated appends, instead of the typical quadratic growth present in naive
  313. # implementations.
  314. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  315. eval 'as_fn_append ()
  316. {
  317. eval $1+=\$2
  318. }'
  319. else
  320. as_fn_append ()
  321. {
  322. eval $1=\$$1\$2
  323. }
  324. fi # as_fn_append
  325. # as_fn_arith ARG...
  326. # ------------------
  327. # Perform arithmetic evaluation on the ARGs, and store the result in the
  328. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  329. # must be portable across $(()) and expr.
  330. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  331. eval 'as_fn_arith ()
  332. {
  333. as_val=$(( $* ))
  334. }'
  335. else
  336. as_fn_arith ()
  337. {
  338. as_val=`expr "$@" || test $? -eq 1`
  339. }
  340. fi # as_fn_arith
  341. # as_fn_error ERROR [LINENO LOG_FD]
  342. # ---------------------------------
  343. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  344. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  345. # script with status $?, using 1 if that was 0.
  346. as_fn_error ()
  347. {
  348. as_status=$?; test $as_status -eq 0 && as_status=1
  349. if test "$3"; then
  350. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  351. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  352. fi
  353. $as_echo "$as_me: error: $1" >&2
  354. as_fn_exit $as_status
  355. } # as_fn_error
  356. if expr a : '\(a\)' >/dev/null 2>&1 &&
  357. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  358. as_expr=expr
  359. else
  360. as_expr=false
  361. fi
  362. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  363. as_basename=basename
  364. else
  365. as_basename=false
  366. fi
  367. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  368. as_dirname=dirname
  369. else
  370. as_dirname=false
  371. fi
  372. as_me=`$as_basename -- "$0" ||
  373. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  374. X"$0" : 'X\(//\)$' \| \
  375. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  376. $as_echo X/"$0" |
  377. sed '/^.*\/\([^/][^/]*\)\/*$/{
  378. s//\1/
  379. q
  380. }
  381. /^X\/\(\/\/\)$/{
  382. s//\1/
  383. q
  384. }
  385. /^X\/\(\/\).*/{
  386. s//\1/
  387. q
  388. }
  389. s/.*/./; q'`
  390. # Avoid depending upon Character Ranges.
  391. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  392. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  393. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  394. as_cr_digits='0123456789'
  395. as_cr_alnum=$as_cr_Letters$as_cr_digits
  396. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  397. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  398. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  399. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  400. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  401. sed -n '
  402. p
  403. /[$]LINENO/=
  404. ' <$as_myself |
  405. sed '
  406. s/[$]LINENO.*/&-/
  407. t lineno
  408. b
  409. :lineno
  410. N
  411. :loop
  412. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  413. t loop
  414. s/-\n.*//
  415. ' >$as_me.lineno &&
  416. chmod +x "$as_me.lineno" ||
  417. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  418. # Don't try to exec as it changes $[0], causing all sort of problems
  419. # (the dirname of $[0] is not the place where we might find the
  420. # original and so on. Autoconf is especially sensitive to this).
  421. . "./$as_me.lineno"
  422. # Exit status is that of the last command.
  423. exit
  424. }
  425. ECHO_C= ECHO_N= ECHO_T=
  426. case `echo -n x` in #(((((
  427. -n*)
  428. case `echo 'xy\c'` in
  429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  430. xy) ECHO_C='\c';;
  431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  432. ECHO_T=' ';;
  433. esac;;
  434. *)
  435. ECHO_N='-n';;
  436. esac
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p='mkdir -p "$as_dir"'
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in #(
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. SHELL=${CONFIG_SHELL-/bin/sh}
  496. lt_ltdl_dir='libltdl'
  497. lt_dlopen_dir="$lt_ltdl_dir"
  498. test -n "$DJDIR" || exec 7<&0 </dev/null
  499. exec 6>&1
  500. # Name of the host.
  501. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  502. # so uname gets run too.
  503. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  504. #
  505. # Initializations.
  506. #
  507. ac_default_prefix=/usr/local
  508. ac_clean_files=
  509. ac_config_libobj_dir=.
  510. LIBOBJS=
  511. cross_compiling=no
  512. subdirs=
  513. MFLAGS=
  514. MAKEFLAGS=
  515. # Identity of this package.
  516. PACKAGE_NAME='scim-hangul'
  517. PACKAGE_TARNAME='scim-hangul'
  518. PACKAGE_VERSION='0.4.0'
  519. PACKAGE_STRING='scim-hangul 0.4.0'
  520. PACKAGE_BUGREPORT='choe.hwanjing@gmail.com'
  521. PACKAGE_URL=''
  522. ac_unique_file="src/scim_hangul_imengine.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. enable_option_checking=no
  559. gt_needs=
  560. ac_subst_vars='ltdl_LTLIBOBJS
  561. ltdl_LIBOBJS
  562. am__EXEEXT_FALSE
  563. am__EXEEXT_TRUE
  564. LTLIBOBJS
  565. LIBOBJS
  566. SCIM_HANGUL_ENABLE_SKIM_SUPPORT
  567. SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE
  568. SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE
  569. SCIM_KDEUTILS_LIBS
  570. SCIM_KDEUTILS_CFLAGS
  571. SKIM_LIBS
  572. SKIM_CFLAGS
  573. KDEDIR
  574. SCIM_HANGUL_DATADIR
  575. SCIM_DATADIR
  576. SCIM_MODULEDIR
  577. SCIM_ICONDIR
  578. SCIM_BUILD_SKIM_SETUP_FALSE
  579. SCIM_BUILD_SKIM_SETUP_TRUE
  580. LIBTOOL_EXPORT_OPTIONS
  581. ac_aux_dir
  582. SCIM_BUILD_SETUP
  583. SCIM_BUILD_SETUP_FALSE
  584. SCIM_BUILD_SETUP_TRUE
  585. SCIM_VERSION
  586. SCIM_GTKUTILS_LIBS
  587. SCIM_GTKUTILS_CFLAGS
  588. SCIM_LIBS
  589. SCIM_CFLAGS
  590. LIBHANGUL_LIBS
  591. LIBHANGUL_CFLAGS
  592. PKG_CONFIG_LIBDIR
  593. PKG_CONFIG_PATH
  594. PKG_CONFIG
  595. GETTEXT_PACKAGE
  596. POSUB
  597. LTLIBINTL
  598. LIBINTL
  599. INTLLIBS
  600. LTLIBICONV
  601. LIBICONV
  602. INTL_MACOSX_LIBS
  603. XGETTEXT_EXTRA_OPTIONS
  604. MSGMERGE
  605. XGETTEXT_015
  606. XGETTEXT
  607. GMSGFMT_015
  608. MSGFMT_015
  609. GMSGFMT
  610. MSGFMT
  611. GETTEXT_MACRO_VERSION
  612. USE_NLS
  613. CXXCPP
  614. am__fastdepCXX_FALSE
  615. am__fastdepCXX_TRUE
  616. CXXDEPMODE
  617. ac_ct_CXX
  618. CXXFLAGS
  619. CXX
  620. LIBTOOL_DEPS
  621. LTDLOPEN
  622. LT_CONFIG_H
  623. subdirs
  624. CONVENIENCE_LTDL_FALSE
  625. CONVENIENCE_LTDL_TRUE
  626. INSTALL_LTDL_FALSE
  627. INSTALL_LTDL_TRUE
  628. ARGZ_H
  629. sys_symbol_underscore
  630. LIBADD_DL
  631. LT_DLPREOPEN
  632. LIBADD_DLD_LINK
  633. LIBADD_SHL_LOAD
  634. LIBADD_DLOPEN
  635. LT_DLLOADERS
  636. INCLTDL
  637. LTDLINCL
  638. LTDLDEPS
  639. LIBLTDL
  640. CPP
  641. OTOOL64
  642. OTOOL
  643. LIPO
  644. NMEDIT
  645. DSYMUTIL
  646. MANIFEST_TOOL
  647. RANLIB
  648. ac_ct_AR
  649. AR
  650. DLLTOOL
  651. OBJDUMP
  652. LN_S
  653. NM
  654. ac_ct_DUMPBIN
  655. DUMPBIN
  656. LD
  657. FGREP
  658. EGREP
  659. GREP
  660. SED
  661. am__fastdepCC_FALSE
  662. am__fastdepCC_TRUE
  663. CCDEPMODE
  664. AMDEPBACKSLASH
  665. AMDEP_FALSE
  666. AMDEP_TRUE
  667. am__quote
  668. am__include
  669. DEPDIR
  670. OBJEXT
  671. EXEEXT
  672. ac_ct_CC
  673. CPPFLAGS
  674. LDFLAGS
  675. CFLAGS
  676. CC
  677. host_os
  678. host_vendor
  679. host_cpu
  680. host
  681. build_os
  682. build_vendor
  683. build_cpu
  684. build
  685. LIBTOOL
  686. AM_BACKSLASH
  687. AM_DEFAULT_VERBOSITY
  688. am__untar
  689. am__tar
  690. AMTAR
  691. am__leading_dot
  692. SET_MAKE
  693. AWK
  694. mkdir_p
  695. MKDIR_P
  696. INSTALL_STRIP_PROGRAM
  697. STRIP
  698. install_sh
  699. MAKEINFO
  700. AUTOHEADER
  701. AUTOMAKE
  702. AUTOCONF
  703. ACLOCAL
  704. VERSION
  705. PACKAGE
  706. CYGPATH_W
  707. am__isrc
  708. INSTALL_DATA
  709. INSTALL_SCRIPT
  710. INSTALL_PROGRAM
  711. SCIM_HANGUL_VERSION
  712. SCIM_HANGUL_MICRO_VERSION
  713. SCIM_HANGUL_MINOR_VERSION
  714. SCIM_HANGUL_MAJOR_VERSION
  715. target_alias
  716. host_alias
  717. build_alias
  718. LIBS
  719. ECHO_T
  720. ECHO_N
  721. ECHO_C
  722. DEFS
  723. mandir
  724. localedir
  725. libdir
  726. psdir
  727. pdfdir
  728. dvidir
  729. htmldir
  730. infodir
  731. docdir
  732. oldincludedir
  733. includedir
  734. localstatedir
  735. sharedstatedir
  736. sysconfdir
  737. datadir
  738. datarootdir
  739. libexecdir
  740. sbindir
  741. bindir
  742. program_transform_name
  743. prefix
  744. exec_prefix
  745. PACKAGE_URL
  746. PACKAGE_BUGREPORT
  747. PACKAGE_STRING
  748. PACKAGE_VERSION
  749. PACKAGE_TARNAME
  750. PACKAGE_NAME
  751. PATH_SEPARATOR
  752. SHELL'
  753. ac_subst_files=''
  754. ac_user_opts='
  755. enable_option_checking
  756. enable_silent_rules
  757. enable_static
  758. enable_shared
  759. with_pic
  760. enable_fast_install
  761. enable_dependency_tracking
  762. with_gnu_ld
  763. with_sysroot
  764. enable_libtool_lock
  765. with_included_ltdl
  766. with_ltdl_include
  767. with_ltdl_lib
  768. enable_ltdl_install
  769. enable_nls
  770. enable_rpath
  771. with_libiconv_prefix
  772. with_libintl_prefix
  773. enable_debug
  774. '
  775. ac_precious_vars='build_alias
  776. host_alias
  777. target_alias
  778. CC
  779. CFLAGS
  780. LDFLAGS
  781. LIBS
  782. CPPFLAGS
  783. CPP
  784. CXX
  785. CXXFLAGS
  786. CCC
  787. CXXCPP
  788. PKG_CONFIG
  789. PKG_CONFIG_PATH
  790. PKG_CONFIG_LIBDIR
  791. LIBHANGUL_CFLAGS
  792. LIBHANGUL_LIBS
  793. SCIM_CFLAGS
  794. SCIM_LIBS
  795. SCIM_GTKUTILS_CFLAGS
  796. SCIM_GTKUTILS_LIBS
  797. SKIM_CFLAGS
  798. SKIM_LIBS
  799. SCIM_KDEUTILS_CFLAGS
  800. SCIM_KDEUTILS_LIBS'
  801. ac_subdirs_all='libltdl
  802. skim'
  803. # Initialize some variables set by options.
  804. ac_init_help=
  805. ac_init_version=false
  806. ac_unrecognized_opts=
  807. ac_unrecognized_sep=
  808. # The variables have the same names as the options, with
  809. # dashes changed to underlines.
  810. cache_file=/dev/null
  811. exec_prefix=NONE
  812. no_create=
  813. no_recursion=
  814. prefix=NONE
  815. program_prefix=NONE
  816. program_suffix=NONE
  817. program_transform_name=s,x,x,
  818. silent=
  819. site=
  820. srcdir=
  821. verbose=
  822. x_includes=NONE
  823. x_libraries=NONE
  824. # Installation directory options.
  825. # These are left unexpanded so users can "make install exec_prefix=/foo"
  826. # and all the variables that are supposed to be based on exec_prefix
  827. # by default will actually change.
  828. # Use braces instead of parens because sh, perl, etc. also accept them.
  829. # (The list follows the same order as the GNU Coding Standards.)
  830. bindir='${exec_prefix}/bin'
  831. sbindir='${exec_prefix}/sbin'
  832. libexecdir='${exec_prefix}/libexec'
  833. datarootdir='${prefix}/share'
  834. datadir='${datarootdir}'
  835. sysconfdir='${prefix}/etc'
  836. sharedstatedir='${prefix}/com'
  837. localstatedir='${prefix}/var'
  838. includedir='${prefix}/include'
  839. oldincludedir='/usr/include'
  840. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  841. infodir='${datarootdir}/info'
  842. htmldir='${docdir}'
  843. dvidir='${docdir}'
  844. pdfdir='${docdir}'
  845. psdir='${docdir}'
  846. libdir='${exec_prefix}/lib'
  847. localedir='${datarootdir}/locale'
  848. mandir='${datarootdir}/man'
  849. ac_prev=
  850. ac_dashdash=
  851. for ac_option
  852. do
  853. # If the previous option needs an argument, assign it.
  854. if test -n "$ac_prev"; then
  855. eval $ac_prev=\$ac_option
  856. ac_prev=
  857. continue
  858. fi
  859. case $ac_option in
  860. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  861. *) ac_optarg=yes ;;
  862. esac
  863. # Accept the important Cygnus configure options, so we can diagnose typos.
  864. case $ac_dashdash$ac_option in
  865. --)
  866. ac_dashdash=yes ;;
  867. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  868. ac_prev=bindir ;;
  869. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  870. bindir=$ac_optarg ;;
  871. -build | --build | --buil | --bui | --bu)
  872. ac_prev=build_alias ;;
  873. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  874. build_alias=$ac_optarg ;;
  875. -cache-file | --cache-file | --cache-fil | --cache-fi \
  876. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  877. ac_prev=cache_file ;;
  878. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  879. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  880. cache_file=$ac_optarg ;;
  881. --config-cache | -C)
  882. cache_file=config.cache ;;
  883. -datadir | --datadir | --datadi | --datad)
  884. ac_prev=datadir ;;
  885. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  886. datadir=$ac_optarg ;;
  887. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  888. | --dataroo | --dataro | --datar)
  889. ac_prev=datarootdir ;;
  890. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  891. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  892. datarootdir=$ac_optarg ;;
  893. -disable-* | --disable-*)
  894. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  895. # Reject names that are not valid shell variable names.
  896. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  897. as_fn_error "invalid feature name: $ac_useropt"
  898. ac_useropt_orig=$ac_useropt
  899. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  900. case $ac_user_opts in
  901. *"
  902. "enable_$ac_useropt"
  903. "*) ;;
  904. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  905. ac_unrecognized_sep=', ';;
  906. esac
  907. eval enable_$ac_useropt=no ;;
  908. -docdir | --docdir | --docdi | --doc | --do)
  909. ac_prev=docdir ;;
  910. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  911. docdir=$ac_optarg ;;
  912. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  913. ac_prev=dvidir ;;
  914. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  915. dvidir=$ac_optarg ;;
  916. -enable-* | --enable-*)
  917. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  918. # Reject names that are not valid shell variable names.
  919. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  920. as_fn_error "invalid feature name: $ac_useropt"
  921. ac_useropt_orig=$ac_useropt
  922. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  923. case $ac_user_opts in
  924. *"
  925. "enable_$ac_useropt"
  926. "*) ;;
  927. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  928. ac_unrecognized_sep=', ';;
  929. esac
  930. eval enable_$ac_useropt=\$ac_optarg ;;
  931. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  932. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  933. | --exec | --exe | --ex)
  934. ac_prev=exec_prefix ;;
  935. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  936. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  937. | --exec=* | --exe=* | --ex=*)
  938. exec_prefix=$ac_optarg ;;
  939. -gas | --gas | --ga | --g)
  940. # Obsolete; use --with-gas.
  941. with_gas=yes ;;
  942. -help | --help | --hel | --he | -h)
  943. ac_init_help=long ;;
  944. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  945. ac_init_help=recursive ;;
  946. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  947. ac_init_help=short ;;
  948. -host | --host | --hos | --ho)
  949. ac_prev=host_alias ;;
  950. -host=* | --host=* | --hos=* | --ho=*)
  951. host_alias=$ac_optarg ;;
  952. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  953. ac_prev=htmldir ;;
  954. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  955. | --ht=*)
  956. htmldir=$ac_optarg ;;
  957. -includedir | --includedir | --includedi | --included | --include \
  958. | --includ | --inclu | --incl | --inc)
  959. ac_prev=includedir ;;
  960. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  961. | --includ=* | --inclu=* | --incl=* | --inc=*)
  962. includedir=$ac_optarg ;;
  963. -infodir | --infodir | --infodi | --infod | --info | --inf)
  964. ac_prev=infodir ;;
  965. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  966. infodir=$ac_optarg ;;
  967. -libdir | --libdir | --libdi | --libd)
  968. ac_prev=libdir ;;
  969. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  970. libdir=$ac_optarg ;;
  971. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  972. | --libexe | --libex | --libe)
  973. ac_prev=libexecdir ;;
  974. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  975. | --libexe=* | --libex=* | --libe=*)
  976. libexecdir=$ac_optarg ;;
  977. -localedir | --localedir | --localedi | --localed | --locale)
  978. ac_prev=localedir ;;
  979. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  980. localedir=$ac_optarg ;;
  981. -localstatedir | --localstatedir | --localstatedi | --localstated \
  982. | --localstate | --localstat | --localsta | --localst | --locals)
  983. ac_prev=localstatedir ;;
  984. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  985. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  986. localstatedir=$ac_optarg ;;
  987. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  988. ac_prev=mandir ;;
  989. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  990. mandir=$ac_optarg ;;
  991. -nfp | --nfp | --nf)
  992. # Obsolete; use --without-fp.
  993. with_fp=no ;;
  994. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  995. | --no-cr | --no-c | -n)
  996. no_create=yes ;;
  997. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  998. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  999. no_recursion=yes ;;
  1000. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1001. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1002. | --oldin | --oldi | --old | --ol | --o)
  1003. ac_prev=oldincludedir ;;
  1004. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1005. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1006. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1007. oldincludedir=$ac_optarg ;;
  1008. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1009. ac_prev=prefix ;;
  1010. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1011. prefix=$ac_optarg ;;
  1012. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1013. | --program-pre | --program-pr | --program-p)
  1014. ac_prev=program_prefix ;;
  1015. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1016. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1017. program_prefix=$ac_optarg ;;
  1018. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1019. | --program-suf | --program-su | --program-s)
  1020. ac_prev=program_suffix ;;
  1021. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1022. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1023. program_suffix=$ac_optarg ;;
  1024. -program-transform-name | --program-transform-name \
  1025. | --program-transform-nam | --program-transform-na \
  1026. | --program-transform-n | --program-transform- \
  1027. | --program-transform | --program-transfor \
  1028. | --program-transfo | --program-transf \
  1029. | --program-trans | --program-tran \
  1030. | --progr-tra | --program-tr | --program-t)
  1031. ac_prev=program_transform_name ;;
  1032. -program-transform-name=* | --program-transform-name=* \
  1033. | --program-transform-nam=* | --program-transform-na=* \
  1034. | --program-transform-n=* | --program-transform-=* \
  1035. | --program-transform=* | --program-transfor=* \
  1036. | --program-transfo=* | --program-transf=* \
  1037. | --program-trans=* | --program-tran=* \
  1038. | --progr-tra=* | --program-tr=* | --program-t=*)
  1039. program_transform_name=$ac_optarg ;;
  1040. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1041. ac_prev=pdfdir ;;
  1042. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1043. pdfdir=$ac_optarg ;;
  1044. -psdir | --psdir | --psdi | --psd | --ps)
  1045. ac_prev=psdir ;;
  1046. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1047. psdir=$ac_optarg ;;
  1048. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1049. | -silent | --silent | --silen | --sile | --sil)
  1050. silent=yes ;;
  1051. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1052. ac_prev=sbindir ;;
  1053. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1054. | --sbi=* | --sb=*)
  1055. sbindir=$ac_optarg ;;
  1056. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1057. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1058. | --sharedst | --shareds | --shared | --share | --shar \
  1059. | --sha | --sh)
  1060. ac_prev=sharedstatedir ;;
  1061. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1062. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1063. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1064. | --sha=* | --sh=*)
  1065. sharedstatedir=$ac_optarg ;;
  1066. -site | --site | --sit)
  1067. ac_prev=site ;;
  1068. -site=* | --site=* | --sit=*)
  1069. site=$ac_optarg ;;
  1070. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1071. ac_prev=srcdir ;;
  1072. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1073. srcdir=$ac_optarg ;;
  1074. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1075. | --syscon | --sysco | --sysc | --sys | --sy)
  1076. ac_prev=sysconfdir ;;
  1077. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1078. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1079. sysconfdir=$ac_optarg ;;
  1080. -target | --target | --targe | --targ | --tar | --ta | --t)
  1081. ac_prev=target_alias ;;
  1082. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1083. target_alias=$ac_optarg ;;
  1084. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1085. verbose=yes ;;
  1086. -version | --version | --versio | --versi | --vers | -V)
  1087. ac_init_version=: ;;
  1088. -with-* | --with-*)
  1089. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1090. # Reject names that are not valid shell variable names.
  1091. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1092. as_fn_error "invalid package name: $ac_useropt"
  1093. ac_useropt_orig=$ac_useropt
  1094. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1095. case $ac_user_opts in
  1096. *"
  1097. "with_$ac_useropt"
  1098. "*) ;;
  1099. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1100. ac_unrecognized_sep=', ';;
  1101. esac
  1102. eval with_$ac_useropt=\$ac_optarg ;;
  1103. -without-* | --without-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. as_fn_error "invalid package name: $ac_useropt"
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "with_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval with_$ac_useropt=no ;;
  1118. --x)
  1119. # Obsolete; use --with-x.
  1120. with_x=yes ;;
  1121. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1122. | --x-incl | --x-inc | --x-in | --x-i)
  1123. ac_prev=x_includes ;;
  1124. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1125. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1126. x_includes=$ac_optarg ;;
  1127. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1128. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1129. ac_prev=x_libraries ;;
  1130. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1131. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1132. x_libraries=$ac_optarg ;;
  1133. -*) as_fn_error "unrecognized option: \`$ac_option'
  1134. Try \`$0 --help' for more information."
  1135. ;;
  1136. *=*)
  1137. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1138. # Reject names that are not valid shell variable names.
  1139. case $ac_envvar in #(
  1140. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1141. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1142. esac
  1143. eval $ac_envvar=\$ac_optarg
  1144. export $ac_envvar ;;
  1145. *)
  1146. # FIXME: should be removed in autoconf 3.0.
  1147. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1148. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1149. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1150. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1151. ;;
  1152. esac
  1153. done
  1154. if test -n "$ac_prev"; then
  1155. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1156. as_fn_error "missing argument to $ac_option"
  1157. fi
  1158. if test -n "$ac_unrecognized_opts"; then
  1159. case $enable_option_checking in
  1160. no) ;;
  1161. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1162. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1163. esac
  1164. fi
  1165. # Check all directory arguments for consistency.
  1166. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1167. datadir sysconfdir sharedstatedir localstatedir includedir \
  1168. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1169. libdir localedir mandir
  1170. do
  1171. eval ac_val=\$$ac_var
  1172. # Remove trailing slashes.
  1173. case $ac_val in
  1174. */ )
  1175. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1176. eval $ac_var=\$ac_val;;
  1177. esac
  1178. # Be sure to have absolute directory names.
  1179. case $ac_val in
  1180. [\\/$]* | ?:[\\/]* ) continue;;
  1181. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1182. esac
  1183. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1184. done
  1185. # There might be people who depend on the old broken behavior: `$host'
  1186. # used to hold the argument of --host etc.
  1187. # FIXME: To remove some day.
  1188. build=$build_alias
  1189. host=$host_alias
  1190. target=$target_alias
  1191. # FIXME: To remove some day.
  1192. if test "x$host_alias" != x; then
  1193. if test "x$build_alias" = x; then
  1194. cross_compiling=maybe
  1195. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1196. If a cross compiler is detected then cross compile mode will be used." >&2
  1197. elif test "x$build_alias" != "x$host_alias"; then
  1198. cross_compiling=yes
  1199. fi
  1200. fi
  1201. ac_tool_prefix=
  1202. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1203. test "$silent" = yes && exec 6>/dev/null
  1204. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1205. ac_ls_di=`ls -di .` &&
  1206. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1207. as_fn_error "working directory cannot be determined"
  1208. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1209. as_fn_error "pwd does not report name of working directory"
  1210. # Find the source files, if location was not specified.
  1211. if test -z "$srcdir"; then
  1212. ac_srcdir_defaulted=yes
  1213. # Try the directory containing this script, then the parent directory.
  1214. ac_confdir=`$as_dirname -- "$as_myself" ||
  1215. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1216. X"$as_myself" : 'X\(//\)[^/]' \| \
  1217. X"$as_myself" : 'X\(//\)$' \| \
  1218. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1219. $as_echo X"$as_myself" |
  1220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)[^/].*/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\/\)$/{
  1229. s//\1/
  1230. q
  1231. }
  1232. /^X\(\/\).*/{
  1233. s//\1/
  1234. q
  1235. }
  1236. s/.*/./; q'`
  1237. srcdir=$ac_confdir
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. srcdir=..
  1240. fi
  1241. else
  1242. ac_srcdir_defaulted=no
  1243. fi
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1246. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1247. fi
  1248. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1249. ac_abs_confdir=`(
  1250. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1251. pwd)`
  1252. # When building in place, set srcdir=.
  1253. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1254. srcdir=.
  1255. fi
  1256. # Remove unnecessary trailing slashes from srcdir.
  1257. # Double slashes in file names in object file debugging info
  1258. # mess up M-x gdb in Emacs.
  1259. case $srcdir in
  1260. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1261. esac
  1262. for ac_var in $ac_precious_vars; do
  1263. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1264. eval ac_env_${ac_var}_value=\$${ac_var}
  1265. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1267. done
  1268. #
  1269. # Report the --help message.
  1270. #
  1271. if test "$ac_init_help" = "long"; then
  1272. # Omit some internal or obsolete options to make the list less imposing.
  1273. # This message is too long to be a string in the A/UX 3.1 sh.
  1274. cat <<_ACEOF
  1275. \`configure' configures scim-hangul 0.4.0 to adapt to many kinds of systems.
  1276. Usage: $0 [OPTION]... [VAR=VALUE]...
  1277. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1278. VAR=VALUE. See below for descriptions of some of the useful variables.
  1279. Defaults for the options are specified in brackets.
  1280. Configuration:
  1281. -h, --help display this help and exit
  1282. --help=short display options specific to this package
  1283. --help=recursive display the short help of all the included packages
  1284. -V, --version display version information and exit
  1285. -q, --quiet, --silent do not print \`checking...' messages
  1286. --cache-file=FILE cache test results in FILE [disabled]
  1287. -C, --config-cache alias for \`--cache-file=config.cache'
  1288. -n, --no-create do not create output files
  1289. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1290. Installation directories:
  1291. --prefix=PREFIX install architecture-independent files in PREFIX
  1292. [$ac_default_prefix]
  1293. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1294. [PREFIX]
  1295. By default, \`make install' will install all the files in
  1296. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1297. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1298. for instance \`--prefix=\$HOME'.
  1299. For better control, use the options below.
  1300. Fine tuning of the installation directories:
  1301. --bindir=DIR user executables [EPREFIX/bin]
  1302. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1303. --libexecdir=DIR program executables [EPREFIX/libexec]
  1304. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1305. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1306. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1307. --libdir=DIR object code libraries [EPREFIX/lib]
  1308. --includedir=DIR C header files [PREFIX/include]
  1309. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1310. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1311. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1312. --infodir=DIR info documentation [DATAROOTDIR/info]
  1313. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1314. --mandir=DIR man documentation [DATAROOTDIR/man]
  1315. --docdir=DIR documentation root [DATAROOTDIR/doc/scim-hangul]
  1316. --htmldir=DIR html documentation [DOCDIR]
  1317. --dvidir=DIR dvi documentation [DOCDIR]
  1318. --pdfdir=DIR pdf documentation [DOCDIR]
  1319. --psdir=DIR ps documentation [DOCDIR]
  1320. _ACEOF
  1321. cat <<\_ACEOF
  1322. Program names:
  1323. --program-prefix=PREFIX prepend PREFIX to installed program names
  1324. --program-suffix=SUFFIX append SUFFIX to installed program names
  1325. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1326. System types:
  1327. --build=BUILD configure for building on BUILD [guessed]
  1328. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. case $ac_init_help in
  1333. short | recursive ) echo "Configuration of scim-hangul 0.4.0:";;
  1334. esac
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-silent-rules less verbose build output (undo: `make V=1')
  1341. --disable-silent-rules verbose build output (undo: `make V=0')
  1342. --enable-static[=PKGS] build static libraries [default=no]
  1343. --enable-shared[=PKGS] build shared libraries [default=yes]
  1344. --enable-fast-install[=PKGS]
  1345. optimize for fast installation [default=yes]
  1346. --disable-dependency-tracking speeds up one-time build
  1347. --enable-dependency-tracking do not reject slow dependency extractors
  1348. --disable-libtool-lock avoid locking (might break parallel builds)
  1349. --enable-ltdl-install install libltdl
  1350. --disable-nls do not use Native Language Support
  1351. --disable-rpath do not hardcode runtime library paths
  1352. --enable-debug Turn on debugging
  1353. Optional Packages:
  1354. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1355. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1356. --with-pic try to use only PIC/non-PIC objects [default=use
  1357. both]
  1358. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1359. --with-sysroot=DIR Search for dependent libraries within DIR
  1360. (or the compiler's sysroot if not specified).
  1361. --with-included-ltdl use the GNU ltdl sources included here
  1362. --with-ltdl-include=DIR use the ltdl headers installed in DIR
  1363. --with-ltdl-lib=DIR use the libltdl.la installed in DIR
  1364. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1365. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1366. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1367. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1368. --without-libintl-prefix don't search for libintl in includedir and libdir
  1369. Some influential environment variables:
  1370. CC C compiler command
  1371. CFLAGS C compiler flags
  1372. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1373. nonstandard directory <lib dir>
  1374. LIBS libraries to pass to the linker, e.g. -l<library>
  1375. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1376. you have headers in a nonstandard directory <include dir>
  1377. CPP C preprocessor
  1378. CXX C++ compiler command
  1379. CXXFLAGS C++ compiler flags
  1380. CXXCPP C++ preprocessor
  1381. PKG_CONFIG path to pkg-config utility
  1382. PKG_CONFIG_PATH
  1383. directories to add to pkg-config's search path
  1384. PKG_CONFIG_LIBDIR
  1385. path overriding pkg-config's built-in search path
  1386. LIBHANGUL_CFLAGS
  1387. C compiler flags for LIBHANGUL, overriding pkg-config
  1388. LIBHANGUL_LIBS
  1389. linker flags for LIBHANGUL, overriding pkg-config
  1390. SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
  1391. SCIM_LIBS linker flags for SCIM, overriding pkg-config
  1392. SCIM_GTKUTILS_CFLAGS
  1393. C compiler flags for SCIM_GTKUTILS, overriding pkg-config
  1394. SCIM_GTKUTILS_LIBS
  1395. linker flags for SCIM_GTKUTILS, overriding pkg-config
  1396. SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
  1397. SKIM_LIBS linker flags for SKIM, overriding pkg-config
  1398. SCIM_KDEUTILS_CFLAGS
  1399. C compiler flags for SCIM_KDEUTILS, overriding pkg-config
  1400. SCIM_KDEUTILS_LIBS
  1401. linker flags for SCIM_KDEUTILS, overriding pkg-config
  1402. Use these variables to override the choices made by `configure' or to help
  1403. it to find libraries and programs with nonstandard names/locations.
  1404. Report bugs to <choe.hwanjing@gmail.com>.
  1405. _ACEOF
  1406. ac_status=$?
  1407. fi
  1408. if test "$ac_init_help" = "recursive"; then
  1409. # If there are subdirs, report their specific --help.
  1410. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1411. test -d "$ac_dir" ||
  1412. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1413. continue
  1414. ac_builddir=.
  1415. case "$ac_dir" in
  1416. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1417. *)
  1418. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1419. # A ".." for each directory in $ac_dir_suffix.
  1420. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1421. case $ac_top_builddir_sub in
  1422. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1423. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1424. esac ;;
  1425. esac
  1426. ac_abs_top_builddir=$ac_pwd
  1427. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1428. # for backward compatibility:
  1429. ac_top_builddir=$ac_top_build_prefix
  1430. case $srcdir in
  1431. .) # We are building in place.
  1432. ac_srcdir=.
  1433. ac_top_srcdir=$ac_top_builddir_sub
  1434. ac_abs_top_srcdir=$ac_pwd ;;
  1435. [\\/]* | ?:[\\/]* ) # Absolute name.
  1436. ac_srcdir=$srcdir$ac_dir_suffix;
  1437. ac_top_srcdir=$srcdir
  1438. ac_abs_top_srcdir=$srcdir ;;
  1439. *) # Relative name.
  1440. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1441. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1442. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1443. esac
  1444. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1445. cd "$ac_dir" || { ac_status=$?; continue; }
  1446. # Check for guested configure.
  1447. if test -f "$ac_srcdir/configure.gnu"; then
  1448. echo &&
  1449. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1450. elif test -f "$ac_srcdir/configure"; then
  1451. echo &&
  1452. $SHELL "$ac_srcdir/configure" --help=recursive
  1453. else
  1454. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1455. fi || ac_status=$?
  1456. cd "$ac_pwd" || { ac_status=$?; break; }
  1457. done
  1458. fi
  1459. test -n "$ac_init_help" && exit $ac_status
  1460. if $ac_init_version; then
  1461. cat <<\_ACEOF
  1462. scim-hangul configure 0.4.0
  1463. generated by GNU Autoconf 2.65
  1464. Copyright (C) 2009 Free Software Foundation, Inc.
  1465. This configure script is free software; the Free Software Foundation
  1466. gives unlimited permission to copy, distribute and modify it.
  1467. _ACEOF
  1468. exit
  1469. fi
  1470. ## ------------------------ ##
  1471. ## Autoconf initialization. ##
  1472. ## ------------------------ ##
  1473. # ac_fn_c_try_compile LINENO
  1474. # --------------------------
  1475. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1476. ac_fn_c_try_compile ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. rm -f conftest.$ac_objext
  1480. if { { ac_try="$ac_compile"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_compile") 2>conftest.err
  1488. ac_status=$?
  1489. if test -s conftest.err; then
  1490. grep -v '^ *+' conftest.err >conftest.er1
  1491. cat conftest.er1 >&5
  1492. mv -f conftest.er1 conftest.err
  1493. fi
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; } && {
  1496. test -z "$ac_c_werror_flag" ||
  1497. test ! -s conftest.err
  1498. } && test -s conftest.$ac_objext; then :
  1499. ac_retval=0
  1500. else
  1501. $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_retval=1
  1504. fi
  1505. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1506. as_fn_set_status $ac_retval
  1507. } # ac_fn_c_try_compile
  1508. # ac_fn_c_try_link LINENO
  1509. # -----------------------
  1510. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_c_try_link ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. rm -f conftest.$ac_objext conftest$ac_exeext
  1515. if { { ac_try="$ac_link"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_link") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } && {
  1531. test -z "$ac_c_werror_flag" ||
  1532. test ! -s conftest.err
  1533. } && test -s conftest$ac_exeext && {
  1534. test "$cross_compiling" = yes ||
  1535. $as_test_x conftest$ac_exeext
  1536. }; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: failed program was:" >&5
  1540. sed 's/^/| /' conftest.$ac_ext >&5
  1541. ac_retval=1
  1542. fi
  1543. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1544. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1545. # interfere with the next link command; also delete a directory that is
  1546. # left behind by Apple's compiler. We do this before executing the actions.
  1547. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1548. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1549. as_fn_set_status $ac_retval
  1550. } # ac_fn_c_try_link
  1551. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1552. # -------------------------------------------------------
  1553. # Tests whether HEADER exists and can be compiled using the include files in
  1554. # INCLUDES, setting the cache variable VAR accordingly.
  1555. ac_fn_c_check_header_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. eval "$3=yes"
  1570. else
  1571. eval "$3=no"
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1579. } # ac_fn_c_check_header_compile
  1580. # ac_fn_c_try_cpp LINENO
  1581. # ----------------------
  1582. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_cpp ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1587. case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1594. ac_status=$?
  1595. if test -s conftest.err; then
  1596. grep -v '^ *+' conftest.err >conftest.er1
  1597. cat conftest.er1 >&5
  1598. mv -f conftest.er1 conftest.err
  1599. fi
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } >/dev/null && {
  1602. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1603. test ! -s conftest.err
  1604. }; then :
  1605. ac_retval=0
  1606. else
  1607. $as_echo "$as_me: failed program was:" >&5
  1608. sed 's/^/| /' conftest.$ac_ext >&5
  1609. ac_retval=1
  1610. fi
  1611. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1612. as_fn_set_status $ac_retval
  1613. } # ac_fn_c_try_cpp
  1614. # ac_fn_c_try_run LINENO
  1615. # ----------------------
  1616. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1617. # that executables *can* be run.
  1618. ac_fn_c_try_run ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. if { { ac_try="$ac_link"
  1622. case "(($ac_try" in
  1623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1624. *) ac_try_echo=$ac_try;;
  1625. esac
  1626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1627. $as_echo "$ac_try_echo"; } >&5
  1628. (eval "$ac_link") 2>&5
  1629. ac_status=$?
  1630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1632. { { case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_try") 2>&5
  1639. ac_status=$?
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; }; }; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: program exited with status $ac_status" >&5
  1645. $as_echo "$as_me: failed program was:" >&5
  1646. sed 's/^/| /' conftest.$ac_ext >&5
  1647. ac_retval=$ac_status
  1648. fi
  1649. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1650. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1651. as_fn_set_status $ac_retval
  1652. } # ac_fn_c_try_run
  1653. # ac_fn_c_check_func LINENO FUNC VAR
  1654. # ----------------------------------
  1655. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1656. ac_fn_c_check_func ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1668. #define $2 innocuous_$2
  1669. /* System header to define __stub macros and hopefully few prototypes,
  1670. which can conflict with char $2 (); below.
  1671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1672. <limits.h> exists even on freestanding compilers. */
  1673. #ifdef __STDC__
  1674. # include <limits.h>
  1675. #else
  1676. # include <assert.h>
  1677. #endif
  1678. #undef $2
  1679. /* Override any GCC internal prototype to avoid an error.
  1680. Use char because int might match the return type of a GCC
  1681. builtin and then its argument prototype would still apply. */
  1682. #ifdef __cplusplus
  1683. extern "C"
  1684. #endif
  1685. char $2 ();
  1686. /* The GNU C library defines this for functions which it implements
  1687. to always fail with ENOSYS. Some functions are actually named
  1688. something starting with __ and the normal name is an alias. */
  1689. #if defined __stub_$2 || defined __stub___$2
  1690. choke me
  1691. #endif
  1692. int
  1693. main ()
  1694. {
  1695. return $2 ();
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_link "$LINENO"; then :
  1701. eval "$3=yes"
  1702. else
  1703. eval "$3=no"
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext \
  1706. conftest$ac_exeext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1712. } # ac_fn_c_check_func
  1713. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1714. # ------------------------------------
  1715. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1716. ac_fn_c_check_decl ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  1720. $as_echo_n "checking whether $2 is declared... " >&6; }
  1721. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1722. $as_echo_n "(cached) " >&6
  1723. else
  1724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end confdefs.h. */
  1726. $4
  1727. int
  1728. main ()
  1729. {
  1730. #ifndef $2
  1731. (void) $2;
  1732. #endif
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. if ac_fn_c_try_compile "$LINENO"; then :
  1738. eval "$3=yes"
  1739. else
  1740. eval "$3=no"
  1741. fi
  1742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1743. fi
  1744. eval ac_res=\$$3
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1746. $as_echo "$ac_res" >&6; }
  1747. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1748. } # ac_fn_c_check_decl
  1749. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1750. # -------------------------------------------
  1751. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1752. # variable VAR accordingly.
  1753. ac_fn_c_check_type ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1757. $as_echo_n "checking for $2... " >&6; }
  1758. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1759. $as_echo_n "(cached) " >&6
  1760. else
  1761. eval "$3=no"
  1762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end confdefs.h. */
  1764. $4
  1765. int
  1766. main ()
  1767. {
  1768. if (sizeof ($2))
  1769. return 0;
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_c_try_compile "$LINENO"; then :
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. int
  1779. main ()
  1780. {
  1781. if (sizeof (($2)))
  1782. return 0;
  1783. ;
  1784. return 0;
  1785. }
  1786. _ACEOF
  1787. if ac_fn_c_try_compile "$LINENO"; then :
  1788. else
  1789. eval "$3=yes"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1794. fi
  1795. eval ac_res=\$$3
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1797. $as_echo "$ac_res" >&6; }
  1798. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1799. } # ac_fn_c_check_type
  1800. # ac_fn_cxx_try_compile LINENO
  1801. # ----------------------------
  1802. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1803. ac_fn_cxx_try_compile ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. rm -f conftest.$ac_objext
  1807. if { { ac_try="$ac_compile"
  1808. case "(($ac_try" in
  1809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1810. *) ac_try_echo=$ac_try;;
  1811. esac
  1812. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1813. $as_echo "$ac_try_echo"; } >&5
  1814. (eval "$ac_compile") 2>conftest.err
  1815. ac_status=$?
  1816. if test -s conftest.err; then
  1817. grep -v '^ *+' conftest.err >conftest.er1
  1818. cat conftest.er1 >&5
  1819. mv -f conftest.er1 conftest.err
  1820. fi
  1821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1822. test $ac_status = 0; } && {
  1823. test -z "$ac_cxx_werror_flag" ||
  1824. test ! -s conftest.err
  1825. } && test -s conftest.$ac_objext; then :
  1826. ac_retval=0
  1827. else
  1828. $as_echo "$as_me: failed program was:" >&5
  1829. sed 's/^/| /' conftest.$ac_ext >&5
  1830. ac_retval=1
  1831. fi
  1832. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1833. as_fn_set_status $ac_retval
  1834. } # ac_fn_cxx_try_compile
  1835. # ac_fn_cxx_try_cpp LINENO
  1836. # ------------------------
  1837. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1838. ac_fn_cxx_try_cpp ()
  1839. {
  1840. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1841. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1847. $as_echo "$ac_try_echo"; } >&5
  1848. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1849. ac_status=$?
  1850. if test -s conftest.err; then
  1851. grep -v '^ *+' conftest.err >conftest.er1
  1852. cat conftest.er1 >&5
  1853. mv -f conftest.er1 conftest.err
  1854. fi
  1855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } >/dev/null && {
  1857. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1858. test ! -s conftest.err
  1859. }; then :
  1860. ac_retval=0
  1861. else
  1862. $as_echo "$as_me: failed program was:" >&5
  1863. sed 's/^/| /' conftest.$ac_ext >&5
  1864. ac_retval=1
  1865. fi
  1866. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1867. as_fn_set_status $ac_retval
  1868. } # ac_fn_cxx_try_cpp
  1869. # ac_fn_cxx_try_link LINENO
  1870. # -------------------------
  1871. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1872. ac_fn_cxx_try_link ()
  1873. {
  1874. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1875. rm -f conftest.$ac_objext conftest$ac_exeext
  1876. if { { ac_try="$ac_link"
  1877. case "(($ac_try" in
  1878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1879. *) ac_try_echo=$ac_try;;
  1880. esac
  1881. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1882. $as_echo "$ac_try_echo"; } >&5
  1883. (eval "$ac_link") 2>conftest.err
  1884. ac_status=$?
  1885. if test -s conftest.err; then
  1886. grep -v '^ *+' conftest.err >conftest.er1
  1887. cat conftest.er1 >&5
  1888. mv -f conftest.er1 conftest.err
  1889. fi
  1890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1891. test $ac_status = 0; } && {
  1892. test -z "$ac_cxx_werror_flag" ||
  1893. test ! -s conftest.err
  1894. } && test -s conftest$ac_exeext && {
  1895. test "$cross_compiling" = yes ||
  1896. $as_test_x conftest$ac_exeext
  1897. }; then :
  1898. ac_retval=0
  1899. else
  1900. $as_echo "$as_me: failed program was:" >&5
  1901. sed 's/^/| /' conftest.$ac_ext >&5
  1902. ac_retval=1
  1903. fi
  1904. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1905. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1906. # interfere with the next link command; also delete a directory that is
  1907. # left behind by Apple's compiler. We do this before executing the actions.
  1908. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1909. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1910. as_fn_set_status $ac_retval
  1911. } # ac_fn_cxx_try_link
  1912. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1913. # ---------------------------------------------
  1914. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1915. # variable VAR accordingly.
  1916. ac_fn_cxx_check_type ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1920. $as_echo_n "checking for $2... " >&6; }
  1921. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1922. $as_echo_n "(cached) " >&6
  1923. else
  1924. eval "$3=no"
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. $4
  1928. int
  1929. main ()
  1930. {
  1931. if (sizeof ($2))
  1932. return 0;
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_cxx_try_compile "$LINENO"; then :
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $4
  1941. int
  1942. main ()
  1943. {
  1944. if (sizeof (($2)))
  1945. return 0;
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. if ac_fn_cxx_try_compile "$LINENO"; then :
  1951. else
  1952. eval "$3=yes"
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1957. fi
  1958. eval ac_res=\$$3
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1960. $as_echo "$ac_res" >&6; }
  1961. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1962. } # ac_fn_cxx_check_type
  1963. # ac_fn_cxx_try_run LINENO
  1964. # ------------------------
  1965. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1966. # that executables *can* be run.
  1967. ac_fn_cxx_try_run ()
  1968. {
  1969. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1970. if { { ac_try="$ac_link"
  1971. case "(($ac_try" in
  1972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1973. *) ac_try_echo=$ac_try;;
  1974. esac
  1975. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1976. $as_echo "$ac_try_echo"; } >&5
  1977. (eval "$ac_link") 2>&5
  1978. ac_status=$?
  1979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1980. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1981. { { case "(($ac_try" in
  1982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1983. *) ac_try_echo=$ac_try;;
  1984. esac
  1985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1986. $as_echo "$ac_try_echo"; } >&5
  1987. (eval "$ac_try") 2>&5
  1988. ac_status=$?
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1990. test $ac_status = 0; }; }; then :
  1991. ac_retval=0
  1992. else
  1993. $as_echo "$as_me: program exited with status $ac_status" >&5
  1994. $as_echo "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. ac_retval=$ac_status
  1997. fi
  1998. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1999. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2000. as_fn_set_status $ac_retval
  2001. } # ac_fn_cxx_try_run
  2002. cat >config.log <<_ACEOF
  2003. This file contains any messages produced by compilers while
  2004. running configure, to aid debugging if configure makes a mistake.
  2005. It was created by scim-hangul $as_me 0.4.0, which was
  2006. generated by GNU Autoconf 2.65. Invocation command line was
  2007. $ $0 $@
  2008. _ACEOF
  2009. exec 5>>config.log
  2010. {
  2011. cat <<_ASUNAME
  2012. ## --------- ##
  2013. ## Platform. ##
  2014. ## --------- ##
  2015. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2016. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2017. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2018. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2019. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2020. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2021. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2022. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2023. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2024. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2025. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2026. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2027. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2028. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2029. _ASUNAME
  2030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2031. for as_dir in $PATH
  2032. do
  2033. IFS=$as_save_IFS
  2034. test -z "$as_dir" && as_dir=.
  2035. $as_echo "PATH: $as_dir"
  2036. done
  2037. IFS=$as_save_IFS
  2038. } >&5
  2039. cat >&5 <<_ACEOF
  2040. ## ----------- ##
  2041. ## Core tests. ##
  2042. ## ----------- ##
  2043. _ACEOF
  2044. # Keep a trace of the command line.
  2045. # Strip out --no-create and --no-recursion so they do not pile up.
  2046. # Strip out --silent because we don't want to record it for future runs.
  2047. # Also quote any args containing shell meta-characters.
  2048. # Make two passes to allow for proper duplicate-argument suppression.
  2049. ac_configure_args=
  2050. ac_configure_args0=
  2051. ac_configure_args1=
  2052. ac_must_keep_next=false
  2053. for ac_pass in 1 2
  2054. do
  2055. for ac_arg
  2056. do
  2057. case $ac_arg in
  2058. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2060. | -silent | --silent | --silen | --sile | --sil)
  2061. continue ;;
  2062. *\'*)
  2063. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2064. esac
  2065. case $ac_pass in
  2066. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2067. 2)
  2068. as_fn_append ac_configure_args1 " '$ac_arg'"
  2069. if test $ac_must_keep_next = true; then
  2070. ac_must_keep_next=false # Got value, back to normal.
  2071. else
  2072. case $ac_arg in
  2073. *=* | --config-cache | -C | -disable-* | --disable-* \
  2074. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2075. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2076. | -with-* | --with-* | -without-* | --without-* | --x)
  2077. case "$ac_configure_args0 " in
  2078. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2079. esac
  2080. ;;
  2081. -* ) ac_must_keep_next=true ;;
  2082. esac
  2083. fi
  2084. as_fn_append ac_configure_args " '$ac_arg'"
  2085. ;;
  2086. esac
  2087. done
  2088. done
  2089. { ac_configure_args0=; unset ac_configure_args0;}
  2090. { ac_configure_args1=; unset ac_configure_args1;}
  2091. # When interrupted or exit'd, cleanup temporary files, and complete
  2092. # config.log. We remove comments because anyway the quotes in there
  2093. # would cause problems or look ugly.
  2094. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2095. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2096. trap 'exit_status=$?
  2097. # Save into config.log some information that might help in debugging.
  2098. {
  2099. echo
  2100. cat <<\_ASBOX
  2101. ## ---------------- ##
  2102. ## Cache variables. ##
  2103. ## ---------------- ##
  2104. _ASBOX
  2105. echo
  2106. # The following way of writing the cache mishandles newlines in values,
  2107. (
  2108. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2109. eval ac_val=\$$ac_var
  2110. case $ac_val in #(
  2111. *${as_nl}*)
  2112. case $ac_var in #(
  2113. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2114. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2115. esac
  2116. case $ac_var in #(
  2117. _ | IFS | as_nl) ;; #(
  2118. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2119. *) { eval $ac_var=; unset $ac_var;} ;;
  2120. esac ;;
  2121. esac
  2122. done
  2123. (set) 2>&1 |
  2124. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2125. *${as_nl}ac_space=\ *)
  2126. sed -n \
  2127. "s/'\''/'\''\\\\'\'''\''/g;
  2128. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2129. ;; #(
  2130. *)
  2131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2132. ;;
  2133. esac |
  2134. sort
  2135. )
  2136. echo
  2137. cat <<\_ASBOX
  2138. ## ----------------- ##
  2139. ## Output variables. ##
  2140. ## ----------------- ##
  2141. _ASBOX
  2142. echo
  2143. for ac_var in $ac_subst_vars
  2144. do
  2145. eval ac_val=\$$ac_var
  2146. case $ac_val in
  2147. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2148. esac
  2149. $as_echo "$ac_var='\''$ac_val'\''"
  2150. done | sort
  2151. echo
  2152. if test -n "$ac_subst_files"; then
  2153. cat <<\_ASBOX
  2154. ## ------------------- ##
  2155. ## File substitutions. ##
  2156. ## ------------------- ##
  2157. _ASBOX
  2158. echo
  2159. for ac_var in $ac_subst_files
  2160. do
  2161. eval ac_val=\$$ac_var
  2162. case $ac_val in
  2163. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2164. esac
  2165. $as_echo "$ac_var='\''$ac_val'\''"
  2166. done | sort
  2167. echo
  2168. fi
  2169. if test -s confdefs.h; then
  2170. cat <<\_ASBOX
  2171. ## ----------- ##
  2172. ## confdefs.h. ##
  2173. ## ----------- ##
  2174. _ASBOX
  2175. echo
  2176. cat confdefs.h
  2177. echo
  2178. fi
  2179. test "$ac_signal" != 0 &&
  2180. $as_echo "$as_me: caught signal $ac_signal"
  2181. $as_echo "$as_me: exit $exit_status"
  2182. } >&5
  2183. rm -f core *.core core.conftest.* &&
  2184. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2185. exit $exit_status
  2186. ' 0
  2187. for ac_signal in 1 2 13 15; do
  2188. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2189. done
  2190. ac_signal=0
  2191. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2192. rm -f -r conftest* confdefs.h
  2193. $as_echo "/* confdefs.h */" > confdefs.h
  2194. # Predefined preprocessor variables.
  2195. cat >>confdefs.h <<_ACEOF
  2196. #define PACKAGE_NAME "$PACKAGE_NAME"
  2197. _ACEOF
  2198. cat >>confdefs.h <<_ACEOF
  2199. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2200. _ACEOF
  2201. cat >>confdefs.h <<_ACEOF
  2202. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2203. _ACEOF
  2204. cat >>confdefs.h <<_ACEOF
  2205. #define PACKAGE_STRING "$PACKAGE_STRING"
  2206. _ACEOF
  2207. cat >>confdefs.h <<_ACEOF
  2208. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2209. _ACEOF
  2210. cat >>confdefs.h <<_ACEOF
  2211. #define PACKAGE_URL "$PACKAGE_URL"
  2212. _ACEOF
  2213. # Let the site file select an alternate cache file if it wants to.
  2214. # Prefer an explicitly selected file to automatically selected ones.
  2215. ac_site_file1=NONE
  2216. ac_site_file2=NONE
  2217. if test -n "$CONFIG_SITE"; then
  2218. ac_site_file1=$CONFIG_SITE
  2219. elif test "x$prefix" != xNONE; then
  2220. ac_site_file1=$prefix/share/config.site
  2221. ac_site_file2=$prefix/etc/config.site
  2222. else
  2223. ac_site_file1=$ac_default_prefix/share/config.site
  2224. ac_site_file2=$ac_default_prefix/etc/config.site
  2225. fi
  2226. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2227. do
  2228. test "x$ac_site_file" = xNONE && continue
  2229. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2231. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2232. sed 's/^/| /' "$ac_site_file" >&5
  2233. . "$ac_site_file"
  2234. fi
  2235. done
  2236. if test -r "$cache_file"; then
  2237. # Some versions of bash will fail to source /dev/null (special files
  2238. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2239. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2241. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2242. case $cache_file in
  2243. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2244. *) . "./$cache_file";;
  2245. esac
  2246. fi
  2247. else
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2249. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2250. >$cache_file
  2251. fi
  2252. gt_needs="$gt_needs "
  2253. # Check that the precious variables saved in the cache have kept the same
  2254. # value.
  2255. ac_cache_corrupted=false
  2256. for ac_var in $ac_precious_vars; do
  2257. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2258. eval ac_new_set=\$ac_env_${ac_var}_set
  2259. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2260. eval ac_new_val=\$ac_env_${ac_var}_value
  2261. case $ac_old_set,$ac_new_set in
  2262. set,)
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2265. ac_cache_corrupted=: ;;
  2266. ,set)
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2268. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2269. ac_cache_corrupted=: ;;
  2270. ,);;
  2271. *)
  2272. if test "x$ac_old_val" != "x$ac_new_val"; then
  2273. # differences in whitespace do not lead to failure.
  2274. ac_old_val_w=`echo x $ac_old_val`
  2275. ac_new_val_w=`echo x $ac_new_val`
  2276. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2278. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2279. ac_cache_corrupted=:
  2280. else
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2282. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2283. eval $ac_var=\$ac_old_val
  2284. fi
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2286. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2288. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2289. fi;;
  2290. esac
  2291. # Pass precious variables to config.status.
  2292. if test "$ac_new_set" = set; then
  2293. case $ac_new_val in
  2294. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2295. *) ac_arg=$ac_var=$ac_new_val ;;
  2296. esac
  2297. case " $ac_configure_args " in
  2298. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2299. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2300. esac
  2301. fi
  2302. done
  2303. if $ac_cache_corrupted; then
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2305. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2307. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2308. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2309. fi
  2310. ## -------------------- ##
  2311. ## Main body of script. ##
  2312. ## -------------------- ##
  2313. ac_ext=c
  2314. ac_cpp='$CPP $CPPFLAGS'
  2315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2318. #do not forget to update skim/configure.in.in
  2319. # Save this value here, since automake will set cflags and cxxflags later
  2320. cflags_set=${CFLAGS+set}
  2321. cppflags_set=${CPPFLAGS+set}
  2322. SCIM_HANGUL_MAJOR_VERSION=0
  2323. SCIM_HANGUL_MINOR_VERSION=4
  2324. SCIM_HANGUL_MICRO_VERSION=0
  2325. SCIM_HANGUL_VERSION=$SCIM_HANGUL_MAJOR_VERSION.$SCIM_HANGUL_MINOR_VERSION.$SCIM_HANGUL_MICRO_VERSION
  2326. # Init automake stuff
  2327. am__api_version='1.11'
  2328. ac_aux_dir=
  2329. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2330. for ac_t in install-sh install.sh shtool; do
  2331. if test -f "$ac_dir/$ac_t"; then
  2332. ac_aux_dir=$ac_dir
  2333. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2334. break 2
  2335. fi
  2336. done
  2337. done
  2338. if test -z "$ac_aux_dir"; then
  2339. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2340. fi
  2341. # These three variables are undocumented and unsupported,
  2342. # and are intended to be withdrawn in a future Autoconf release.
  2343. # They can cause serious problems if a builder's source tree is in a directory
  2344. # whose full name contains unusual characters.
  2345. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2346. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2347. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2348. # Find a good install program. We prefer a C program (faster),
  2349. # so one script is as good as another. But avoid the broken or
  2350. # incompatible versions:
  2351. # SysV /etc/install, /usr/sbin/install
  2352. # SunOS /usr/etc/install
  2353. # IRIX /sbin/install
  2354. # AIX /bin/install
  2355. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2356. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2357. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2358. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2359. # OS/2's system install, which has a completely different semantic
  2360. # ./install, which can be erroneously created by make from ./install.sh.
  2361. # Reject install programs that cannot install multiple files.
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2363. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2364. if test -z "$INSTALL"; then
  2365. if test "${ac_cv_path_install+set}" = set; then :
  2366. $as_echo_n "(cached) " >&6
  2367. else
  2368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369. for as_dir in $PATH
  2370. do
  2371. IFS=$as_save_IFS
  2372. test -z "$as_dir" && as_dir=.
  2373. # Account for people who put trailing slashes in PATH elements.
  2374. case $as_dir/ in #((
  2375. ./ | .// | /[cC]/* | \
  2376. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2377. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2378. /usr/ucb/* ) ;;
  2379. *)
  2380. # OSF1 and SCO ODT 3.0 have their own names for install.
  2381. # Don't use installbsd from OSF since it installs stuff as root
  2382. # by default.
  2383. for ac_prog in ginstall scoinst install; do
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2386. if test $ac_prog = install &&
  2387. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2388. # AIX install. It has an incompatible calling convention.
  2389. :
  2390. elif test $ac_prog = install &&
  2391. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2392. # program-specific install script used by HP pwplus--don't use.
  2393. :
  2394. else
  2395. rm -rf conftest.one conftest.two conftest.dir
  2396. echo one > conftest.one
  2397. echo two > conftest.two
  2398. mkdir conftest.dir
  2399. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2400. test -s conftest.one && test -s conftest.two &&
  2401. test -s conftest.dir/conftest.one &&
  2402. test -s conftest.dir/conftest.two
  2403. then
  2404. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2405. break 3
  2406. fi
  2407. fi
  2408. fi
  2409. done
  2410. done
  2411. ;;
  2412. esac
  2413. done
  2414. IFS=$as_save_IFS
  2415. rm -rf conftest.one conftest.two conftest.dir
  2416. fi
  2417. if test "${ac_cv_path_install+set}" = set; then
  2418. INSTALL=$ac_cv_path_install
  2419. else
  2420. # As a last resort, use the slow shell script. Don't cache a
  2421. # value for INSTALL within a source directory, because that will
  2422. # break other packages using the cache if that directory is
  2423. # removed, or if the value is a relative name.
  2424. INSTALL=$ac_install_sh
  2425. fi
  2426. fi
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2428. $as_echo "$INSTALL" >&6; }
  2429. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2430. # It thinks the first close brace ends the variable substitution.
  2431. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2432. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2433. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2435. $as_echo_n "checking whether build environment is sane... " >&6; }
  2436. # Just in case
  2437. sleep 1
  2438. echo timestamp > conftest.file
  2439. # Reject unsafe characters in $srcdir or the absolute working directory
  2440. # name. Accept space and tab only in the latter.
  2441. am_lf='
  2442. '
  2443. case `pwd` in
  2444. *[\\\"\#\$\&\'\`$am_lf]*)
  2445. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2446. esac
  2447. case $srcdir in
  2448. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2449. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2450. esac
  2451. # Do `set' in a subshell so we don't clobber the current shell's
  2452. # arguments. Must try -L first in case configure is actually a
  2453. # symlink; some systems play weird games with the mod time of symlinks
  2454. # (eg FreeBSD returns the mod time of the symlink's containing
  2455. # directory).
  2456. if (
  2457. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2458. if test "$*" = "X"; then
  2459. # -L didn't work.
  2460. set X `ls -t "$srcdir/configure" conftest.file`
  2461. fi
  2462. rm -f conftest.file
  2463. if test "$*" != "X $srcdir/configure conftest.file" \
  2464. && test "$*" != "X conftest.file $srcdir/configure"; then
  2465. # If neither matched, then we have a broken ls. This can happen
  2466. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2467. # broken ls alias from the environment. This has actually
  2468. # happened. Such a system could not be considered "sane".
  2469. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2470. alias in your environment" "$LINENO" 5
  2471. fi
  2472. test "$2" = conftest.file
  2473. )
  2474. then
  2475. # Ok.
  2476. :
  2477. else
  2478. as_fn_error "newly created file is older than distributed files!
  2479. Check your system clock" "$LINENO" 5
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2482. $as_echo "yes" >&6; }
  2483. test "$program_prefix" != NONE &&
  2484. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2485. # Use a double $ so make ignores it.
  2486. test "$program_suffix" != NONE &&
  2487. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2488. # Double any \ or $.
  2489. # By default was `s,x,x', remove it if useless.
  2490. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2491. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2492. # expand $ac_aux_dir to an absolute path
  2493. am_aux_dir=`cd $ac_aux_dir && pwd`
  2494. if test x"${MISSING+set}" != xset; then
  2495. case $am_aux_dir in
  2496. *\ * | *\ *)
  2497. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2498. *)
  2499. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2500. esac
  2501. fi
  2502. # Use eval to expand $SHELL
  2503. if eval "$MISSING --run true"; then
  2504. am_missing_run="$MISSING --run "
  2505. else
  2506. am_missing_run=
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2508. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2509. fi
  2510. if test x"${install_sh}" != xset; then
  2511. case $am_aux_dir in
  2512. *\ * | *\ *)
  2513. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2514. *)
  2515. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2516. esac
  2517. fi
  2518. # Installed binaries are usually stripped using `strip' when the user
  2519. # run `make install-strip'. However `strip' might not be the right
  2520. # tool to use in cross-compilation environments, therefore Automake
  2521. # will honor the `STRIP' environment variable to overrule this program.
  2522. if test "$cross_compiling" != no; then
  2523. if test -n "$ac_tool_prefix"; then
  2524. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2525. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2527. $as_echo_n "checking for $ac_word... " >&6; }
  2528. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2529. $as_echo_n "(cached) " >&6
  2530. else
  2531. if test -n "$STRIP"; then
  2532. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2533. else
  2534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2535. for as_dir in $PATH
  2536. do
  2537. IFS=$as_save_IFS
  2538. test -z "$as_dir" && as_dir=.
  2539. for ac_exec_ext in '' $ac_executable_extensions; do
  2540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2541. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2543. break 2
  2544. fi
  2545. done
  2546. done
  2547. IFS=$as_save_IFS
  2548. fi
  2549. fi
  2550. STRIP=$ac_cv_prog_STRIP
  2551. if test -n "$STRIP"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2553. $as_echo "$STRIP" >&6; }
  2554. else
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2556. $as_echo "no" >&6; }
  2557. fi
  2558. fi
  2559. if test -z "$ac_cv_prog_STRIP"; then
  2560. ac_ct_STRIP=$STRIP
  2561. # Extract the first word of "strip", so it can be a program name with args.
  2562. set dummy strip; ac_word=$2
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2564. $as_echo_n "checking for $ac_word... " >&6; }
  2565. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2566. $as_echo_n "(cached) " >&6
  2567. else
  2568. if test -n "$ac_ct_STRIP"; then
  2569. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2578. ac_cv_prog_ac_ct_STRIP="strip"
  2579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. IFS=$as_save_IFS
  2585. fi
  2586. fi
  2587. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2588. if test -n "$ac_ct_STRIP"; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2590. $as_echo "$ac_ct_STRIP" >&6; }
  2591. else
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595. if test "x$ac_ct_STRIP" = x; then
  2596. STRIP=":"
  2597. else
  2598. case $cross_compiling:$ac_tool_warned in
  2599. yes:)
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2601. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2602. ac_tool_warned=yes ;;
  2603. esac
  2604. STRIP=$ac_ct_STRIP
  2605. fi
  2606. else
  2607. STRIP="$ac_cv_prog_STRIP"
  2608. fi
  2609. fi
  2610. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2612. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2613. if test -z "$MKDIR_P"; then
  2614. if test "${ac_cv_path_mkdir+set}" = set; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2618. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2619. do
  2620. IFS=$as_save_IFS
  2621. test -z "$as_dir" && as_dir=.
  2622. for ac_prog in mkdir gmkdir; do
  2623. for ac_exec_ext in '' $ac_executable_extensions; do
  2624. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2625. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2626. 'mkdir (GNU coreutils) '* | \
  2627. 'mkdir (coreutils) '* | \
  2628. 'mkdir (fileutils) '4.1*)
  2629. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2630. break 3;;
  2631. esac
  2632. done
  2633. done
  2634. done
  2635. IFS=$as_save_IFS
  2636. fi
  2637. test -d ./--version && rmdir ./--version
  2638. if test "${ac_cv_path_mkdir+set}" = set; then
  2639. MKDIR_P="$ac_cv_path_mkdir -p"
  2640. else
  2641. # As a last resort, use the slow shell script. Don't cache a
  2642. # value for MKDIR_P within a source directory, because that will
  2643. # break other packages using the cache if that directory is
  2644. # removed, or if the value is a relative name.
  2645. MKDIR_P="$ac_install_sh -d"
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2649. $as_echo "$MKDIR_P" >&6; }
  2650. mkdir_p="$MKDIR_P"
  2651. case $mkdir_p in
  2652. [\\/$]* | ?:[\\/]*) ;;
  2653. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2654. esac
  2655. for ac_prog in gawk mawk nawk awk
  2656. do
  2657. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2658. set dummy $ac_prog; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if test "${ac_cv_prog_AWK+set}" = set; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$AWK"; then
  2665. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2674. ac_cv_prog_AWK="$ac_prog"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. AWK=$ac_cv_prog_AWK
  2684. if test -n "$AWK"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2686. $as_echo "$AWK" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. test -n "$AWK" && break
  2692. done
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2694. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2695. set x ${MAKE-make}
  2696. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2697. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. cat >conftest.make <<\_ACEOF
  2701. SHELL = /bin/sh
  2702. all:
  2703. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2704. _ACEOF
  2705. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2706. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2707. *@@@%%%=?*=@@@%%%*)
  2708. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2709. *)
  2710. eval ac_cv_prog_make_${ac_make}_set=no;;
  2711. esac
  2712. rm -f conftest.make
  2713. fi
  2714. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2716. $as_echo "yes" >&6; }
  2717. SET_MAKE=
  2718. else
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2720. $as_echo "no" >&6; }
  2721. SET_MAKE="MAKE=${MAKE-make}"
  2722. fi
  2723. rm -rf .tst 2>/dev/null
  2724. mkdir .tst 2>/dev/null
  2725. if test -d .tst; then
  2726. am__leading_dot=.
  2727. else
  2728. am__leading_dot=_
  2729. fi
  2730. rmdir .tst 2>/dev/null
  2731. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2732. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2733. # is not polluted with repeated "-I."
  2734. am__isrc=' -I$(srcdir)'
  2735. # test to see if srcdir already configured
  2736. if test -f $srcdir/config.status; then
  2737. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2738. fi
  2739. fi
  2740. # test whether we have cygpath
  2741. if test -z "$CYGPATH_W"; then
  2742. if (cygpath --version) >/dev/null 2>/dev/null; then
  2743. CYGPATH_W='cygpath -w'
  2744. else
  2745. CYGPATH_W=echo
  2746. fi
  2747. fi
  2748. # Define the identity of the package.
  2749. PACKAGE='scim-hangul'
  2750. VERSION='0.4.0'
  2751. cat >>confdefs.h <<_ACEOF
  2752. #define PACKAGE "$PACKAGE"
  2753. _ACEOF
  2754. cat >>confdefs.h <<_ACEOF
  2755. #define VERSION "$VERSION"
  2756. _ACEOF
  2757. # Some tools Automake needs.
  2758. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2759. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2760. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2761. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2762. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2763. # We need awk for the "check" target. The system "awk" is bad on
  2764. # some platforms.
  2765. # Always define AMTAR for backward compatibility.
  2766. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2767. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2768. ac_config_headers="$ac_config_headers config.h"
  2769. # Check whether --enable-silent-rules was given.
  2770. if test "${enable_silent_rules+set}" = set; then :
  2771. enableval=$enable_silent_rules;
  2772. fi
  2773. case $enable_silent_rules in
  2774. yes) AM_DEFAULT_VERBOSITY=0;;
  2775. no) AM_DEFAULT_VERBOSITY=1;;
  2776. *) AM_DEFAULT_VERBOSITY=1;;
  2777. esac
  2778. AM_BACKSLASH='\'
  2779. # Init libtool
  2780. # Check whether --enable-static was given.
  2781. if test "${enable_static+set}" = set; then :
  2782. enableval=$enable_static; p=${PACKAGE-default}
  2783. case $enableval in
  2784. yes) enable_static=yes ;;
  2785. no) enable_static=no ;;
  2786. *)
  2787. enable_static=no
  2788. # Look at the argument we got. We use all the common list separators.
  2789. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2790. for pkg in $enableval; do
  2791. IFS="$lt_save_ifs"
  2792. if test "X$pkg" = "X$p"; then
  2793. enable_static=yes
  2794. fi
  2795. done
  2796. IFS="$lt_save_ifs"
  2797. ;;
  2798. esac
  2799. else
  2800. enable_static=no
  2801. fi
  2802. enable_dlopen=yes
  2803. # Check whether --enable-static was given.
  2804. if test "${enable_static+set}" = set; then :
  2805. enableval=$enable_static; p=${PACKAGE-default}
  2806. case $enableval in
  2807. yes) enable_static=yes ;;
  2808. no) enable_static=no ;;
  2809. *)
  2810. enable_static=no
  2811. # Look at the argument we got. We use all the common list separators.
  2812. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2813. for pkg in $enableval; do
  2814. IFS="$lt_save_ifs"
  2815. if test "X$pkg" = "X$p"; then
  2816. enable_static=yes
  2817. fi
  2818. done
  2819. IFS="$lt_save_ifs"
  2820. ;;
  2821. esac
  2822. else
  2823. enable_static=no
  2824. fi
  2825. case `pwd` in
  2826. *\ * | *\ *)
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2828. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2829. esac
  2830. macro_version='2.4'
  2831. macro_revision='1.3293'
  2832. ltmain="$ac_aux_dir/ltmain.sh"
  2833. # Make sure we can run config.sub.
  2834. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2835. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2837. $as_echo_n "checking build system type... " >&6; }
  2838. if test "${ac_cv_build+set}" = set; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. ac_build_alias=$build_alias
  2842. test "x$ac_build_alias" = x &&
  2843. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2844. test "x$ac_build_alias" = x &&
  2845. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2846. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2847. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2850. $as_echo "$ac_cv_build" >&6; }
  2851. case $ac_cv_build in
  2852. *-*-*) ;;
  2853. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2854. esac
  2855. build=$ac_cv_build
  2856. ac_save_IFS=$IFS; IFS='-'
  2857. set x $ac_cv_build
  2858. shift
  2859. build_cpu=$1
  2860. build_vendor=$2
  2861. shift; shift
  2862. # Remember, the first character of IFS is used to create $*,
  2863. # except with old shells:
  2864. build_os=$*
  2865. IFS=$ac_save_IFS
  2866. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2868. $as_echo_n "checking host system type... " >&6; }
  2869. if test "${ac_cv_host+set}" = set; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. if test "x$host_alias" = x; then
  2873. ac_cv_host=$ac_cv_build
  2874. else
  2875. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2876. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2877. fi
  2878. fi
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2880. $as_echo "$ac_cv_host" >&6; }
  2881. case $ac_cv_host in
  2882. *-*-*) ;;
  2883. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2884. esac
  2885. host=$ac_cv_host
  2886. ac_save_IFS=$IFS; IFS='-'
  2887. set x $ac_cv_host
  2888. shift
  2889. host_cpu=$1
  2890. host_vendor=$2
  2891. shift; shift
  2892. # Remember, the first character of IFS is used to create $*,
  2893. # except with old shells:
  2894. host_os=$*
  2895. IFS=$ac_save_IFS
  2896. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2897. # Backslashify metacharacters that are still active within
  2898. # double-quoted strings.
  2899. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2900. # Same as above, but do not quote variable references.
  2901. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2902. # Sed substitution to delay expansion of an escaped shell variable in a
  2903. # double_quote_subst'ed string.
  2904. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2905. # Sed substitution to delay expansion of an escaped single quote.
  2906. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2907. # Sed substitution to avoid accidental globbing in evaled expressions
  2908. no_glob_subst='s/\*/\\\*/g'
  2909. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2910. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2911. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2913. $as_echo_n "checking how to print strings... " >&6; }
  2914. # Test print first, because it will be a builtin if present.
  2915. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2916. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2917. ECHO='print -r --'
  2918. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2919. ECHO='printf %s\n'
  2920. else
  2921. # Use this function as a fallback that always works.
  2922. func_fallback_echo ()
  2923. {
  2924. eval 'cat <<_LTECHO_EOF
  2925. $1
  2926. _LTECHO_EOF'
  2927. }
  2928. ECHO='func_fallback_echo'
  2929. fi
  2930. # func_echo_all arg...
  2931. # Invoke $ECHO with all args, space-separated.
  2932. func_echo_all ()
  2933. {
  2934. $ECHO ""
  2935. }
  2936. case "$ECHO" in
  2937. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2938. $as_echo "printf" >&6; } ;;
  2939. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2940. $as_echo "print -r" >&6; } ;;
  2941. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2942. $as_echo "cat" >&6; } ;;
  2943. esac
  2944. DEPDIR="${am__leading_dot}deps"
  2945. ac_config_commands="$ac_config_commands depfiles"
  2946. am_make=${MAKE-make}
  2947. cat > confinc << 'END'
  2948. am__doit:
  2949. @echo this is the am__doit target
  2950. .PHONY: am__doit
  2951. END
  2952. # If we don't find an include directive, just comment out the code.
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2954. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2955. am__include="#"
  2956. am__quote=
  2957. _am_result=none
  2958. # First try GNU make style include.
  2959. echo "include confinc" > confmf
  2960. # Ignore all kinds of additional output from `make'.
  2961. case `$am_make -s -f confmf 2> /dev/null` in #(
  2962. *the\ am__doit\ target*)
  2963. am__include=include
  2964. am__quote=
  2965. _am_result=GNU
  2966. ;;
  2967. esac
  2968. # Now try BSD make style include.
  2969. if test "$am__include" = "#"; then
  2970. echo '.include "confinc"' > confmf
  2971. case `$am_make -s -f confmf 2> /dev/null` in #(
  2972. *the\ am__doit\ target*)
  2973. am__include=.include
  2974. am__quote="\""
  2975. _am_result=BSD
  2976. ;;
  2977. esac
  2978. fi
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2980. $as_echo "$_am_result" >&6; }
  2981. rm -f confinc confmf
  2982. # Check whether --enable-dependency-tracking was given.
  2983. if test "${enable_dependency_tracking+set}" = set; then :
  2984. enableval=$enable_dependency_tracking;
  2985. fi
  2986. if test "x$enable_dependency_tracking" != xno; then
  2987. am_depcomp="$ac_aux_dir/depcomp"
  2988. AMDEPBACKSLASH='\'
  2989. fi
  2990. if test "x$enable_dependency_tracking" != xno; then
  2991. AMDEP_TRUE=
  2992. AMDEP_FALSE='#'
  2993. else
  2994. AMDEP_TRUE='#'
  2995. AMDEP_FALSE=
  2996. fi
  2997. ac_ext=c
  2998. ac_cpp='$CPP $CPPFLAGS'
  2999. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3000. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3001. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3002. if test -n "$ac_tool_prefix"; then
  3003. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3004. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3006. $as_echo_n "checking for $ac_word... " >&6; }
  3007. if test "${ac_cv_prog_CC+set}" = set; then :
  3008. $as_echo_n "(cached) " >&6
  3009. else
  3010. if test -n "$CC"; then
  3011. ac_cv_prog_CC="$CC" # Let the user override the test.
  3012. else
  3013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3014. for as_dir in $PATH
  3015. do
  3016. IFS=$as_save_IFS
  3017. test -z "$as_dir" && as_dir=.
  3018. for ac_exec_ext in '' $ac_executable_extensions; do
  3019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3020. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3022. break 2
  3023. fi
  3024. done
  3025. done
  3026. IFS=$as_save_IFS
  3027. fi
  3028. fi
  3029. CC=$ac_cv_prog_CC
  3030. if test -n "$CC"; then
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3032. $as_echo "$CC" >&6; }
  3033. else
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3035. $as_echo "no" >&6; }
  3036. fi
  3037. fi
  3038. if test -z "$ac_cv_prog_CC"; then
  3039. ac_ct_CC=$CC
  3040. # Extract the first word of "gcc", so it can be a program name with args.
  3041. set dummy gcc; ac_word=$2
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3043. $as_echo_n "checking for $ac_word... " >&6; }
  3044. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. if test -n "$ac_ct_CC"; then
  3048. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3049. else
  3050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3051. for as_dir in $PATH
  3052. do
  3053. IFS=$as_save_IFS
  3054. test -z "$as_dir" && as_dir=.
  3055. for ac_exec_ext in '' $ac_executable_extensions; do
  3056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3057. ac_cv_prog_ac_ct_CC="gcc"
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3059. break 2
  3060. fi
  3061. done
  3062. done
  3063. IFS=$as_save_IFS
  3064. fi
  3065. fi
  3066. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3067. if test -n "$ac_ct_CC"; then
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3069. $as_echo "$ac_ct_CC" >&6; }
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3072. $as_echo "no" >&6; }
  3073. fi
  3074. if test "x$ac_ct_CC" = x; then
  3075. CC=""
  3076. else
  3077. case $cross_compiling:$ac_tool_warned in
  3078. yes:)
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3080. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3081. ac_tool_warned=yes ;;
  3082. esac
  3083. CC=$ac_ct_CC
  3084. fi
  3085. else
  3086. CC="$ac_cv_prog_CC"
  3087. fi
  3088. if test -z "$CC"; then
  3089. if test -n "$ac_tool_prefix"; then
  3090. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3091. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3093. $as_echo_n "checking for $ac_word... " >&6; }
  3094. if test "${ac_cv_prog_CC+set}" = set; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. if test -n "$CC"; then
  3098. ac_cv_prog_CC="$CC" # Let the user override the test.
  3099. else
  3100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3101. for as_dir in $PATH
  3102. do
  3103. IFS=$as_save_IFS
  3104. test -z "$as_dir" && as_dir=.
  3105. for ac_exec_ext in '' $ac_executable_extensions; do
  3106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3107. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3109. break 2
  3110. fi
  3111. done
  3112. done
  3113. IFS=$as_save_IFS
  3114. fi
  3115. fi
  3116. CC=$ac_cv_prog_CC
  3117. if test -n "$CC"; then
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3119. $as_echo "$CC" >&6; }
  3120. else
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. $as_echo "no" >&6; }
  3123. fi
  3124. fi
  3125. fi
  3126. if test -z "$CC"; then
  3127. # Extract the first word of "cc", so it can be a program name with args.
  3128. set dummy cc; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if test "${ac_cv_prog_CC+set}" = set; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. if test -n "$CC"; then
  3135. ac_cv_prog_CC="$CC" # Let the user override the test.
  3136. else
  3137. ac_prog_rejected=no
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3145. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3146. ac_prog_rejected=yes
  3147. continue
  3148. fi
  3149. ac_cv_prog_CC="cc"
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. if test $ac_prog_rejected = yes; then
  3157. # We found a bogon in the path, so make sure we never use it.
  3158. set dummy $ac_cv_prog_CC
  3159. shift
  3160. if test $# != 0; then
  3161. # We chose a different compiler from the bogus one.
  3162. # However, it has the same basename, so the bogon will be chosen
  3163. # first if we set CC to just the basename; use the full file name.
  3164. shift
  3165. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3166. fi
  3167. fi
  3168. fi
  3169. fi
  3170. CC=$ac_cv_prog_CC
  3171. if test -n "$CC"; then
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3173. $as_echo "$CC" >&6; }
  3174. else
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3176. $as_echo "no" >&6; }
  3177. fi
  3178. fi
  3179. if test -z "$CC"; then
  3180. if test -n "$ac_tool_prefix"; then
  3181. for ac_prog in cl.exe
  3182. do
  3183. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3184. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3186. $as_echo_n "checking for $ac_word... " >&6; }
  3187. if test "${ac_cv_prog_CC+set}" = set; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. if test -n "$CC"; then
  3191. ac_cv_prog_CC="$CC" # Let the user override the test.
  3192. else
  3193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3194. for as_dir in $PATH
  3195. do
  3196. IFS=$as_save_IFS
  3197. test -z "$as_dir" && as_dir=.
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3200. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. IFS=$as_save_IFS
  3207. fi
  3208. fi
  3209. CC=$ac_cv_prog_CC
  3210. if test -n "$CC"; then
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3212. $as_echo "$CC" >&6; }
  3213. else
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3215. $as_echo "no" >&6; }
  3216. fi
  3217. test -n "$CC" && break
  3218. done
  3219. fi
  3220. if test -z "$CC"; then
  3221. ac_ct_CC=$CC
  3222. for ac_prog in cl.exe
  3223. do
  3224. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3225. set dummy $ac_prog; ac_word=$2
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3227. $as_echo_n "checking for $ac_word... " >&6; }
  3228. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if test -n "$ac_ct_CC"; then
  3232. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3233. else
  3234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3235. for as_dir in $PATH
  3236. do
  3237. IFS=$as_save_IFS
  3238. test -z "$as_dir" && as_dir=.
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3241. ac_cv_prog_ac_ct_CC="$ac_prog"
  3242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3243. break 2
  3244. fi
  3245. done
  3246. done
  3247. IFS=$as_save_IFS
  3248. fi
  3249. fi
  3250. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3251. if test -n "$ac_ct_CC"; then
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3253. $as_echo "$ac_ct_CC" >&6; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3256. $as_echo "no" >&6; }
  3257. fi
  3258. test -n "$ac_ct_CC" && break
  3259. done
  3260. if test "x$ac_ct_CC" = x; then
  3261. CC=""
  3262. else
  3263. case $cross_compiling:$ac_tool_warned in
  3264. yes:)
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3266. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3267. ac_tool_warned=yes ;;
  3268. esac
  3269. CC=$ac_ct_CC
  3270. fi
  3271. fi
  3272. fi
  3273. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3275. as_fn_error "no acceptable C compiler found in \$PATH
  3276. See \`config.log' for more details." "$LINENO" 5; }
  3277. # Provide some information about the compiler.
  3278. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3279. set X $ac_compile
  3280. ac_compiler=$2
  3281. for ac_option in --version -v -V -qversion; do
  3282. { { ac_try="$ac_compiler $ac_option >&5"
  3283. case "(($ac_try" in
  3284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3285. *) ac_try_echo=$ac_try;;
  3286. esac
  3287. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3288. $as_echo "$ac_try_echo"; } >&5
  3289. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3290. ac_status=$?
  3291. if test -s conftest.err; then
  3292. sed '10a\
  3293. ... rest of stderr output deleted ...
  3294. 10q' conftest.err >conftest.er1
  3295. cat conftest.er1 >&5
  3296. fi
  3297. rm -f conftest.er1 conftest.err
  3298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3299. test $ac_status = 0; }
  3300. done
  3301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3302. /* end confdefs.h. */
  3303. int
  3304. main ()
  3305. {
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. ac_clean_files_save=$ac_clean_files
  3311. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3312. # Try to create an executable without -o first, disregard a.out.
  3313. # It will help us diagnose broken compilers, and finding out an intuition
  3314. # of exeext.
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3316. $as_echo_n "checking whether the C compiler works... " >&6; }
  3317. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3318. # The possible output files:
  3319. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3320. ac_rmfiles=
  3321. for ac_file in $ac_files
  3322. do
  3323. case $ac_file in
  3324. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3325. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3326. esac
  3327. done
  3328. rm -f $ac_rmfiles
  3329. if { { ac_try="$ac_link_default"
  3330. case "(($ac_try" in
  3331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3332. *) ac_try_echo=$ac_try;;
  3333. esac
  3334. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3335. $as_echo "$ac_try_echo"; } >&5
  3336. (eval "$ac_link_default") 2>&5
  3337. ac_status=$?
  3338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3339. test $ac_status = 0; }; then :
  3340. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3341. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3342. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3343. # so that the user can short-circuit this test for compilers unknown to
  3344. # Autoconf.
  3345. for ac_file in $ac_files ''
  3346. do
  3347. test -f "$ac_file" || continue
  3348. case $ac_file in
  3349. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3350. ;;
  3351. [ab].out )
  3352. # We found the default executable, but exeext='' is most
  3353. # certainly right.
  3354. break;;
  3355. *.* )
  3356. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3357. then :; else
  3358. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3359. fi
  3360. # We set ac_cv_exeext here because the later test for it is not
  3361. # safe: cross compilers may not add the suffix if given an `-o'
  3362. # argument, so we may need to know it at that point already.
  3363. # Even if this section looks crufty: it has the advantage of
  3364. # actually working.
  3365. break;;
  3366. * )
  3367. break;;
  3368. esac
  3369. done
  3370. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3371. else
  3372. ac_file=''
  3373. fi
  3374. if test -z "$ac_file"; then :
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3376. $as_echo "no" >&6; }
  3377. $as_echo "$as_me: failed program was:" >&5
  3378. sed 's/^/| /' conftest.$ac_ext >&5
  3379. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3381. { as_fn_set_status 77
  3382. as_fn_error "C compiler cannot create executables
  3383. See \`config.log' for more details." "$LINENO" 5; }; }
  3384. else
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3386. $as_echo "yes" >&6; }
  3387. fi
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3389. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3391. $as_echo "$ac_file" >&6; }
  3392. ac_exeext=$ac_cv_exeext
  3393. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3394. ac_clean_files=$ac_clean_files_save
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3396. $as_echo_n "checking for suffix of executables... " >&6; }
  3397. if { { ac_try="$ac_link"
  3398. case "(($ac_try" in
  3399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3400. *) ac_try_echo=$ac_try;;
  3401. esac
  3402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3403. $as_echo "$ac_try_echo"; } >&5
  3404. (eval "$ac_link") 2>&5
  3405. ac_status=$?
  3406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3407. test $ac_status = 0; }; then :
  3408. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3409. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3410. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3411. # `rm'.
  3412. for ac_file in conftest.exe conftest conftest.*; do
  3413. test -f "$ac_file" || continue
  3414. case $ac_file in
  3415. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3416. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3417. break;;
  3418. * ) break;;
  3419. esac
  3420. done
  3421. else
  3422. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3423. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3424. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3425. See \`config.log' for more details." "$LINENO" 5; }
  3426. fi
  3427. rm -f conftest conftest$ac_cv_exeext
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3429. $as_echo "$ac_cv_exeext" >&6; }
  3430. rm -f conftest.$ac_ext
  3431. EXEEXT=$ac_cv_exeext
  3432. ac_exeext=$EXEEXT
  3433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3434. /* end confdefs.h. */
  3435. #include <stdio.h>
  3436. int
  3437. main ()
  3438. {
  3439. FILE *f = fopen ("conftest.out", "w");
  3440. return ferror (f) || fclose (f) != 0;
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. ac_clean_files="$ac_clean_files conftest.out"
  3446. # Check that the compiler produces executables we can run. If not, either
  3447. # the compiler is broken, or we cross compile.
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3449. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3450. if test "$cross_compiling" != yes; then
  3451. { { ac_try="$ac_link"
  3452. case "(($ac_try" in
  3453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3454. *) ac_try_echo=$ac_try;;
  3455. esac
  3456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3457. $as_echo "$ac_try_echo"; } >&5
  3458. (eval "$ac_link") 2>&5
  3459. ac_status=$?
  3460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3461. test $ac_status = 0; }
  3462. if { ac_try='./conftest$ac_cv_exeext'
  3463. { { case "(($ac_try" in
  3464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465. *) ac_try_echo=$ac_try;;
  3466. esac
  3467. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3468. $as_echo "$ac_try_echo"; } >&5
  3469. (eval "$ac_try") 2>&5
  3470. ac_status=$?
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3472. test $ac_status = 0; }; }; then
  3473. cross_compiling=no
  3474. else
  3475. if test "$cross_compiling" = maybe; then
  3476. cross_compiling=yes
  3477. else
  3478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3480. as_fn_error "cannot run C compiled programs.
  3481. If you meant to cross compile, use \`--host'.
  3482. See \`config.log' for more details." "$LINENO" 5; }
  3483. fi
  3484. fi
  3485. fi
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3487. $as_echo "$cross_compiling" >&6; }
  3488. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3489. ac_clean_files=$ac_clean_files_save
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3491. $as_echo_n "checking for suffix of object files... " >&6; }
  3492. if test "${ac_cv_objext+set}" = set; then :
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3496. /* end confdefs.h. */
  3497. int
  3498. main ()
  3499. {
  3500. ;
  3501. return 0;
  3502. }
  3503. _ACEOF
  3504. rm -f conftest.o conftest.obj
  3505. if { { ac_try="$ac_compile"
  3506. case "(($ac_try" in
  3507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3508. *) ac_try_echo=$ac_try;;
  3509. esac
  3510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3511. $as_echo "$ac_try_echo"; } >&5
  3512. (eval "$ac_compile") 2>&5
  3513. ac_status=$?
  3514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3515. test $ac_status = 0; }; then :
  3516. for ac_file in conftest.o conftest.obj conftest.*; do
  3517. test -f "$ac_file" || continue;
  3518. case $ac_file in
  3519. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3520. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3521. break;;
  3522. esac
  3523. done
  3524. else
  3525. $as_echo "$as_me: failed program was:" >&5
  3526. sed 's/^/| /' conftest.$ac_ext >&5
  3527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3529. as_fn_error "cannot compute suffix of object files: cannot compile
  3530. See \`config.log' for more details." "$LINENO" 5; }
  3531. fi
  3532. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3535. $as_echo "$ac_cv_objext" >&6; }
  3536. OBJEXT=$ac_cv_objext
  3537. ac_objext=$OBJEXT
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3539. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3540. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. int
  3546. main ()
  3547. {
  3548. #ifndef __GNUC__
  3549. choke me
  3550. #endif
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. if ac_fn_c_try_compile "$LINENO"; then :
  3556. ac_compiler_gnu=yes
  3557. else
  3558. ac_compiler_gnu=no
  3559. fi
  3560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3561. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3564. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3565. if test $ac_compiler_gnu = yes; then
  3566. GCC=yes
  3567. else
  3568. GCC=
  3569. fi
  3570. ac_test_CFLAGS=${CFLAGS+set}
  3571. ac_save_CFLAGS=$CFLAGS
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3573. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3574. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. ac_save_c_werror_flag=$ac_c_werror_flag
  3578. ac_c_werror_flag=yes
  3579. ac_cv_prog_cc_g=no
  3580. CFLAGS="-g"
  3581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3582. /* end confdefs.h. */
  3583. int
  3584. main ()
  3585. {
  3586. ;
  3587. return 0;
  3588. }
  3589. _ACEOF
  3590. if ac_fn_c_try_compile "$LINENO"; then :
  3591. ac_cv_prog_cc_g=yes
  3592. else
  3593. CFLAGS=""
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. int
  3597. main ()
  3598. {
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_compile "$LINENO"; then :
  3604. else
  3605. ac_c_werror_flag=$ac_save_c_werror_flag
  3606. CFLAGS="-g"
  3607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3608. /* end confdefs.h. */
  3609. int
  3610. main ()
  3611. {
  3612. ;
  3613. return 0;
  3614. }
  3615. _ACEOF
  3616. if ac_fn_c_try_compile "$LINENO"; then :
  3617. ac_cv_prog_cc_g=yes
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. fi
  3621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. ac_c_werror_flag=$ac_save_c_werror_flag
  3625. fi
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3627. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3628. if test "$ac_test_CFLAGS" = set; then
  3629. CFLAGS=$ac_save_CFLAGS
  3630. elif test $ac_cv_prog_cc_g = yes; then
  3631. if test "$GCC" = yes; then
  3632. CFLAGS="-g -O2"
  3633. else
  3634. CFLAGS="-g"
  3635. fi
  3636. else
  3637. if test "$GCC" = yes; then
  3638. CFLAGS="-O2"
  3639. else
  3640. CFLAGS=
  3641. fi
  3642. fi
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3644. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3645. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. ac_cv_prog_cc_c89=no
  3649. ac_save_CC=$CC
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. #include <stdarg.h>
  3653. #include <stdio.h>
  3654. #include <sys/types.h>
  3655. #include <sys/stat.h>
  3656. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3657. struct buf { int x; };
  3658. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3659. static char *e (p, i)
  3660. char **p;
  3661. int i;
  3662. {
  3663. return p[i];
  3664. }
  3665. static char *f (char * (*g) (char **, int), char **p, ...)
  3666. {
  3667. char *s;
  3668. va_list v;
  3669. va_start (v,p);
  3670. s = g (p, va_arg (v,int));
  3671. va_end (v);
  3672. return s;
  3673. }
  3674. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3675. function prototypes and stuff, but not '\xHH' hex character constants.
  3676. These don't provoke an error unfortunately, instead are silently treated
  3677. as 'x'. The following induces an error, until -std is added to get
  3678. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3679. array size at least. It's necessary to write '\x00'==0 to get something
  3680. that's true only with -std. */
  3681. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3682. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3683. inside strings and character constants. */
  3684. #define FOO(x) 'x'
  3685. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3686. int test (int i, double x);
  3687. struct s1 {int (*f) (int a);};
  3688. struct s2 {int (*f) (double a);};
  3689. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3690. int argc;
  3691. char **argv;
  3692. int
  3693. main ()
  3694. {
  3695. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3701. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3702. do
  3703. CC="$ac_save_CC $ac_arg"
  3704. if ac_fn_c_try_compile "$LINENO"; then :
  3705. ac_cv_prog_cc_c89=$ac_arg
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext
  3708. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3709. done
  3710. rm -f conftest.$ac_ext
  3711. CC=$ac_save_CC
  3712. fi
  3713. # AC_CACHE_VAL
  3714. case "x$ac_cv_prog_cc_c89" in
  3715. x)
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3717. $as_echo "none needed" >&6; } ;;
  3718. xno)
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3720. $as_echo "unsupported" >&6; } ;;
  3721. *)
  3722. CC="$CC $ac_cv_prog_cc_c89"
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3724. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3725. esac
  3726. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3727. fi
  3728. ac_ext=c
  3729. ac_cpp='$CPP $CPPFLAGS'
  3730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3733. depcc="$CC" am_compiler_list=
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3735. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3736. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3740. # We make a subdir and do the tests there. Otherwise we can end up
  3741. # making bogus files that we don't know about and never remove. For
  3742. # instance it was reported that on HP-UX the gcc test will end up
  3743. # making a dummy file named `D' -- because `-MD' means `put the output
  3744. # in D'.
  3745. mkdir conftest.dir
  3746. # Copy depcomp to subdir because otherwise we won't find it if we're
  3747. # using a relative directory.
  3748. cp "$am_depcomp" conftest.dir
  3749. cd conftest.dir
  3750. # We will build objects and dependencies in a subdirectory because
  3751. # it helps to detect inapplicable dependency modes. For instance
  3752. # both Tru64's cc and ICC support -MD to output dependencies as a
  3753. # side effect of compilation, but ICC will put the dependencies in
  3754. # the current directory while Tru64 will put them in the object
  3755. # directory.
  3756. mkdir sub
  3757. am_cv_CC_dependencies_compiler_type=none
  3758. if test "$am_compiler_list" = ""; then
  3759. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3760. fi
  3761. am__universal=false
  3762. case " $depcc " in #(
  3763. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3764. esac
  3765. for depmode in $am_compiler_list; do
  3766. # Setup a source with many dependencies, because some compilers
  3767. # like to wrap large dependency lists on column 80 (with \), and
  3768. # we should not choose a depcomp mode which is confused by this.
  3769. #
  3770. # We need to recreate these files for each test, as the compiler may
  3771. # overwrite some of them when testing with obscure command lines.
  3772. # This happens at least with the AIX C compiler.
  3773. : > sub/conftest.c
  3774. for i in 1 2 3 4 5 6; do
  3775. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3776. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3777. # Solaris 8's {/usr,}/bin/sh.
  3778. touch sub/conftst$i.h
  3779. done
  3780. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3781. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3782. # mode. It turns out that the SunPro C++ compiler does not properly
  3783. # handle `-M -o', and we need to detect this. Also, some Intel
  3784. # versions had trouble with output in subdirs
  3785. am__obj=sub/conftest.${OBJEXT-o}
  3786. am__minus_obj="-o $am__obj"
  3787. case $depmode in
  3788. gcc)
  3789. # This depmode causes a compiler race in universal mode.
  3790. test "$am__universal" = false || continue
  3791. ;;
  3792. nosideeffect)
  3793. # after this tag, mechanisms are not by side-effect, so they'll
  3794. # only be used when explicitly requested
  3795. if test "x$enable_dependency_tracking" = xyes; then
  3796. continue
  3797. else
  3798. break
  3799. fi
  3800. ;;
  3801. msvisualcpp | msvcmsys)
  3802. # This compiler won't grok `-c -o', but also, the minuso test has
  3803. # not run yet. These depmodes are late enough in the game, and
  3804. # so weak that their functioning should not be impacted.
  3805. am__obj=conftest.${OBJEXT-o}
  3806. am__minus_obj=
  3807. ;;
  3808. none) break ;;
  3809. esac
  3810. if depmode=$depmode \
  3811. source=sub/conftest.c object=$am__obj \
  3812. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3813. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3814. >/dev/null 2>conftest.err &&
  3815. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3816. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3817. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3818. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3819. # icc doesn't choke on unknown options, it will just issue warnings
  3820. # or remarks (even with -Werror). So we grep stderr for any message
  3821. # that says an option was ignored or not supported.
  3822. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3823. # icc: Command line warning: ignoring option '-M'; no argument required
  3824. # The diagnosis changed in icc 8.0:
  3825. # icc: Command line remark: option '-MP' not supported
  3826. if (grep 'ignoring option' conftest.err ||
  3827. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3828. am_cv_CC_dependencies_compiler_type=$depmode
  3829. break
  3830. fi
  3831. fi
  3832. done
  3833. cd ..
  3834. rm -rf conftest.dir
  3835. else
  3836. am_cv_CC_dependencies_compiler_type=none
  3837. fi
  3838. fi
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3840. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3841. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3842. if
  3843. test "x$enable_dependency_tracking" != xno \
  3844. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3845. am__fastdepCC_TRUE=
  3846. am__fastdepCC_FALSE='#'
  3847. else
  3848. am__fastdepCC_TRUE='#'
  3849. am__fastdepCC_FALSE=
  3850. fi
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3852. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3853. if test "${ac_cv_path_SED+set}" = set; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3857. for ac_i in 1 2 3 4 5 6 7; do
  3858. ac_script="$ac_script$as_nl$ac_script"
  3859. done
  3860. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3861. { ac_script=; unset ac_script;}
  3862. if test -z "$SED"; then
  3863. ac_path_SED_found=false
  3864. # Loop through the user's path and test for each of PROGNAME-LIST
  3865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3866. for as_dir in $PATH
  3867. do
  3868. IFS=$as_save_IFS
  3869. test -z "$as_dir" && as_dir=.
  3870. for ac_prog in sed gsed; do
  3871. for ac_exec_ext in '' $ac_executable_extensions; do
  3872. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3873. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3874. # Check for GNU ac_path_SED and select it if it is found.
  3875. # Check for GNU $ac_path_SED
  3876. case `"$ac_path_SED" --version 2>&1` in
  3877. *GNU*)
  3878. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3879. *)
  3880. ac_count=0
  3881. $as_echo_n 0123456789 >"conftest.in"
  3882. while :
  3883. do
  3884. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3885. mv "conftest.tmp" "conftest.in"
  3886. cp "conftest.in" "conftest.nl"
  3887. $as_echo '' >> "conftest.nl"
  3888. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3889. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3890. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3891. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3892. # Best one so far, save it but keep looking for a better one
  3893. ac_cv_path_SED="$ac_path_SED"
  3894. ac_path_SED_max=$ac_count
  3895. fi
  3896. # 10*(2^10) chars as input seems more than enough
  3897. test $ac_count -gt 10 && break
  3898. done
  3899. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3900. esac
  3901. $ac_path_SED_found && break 3
  3902. done
  3903. done
  3904. done
  3905. IFS=$as_save_IFS
  3906. if test -z "$ac_cv_path_SED"; then
  3907. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3908. fi
  3909. else
  3910. ac_cv_path_SED=$SED
  3911. fi
  3912. fi
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3914. $as_echo "$ac_cv_path_SED" >&6; }
  3915. SED="$ac_cv_path_SED"
  3916. rm -f conftest.sed
  3917. test -z "$SED" && SED=sed
  3918. Xsed="$SED -e 1s/^X//"
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3920. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3921. if test "${ac_cv_path_GREP+set}" = set; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -z "$GREP"; then
  3925. ac_path_GREP_found=false
  3926. # Loop through the user's path and test for each of PROGNAME-LIST
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_prog in grep ggrep; do
  3933. for ac_exec_ext in '' $ac_executable_extensions; do
  3934. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3935. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3936. # Check for GNU ac_path_GREP and select it if it is found.
  3937. # Check for GNU $ac_path_GREP
  3938. case `"$ac_path_GREP" --version 2>&1` in
  3939. *GNU*)
  3940. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3941. *)
  3942. ac_count=0
  3943. $as_echo_n 0123456789 >"conftest.in"
  3944. while :
  3945. do
  3946. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3947. mv "conftest.tmp" "conftest.in"
  3948. cp "conftest.in" "conftest.nl"
  3949. $as_echo 'GREP' >> "conftest.nl"
  3950. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3951. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3952. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3953. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3954. # Best one so far, save it but keep looking for a better one
  3955. ac_cv_path_GREP="$ac_path_GREP"
  3956. ac_path_GREP_max=$ac_count
  3957. fi
  3958. # 10*(2^10) chars as input seems more than enough
  3959. test $ac_count -gt 10 && break
  3960. done
  3961. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3962. esac
  3963. $ac_path_GREP_found && break 3
  3964. done
  3965. done
  3966. done
  3967. IFS=$as_save_IFS
  3968. if test -z "$ac_cv_path_GREP"; then
  3969. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3970. fi
  3971. else
  3972. ac_cv_path_GREP=$GREP
  3973. fi
  3974. fi
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3976. $as_echo "$ac_cv_path_GREP" >&6; }
  3977. GREP="$ac_cv_path_GREP"
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3979. $as_echo_n "checking for egrep... " >&6; }
  3980. if test "${ac_cv_path_EGREP+set}" = set; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3984. then ac_cv_path_EGREP="$GREP -E"
  3985. else
  3986. if test -z "$EGREP"; then
  3987. ac_path_EGREP_found=false
  3988. # Loop through the user's path and test for each of PROGNAME-LIST
  3989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3990. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3991. do
  3992. IFS=$as_save_IFS
  3993. test -z "$as_dir" && as_dir=.
  3994. for ac_prog in egrep; do
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3997. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3998. # Check for GNU ac_path_EGREP and select it if it is found.
  3999. # Check for GNU $ac_path_EGREP
  4000. case `"$ac_path_EGREP" --version 2>&1` in
  4001. *GNU*)
  4002. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4003. *)
  4004. ac_count=0
  4005. $as_echo_n 0123456789 >"conftest.in"
  4006. while :
  4007. do
  4008. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4009. mv "conftest.tmp" "conftest.in"
  4010. cp "conftest.in" "conftest.nl"
  4011. $as_echo 'EGREP' >> "conftest.nl"
  4012. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4013. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4014. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4015. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4016. # Best one so far, save it but keep looking for a better one
  4017. ac_cv_path_EGREP="$ac_path_EGREP"
  4018. ac_path_EGREP_max=$ac_count
  4019. fi
  4020. # 10*(2^10) chars as input seems more than enough
  4021. test $ac_count -gt 10 && break
  4022. done
  4023. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4024. esac
  4025. $ac_path_EGREP_found && break 3
  4026. done
  4027. done
  4028. done
  4029. IFS=$as_save_IFS
  4030. if test -z "$ac_cv_path_EGREP"; then
  4031. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4032. fi
  4033. else
  4034. ac_cv_path_EGREP=$EGREP
  4035. fi
  4036. fi
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4039. $as_echo "$ac_cv_path_EGREP" >&6; }
  4040. EGREP="$ac_cv_path_EGREP"
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4042. $as_echo_n "checking for fgrep... " >&6; }
  4043. if test "${ac_cv_path_FGREP+set}" = set; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4047. then ac_cv_path_FGREP="$GREP -F"
  4048. else
  4049. if test -z "$FGREP"; then
  4050. ac_path_FGREP_found=false
  4051. # Loop through the user's path and test for each of PROGNAME-LIST
  4052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4053. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4054. do
  4055. IFS=$as_save_IFS
  4056. test -z "$as_dir" && as_dir=.
  4057. for ac_prog in fgrep; do
  4058. for ac_exec_ext in '' $ac_executable_extensions; do
  4059. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4060. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4061. # Check for GNU ac_path_FGREP and select it if it is found.
  4062. # Check for GNU $ac_path_FGREP
  4063. case `"$ac_path_FGREP" --version 2>&1` in
  4064. *GNU*)
  4065. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4066. *)
  4067. ac_count=0
  4068. $as_echo_n 0123456789 >"conftest.in"
  4069. while :
  4070. do
  4071. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4072. mv "conftest.tmp" "conftest.in"
  4073. cp "conftest.in" "conftest.nl"
  4074. $as_echo 'FGREP' >> "conftest.nl"
  4075. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4076. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4077. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4078. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4079. # Best one so far, save it but keep looking for a better one
  4080. ac_cv_path_FGREP="$ac_path_FGREP"
  4081. ac_path_FGREP_max=$ac_count
  4082. fi
  4083. # 10*(2^10) chars as input seems more than enough
  4084. test $ac_count -gt 10 && break
  4085. done
  4086. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4087. esac
  4088. $ac_path_FGREP_found && break 3
  4089. done
  4090. done
  4091. done
  4092. IFS=$as_save_IFS
  4093. if test -z "$ac_cv_path_FGREP"; then
  4094. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4095. fi
  4096. else
  4097. ac_cv_path_FGREP=$FGREP
  4098. fi
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4102. $as_echo "$ac_cv_path_FGREP" >&6; }
  4103. FGREP="$ac_cv_path_FGREP"
  4104. test -z "$GREP" && GREP=grep
  4105. # Check whether --with-gnu-ld was given.
  4106. if test "${with_gnu_ld+set}" = set; then :
  4107. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4108. else
  4109. with_gnu_ld=no
  4110. fi
  4111. ac_prog=ld
  4112. if test "$GCC" = yes; then
  4113. # Check if gcc -print-prog-name=ld gives a path.
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4115. $as_echo_n "checking for ld used by $CC... " >&6; }
  4116. case $host in
  4117. *-*-mingw*)
  4118. # gcc leaves a trailing carriage return which upsets mingw
  4119. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4120. *)
  4121. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4122. esac
  4123. case $ac_prog in
  4124. # Accept absolute paths.
  4125. [\\/]* | ?:[\\/]*)
  4126. re_direlt='/[^/][^/]*/\.\./'
  4127. # Canonicalize the pathname of ld
  4128. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4129. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4130. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4131. done
  4132. test -z "$LD" && LD="$ac_prog"
  4133. ;;
  4134. "")
  4135. # If it fails, then pretend we aren't using GCC.
  4136. ac_prog=ld
  4137. ;;
  4138. *)
  4139. # If it is relative, then search for the first ld in PATH.
  4140. with_gnu_ld=unknown
  4141. ;;
  4142. esac
  4143. elif test "$with_gnu_ld" = yes; then
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4145. $as_echo_n "checking for GNU ld... " >&6; }
  4146. else
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4148. $as_echo_n "checking for non-GNU ld... " >&6; }
  4149. fi
  4150. if test "${lt_cv_path_LD+set}" = set; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -z "$LD"; then
  4154. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4155. for ac_dir in $PATH; do
  4156. IFS="$lt_save_ifs"
  4157. test -z "$ac_dir" && ac_dir=.
  4158. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4159. lt_cv_path_LD="$ac_dir/$ac_prog"
  4160. # Check to see if the program is GNU ld. I'd rather use --version,
  4161. # but apparently some variants of GNU ld only accept -v.
  4162. # Break only if it was the GNU/non-GNU ld that we prefer.
  4163. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4164. *GNU* | *'with BFD'*)
  4165. test "$with_gnu_ld" != no && break
  4166. ;;
  4167. *)
  4168. test "$with_gnu_ld" != yes && break
  4169. ;;
  4170. esac
  4171. fi
  4172. done
  4173. IFS="$lt_save_ifs"
  4174. else
  4175. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4176. fi
  4177. fi
  4178. LD="$lt_cv_path_LD"
  4179. if test -n "$LD"; then
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4181. $as_echo "$LD" >&6; }
  4182. else
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4184. $as_echo "no" >&6; }
  4185. fi
  4186. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4188. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4189. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4193. case `$LD -v 2>&1 </dev/null` in
  4194. *GNU* | *'with BFD'*)
  4195. lt_cv_prog_gnu_ld=yes
  4196. ;;
  4197. *)
  4198. lt_cv_prog_gnu_ld=no
  4199. ;;
  4200. esac
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4203. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4204. with_gnu_ld=$lt_cv_prog_gnu_ld
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4206. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4207. if test "${lt_cv_path_NM+set}" = set; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. if test -n "$NM"; then
  4211. # Let the user override the test.
  4212. lt_cv_path_NM="$NM"
  4213. else
  4214. lt_nm_to_check="${ac_tool_prefix}nm"
  4215. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4216. lt_nm_to_check="$lt_nm_to_check nm"
  4217. fi
  4218. for lt_tmp_nm in $lt_nm_to_check; do
  4219. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4220. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4221. IFS="$lt_save_ifs"
  4222. test -z "$ac_dir" && ac_dir=.
  4223. tmp_nm="$ac_dir/$lt_tmp_nm"
  4224. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4225. # Check to see if the nm accepts a BSD-compat flag.
  4226. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4227. # nm: unknown option "B" ignored
  4228. # Tru64's nm complains that /dev/null is an invalid object file
  4229. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4230. */dev/null* | *'Invalid file or object type'*)
  4231. lt_cv_path_NM="$tmp_nm -B"
  4232. break
  4233. ;;
  4234. *)
  4235. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4236. */dev/null*)
  4237. lt_cv_path_NM="$tmp_nm -p"
  4238. break
  4239. ;;
  4240. *)
  4241. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4242. continue # so that we can try to find one that supports BSD flags
  4243. ;;
  4244. esac
  4245. ;;
  4246. esac
  4247. fi
  4248. done
  4249. IFS="$lt_save_ifs"
  4250. done
  4251. : ${lt_cv_path_NM=no}
  4252. fi
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4255. $as_echo "$lt_cv_path_NM" >&6; }
  4256. if test "$lt_cv_path_NM" != "no"; then
  4257. NM="$lt_cv_path_NM"
  4258. else
  4259. # Didn't find any BSD compatible name lister, look for dumpbin.
  4260. if test -n "$DUMPBIN"; then :
  4261. # Let the user override the test.
  4262. else
  4263. if test -n "$ac_tool_prefix"; then
  4264. for ac_prog in dumpbin "link -dump"
  4265. do
  4266. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4269. $as_echo_n "checking for $ac_word... " >&6; }
  4270. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. if test -n "$DUMPBIN"; then
  4274. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4275. else
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. test -z "$as_dir" && as_dir=.
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4283. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. fi
  4291. fi
  4292. DUMPBIN=$ac_cv_prog_DUMPBIN
  4293. if test -n "$DUMPBIN"; then
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4295. $as_echo "$DUMPBIN" >&6; }
  4296. else
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4298. $as_echo "no" >&6; }
  4299. fi
  4300. test -n "$DUMPBIN" && break
  4301. done
  4302. fi
  4303. if test -z "$DUMPBIN"; then
  4304. ac_ct_DUMPBIN=$DUMPBIN
  4305. for ac_prog in dumpbin "link -dump"
  4306. do
  4307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4308. set dummy $ac_prog; ac_word=$2
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if test -n "$ac_ct_DUMPBIN"; then
  4315. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4316. else
  4317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4318. for as_dir in $PATH
  4319. do
  4320. IFS=$as_save_IFS
  4321. test -z "$as_dir" && as_dir=.
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4324. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4326. break 2
  4327. fi
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. fi
  4333. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4334. if test -n "$ac_ct_DUMPBIN"; then
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4336. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4337. else
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. fi
  4341. test -n "$ac_ct_DUMPBIN" && break
  4342. done
  4343. if test "x$ac_ct_DUMPBIN" = x; then
  4344. DUMPBIN=":"
  4345. else
  4346. case $cross_compiling:$ac_tool_warned in
  4347. yes:)
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4350. ac_tool_warned=yes ;;
  4351. esac
  4352. DUMPBIN=$ac_ct_DUMPBIN
  4353. fi
  4354. fi
  4355. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4356. *COFF*)
  4357. DUMPBIN="$DUMPBIN -symbols"
  4358. ;;
  4359. *)
  4360. DUMPBIN=:
  4361. ;;
  4362. esac
  4363. fi
  4364. if test "$DUMPBIN" != ":"; then
  4365. NM="$DUMPBIN"
  4366. fi
  4367. fi
  4368. test -z "$NM" && NM=nm
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4370. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4371. if test "${lt_cv_nm_interface+set}" = set; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. lt_cv_nm_interface="BSD nm"
  4375. echo "int some_variable = 0;" > conftest.$ac_ext
  4376. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4377. (eval "$ac_compile" 2>conftest.err)
  4378. cat conftest.err >&5
  4379. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4380. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4381. cat conftest.err >&5
  4382. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4383. cat conftest.out >&5
  4384. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4385. lt_cv_nm_interface="MS dumpbin"
  4386. fi
  4387. rm -f conftest*
  4388. fi
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4390. $as_echo "$lt_cv_nm_interface" >&6; }
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4392. $as_echo_n "checking whether ln -s works... " >&6; }
  4393. LN_S=$as_ln_s
  4394. if test "$LN_S" = "ln -s"; then
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4396. $as_echo "yes" >&6; }
  4397. else
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4399. $as_echo "no, using $LN_S" >&6; }
  4400. fi
  4401. # find the maximum length of command line arguments
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4403. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4404. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. i=0
  4408. teststring="ABCD"
  4409. case $build_os in
  4410. msdosdjgpp*)
  4411. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4412. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4413. # during glob expansion). Even if it were fixed, the result of this
  4414. # check would be larger than it should be.
  4415. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4416. ;;
  4417. gnu*)
  4418. # Under GNU Hurd, this test is not required because there is
  4419. # no limit to the length of command line arguments.
  4420. # Libtool will interpret -1 as no limit whatsoever
  4421. lt_cv_sys_max_cmd_len=-1;
  4422. ;;
  4423. cygwin* | mingw* | cegcc*)
  4424. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4425. # about 5 minutes as the teststring grows exponentially.
  4426. # Worse, since 9x/ME are not pre-emptively multitasking,
  4427. # you end up with a "frozen" computer, even though with patience
  4428. # the test eventually succeeds (with a max line length of 256k).
  4429. # Instead, let's just punt: use the minimum linelength reported by
  4430. # all of the supported platforms: 8192 (on NT/2K/XP).
  4431. lt_cv_sys_max_cmd_len=8192;
  4432. ;;
  4433. mint*)
  4434. # On MiNT this can take a long time and run out of memory.
  4435. lt_cv_sys_max_cmd_len=8192;
  4436. ;;
  4437. amigaos*)
  4438. # On AmigaOS with pdksh, this test takes hours, literally.
  4439. # So we just punt and use a minimum line length of 8192.
  4440. lt_cv_sys_max_cmd_len=8192;
  4441. ;;
  4442. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4443. # This has been around since 386BSD, at least. Likely further.
  4444. if test -x /sbin/sysctl; then
  4445. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4446. elif test -x /usr/sbin/sysctl; then
  4447. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4448. else
  4449. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4450. fi
  4451. # And add a safety zone
  4452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4454. ;;
  4455. interix*)
  4456. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4457. lt_cv_sys_max_cmd_len=196608
  4458. ;;
  4459. osf*)
  4460. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4461. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4462. # nice to cause kernel panics so lets avoid the loop below.
  4463. # First set a reasonable default.
  4464. lt_cv_sys_max_cmd_len=16384
  4465. #
  4466. if test -x /sbin/sysconfig; then
  4467. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4468. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4469. esac
  4470. fi
  4471. ;;
  4472. sco3.2v5*)
  4473. lt_cv_sys_max_cmd_len=102400
  4474. ;;
  4475. sysv5* | sco5v6* | sysv4.2uw2*)
  4476. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4477. if test -n "$kargmax"; then
  4478. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4479. else
  4480. lt_cv_sys_max_cmd_len=32768
  4481. fi
  4482. ;;
  4483. *)
  4484. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4485. if test -n "$lt_cv_sys_max_cmd_len"; then
  4486. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4487. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4488. else
  4489. # Make teststring a little bigger before we do anything with it.
  4490. # a 1K string should be a reasonable start.
  4491. for i in 1 2 3 4 5 6 7 8 ; do
  4492. teststring=$teststring$teststring
  4493. done
  4494. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4495. # If test is not a shell built-in, we'll probably end up computing a
  4496. # maximum length that is only half of the actual maximum length, but
  4497. # we can't tell.
  4498. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4499. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4500. test $i != 17 # 1/2 MB should be enough
  4501. do
  4502. i=`expr $i + 1`
  4503. teststring=$teststring$teststring
  4504. done
  4505. # Only check the string length outside the loop.
  4506. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4507. teststring=
  4508. # Add a significant safety factor because C++ compilers can tack on
  4509. # massive amounts of additional arguments before passing them to the
  4510. # linker. It appears as though 1/2 is a usable value.
  4511. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4512. fi
  4513. ;;
  4514. esac
  4515. fi
  4516. if test -n $lt_cv_sys_max_cmd_len ; then
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4518. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4519. else
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4521. $as_echo "none" >&6; }
  4522. fi
  4523. max_cmd_len=$lt_cv_sys_max_cmd_len
  4524. : ${CP="cp -f"}
  4525. : ${MV="mv -f"}
  4526. : ${RM="rm -f"}
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4528. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4529. # Try some XSI features
  4530. xsi_shell=no
  4531. ( _lt_dummy="a/b/c"
  4532. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4533. = c,a/b,b/c, \
  4534. && eval 'test $(( 1 + 1 )) -eq 2 \
  4535. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4536. && xsi_shell=yes
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4538. $as_echo "$xsi_shell" >&6; }
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4540. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4541. lt_shell_append=no
  4542. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4543. >/dev/null 2>&1 \
  4544. && lt_shell_append=yes
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4546. $as_echo "$lt_shell_append" >&6; }
  4547. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4548. lt_unset=unset
  4549. else
  4550. lt_unset=false
  4551. fi
  4552. # test EBCDIC or ASCII
  4553. case `echo X|tr X '\101'` in
  4554. A) # ASCII based system
  4555. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4556. lt_SP2NL='tr \040 \012'
  4557. lt_NL2SP='tr \015\012 \040\040'
  4558. ;;
  4559. *) # EBCDIC based system
  4560. lt_SP2NL='tr \100 \n'
  4561. lt_NL2SP='tr \r\n \100\100'
  4562. ;;
  4563. esac
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4565. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4566. if test "${lt_cv_to_host_file_cmd+set}" = set; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. case $host in
  4570. *-*-mingw* )
  4571. case $build in
  4572. *-*-mingw* ) # actually msys
  4573. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4574. ;;
  4575. *-*-cygwin* )
  4576. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4577. ;;
  4578. * ) # otherwise, assume *nix
  4579. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4580. ;;
  4581. esac
  4582. ;;
  4583. *-*-cygwin* )
  4584. case $build in
  4585. *-*-mingw* ) # actually msys
  4586. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4587. ;;
  4588. *-*-cygwin* )
  4589. lt_cv_to_host_file_cmd=func_convert_file_noop
  4590. ;;
  4591. * ) # otherwise, assume *nix
  4592. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4593. ;;
  4594. esac
  4595. ;;
  4596. * ) # unhandled hosts (and "normal" native builds)
  4597. lt_cv_to_host_file_cmd=func_convert_file_noop
  4598. ;;
  4599. esac
  4600. fi
  4601. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4603. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4605. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4606. if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. #assume ordinary cross tools, or native build.
  4610. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4611. case $host in
  4612. *-*-mingw* )
  4613. case $build in
  4614. *-*-mingw* ) # actually msys
  4615. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4616. ;;
  4617. esac
  4618. ;;
  4619. esac
  4620. fi
  4621. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4623. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4625. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4626. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. lt_cv_ld_reload_flag='-r'
  4630. fi
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4632. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4633. reload_flag=$lt_cv_ld_reload_flag
  4634. case $reload_flag in
  4635. "" | " "*) ;;
  4636. *) reload_flag=" $reload_flag" ;;
  4637. esac
  4638. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4639. case $host_os in
  4640. cygwin* | mingw* | pw32* | cegcc*)
  4641. if test "$GCC" != yes; then
  4642. reload_cmds=false
  4643. fi
  4644. ;;
  4645. darwin*)
  4646. if test "$GCC" = yes; then
  4647. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4648. else
  4649. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4650. fi
  4651. ;;
  4652. esac
  4653. if test -n "$ac_tool_prefix"; then
  4654. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4655. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4657. $as_echo_n "checking for $ac_word... " >&6; }
  4658. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. if test -n "$OBJDUMP"; then
  4662. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. test -z "$as_dir" && as_dir=.
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4671. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4673. break 2
  4674. fi
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. fi
  4679. fi
  4680. OBJDUMP=$ac_cv_prog_OBJDUMP
  4681. if test -n "$OBJDUMP"; then
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4683. $as_echo "$OBJDUMP" >&6; }
  4684. else
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4686. $as_echo "no" >&6; }
  4687. fi
  4688. fi
  4689. if test -z "$ac_cv_prog_OBJDUMP"; then
  4690. ac_ct_OBJDUMP=$OBJDUMP
  4691. # Extract the first word of "objdump", so it can be a program name with args.
  4692. set dummy objdump; ac_word=$2
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4694. $as_echo_n "checking for $ac_word... " >&6; }
  4695. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. if test -n "$ac_ct_OBJDUMP"; then
  4699. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4700. else
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH
  4703. do
  4704. IFS=$as_save_IFS
  4705. test -z "$as_dir" && as_dir=.
  4706. for ac_exec_ext in '' $ac_executable_extensions; do
  4707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4708. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4710. break 2
  4711. fi
  4712. done
  4713. done
  4714. IFS=$as_save_IFS
  4715. fi
  4716. fi
  4717. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4718. if test -n "$ac_ct_OBJDUMP"; then
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4720. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4721. else
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4723. $as_echo "no" >&6; }
  4724. fi
  4725. if test "x$ac_ct_OBJDUMP" = x; then
  4726. OBJDUMP="false"
  4727. else
  4728. case $cross_compiling:$ac_tool_warned in
  4729. yes:)
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4732. ac_tool_warned=yes ;;
  4733. esac
  4734. OBJDUMP=$ac_ct_OBJDUMP
  4735. fi
  4736. else
  4737. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4738. fi
  4739. test -z "$OBJDUMP" && OBJDUMP=objdump
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4741. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4742. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4746. lt_cv_file_magic_test_file=
  4747. lt_cv_deplibs_check_method='unknown'
  4748. # Need to set the preceding variable on all platforms that support
  4749. # interlibrary dependencies.
  4750. # 'none' -- dependencies not supported.
  4751. # `unknown' -- same as none, but documents that we really don't know.
  4752. # 'pass_all' -- all dependencies passed with no checks.
  4753. # 'test_compile' -- check by making test program.
  4754. # 'file_magic [[regex]]' -- check by looking for files in library path
  4755. # which responds to the $file_magic_cmd with a given extended regex.
  4756. # If you have `file' or equivalent on your system and you're not sure
  4757. # whether `pass_all' will *always* work, you probably want this one.
  4758. case $host_os in
  4759. aix[4-9]*)
  4760. lt_cv_deplibs_check_method=pass_all
  4761. ;;
  4762. beos*)
  4763. lt_cv_deplibs_check_method=pass_all
  4764. ;;
  4765. bsdi[45]*)
  4766. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4767. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4768. lt_cv_file_magic_test_file=/shlib/libc.so
  4769. ;;
  4770. cygwin*)
  4771. # func_win32_libid is a shell function defined in ltmain.sh
  4772. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4773. lt_cv_file_magic_cmd='func_win32_libid'
  4774. ;;
  4775. mingw* | pw32*)
  4776. # Base MSYS/MinGW do not provide the 'file' command needed by
  4777. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4778. # unless we find 'file', for example because we are cross-compiling.
  4779. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4780. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4781. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4782. lt_cv_file_magic_cmd='func_win32_libid'
  4783. else
  4784. # Keep this pattern in sync with the one in func_win32_libid.
  4785. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4786. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4787. fi
  4788. ;;
  4789. cegcc*)
  4790. # use the weaker test based on 'objdump'. See mingw*.
  4791. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4792. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4793. ;;
  4794. darwin* | rhapsody*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. freebsd* | dragonfly*)
  4798. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4799. case $host_cpu in
  4800. i*86 )
  4801. # Not sure whether the presence of OpenBSD here was a mistake.
  4802. # Let's accept both of them until this is cleared up.
  4803. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4804. lt_cv_file_magic_cmd=/usr/bin/file
  4805. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4806. ;;
  4807. esac
  4808. else
  4809. lt_cv_deplibs_check_method=pass_all
  4810. fi
  4811. ;;
  4812. gnu*)
  4813. lt_cv_deplibs_check_method=pass_all
  4814. ;;
  4815. haiku*)
  4816. lt_cv_deplibs_check_method=pass_all
  4817. ;;
  4818. hpux10.20* | hpux11*)
  4819. lt_cv_file_magic_cmd=/usr/bin/file
  4820. case $host_cpu in
  4821. ia64*)
  4822. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4823. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4824. ;;
  4825. hppa*64*)
  4826. 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]'
  4827. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4828. ;;
  4829. *)
  4830. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4831. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4832. ;;
  4833. esac
  4834. ;;
  4835. interix[3-9]*)
  4836. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4838. ;;
  4839. irix5* | irix6* | nonstopux*)
  4840. case $LD in
  4841. *-32|*"-32 ") libmagic=32-bit;;
  4842. *-n32|*"-n32 ") libmagic=N32;;
  4843. *-64|*"-64 ") libmagic=64-bit;;
  4844. *) libmagic=never-match;;
  4845. esac
  4846. lt_cv_deplibs_check_method=pass_all
  4847. ;;
  4848. # This must be Linux ELF.
  4849. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4850. lt_cv_deplibs_check_method=pass_all
  4851. ;;
  4852. netbsd* | netbsdelf*-gnu)
  4853. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4854. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4855. else
  4856. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4857. fi
  4858. ;;
  4859. newos6*)
  4860. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4861. lt_cv_file_magic_cmd=/usr/bin/file
  4862. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4863. ;;
  4864. *nto* | *qnx*)
  4865. lt_cv_deplibs_check_method=pass_all
  4866. ;;
  4867. openbsd*)
  4868. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4869. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4870. else
  4871. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4872. fi
  4873. ;;
  4874. osf3* | osf4* | osf5*)
  4875. lt_cv_deplibs_check_method=pass_all
  4876. ;;
  4877. rdos*)
  4878. lt_cv_deplibs_check_method=pass_all
  4879. ;;
  4880. solaris*)
  4881. lt_cv_deplibs_check_method=pass_all
  4882. ;;
  4883. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4884. lt_cv_deplibs_check_method=pass_all
  4885. ;;
  4886. sysv4 | sysv4.3*)
  4887. case $host_vendor in
  4888. motorola)
  4889. 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]'
  4890. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4891. ;;
  4892. ncr)
  4893. lt_cv_deplibs_check_method=pass_all
  4894. ;;
  4895. sequent)
  4896. lt_cv_file_magic_cmd='/bin/file'
  4897. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4898. ;;
  4899. sni)
  4900. lt_cv_file_magic_cmd='/bin/file'
  4901. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4902. lt_cv_file_magic_test_file=/lib/libc.so
  4903. ;;
  4904. siemens)
  4905. lt_cv_deplibs_check_method=pass_all
  4906. ;;
  4907. pc)
  4908. lt_cv_deplibs_check_method=pass_all
  4909. ;;
  4910. esac
  4911. ;;
  4912. tpf*)
  4913. lt_cv_deplibs_check_method=pass_all
  4914. ;;
  4915. esac
  4916. fi
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4918. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4919. file_magic_glob=
  4920. want_nocaseglob=no
  4921. if test "$build" = "$host"; then
  4922. case $host_os in
  4923. mingw* | pw32*)
  4924. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4925. want_nocaseglob=yes
  4926. else
  4927. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4928. fi
  4929. ;;
  4930. esac
  4931. fi
  4932. file_magic_cmd=$lt_cv_file_magic_cmd
  4933. deplibs_check_method=$lt_cv_deplibs_check_method
  4934. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4935. if test -n "$ac_tool_prefix"; then
  4936. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4937. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4939. $as_echo_n "checking for $ac_word... " >&6; }
  4940. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. if test -n "$DLLTOOL"; then
  4944. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4945. else
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4953. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. IFS=$as_save_IFS
  4960. fi
  4961. fi
  4962. DLLTOOL=$ac_cv_prog_DLLTOOL
  4963. if test -n "$DLLTOOL"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4965. $as_echo "$DLLTOOL" >&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 "$ac_cv_prog_DLLTOOL"; then
  4972. ac_ct_DLLTOOL=$DLLTOOL
  4973. # Extract the first word of "dlltool", so it can be a program name with args.
  4974. set dummy dlltool; ac_word=$2
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4976. $as_echo_n "checking for $ac_word... " >&6; }
  4977. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. if test -n "$ac_ct_DLLTOOL"; then
  4981. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4982. else
  4983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4984. for as_dir in $PATH
  4985. do
  4986. IFS=$as_save_IFS
  4987. test -z "$as_dir" && as_dir=.
  4988. for ac_exec_ext in '' $ac_executable_extensions; do
  4989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4990. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4992. break 2
  4993. fi
  4994. done
  4995. done
  4996. IFS=$as_save_IFS
  4997. fi
  4998. fi
  4999. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5000. if test -n "$ac_ct_DLLTOOL"; then
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5002. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5003. else
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5005. $as_echo "no" >&6; }
  5006. fi
  5007. if test "x$ac_ct_DLLTOOL" = x; then
  5008. DLLTOOL="false"
  5009. else
  5010. case $cross_compiling:$ac_tool_warned in
  5011. yes:)
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5013. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5014. ac_tool_warned=yes ;;
  5015. esac
  5016. DLLTOOL=$ac_ct_DLLTOOL
  5017. fi
  5018. else
  5019. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5020. fi
  5021. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5023. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5024. if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
  5025. $as_echo_n "(cached) " >&6
  5026. else
  5027. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5028. case $host_os in
  5029. cygwin* | mingw* | pw32* | cegcc*)
  5030. # two different shell functions defined in ltmain.sh
  5031. # decide which to use based on capabilities of $DLLTOOL
  5032. case `$DLLTOOL --help 2>&1` in
  5033. *--identify-strict*)
  5034. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5035. ;;
  5036. *)
  5037. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5038. ;;
  5039. esac
  5040. ;;
  5041. *)
  5042. # fallback: assume linklib IS sharedlib
  5043. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5044. ;;
  5045. esac
  5046. fi
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5048. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5049. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5050. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5051. if test -n "$ac_tool_prefix"; then
  5052. for ac_prog in ar
  5053. do
  5054. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5055. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5057. $as_echo_n "checking for $ac_word... " >&6; }
  5058. if test "${ac_cv_prog_AR+set}" = set; then :
  5059. $as_echo_n "(cached) " >&6
  5060. else
  5061. if test -n "$AR"; then
  5062. ac_cv_prog_AR="$AR" # Let the user override the test.
  5063. else
  5064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5065. for as_dir in $PATH
  5066. do
  5067. IFS=$as_save_IFS
  5068. test -z "$as_dir" && as_dir=.
  5069. for ac_exec_ext in '' $ac_executable_extensions; do
  5070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5071. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5073. break 2
  5074. fi
  5075. done
  5076. done
  5077. IFS=$as_save_IFS
  5078. fi
  5079. fi
  5080. AR=$ac_cv_prog_AR
  5081. if test -n "$AR"; then
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5083. $as_echo "$AR" >&6; }
  5084. else
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5086. $as_echo "no" >&6; }
  5087. fi
  5088. test -n "$AR" && break
  5089. done
  5090. fi
  5091. if test -z "$AR"; then
  5092. ac_ct_AR=$AR
  5093. for ac_prog in ar
  5094. do
  5095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5096. set dummy $ac_prog; ac_word=$2
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5098. $as_echo_n "checking for $ac_word... " >&6; }
  5099. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. if test -n "$ac_ct_AR"; then
  5103. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5104. else
  5105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5106. for as_dir in $PATH
  5107. do
  5108. IFS=$as_save_IFS
  5109. test -z "$as_dir" && as_dir=.
  5110. for ac_exec_ext in '' $ac_executable_extensions; do
  5111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5112. ac_cv_prog_ac_ct_AR="$ac_prog"
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5114. break 2
  5115. fi
  5116. done
  5117. done
  5118. IFS=$as_save_IFS
  5119. fi
  5120. fi
  5121. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5122. if test -n "$ac_ct_AR"; then
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5124. $as_echo "$ac_ct_AR" >&6; }
  5125. else
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5127. $as_echo "no" >&6; }
  5128. fi
  5129. test -n "$ac_ct_AR" && break
  5130. done
  5131. if test "x$ac_ct_AR" = x; then
  5132. AR="false"
  5133. else
  5134. case $cross_compiling:$ac_tool_warned in
  5135. yes:)
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5138. ac_tool_warned=yes ;;
  5139. esac
  5140. AR=$ac_ct_AR
  5141. fi
  5142. fi
  5143. : ${AR=ar}
  5144. : ${AR_FLAGS=cru}
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5146. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5147. if test "${lt_cv_ar_at_file+set}" = set; then :
  5148. $as_echo_n "(cached) " >&6
  5149. else
  5150. lt_cv_ar_at_file=no
  5151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5152. /* end confdefs.h. */
  5153. int
  5154. main ()
  5155. {
  5156. ;
  5157. return 0;
  5158. }
  5159. _ACEOF
  5160. if ac_fn_c_try_compile "$LINENO"; then :
  5161. echo conftest.$ac_objext > conftest.lst
  5162. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5163. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5164. (eval $lt_ar_try) 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; }
  5168. if test "$ac_status" -eq 0; then
  5169. # Ensure the archiver fails upon bogus file names.
  5170. rm -f conftest.$ac_objext libconftest.a
  5171. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5172. (eval $lt_ar_try) 2>&5
  5173. ac_status=$?
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5175. test $ac_status = 0; }
  5176. if test "$ac_status" -ne 0; then
  5177. lt_cv_ar_at_file=@
  5178. fi
  5179. fi
  5180. rm -f conftest.* libconftest.a
  5181. fi
  5182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5183. fi
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5185. $as_echo "$lt_cv_ar_at_file" >&6; }
  5186. if test "x$lt_cv_ar_at_file" = xno; then
  5187. archiver_list_spec=
  5188. else
  5189. archiver_list_spec=$lt_cv_ar_at_file
  5190. fi
  5191. if test -n "$ac_tool_prefix"; then
  5192. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5193. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5195. $as_echo_n "checking for $ac_word... " >&6; }
  5196. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. if test -n "$STRIP"; then
  5200. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5201. else
  5202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5203. for as_dir in $PATH
  5204. do
  5205. IFS=$as_save_IFS
  5206. test -z "$as_dir" && as_dir=.
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5209. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5211. break 2
  5212. fi
  5213. done
  5214. done
  5215. IFS=$as_save_IFS
  5216. fi
  5217. fi
  5218. STRIP=$ac_cv_prog_STRIP
  5219. if test -n "$STRIP"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5221. $as_echo "$STRIP" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5224. $as_echo "no" >&6; }
  5225. fi
  5226. fi
  5227. if test -z "$ac_cv_prog_STRIP"; then
  5228. ac_ct_STRIP=$STRIP
  5229. # Extract the first word of "strip", so it can be a program name with args.
  5230. set dummy strip; ac_word=$2
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5232. $as_echo_n "checking for $ac_word... " >&6; }
  5233. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5234. $as_echo_n "(cached) " >&6
  5235. else
  5236. if test -n "$ac_ct_STRIP"; then
  5237. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5238. else
  5239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5240. for as_dir in $PATH
  5241. do
  5242. IFS=$as_save_IFS
  5243. test -z "$as_dir" && as_dir=.
  5244. for ac_exec_ext in '' $ac_executable_extensions; do
  5245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5246. ac_cv_prog_ac_ct_STRIP="strip"
  5247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5248. break 2
  5249. fi
  5250. done
  5251. done
  5252. IFS=$as_save_IFS
  5253. fi
  5254. fi
  5255. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5256. if test -n "$ac_ct_STRIP"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5258. $as_echo "$ac_ct_STRIP" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5261. $as_echo "no" >&6; }
  5262. fi
  5263. if test "x$ac_ct_STRIP" = x; then
  5264. STRIP=":"
  5265. else
  5266. case $cross_compiling:$ac_tool_warned in
  5267. yes:)
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5270. ac_tool_warned=yes ;;
  5271. esac
  5272. STRIP=$ac_ct_STRIP
  5273. fi
  5274. else
  5275. STRIP="$ac_cv_prog_STRIP"
  5276. fi
  5277. test -z "$STRIP" && STRIP=:
  5278. if test -n "$ac_tool_prefix"; then
  5279. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5280. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5282. $as_echo_n "checking for $ac_word... " >&6; }
  5283. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. if test -n "$RANLIB"; then
  5287. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5288. else
  5289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5290. for as_dir in $PATH
  5291. do
  5292. IFS=$as_save_IFS
  5293. test -z "$as_dir" && as_dir=.
  5294. for ac_exec_ext in '' $ac_executable_extensions; do
  5295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5296. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5298. break 2
  5299. fi
  5300. done
  5301. done
  5302. IFS=$as_save_IFS
  5303. fi
  5304. fi
  5305. RANLIB=$ac_cv_prog_RANLIB
  5306. if test -n "$RANLIB"; then
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5308. $as_echo "$RANLIB" >&6; }
  5309. else
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5311. $as_echo "no" >&6; }
  5312. fi
  5313. fi
  5314. if test -z "$ac_cv_prog_RANLIB"; then
  5315. ac_ct_RANLIB=$RANLIB
  5316. # Extract the first word of "ranlib", so it can be a program name with args.
  5317. set dummy ranlib; ac_word=$2
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5319. $as_echo_n "checking for $ac_word... " >&6; }
  5320. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. if test -n "$ac_ct_RANLIB"; then
  5324. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5325. else
  5326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5327. for as_dir in $PATH
  5328. do
  5329. IFS=$as_save_IFS
  5330. test -z "$as_dir" && as_dir=.
  5331. for ac_exec_ext in '' $ac_executable_extensions; do
  5332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5333. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5335. break 2
  5336. fi
  5337. done
  5338. done
  5339. IFS=$as_save_IFS
  5340. fi
  5341. fi
  5342. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5343. if test -n "$ac_ct_RANLIB"; then
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5345. $as_echo "$ac_ct_RANLIB" >&6; }
  5346. else
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5348. $as_echo "no" >&6; }
  5349. fi
  5350. if test "x$ac_ct_RANLIB" = x; then
  5351. RANLIB=":"
  5352. else
  5353. case $cross_compiling:$ac_tool_warned in
  5354. yes:)
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5357. ac_tool_warned=yes ;;
  5358. esac
  5359. RANLIB=$ac_ct_RANLIB
  5360. fi
  5361. else
  5362. RANLIB="$ac_cv_prog_RANLIB"
  5363. fi
  5364. test -z "$RANLIB" && RANLIB=:
  5365. # Determine commands to create old-style static archives.
  5366. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5367. old_postinstall_cmds='chmod 644 $oldlib'
  5368. old_postuninstall_cmds=
  5369. if test -n "$RANLIB"; then
  5370. case $host_os in
  5371. openbsd*)
  5372. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5373. ;;
  5374. *)
  5375. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5376. ;;
  5377. esac
  5378. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5379. fi
  5380. case $host_os in
  5381. darwin*)
  5382. lock_old_archive_extraction=yes ;;
  5383. *)
  5384. lock_old_archive_extraction=no ;;
  5385. esac
  5386. # If no C compiler was specified, use CC.
  5387. LTCC=${LTCC-"$CC"}
  5388. # If no C compiler flags were specified, use CFLAGS.
  5389. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5390. # Allow CC to be a program name with arguments.
  5391. compiler=$CC
  5392. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5394. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5395. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. # These are sane defaults that work on at least a few old systems.
  5399. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5400. # Character class describing NM global symbol codes.
  5401. symcode='[BCDEGRST]'
  5402. # Regexp to match symbols that can be accessed directly from C.
  5403. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5404. # Define system-specific variables.
  5405. case $host_os in
  5406. aix*)
  5407. symcode='[BCDT]'
  5408. ;;
  5409. cygwin* | mingw* | pw32* | cegcc*)
  5410. symcode='[ABCDGISTW]'
  5411. ;;
  5412. hpux*)
  5413. if test "$host_cpu" = ia64; then
  5414. symcode='[ABCDEGRST]'
  5415. fi
  5416. ;;
  5417. irix* | nonstopux*)
  5418. symcode='[BCDEGRST]'
  5419. ;;
  5420. osf*)
  5421. symcode='[BCDEGQRST]'
  5422. ;;
  5423. solaris*)
  5424. symcode='[BDRT]'
  5425. ;;
  5426. sco3.2v5*)
  5427. symcode='[DT]'
  5428. ;;
  5429. sysv4.2uw2*)
  5430. symcode='[DT]'
  5431. ;;
  5432. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5433. symcode='[ABDT]'
  5434. ;;
  5435. sysv4)
  5436. symcode='[DFNSTU]'
  5437. ;;
  5438. esac
  5439. # If we're using GNU nm, then use its standard symbol codes.
  5440. case `$NM -V 2>&1` in
  5441. *GNU* | *'with BFD'*)
  5442. symcode='[ABCDGIRSTW]' ;;
  5443. esac
  5444. # Transform an extracted symbol line into a proper C declaration.
  5445. # Some systems (esp. on ia64) link data and code symbols differently,
  5446. # so use this general approach.
  5447. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5448. # Transform an extracted symbol line into symbol name and symbol address
  5449. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5450. 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'"
  5451. # Handle CRLF in mingw tool chain
  5452. opt_cr=
  5453. case $build_os in
  5454. mingw*)
  5455. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5456. ;;
  5457. esac
  5458. # Try without a prefix underscore, then with it.
  5459. for ac_symprfx in "" "_"; do
  5460. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5461. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5462. # Write the raw and C identifiers.
  5463. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5464. # Fake it for dumpbin and say T for any non-static function
  5465. # and D for any global variable.
  5466. # Also find C++ and __fastcall symbols from MSVC++,
  5467. # which start with @ or ?.
  5468. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5469. " {last_section=section; section=\$ 3};"\
  5470. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5471. " \$ 0!~/External *\|/{next};"\
  5472. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5473. " {if(hide[section]) next};"\
  5474. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5475. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5476. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5477. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5478. " ' prfx=^$ac_symprfx"
  5479. else
  5480. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5481. fi
  5482. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5483. # Check to see that the pipe works correctly.
  5484. pipe_works=no
  5485. rm -f conftest*
  5486. cat > conftest.$ac_ext <<_LT_EOF
  5487. #ifdef __cplusplus
  5488. extern "C" {
  5489. #endif
  5490. char nm_test_var;
  5491. void nm_test_func(void);
  5492. void nm_test_func(void){}
  5493. #ifdef __cplusplus
  5494. }
  5495. #endif
  5496. int main(){nm_test_var='a';nm_test_func();return(0);}
  5497. _LT_EOF
  5498. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5499. (eval $ac_compile) 2>&5
  5500. ac_status=$?
  5501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5502. test $ac_status = 0; }; then
  5503. # Now try to grab the symbols.
  5504. nlist=conftest.nm
  5505. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5506. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5507. ac_status=$?
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5509. test $ac_status = 0; } && test -s "$nlist"; then
  5510. # Try sorting and uniquifying the output.
  5511. if sort "$nlist" | uniq > "$nlist"T; then
  5512. mv -f "$nlist"T "$nlist"
  5513. else
  5514. rm -f "$nlist"T
  5515. fi
  5516. # Make sure that we snagged all the symbols we need.
  5517. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5518. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5519. cat <<_LT_EOF > conftest.$ac_ext
  5520. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5521. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5522. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5523. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5524. # define LT_DLSYM_CONST
  5525. #elif defined(__osf__)
  5526. /* This system does not cope well with relocations in const data. */
  5527. # define LT_DLSYM_CONST
  5528. #else
  5529. # define LT_DLSYM_CONST const
  5530. #endif
  5531. #ifdef __cplusplus
  5532. extern "C" {
  5533. #endif
  5534. _LT_EOF
  5535. # Now generate the symbol file.
  5536. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5537. cat <<_LT_EOF >> conftest.$ac_ext
  5538. /* The mapping between symbol names and symbols. */
  5539. LT_DLSYM_CONST struct {
  5540. const char *name;
  5541. void *address;
  5542. }
  5543. lt__PROGRAM__LTX_preloaded_symbols[] =
  5544. {
  5545. { "@PROGRAM@", (void *) 0 },
  5546. _LT_EOF
  5547. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5548. cat <<\_LT_EOF >> conftest.$ac_ext
  5549. {0, (void *) 0}
  5550. };
  5551. /* This works around a problem in FreeBSD linker */
  5552. #ifdef FREEBSD_WORKAROUND
  5553. static const void *lt_preloaded_setup() {
  5554. return lt__PROGRAM__LTX_preloaded_symbols;
  5555. }
  5556. #endif
  5557. #ifdef __cplusplus
  5558. }
  5559. #endif
  5560. _LT_EOF
  5561. # Now try linking the two files.
  5562. mv conftest.$ac_objext conftstm.$ac_objext
  5563. lt_globsym_save_LIBS=$LIBS
  5564. lt_globsym_save_CFLAGS=$CFLAGS
  5565. LIBS="conftstm.$ac_objext"
  5566. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5567. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5568. (eval $ac_link) 2>&5
  5569. ac_status=$?
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5571. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5572. pipe_works=yes
  5573. fi
  5574. LIBS=$lt_globsym_save_LIBS
  5575. CFLAGS=$lt_globsym_save_CFLAGS
  5576. else
  5577. echo "cannot find nm_test_func in $nlist" >&5
  5578. fi
  5579. else
  5580. echo "cannot find nm_test_var in $nlist" >&5
  5581. fi
  5582. else
  5583. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5584. fi
  5585. else
  5586. echo "$progname: failed program was:" >&5
  5587. cat conftest.$ac_ext >&5
  5588. fi
  5589. rm -rf conftest* conftst*
  5590. # Do not use the global_symbol_pipe unless it works.
  5591. if test "$pipe_works" = yes; then
  5592. break
  5593. else
  5594. lt_cv_sys_global_symbol_pipe=
  5595. fi
  5596. done
  5597. fi
  5598. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5599. lt_cv_sys_global_symbol_to_cdecl=
  5600. fi
  5601. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5603. $as_echo "failed" >&6; }
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5606. $as_echo "ok" >&6; }
  5607. fi
  5608. # Response file support.
  5609. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5610. nm_file_list_spec='@'
  5611. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5612. nm_file_list_spec='@'
  5613. fi
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5615. $as_echo_n "checking for sysroot... " >&6; }
  5616. # Check whether --with-sysroot was given.
  5617. if test "${with_sysroot+set}" = set; then :
  5618. withval=$with_sysroot;
  5619. else
  5620. with_sysroot=no
  5621. fi
  5622. lt_sysroot=
  5623. case ${with_sysroot} in #(
  5624. yes)
  5625. if test "$GCC" = yes; then
  5626. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5627. fi
  5628. ;; #(
  5629. /*)
  5630. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5631. ;; #(
  5632. no|'')
  5633. ;; #(
  5634. *)
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5636. $as_echo "${with_sysroot}" >&6; }
  5637. as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
  5638. ;;
  5639. esac
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5641. $as_echo "${lt_sysroot:-no}" >&6; }
  5642. # Check whether --enable-libtool-lock was given.
  5643. if test "${enable_libtool_lock+set}" = set; then :
  5644. enableval=$enable_libtool_lock;
  5645. fi
  5646. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5647. # Some flags need to be propagated to the compiler or linker for good
  5648. # libtool support.
  5649. case $host in
  5650. ia64-*-hpux*)
  5651. # Find out which ABI we are using.
  5652. echo 'int i;' > conftest.$ac_ext
  5653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5654. (eval $ac_compile) 2>&5
  5655. ac_status=$?
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5657. test $ac_status = 0; }; then
  5658. case `/usr/bin/file conftest.$ac_objext` in
  5659. *ELF-32*)
  5660. HPUX_IA64_MODE="32"
  5661. ;;
  5662. *ELF-64*)
  5663. HPUX_IA64_MODE="64"
  5664. ;;
  5665. esac
  5666. fi
  5667. rm -rf conftest*
  5668. ;;
  5669. *-*-irix6*)
  5670. # Find out which ABI we are using.
  5671. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5672. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5673. (eval $ac_compile) 2>&5
  5674. ac_status=$?
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5676. test $ac_status = 0; }; then
  5677. if test "$lt_cv_prog_gnu_ld" = yes; then
  5678. case `/usr/bin/file conftest.$ac_objext` in
  5679. *32-bit*)
  5680. LD="${LD-ld} -melf32bsmip"
  5681. ;;
  5682. *N32*)
  5683. LD="${LD-ld} -melf32bmipn32"
  5684. ;;
  5685. *64-bit*)
  5686. LD="${LD-ld} -melf64bmip"
  5687. ;;
  5688. esac
  5689. else
  5690. case `/usr/bin/file conftest.$ac_objext` in
  5691. *32-bit*)
  5692. LD="${LD-ld} -32"
  5693. ;;
  5694. *N32*)
  5695. LD="${LD-ld} -n32"
  5696. ;;
  5697. *64-bit*)
  5698. LD="${LD-ld} -64"
  5699. ;;
  5700. esac
  5701. fi
  5702. fi
  5703. rm -rf conftest*
  5704. ;;
  5705. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5706. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5707. # Find out which ABI we are using.
  5708. echo 'int i;' > conftest.$ac_ext
  5709. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5710. (eval $ac_compile) 2>&5
  5711. ac_status=$?
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5713. test $ac_status = 0; }; then
  5714. case `/usr/bin/file conftest.o` in
  5715. *32-bit*)
  5716. case $host in
  5717. x86_64-*kfreebsd*-gnu)
  5718. LD="${LD-ld} -m elf_i386_fbsd"
  5719. ;;
  5720. x86_64-*linux*)
  5721. LD="${LD-ld} -m elf_i386"
  5722. ;;
  5723. ppc64-*linux*|powerpc64-*linux*)
  5724. LD="${LD-ld} -m elf32ppclinux"
  5725. ;;
  5726. s390x-*linux*)
  5727. LD="${LD-ld} -m elf_s390"
  5728. ;;
  5729. sparc64-*linux*)
  5730. LD="${LD-ld} -m elf32_sparc"
  5731. ;;
  5732. esac
  5733. ;;
  5734. *64-bit*)
  5735. case $host in
  5736. x86_64-*kfreebsd*-gnu)
  5737. LD="${LD-ld} -m elf_x86_64_fbsd"
  5738. ;;
  5739. x86_64-*linux*)
  5740. LD="${LD-ld} -m elf_x86_64"
  5741. ;;
  5742. ppc*-*linux*|powerpc*-*linux*)
  5743. LD="${LD-ld} -m elf64ppc"
  5744. ;;
  5745. s390*-*linux*|s390*-*tpf*)
  5746. LD="${LD-ld} -m elf64_s390"
  5747. ;;
  5748. sparc*-*linux*)
  5749. LD="${LD-ld} -m elf64_sparc"
  5750. ;;
  5751. esac
  5752. ;;
  5753. esac
  5754. fi
  5755. rm -rf conftest*
  5756. ;;
  5757. *-*-sco3.2v5*)
  5758. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5759. SAVE_CFLAGS="$CFLAGS"
  5760. CFLAGS="$CFLAGS -belf"
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5762. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5763. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. ac_ext=c
  5767. ac_cpp='$CPP $CPPFLAGS'
  5768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. int
  5774. main ()
  5775. {
  5776. ;
  5777. return 0;
  5778. }
  5779. _ACEOF
  5780. if ac_fn_c_try_link "$LINENO"; then :
  5781. lt_cv_cc_needs_belf=yes
  5782. else
  5783. lt_cv_cc_needs_belf=no
  5784. fi
  5785. rm -f core conftest.err conftest.$ac_objext \
  5786. conftest$ac_exeext conftest.$ac_ext
  5787. ac_ext=c
  5788. ac_cpp='$CPP $CPPFLAGS'
  5789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5792. fi
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5794. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5795. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5796. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5797. CFLAGS="$SAVE_CFLAGS"
  5798. fi
  5799. ;;
  5800. sparc*-*solaris*)
  5801. # Find out which ABI we are using.
  5802. echo 'int i;' > conftest.$ac_ext
  5803. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5804. (eval $ac_compile) 2>&5
  5805. ac_status=$?
  5806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5807. test $ac_status = 0; }; then
  5808. case `/usr/bin/file conftest.o` in
  5809. *64-bit*)
  5810. case $lt_cv_prog_gnu_ld in
  5811. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5812. *)
  5813. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5814. LD="${LD-ld} -64"
  5815. fi
  5816. ;;
  5817. esac
  5818. ;;
  5819. esac
  5820. fi
  5821. rm -rf conftest*
  5822. ;;
  5823. esac
  5824. need_locks="$enable_libtool_lock"
  5825. if test -n "$ac_tool_prefix"; then
  5826. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5827. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$MANIFEST_TOOL"; then
  5834. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5853. if test -n "$MANIFEST_TOOL"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5855. $as_echo "$MANIFEST_TOOL" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. fi
  5861. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5862. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5863. # Extract the first word of "mt", so it can be a program name with args.
  5864. set dummy mt; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5871. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5880. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5890. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5892. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5898. MANIFEST_TOOL=":"
  5899. else
  5900. case $cross_compiling:$ac_tool_warned in
  5901. yes:)
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5904. ac_tool_warned=yes ;;
  5905. esac
  5906. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5907. fi
  5908. else
  5909. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5910. fi
  5911. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5913. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5914. if test "${lt_cv_path_mainfest_tool+set}" = set; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. lt_cv_path_mainfest_tool=no
  5918. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5919. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5920. cat conftest.err >&5
  5921. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5922. lt_cv_path_mainfest_tool=yes
  5923. fi
  5924. rm -f conftest*
  5925. fi
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5927. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5928. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5929. MANIFEST_TOOL=:
  5930. fi
  5931. case $host_os in
  5932. rhapsody* | darwin*)
  5933. if test -n "$ac_tool_prefix"; then
  5934. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5935. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5937. $as_echo_n "checking for $ac_word... " >&6; }
  5938. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. if test -n "$DSYMUTIL"; then
  5942. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5943. else
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5951. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. fi
  5959. fi
  5960. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5961. if test -n "$DSYMUTIL"; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5963. $as_echo "$DSYMUTIL" >&6; }
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5966. $as_echo "no" >&6; }
  5967. fi
  5968. fi
  5969. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5970. ac_ct_DSYMUTIL=$DSYMUTIL
  5971. # Extract the first word of "dsymutil", so it can be a program name with args.
  5972. set dummy dsymutil; ac_word=$2
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5974. $as_echo_n "checking for $ac_word... " >&6; }
  5975. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5976. $as_echo_n "(cached) " >&6
  5977. else
  5978. if test -n "$ac_ct_DSYMUTIL"; then
  5979. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5980. else
  5981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5982. for as_dir in $PATH
  5983. do
  5984. IFS=$as_save_IFS
  5985. test -z "$as_dir" && as_dir=.
  5986. for ac_exec_ext in '' $ac_executable_extensions; do
  5987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5988. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5990. break 2
  5991. fi
  5992. done
  5993. done
  5994. IFS=$as_save_IFS
  5995. fi
  5996. fi
  5997. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5998. if test -n "$ac_ct_DSYMUTIL"; then
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6000. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. if test "x$ac_ct_DSYMUTIL" = x; then
  6006. DSYMUTIL=":"
  6007. else
  6008. case $cross_compiling:$ac_tool_warned in
  6009. yes:)
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6012. ac_tool_warned=yes ;;
  6013. esac
  6014. DSYMUTIL=$ac_ct_DSYMUTIL
  6015. fi
  6016. else
  6017. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6018. fi
  6019. if test -n "$ac_tool_prefix"; then
  6020. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6021. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6023. $as_echo_n "checking for $ac_word... " >&6; }
  6024. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. if test -n "$NMEDIT"; then
  6028. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6037. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. NMEDIT=$ac_cv_prog_NMEDIT
  6047. if test -n "$NMEDIT"; then
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6049. $as_echo "$NMEDIT" >&6; }
  6050. else
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. fi
  6055. if test -z "$ac_cv_prog_NMEDIT"; then
  6056. ac_ct_NMEDIT=$NMEDIT
  6057. # Extract the first word of "nmedit", so it can be a program name with args.
  6058. set dummy nmedit; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. if test -n "$ac_ct_NMEDIT"; then
  6065. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6066. else
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6074. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. fi
  6082. fi
  6083. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6084. if test -n "$ac_ct_NMEDIT"; then
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6086. $as_echo "$ac_ct_NMEDIT" >&6; }
  6087. else
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6089. $as_echo "no" >&6; }
  6090. fi
  6091. if test "x$ac_ct_NMEDIT" = x; then
  6092. NMEDIT=":"
  6093. else
  6094. case $cross_compiling:$ac_tool_warned in
  6095. yes:)
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6097. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6098. ac_tool_warned=yes ;;
  6099. esac
  6100. NMEDIT=$ac_ct_NMEDIT
  6101. fi
  6102. else
  6103. NMEDIT="$ac_cv_prog_NMEDIT"
  6104. fi
  6105. if test -n "$ac_tool_prefix"; then
  6106. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6107. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6109. $as_echo_n "checking for $ac_word... " >&6; }
  6110. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6111. $as_echo_n "(cached) " >&6
  6112. else
  6113. if test -n "$LIPO"; then
  6114. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6115. else
  6116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6117. for as_dir in $PATH
  6118. do
  6119. IFS=$as_save_IFS
  6120. test -z "$as_dir" && as_dir=.
  6121. for ac_exec_ext in '' $ac_executable_extensions; do
  6122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6123. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6125. break 2
  6126. fi
  6127. done
  6128. done
  6129. IFS=$as_save_IFS
  6130. fi
  6131. fi
  6132. LIPO=$ac_cv_prog_LIPO
  6133. if test -n "$LIPO"; then
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6135. $as_echo "$LIPO" >&6; }
  6136. else
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6138. $as_echo "no" >&6; }
  6139. fi
  6140. fi
  6141. if test -z "$ac_cv_prog_LIPO"; then
  6142. ac_ct_LIPO=$LIPO
  6143. # Extract the first word of "lipo", so it can be a program name with args.
  6144. set dummy lipo; ac_word=$2
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6146. $as_echo_n "checking for $ac_word... " >&6; }
  6147. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6148. $as_echo_n "(cached) " >&6
  6149. else
  6150. if test -n "$ac_ct_LIPO"; then
  6151. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6152. else
  6153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6154. for as_dir in $PATH
  6155. do
  6156. IFS=$as_save_IFS
  6157. test -z "$as_dir" && as_dir=.
  6158. for ac_exec_ext in '' $ac_executable_extensions; do
  6159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6160. ac_cv_prog_ac_ct_LIPO="lipo"
  6161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6162. break 2
  6163. fi
  6164. done
  6165. done
  6166. IFS=$as_save_IFS
  6167. fi
  6168. fi
  6169. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6170. if test -n "$ac_ct_LIPO"; then
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6172. $as_echo "$ac_ct_LIPO" >&6; }
  6173. else
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6175. $as_echo "no" >&6; }
  6176. fi
  6177. if test "x$ac_ct_LIPO" = x; then
  6178. LIPO=":"
  6179. else
  6180. case $cross_compiling:$ac_tool_warned in
  6181. yes:)
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6184. ac_tool_warned=yes ;;
  6185. esac
  6186. LIPO=$ac_ct_LIPO
  6187. fi
  6188. else
  6189. LIPO="$ac_cv_prog_LIPO"
  6190. fi
  6191. if test -n "$ac_tool_prefix"; then
  6192. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6193. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6195. $as_echo_n "checking for $ac_word... " >&6; }
  6196. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. if test -n "$OTOOL"; then
  6200. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6201. else
  6202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6203. for as_dir in $PATH
  6204. do
  6205. IFS=$as_save_IFS
  6206. test -z "$as_dir" && as_dir=.
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6209. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. OTOOL=$ac_cv_prog_OTOOL
  6219. if test -n "$OTOOL"; then
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6221. $as_echo "$OTOOL" >&6; }
  6222. else
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6224. $as_echo "no" >&6; }
  6225. fi
  6226. fi
  6227. if test -z "$ac_cv_prog_OTOOL"; then
  6228. ac_ct_OTOOL=$OTOOL
  6229. # Extract the first word of "otool", so it can be a program name with args.
  6230. set dummy otool; ac_word=$2
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6232. $as_echo_n "checking for $ac_word... " >&6; }
  6233. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6234. $as_echo_n "(cached) " >&6
  6235. else
  6236. if test -n "$ac_ct_OTOOL"; then
  6237. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6238. else
  6239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6240. for as_dir in $PATH
  6241. do
  6242. IFS=$as_save_IFS
  6243. test -z "$as_dir" && as_dir=.
  6244. for ac_exec_ext in '' $ac_executable_extensions; do
  6245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6246. ac_cv_prog_ac_ct_OTOOL="otool"
  6247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6248. break 2
  6249. fi
  6250. done
  6251. done
  6252. IFS=$as_save_IFS
  6253. fi
  6254. fi
  6255. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6256. if test -n "$ac_ct_OTOOL"; then
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6258. $as_echo "$ac_ct_OTOOL" >&6; }
  6259. else
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6261. $as_echo "no" >&6; }
  6262. fi
  6263. if test "x$ac_ct_OTOOL" = x; then
  6264. OTOOL=":"
  6265. else
  6266. case $cross_compiling:$ac_tool_warned in
  6267. yes:)
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6270. ac_tool_warned=yes ;;
  6271. esac
  6272. OTOOL=$ac_ct_OTOOL
  6273. fi
  6274. else
  6275. OTOOL="$ac_cv_prog_OTOOL"
  6276. fi
  6277. if test -n "$ac_tool_prefix"; then
  6278. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6279. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6281. $as_echo_n "checking for $ac_word... " >&6; }
  6282. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6283. $as_echo_n "(cached) " >&6
  6284. else
  6285. if test -n "$OTOOL64"; then
  6286. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6287. else
  6288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6289. for as_dir in $PATH
  6290. do
  6291. IFS=$as_save_IFS
  6292. test -z "$as_dir" && as_dir=.
  6293. for ac_exec_ext in '' $ac_executable_extensions; do
  6294. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6295. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6297. break 2
  6298. fi
  6299. done
  6300. done
  6301. IFS=$as_save_IFS
  6302. fi
  6303. fi
  6304. OTOOL64=$ac_cv_prog_OTOOL64
  6305. if test -n "$OTOOL64"; then
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6307. $as_echo "$OTOOL64" >&6; }
  6308. else
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. $as_echo "no" >&6; }
  6311. fi
  6312. fi
  6313. if test -z "$ac_cv_prog_OTOOL64"; then
  6314. ac_ct_OTOOL64=$OTOOL64
  6315. # Extract the first word of "otool64", so it can be a program name with args.
  6316. set dummy otool64; ac_word=$2
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6318. $as_echo_n "checking for $ac_word... " >&6; }
  6319. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6320. $as_echo_n "(cached) " >&6
  6321. else
  6322. if test -n "$ac_ct_OTOOL64"; then
  6323. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6324. else
  6325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6326. for as_dir in $PATH
  6327. do
  6328. IFS=$as_save_IFS
  6329. test -z "$as_dir" && as_dir=.
  6330. for ac_exec_ext in '' $ac_executable_extensions; do
  6331. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6332. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6334. break 2
  6335. fi
  6336. done
  6337. done
  6338. IFS=$as_save_IFS
  6339. fi
  6340. fi
  6341. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6342. if test -n "$ac_ct_OTOOL64"; then
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6344. $as_echo "$ac_ct_OTOOL64" >&6; }
  6345. else
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6347. $as_echo "no" >&6; }
  6348. fi
  6349. if test "x$ac_ct_OTOOL64" = x; then
  6350. OTOOL64=":"
  6351. else
  6352. case $cross_compiling:$ac_tool_warned in
  6353. yes:)
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6356. ac_tool_warned=yes ;;
  6357. esac
  6358. OTOOL64=$ac_ct_OTOOL64
  6359. fi
  6360. else
  6361. OTOOL64="$ac_cv_prog_OTOOL64"
  6362. fi
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6364. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6365. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. lt_cv_apple_cc_single_mod=no
  6369. if test -z "${LT_MULTI_MODULE}"; then
  6370. # By default we will add the -single_module flag. You can override
  6371. # by either setting the environment variable LT_MULTI_MODULE
  6372. # non-empty at configure time, or by adding -multi_module to the
  6373. # link flags.
  6374. rm -rf libconftest.dylib*
  6375. echo "int foo(void){return 1;}" > conftest.c
  6376. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6377. -dynamiclib -Wl,-single_module conftest.c" >&5
  6378. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6379. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6380. _lt_result=$?
  6381. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6382. lt_cv_apple_cc_single_mod=yes
  6383. else
  6384. cat conftest.err >&5
  6385. fi
  6386. rm -rf libconftest.dylib*
  6387. rm -f conftest.*
  6388. fi
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6391. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6393. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6394. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. lt_cv_ld_exported_symbols_list=no
  6398. save_LDFLAGS=$LDFLAGS
  6399. echo "_main" > conftest.sym
  6400. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6402. /* end confdefs.h. */
  6403. int
  6404. main ()
  6405. {
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. if ac_fn_c_try_link "$LINENO"; then :
  6411. lt_cv_ld_exported_symbols_list=yes
  6412. else
  6413. lt_cv_ld_exported_symbols_list=no
  6414. fi
  6415. rm -f core conftest.err conftest.$ac_objext \
  6416. conftest$ac_exeext conftest.$ac_ext
  6417. LDFLAGS="$save_LDFLAGS"
  6418. fi
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6420. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6422. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6423. if test "${lt_cv_ld_force_load+set}" = set; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. lt_cv_ld_force_load=no
  6427. cat > conftest.c << _LT_EOF
  6428. int forced_loaded() { return 2;}
  6429. _LT_EOF
  6430. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6431. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6432. echo "$AR cru libconftest.a conftest.o" >&5
  6433. $AR cru libconftest.a conftest.o 2>&5
  6434. echo "$RANLIB libconftest.a" >&5
  6435. $RANLIB libconftest.a 2>&5
  6436. cat > conftest.c << _LT_EOF
  6437. int main() { return 0;}
  6438. _LT_EOF
  6439. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6440. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6441. _lt_result=$?
  6442. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6443. lt_cv_ld_force_load=yes
  6444. else
  6445. cat conftest.err >&5
  6446. fi
  6447. rm -f conftest.err libconftest.a conftest conftest.c
  6448. rm -rf conftest.dSYM
  6449. fi
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6451. $as_echo "$lt_cv_ld_force_load" >&6; }
  6452. case $host_os in
  6453. rhapsody* | darwin1.[012])
  6454. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6455. darwin1.*)
  6456. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6457. darwin*) # darwin 5.x on
  6458. # if running on 10.5 or later, the deployment target defaults
  6459. # to the OS version, if on x86, and 10.4, the deployment
  6460. # target defaults to 10.4. Don't you love it?
  6461. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6462. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6463. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6464. 10.[012]*)
  6465. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6466. 10.*)
  6467. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6468. esac
  6469. ;;
  6470. esac
  6471. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6472. _lt_dar_single_mod='$single_module'
  6473. fi
  6474. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6475. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6476. else
  6477. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6478. fi
  6479. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6480. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6481. else
  6482. _lt_dsymutil=
  6483. fi
  6484. ;;
  6485. esac
  6486. ac_ext=c
  6487. ac_cpp='$CPP $CPPFLAGS'
  6488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6492. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6493. # On Suns, sometimes $CPP names a directory.
  6494. if test -n "$CPP" && test -d "$CPP"; then
  6495. CPP=
  6496. fi
  6497. if test -z "$CPP"; then
  6498. if test "${ac_cv_prog_CPP+set}" = set; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. # Double quotes because CPP needs to be expanded
  6502. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6503. do
  6504. ac_preproc_ok=false
  6505. for ac_c_preproc_warn_flag in '' yes
  6506. do
  6507. # Use a header file that comes with gcc, so configuring glibc
  6508. # with a fresh cross-compiler works.
  6509. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6510. # <limits.h> exists even on freestanding compilers.
  6511. # On the NeXT, cc -E runs the code through the compiler's parser,
  6512. # not just through cpp. "Syntax error" is here to catch this case.
  6513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6514. /* end confdefs.h. */
  6515. #ifdef __STDC__
  6516. # include <limits.h>
  6517. #else
  6518. # include <assert.h>
  6519. #endif
  6520. Syntax error
  6521. _ACEOF
  6522. if ac_fn_c_try_cpp "$LINENO"; then :
  6523. else
  6524. # Broken: fails on valid input.
  6525. continue
  6526. fi
  6527. rm -f conftest.err conftest.$ac_ext
  6528. # OK, works on sane cases. Now check whether nonexistent headers
  6529. # can be detected and how.
  6530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6531. /* end confdefs.h. */
  6532. #include <ac_nonexistent.h>
  6533. _ACEOF
  6534. if ac_fn_c_try_cpp "$LINENO"; then :
  6535. # Broken: success on invalid input.
  6536. continue
  6537. else
  6538. # Passes both tests.
  6539. ac_preproc_ok=:
  6540. break
  6541. fi
  6542. rm -f conftest.err conftest.$ac_ext
  6543. done
  6544. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6545. rm -f conftest.err conftest.$ac_ext
  6546. if $ac_preproc_ok; then :
  6547. break
  6548. fi
  6549. done
  6550. ac_cv_prog_CPP=$CPP
  6551. fi
  6552. CPP=$ac_cv_prog_CPP
  6553. else
  6554. ac_cv_prog_CPP=$CPP
  6555. fi
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6557. $as_echo "$CPP" >&6; }
  6558. ac_preproc_ok=false
  6559. for ac_c_preproc_warn_flag in '' yes
  6560. do
  6561. # Use a header file that comes with gcc, so configuring glibc
  6562. # with a fresh cross-compiler works.
  6563. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6564. # <limits.h> exists even on freestanding compilers.
  6565. # On the NeXT, cc -E runs the code through the compiler's parser,
  6566. # not just through cpp. "Syntax error" is here to catch this case.
  6567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6568. /* end confdefs.h. */
  6569. #ifdef __STDC__
  6570. # include <limits.h>
  6571. #else
  6572. # include <assert.h>
  6573. #endif
  6574. Syntax error
  6575. _ACEOF
  6576. if ac_fn_c_try_cpp "$LINENO"; then :
  6577. else
  6578. # Broken: fails on valid input.
  6579. continue
  6580. fi
  6581. rm -f conftest.err conftest.$ac_ext
  6582. # OK, works on sane cases. Now check whether nonexistent headers
  6583. # can be detected and how.
  6584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6585. /* end confdefs.h. */
  6586. #include <ac_nonexistent.h>
  6587. _ACEOF
  6588. if ac_fn_c_try_cpp "$LINENO"; then :
  6589. # Broken: success on invalid input.
  6590. continue
  6591. else
  6592. # Passes both tests.
  6593. ac_preproc_ok=:
  6594. break
  6595. fi
  6596. rm -f conftest.err conftest.$ac_ext
  6597. done
  6598. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6599. rm -f conftest.err conftest.$ac_ext
  6600. if $ac_preproc_ok; then :
  6601. else
  6602. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6603. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6604. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6605. See \`config.log' for more details." "$LINENO" 5; }
  6606. fi
  6607. ac_ext=c
  6608. ac_cpp='$CPP $CPPFLAGS'
  6609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6613. $as_echo_n "checking for ANSI C header files... " >&6; }
  6614. if test "${ac_cv_header_stdc+set}" = set; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6618. /* end confdefs.h. */
  6619. #include <stdlib.h>
  6620. #include <stdarg.h>
  6621. #include <string.h>
  6622. #include <float.h>
  6623. int
  6624. main ()
  6625. {
  6626. ;
  6627. return 0;
  6628. }
  6629. _ACEOF
  6630. if ac_fn_c_try_compile "$LINENO"; then :
  6631. ac_cv_header_stdc=yes
  6632. else
  6633. ac_cv_header_stdc=no
  6634. fi
  6635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6636. if test $ac_cv_header_stdc = yes; then
  6637. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6639. /* end confdefs.h. */
  6640. #include <string.h>
  6641. _ACEOF
  6642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6643. $EGREP "memchr" >/dev/null 2>&1; then :
  6644. else
  6645. ac_cv_header_stdc=no
  6646. fi
  6647. rm -f conftest*
  6648. fi
  6649. if test $ac_cv_header_stdc = yes; then
  6650. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6652. /* end confdefs.h. */
  6653. #include <stdlib.h>
  6654. _ACEOF
  6655. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6656. $EGREP "free" >/dev/null 2>&1; then :
  6657. else
  6658. ac_cv_header_stdc=no
  6659. fi
  6660. rm -f conftest*
  6661. fi
  6662. if test $ac_cv_header_stdc = yes; then
  6663. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6664. if test "$cross_compiling" = yes; then :
  6665. :
  6666. else
  6667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6668. /* end confdefs.h. */
  6669. #include <ctype.h>
  6670. #include <stdlib.h>
  6671. #if ((' ' & 0x0FF) == 0x020)
  6672. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6673. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6674. #else
  6675. # define ISLOWER(c) \
  6676. (('a' <= (c) && (c) <= 'i') \
  6677. || ('j' <= (c) && (c) <= 'r') \
  6678. || ('s' <= (c) && (c) <= 'z'))
  6679. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6680. #endif
  6681. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6682. int
  6683. main ()
  6684. {
  6685. int i;
  6686. for (i = 0; i < 256; i++)
  6687. if (XOR (islower (i), ISLOWER (i))
  6688. || toupper (i) != TOUPPER (i))
  6689. return 2;
  6690. return 0;
  6691. }
  6692. _ACEOF
  6693. if ac_fn_c_try_run "$LINENO"; then :
  6694. else
  6695. ac_cv_header_stdc=no
  6696. fi
  6697. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6698. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6699. fi
  6700. fi
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6703. $as_echo "$ac_cv_header_stdc" >&6; }
  6704. if test $ac_cv_header_stdc = yes; then
  6705. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6706. fi
  6707. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6708. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6709. inttypes.h stdint.h unistd.h
  6710. do :
  6711. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6712. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6713. "
  6714. eval as_val=\$$as_ac_Header
  6715. if test "x$as_val" = x""yes; then :
  6716. cat >>confdefs.h <<_ACEOF
  6717. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6718. _ACEOF
  6719. fi
  6720. done
  6721. for ac_header in dlfcn.h
  6722. do :
  6723. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6724. "
  6725. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6726. cat >>confdefs.h <<_ACEOF
  6727. #define HAVE_DLFCN_H 1
  6728. _ACEOF
  6729. fi
  6730. done
  6731. # Set options
  6732. enable_win32_dll=no
  6733. # Check whether --enable-shared was given.
  6734. if test "${enable_shared+set}" = set; then :
  6735. enableval=$enable_shared; p=${PACKAGE-default}
  6736. case $enableval in
  6737. yes) enable_shared=yes ;;
  6738. no) enable_shared=no ;;
  6739. *)
  6740. enable_shared=no
  6741. # Look at the argument we got. We use all the common list separators.
  6742. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6743. for pkg in $enableval; do
  6744. IFS="$lt_save_ifs"
  6745. if test "X$pkg" = "X$p"; then
  6746. enable_shared=yes
  6747. fi
  6748. done
  6749. IFS="$lt_save_ifs"
  6750. ;;
  6751. esac
  6752. else
  6753. enable_shared=yes
  6754. fi
  6755. # Check whether --with-pic was given.
  6756. if test "${with_pic+set}" = set; then :
  6757. withval=$with_pic; pic_mode="$withval"
  6758. else
  6759. pic_mode=default
  6760. fi
  6761. test -z "$pic_mode" && pic_mode=default
  6762. # Check whether --enable-fast-install was given.
  6763. if test "${enable_fast_install+set}" = set; then :
  6764. enableval=$enable_fast_install; p=${PACKAGE-default}
  6765. case $enableval in
  6766. yes) enable_fast_install=yes ;;
  6767. no) enable_fast_install=no ;;
  6768. *)
  6769. enable_fast_install=no
  6770. # Look at the argument we got. We use all the common list separators.
  6771. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6772. for pkg in $enableval; do
  6773. IFS="$lt_save_ifs"
  6774. if test "X$pkg" = "X$p"; then
  6775. enable_fast_install=yes
  6776. fi
  6777. done
  6778. IFS="$lt_save_ifs"
  6779. ;;
  6780. esac
  6781. else
  6782. enable_fast_install=yes
  6783. fi
  6784. # This can be used to rebuild libtool when needed
  6785. LIBTOOL_DEPS="$ltmain"
  6786. # Always use our own libtool.
  6787. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6788. test -z "$LN_S" && LN_S="ln -s"
  6789. if test -n "${ZSH_VERSION+set}" ; then
  6790. setopt NO_GLOB_SUBST
  6791. fi
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6793. $as_echo_n "checking for objdir... " >&6; }
  6794. if test "${lt_cv_objdir+set}" = set; then :
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. rm -f .libs 2>/dev/null
  6798. mkdir .libs 2>/dev/null
  6799. if test -d .libs; then
  6800. lt_cv_objdir=.libs
  6801. else
  6802. # MS-DOS does not allow filenames that begin with a dot.
  6803. lt_cv_objdir=_libs
  6804. fi
  6805. rmdir .libs 2>/dev/null
  6806. fi
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6808. $as_echo "$lt_cv_objdir" >&6; }
  6809. objdir=$lt_cv_objdir
  6810. cat >>confdefs.h <<_ACEOF
  6811. #define LT_OBJDIR "$lt_cv_objdir/"
  6812. _ACEOF
  6813. case $host_os in
  6814. aix3*)
  6815. # AIX sometimes has problems with the GCC collect2 program. For some
  6816. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6817. # vanish in a puff of smoke.
  6818. if test "X${COLLECT_NAMES+set}" != Xset; then
  6819. COLLECT_NAMES=
  6820. export COLLECT_NAMES
  6821. fi
  6822. ;;
  6823. esac
  6824. # Global variables:
  6825. ofile=libtool
  6826. can_build_shared=yes
  6827. # All known linkers require a `.a' archive for static linking (except MSVC,
  6828. # which needs '.lib').
  6829. libext=a
  6830. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6831. old_CC="$CC"
  6832. old_CFLAGS="$CFLAGS"
  6833. # Set sane defaults for various variables
  6834. test -z "$CC" && CC=cc
  6835. test -z "$LTCC" && LTCC=$CC
  6836. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6837. test -z "$LD" && LD=ld
  6838. test -z "$ac_objext" && ac_objext=o
  6839. for cc_temp in $compiler""; do
  6840. case $cc_temp in
  6841. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6842. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6843. \-*) ;;
  6844. *) break;;
  6845. esac
  6846. done
  6847. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6848. # Only perform the check for file, if the check method requires it
  6849. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6850. case $deplibs_check_method in
  6851. file_magic*)
  6852. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6854. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6855. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. case $MAGIC_CMD in
  6859. [\\/*] | ?:[\\/]*)
  6860. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6861. ;;
  6862. *)
  6863. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6864. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6865. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6866. for ac_dir in $ac_dummy; do
  6867. IFS="$lt_save_ifs"
  6868. test -z "$ac_dir" && ac_dir=.
  6869. if test -f $ac_dir/${ac_tool_prefix}file; then
  6870. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6871. if test -n "$file_magic_test_file"; then
  6872. case $deplibs_check_method in
  6873. "file_magic "*)
  6874. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6875. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6876. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6877. $EGREP "$file_magic_regex" > /dev/null; then
  6878. :
  6879. else
  6880. cat <<_LT_EOF 1>&2
  6881. *** Warning: the command libtool uses to detect shared libraries,
  6882. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6883. *** The result is that libtool may fail to recognize shared libraries
  6884. *** as such. This will affect the creation of libtool libraries that
  6885. *** depend on shared libraries, but programs linked with such libtool
  6886. *** libraries will work regardless of this problem. Nevertheless, you
  6887. *** may want to report the problem to your system manager and/or to
  6888. *** bug-libtool@gnu.org
  6889. _LT_EOF
  6890. fi ;;
  6891. esac
  6892. fi
  6893. break
  6894. fi
  6895. done
  6896. IFS="$lt_save_ifs"
  6897. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6898. ;;
  6899. esac
  6900. fi
  6901. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6902. if test -n "$MAGIC_CMD"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6904. $as_echo "$MAGIC_CMD" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6910. if test -n "$ac_tool_prefix"; then
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6912. $as_echo_n "checking for file... " >&6; }
  6913. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6914. $as_echo_n "(cached) " >&6
  6915. else
  6916. case $MAGIC_CMD in
  6917. [\\/*] | ?:[\\/]*)
  6918. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6919. ;;
  6920. *)
  6921. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6922. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6923. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6924. for ac_dir in $ac_dummy; do
  6925. IFS="$lt_save_ifs"
  6926. test -z "$ac_dir" && ac_dir=.
  6927. if test -f $ac_dir/file; then
  6928. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6929. if test -n "$file_magic_test_file"; then
  6930. case $deplibs_check_method in
  6931. "file_magic "*)
  6932. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6933. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6934. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6935. $EGREP "$file_magic_regex" > /dev/null; then
  6936. :
  6937. else
  6938. cat <<_LT_EOF 1>&2
  6939. *** Warning: the command libtool uses to detect shared libraries,
  6940. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6941. *** The result is that libtool may fail to recognize shared libraries
  6942. *** as such. This will affect the creation of libtool libraries that
  6943. *** depend on shared libraries, but programs linked with such libtool
  6944. *** libraries will work regardless of this problem. Nevertheless, you
  6945. *** may want to report the problem to your system manager and/or to
  6946. *** bug-libtool@gnu.org
  6947. _LT_EOF
  6948. fi ;;
  6949. esac
  6950. fi
  6951. break
  6952. fi
  6953. done
  6954. IFS="$lt_save_ifs"
  6955. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6956. ;;
  6957. esac
  6958. fi
  6959. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6960. if test -n "$MAGIC_CMD"; then
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6962. $as_echo "$MAGIC_CMD" >&6; }
  6963. else
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6965. $as_echo "no" >&6; }
  6966. fi
  6967. else
  6968. MAGIC_CMD=:
  6969. fi
  6970. fi
  6971. fi
  6972. ;;
  6973. esac
  6974. # Use C for the default configuration in the libtool script
  6975. lt_save_CC="$CC"
  6976. ac_ext=c
  6977. ac_cpp='$CPP $CPPFLAGS'
  6978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6981. # Source file extension for C test sources.
  6982. ac_ext=c
  6983. # Object file extension for compiled C test sources.
  6984. objext=o
  6985. objext=$objext
  6986. # Code to be used in simple compile tests
  6987. lt_simple_compile_test_code="int some_variable = 0;"
  6988. # Code to be used in simple link tests
  6989. lt_simple_link_test_code='int main(){return(0);}'
  6990. # If no C compiler was specified, use CC.
  6991. LTCC=${LTCC-"$CC"}
  6992. # If no C compiler flags were specified, use CFLAGS.
  6993. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6994. # Allow CC to be a program name with arguments.
  6995. compiler=$CC
  6996. # Save the default compiler, since it gets overwritten when the other
  6997. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6998. compiler_DEFAULT=$CC
  6999. # save warnings/boilerplate of simple test code
  7000. ac_outfile=conftest.$ac_objext
  7001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7003. _lt_compiler_boilerplate=`cat conftest.err`
  7004. $RM conftest*
  7005. ac_outfile=conftest.$ac_objext
  7006. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7007. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7008. _lt_linker_boilerplate=`cat conftest.err`
  7009. $RM -r conftest*
  7010. ## CAVEAT EMPTOR:
  7011. ## There is no encapsulation within the following macros, do not change
  7012. ## the running order or otherwise move them around unless you know exactly
  7013. ## what you are doing...
  7014. if test -n "$compiler"; then
  7015. lt_prog_compiler_no_builtin_flag=
  7016. if test "$GCC" = yes; then
  7017. case $cc_basename in
  7018. nvcc*)
  7019. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7020. *)
  7021. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7022. esac
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7024. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7025. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7026. $as_echo_n "(cached) " >&6
  7027. else
  7028. lt_cv_prog_compiler_rtti_exceptions=no
  7029. ac_outfile=conftest.$ac_objext
  7030. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7031. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7032. # Insert the option either (1) after the last *FLAGS variable, or
  7033. # (2) before a word containing "conftest.", or (3) at the end.
  7034. # Note that $ac_compile itself does not contain backslashes and begins
  7035. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7036. # The option is referenced via a variable to avoid confusing sed.
  7037. lt_compile=`echo "$ac_compile" | $SED \
  7038. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7039. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7040. -e 's:$: $lt_compiler_flag:'`
  7041. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7042. (eval "$lt_compile" 2>conftest.err)
  7043. ac_status=$?
  7044. cat conftest.err >&5
  7045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7046. if (exit $ac_status) && test -s "$ac_outfile"; then
  7047. # The compiler can only warn and ignore the option if not recognized
  7048. # So say no if there are warnings other than the usual output.
  7049. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7050. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7051. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7052. lt_cv_prog_compiler_rtti_exceptions=yes
  7053. fi
  7054. fi
  7055. $RM conftest*
  7056. fi
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7058. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7059. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7060. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7061. else
  7062. :
  7063. fi
  7064. fi
  7065. lt_prog_compiler_wl=
  7066. lt_prog_compiler_pic=
  7067. lt_prog_compiler_static=
  7068. if test "$GCC" = yes; then
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_static='-static'
  7071. case $host_os in
  7072. aix*)
  7073. # All AIX code is PIC.
  7074. if test "$host_cpu" = ia64; then
  7075. # AIX 5 now supports IA64 processor
  7076. lt_prog_compiler_static='-Bstatic'
  7077. fi
  7078. ;;
  7079. amigaos*)
  7080. case $host_cpu in
  7081. powerpc)
  7082. # see comment about AmigaOS4 .so support
  7083. lt_prog_compiler_pic='-fPIC'
  7084. ;;
  7085. m68k)
  7086. # FIXME: we need at least 68020 code to build shared libraries, but
  7087. # adding the `-m68020' flag to GCC prevents building anything better,
  7088. # like `-m68040'.
  7089. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7090. ;;
  7091. esac
  7092. ;;
  7093. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7094. # PIC is the default for these OSes.
  7095. ;;
  7096. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7097. # This hack is so that the source file can tell whether it is being
  7098. # built for inclusion in a dll (and should export symbols for example).
  7099. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7100. # (--disable-auto-import) libraries
  7101. lt_prog_compiler_pic='-DDLL_EXPORT'
  7102. ;;
  7103. darwin* | rhapsody*)
  7104. # PIC is the default on this platform
  7105. # Common symbols not allowed in MH_DYLIB files
  7106. lt_prog_compiler_pic='-fno-common'
  7107. ;;
  7108. haiku*)
  7109. # PIC is the default for Haiku.
  7110. # The "-static" flag exists, but is broken.
  7111. lt_prog_compiler_static=
  7112. ;;
  7113. hpux*)
  7114. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7115. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7116. # sets the default TLS model and affects inlining.
  7117. case $host_cpu in
  7118. hppa*64*)
  7119. # +Z the default
  7120. ;;
  7121. *)
  7122. lt_prog_compiler_pic='-fPIC'
  7123. ;;
  7124. esac
  7125. ;;
  7126. interix[3-9]*)
  7127. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7128. # Instead, we relocate shared libraries at runtime.
  7129. ;;
  7130. msdosdjgpp*)
  7131. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7132. # on systems that don't support them.
  7133. lt_prog_compiler_can_build_shared=no
  7134. enable_shared=no
  7135. ;;
  7136. *nto* | *qnx*)
  7137. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7138. # it will coredump.
  7139. lt_prog_compiler_pic='-fPIC -shared'
  7140. ;;
  7141. sysv4*MP*)
  7142. if test -d /usr/nec; then
  7143. lt_prog_compiler_pic=-Kconform_pic
  7144. fi
  7145. ;;
  7146. *)
  7147. lt_prog_compiler_pic='-fPIC'
  7148. ;;
  7149. esac
  7150. case $cc_basename in
  7151. nvcc*) # Cuda Compiler Driver 2.2
  7152. lt_prog_compiler_wl='-Xlinker '
  7153. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7154. ;;
  7155. esac
  7156. else
  7157. # PORTME Check for flag to pass linker flags through the system compiler.
  7158. case $host_os in
  7159. aix*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. if test "$host_cpu" = ia64; then
  7162. # AIX 5 now supports IA64 processor
  7163. lt_prog_compiler_static='-Bstatic'
  7164. else
  7165. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7166. fi
  7167. ;;
  7168. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7169. # This hack is so that the source file can tell whether it is being
  7170. # built for inclusion in a dll (and should export symbols for example).
  7171. lt_prog_compiler_pic='-DDLL_EXPORT'
  7172. ;;
  7173. hpux9* | hpux10* | hpux11*)
  7174. lt_prog_compiler_wl='-Wl,'
  7175. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7176. # not for PA HP-UX.
  7177. case $host_cpu in
  7178. hppa*64*|ia64*)
  7179. # +Z the default
  7180. ;;
  7181. *)
  7182. lt_prog_compiler_pic='+Z'
  7183. ;;
  7184. esac
  7185. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7186. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7187. ;;
  7188. irix5* | irix6* | nonstopux*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. # PIC (with -KPIC) is the default.
  7191. lt_prog_compiler_static='-non_shared'
  7192. ;;
  7193. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7194. case $cc_basename in
  7195. # old Intel for x86_64 which still supported -KPIC.
  7196. ecc*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. lt_prog_compiler_pic='-KPIC'
  7199. lt_prog_compiler_static='-static'
  7200. ;;
  7201. # icc used to be incompatible with GCC.
  7202. # ICC 10 doesn't accept -KPIC any more.
  7203. icc* | ifort*)
  7204. lt_prog_compiler_wl='-Wl,'
  7205. lt_prog_compiler_pic='-fPIC'
  7206. lt_prog_compiler_static='-static'
  7207. ;;
  7208. # Lahey Fortran 8.1.
  7209. lf95*)
  7210. lt_prog_compiler_wl='-Wl,'
  7211. lt_prog_compiler_pic='--shared'
  7212. lt_prog_compiler_static='--static'
  7213. ;;
  7214. nagfor*)
  7215. # NAG Fortran compiler
  7216. lt_prog_compiler_wl='-Wl,-Wl,,'
  7217. lt_prog_compiler_pic='-PIC'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. ;;
  7220. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7221. # Portland Group compilers (*not* the Pentium gcc compiler,
  7222. # which looks to be a dead project)
  7223. lt_prog_compiler_wl='-Wl,'
  7224. lt_prog_compiler_pic='-fpic'
  7225. lt_prog_compiler_static='-Bstatic'
  7226. ;;
  7227. ccc*)
  7228. lt_prog_compiler_wl='-Wl,'
  7229. # All Alpha code is PIC.
  7230. lt_prog_compiler_static='-non_shared'
  7231. ;;
  7232. xl* | bgxl* | bgf* | mpixl*)
  7233. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7234. lt_prog_compiler_wl='-Wl,'
  7235. lt_prog_compiler_pic='-qpic'
  7236. lt_prog_compiler_static='-qstaticlink'
  7237. ;;
  7238. *)
  7239. case `$CC -V 2>&1 | sed 5q` in
  7240. *Sun\ F* | *Sun*Fortran*)
  7241. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7242. lt_prog_compiler_pic='-KPIC'
  7243. lt_prog_compiler_static='-Bstatic'
  7244. lt_prog_compiler_wl=''
  7245. ;;
  7246. *Sun\ C*)
  7247. # Sun C 5.9
  7248. lt_prog_compiler_pic='-KPIC'
  7249. lt_prog_compiler_static='-Bstatic'
  7250. lt_prog_compiler_wl='-Wl,'
  7251. ;;
  7252. esac
  7253. ;;
  7254. esac
  7255. ;;
  7256. newsos6)
  7257. lt_prog_compiler_pic='-KPIC'
  7258. lt_prog_compiler_static='-Bstatic'
  7259. ;;
  7260. *nto* | *qnx*)
  7261. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7262. # it will coredump.
  7263. lt_prog_compiler_pic='-fPIC -shared'
  7264. ;;
  7265. osf3* | osf4* | osf5*)
  7266. lt_prog_compiler_wl='-Wl,'
  7267. # All OSF/1 code is PIC.
  7268. lt_prog_compiler_static='-non_shared'
  7269. ;;
  7270. rdos*)
  7271. lt_prog_compiler_static='-non_shared'
  7272. ;;
  7273. solaris*)
  7274. lt_prog_compiler_pic='-KPIC'
  7275. lt_prog_compiler_static='-Bstatic'
  7276. case $cc_basename in
  7277. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7278. lt_prog_compiler_wl='-Qoption ld ';;
  7279. *)
  7280. lt_prog_compiler_wl='-Wl,';;
  7281. esac
  7282. ;;
  7283. sunos4*)
  7284. lt_prog_compiler_wl='-Qoption ld '
  7285. lt_prog_compiler_pic='-PIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. sysv4 | sysv4.2uw2* | sysv4.3*)
  7289. lt_prog_compiler_wl='-Wl,'
  7290. lt_prog_compiler_pic='-KPIC'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. ;;
  7293. sysv4*MP*)
  7294. if test -d /usr/nec ;then
  7295. lt_prog_compiler_pic='-Kconform_pic'
  7296. lt_prog_compiler_static='-Bstatic'
  7297. fi
  7298. ;;
  7299. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_pic='-KPIC'
  7302. lt_prog_compiler_static='-Bstatic'
  7303. ;;
  7304. unicos*)
  7305. lt_prog_compiler_wl='-Wl,'
  7306. lt_prog_compiler_can_build_shared=no
  7307. ;;
  7308. uts4*)
  7309. lt_prog_compiler_pic='-pic'
  7310. lt_prog_compiler_static='-Bstatic'
  7311. ;;
  7312. *)
  7313. lt_prog_compiler_can_build_shared=no
  7314. ;;
  7315. esac
  7316. fi
  7317. case $host_os in
  7318. # For platforms which do not support PIC, -DPIC is meaningless:
  7319. *djgpp*)
  7320. lt_prog_compiler_pic=
  7321. ;;
  7322. *)
  7323. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7324. ;;
  7325. esac
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7327. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7328. if test "${lt_cv_prog_compiler_pic+set}" = set; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7332. fi
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7334. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7335. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7336. #
  7337. # Check to make sure the PIC flag actually works.
  7338. #
  7339. if test -n "$lt_prog_compiler_pic"; then
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7341. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7342. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7343. $as_echo_n "(cached) " >&6
  7344. else
  7345. lt_cv_prog_compiler_pic_works=no
  7346. ac_outfile=conftest.$ac_objext
  7347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7348. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7349. # Insert the option either (1) after the last *FLAGS variable, or
  7350. # (2) before a word containing "conftest.", or (3) at the end.
  7351. # Note that $ac_compile itself does not contain backslashes and begins
  7352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7353. # The option is referenced via a variable to avoid confusing sed.
  7354. lt_compile=`echo "$ac_compile" | $SED \
  7355. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7356. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7357. -e 's:$: $lt_compiler_flag:'`
  7358. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7359. (eval "$lt_compile" 2>conftest.err)
  7360. ac_status=$?
  7361. cat conftest.err >&5
  7362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7363. if (exit $ac_status) && test -s "$ac_outfile"; then
  7364. # The compiler can only warn and ignore the option if not recognized
  7365. # So say no if there are warnings other than the usual output.
  7366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7367. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7368. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7369. lt_cv_prog_compiler_pic_works=yes
  7370. fi
  7371. fi
  7372. $RM conftest*
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7375. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7376. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7377. case $lt_prog_compiler_pic in
  7378. "" | " "*) ;;
  7379. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7380. esac
  7381. else
  7382. lt_prog_compiler_pic=
  7383. lt_prog_compiler_can_build_shared=no
  7384. fi
  7385. fi
  7386. #
  7387. # Check to make sure the static flag actually works.
  7388. #
  7389. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7391. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7392. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7393. $as_echo_n "(cached) " >&6
  7394. else
  7395. lt_cv_prog_compiler_static_works=no
  7396. save_LDFLAGS="$LDFLAGS"
  7397. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7398. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7399. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7400. # The linker can only warn and ignore the option if not recognized
  7401. # So say no if there are warnings
  7402. if test -s conftest.err; then
  7403. # Append any errors to the config.log.
  7404. cat conftest.err 1>&5
  7405. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7406. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7407. if diff conftest.exp conftest.er2 >/dev/null; then
  7408. lt_cv_prog_compiler_static_works=yes
  7409. fi
  7410. else
  7411. lt_cv_prog_compiler_static_works=yes
  7412. fi
  7413. fi
  7414. $RM -r conftest*
  7415. LDFLAGS="$save_LDFLAGS"
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7418. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7419. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7420. :
  7421. else
  7422. lt_prog_compiler_static=
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7425. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7426. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7427. $as_echo_n "(cached) " >&6
  7428. else
  7429. lt_cv_prog_compiler_c_o=no
  7430. $RM -r conftest 2>/dev/null
  7431. mkdir conftest
  7432. cd conftest
  7433. mkdir out
  7434. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7435. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7436. # Insert the option either (1) after the last *FLAGS variable, or
  7437. # (2) before a word containing "conftest.", or (3) at the end.
  7438. # Note that $ac_compile itself does not contain backslashes and begins
  7439. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7440. lt_compile=`echo "$ac_compile" | $SED \
  7441. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7442. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7443. -e 's:$: $lt_compiler_flag:'`
  7444. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7445. (eval "$lt_compile" 2>out/conftest.err)
  7446. ac_status=$?
  7447. cat out/conftest.err >&5
  7448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7450. then
  7451. # The compiler can only warn and ignore the option if not recognized
  7452. # So say no if there are warnings
  7453. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7454. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7455. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7456. lt_cv_prog_compiler_c_o=yes
  7457. fi
  7458. fi
  7459. chmod u+w . 2>&5
  7460. $RM conftest*
  7461. # SGI C++ compiler will create directory out/ii_files/ for
  7462. # template instantiation
  7463. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7464. $RM out/* && rmdir out
  7465. cd ..
  7466. $RM -r conftest
  7467. $RM conftest*
  7468. fi
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7470. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7472. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7473. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7474. $as_echo_n "(cached) " >&6
  7475. else
  7476. lt_cv_prog_compiler_c_o=no
  7477. $RM -r conftest 2>/dev/null
  7478. mkdir conftest
  7479. cd conftest
  7480. mkdir out
  7481. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7482. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7483. # Insert the option either (1) after the last *FLAGS variable, or
  7484. # (2) before a word containing "conftest.", or (3) at the end.
  7485. # Note that $ac_compile itself does not contain backslashes and begins
  7486. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7487. lt_compile=`echo "$ac_compile" | $SED \
  7488. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7489. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7490. -e 's:$: $lt_compiler_flag:'`
  7491. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7492. (eval "$lt_compile" 2>out/conftest.err)
  7493. ac_status=$?
  7494. cat out/conftest.err >&5
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7497. then
  7498. # The compiler can only warn and ignore the option if not recognized
  7499. # So say no if there are warnings
  7500. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7501. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7502. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7503. lt_cv_prog_compiler_c_o=yes
  7504. fi
  7505. fi
  7506. chmod u+w . 2>&5
  7507. $RM conftest*
  7508. # SGI C++ compiler will create directory out/ii_files/ for
  7509. # template instantiation
  7510. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7511. $RM out/* && rmdir out
  7512. cd ..
  7513. $RM -r conftest
  7514. $RM conftest*
  7515. fi
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7517. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7518. hard_links="nottested"
  7519. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7520. # do not overwrite the value of need_locks provided by the user
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7522. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7523. hard_links=yes
  7524. $RM conftest*
  7525. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7526. touch conftest.a
  7527. ln conftest.a conftest.b 2>&5 || hard_links=no
  7528. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7530. $as_echo "$hard_links" >&6; }
  7531. if test "$hard_links" = no; then
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7533. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7534. need_locks=warn
  7535. fi
  7536. else
  7537. need_locks=no
  7538. fi
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7540. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7541. runpath_var=
  7542. allow_undefined_flag=
  7543. always_export_symbols=no
  7544. archive_cmds=
  7545. archive_expsym_cmds=
  7546. compiler_needs_object=no
  7547. enable_shared_with_static_runtimes=no
  7548. export_dynamic_flag_spec=
  7549. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7550. hardcode_automatic=no
  7551. hardcode_direct=no
  7552. hardcode_direct_absolute=no
  7553. hardcode_libdir_flag_spec=
  7554. hardcode_libdir_flag_spec_ld=
  7555. hardcode_libdir_separator=
  7556. hardcode_minus_L=no
  7557. hardcode_shlibpath_var=unsupported
  7558. inherit_rpath=no
  7559. link_all_deplibs=unknown
  7560. module_cmds=
  7561. module_expsym_cmds=
  7562. old_archive_from_new_cmds=
  7563. old_archive_from_expsyms_cmds=
  7564. thread_safe_flag_spec=
  7565. whole_archive_flag_spec=
  7566. # include_expsyms should be a list of space-separated symbols to be *always*
  7567. # included in the symbol list
  7568. include_expsyms=
  7569. # exclude_expsyms can be an extended regexp of symbols to exclude
  7570. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7571. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7572. # as well as any symbol that contains `d'.
  7573. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7574. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7575. # platforms (ab)use it in PIC code, but their linkers get confused if
  7576. # the symbol is explicitly referenced. Since portable code cannot
  7577. # rely on this symbol name, it's probably fine to never include it in
  7578. # preloaded symbol tables.
  7579. # Exclude shared library initialization/finalization symbols.
  7580. extract_expsyms_cmds=
  7581. case $host_os in
  7582. cygwin* | mingw* | pw32* | cegcc*)
  7583. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7584. # When not using gcc, we currently assume that we are using
  7585. # Microsoft Visual C++.
  7586. if test "$GCC" != yes; then
  7587. with_gnu_ld=no
  7588. fi
  7589. ;;
  7590. interix*)
  7591. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7592. with_gnu_ld=yes
  7593. ;;
  7594. openbsd*)
  7595. with_gnu_ld=no
  7596. ;;
  7597. linux* | k*bsd*-gnu | gnu*)
  7598. link_all_deplibs=no
  7599. ;;
  7600. esac
  7601. ld_shlibs=yes
  7602. # On some targets, GNU ld is compatible enough with the native linker
  7603. # that we're better off using the native interface for both.
  7604. lt_use_gnu_ld_interface=no
  7605. if test "$with_gnu_ld" = yes; then
  7606. case $host_os in
  7607. aix*)
  7608. # The AIX port of GNU ld has always aspired to compatibility
  7609. # with the native linker. However, as the warning in the GNU ld
  7610. # block says, versions before 2.19.5* couldn't really create working
  7611. # shared libraries, regardless of the interface used.
  7612. case `$LD -v 2>&1` in
  7613. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7614. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7615. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7616. *)
  7617. lt_use_gnu_ld_interface=yes
  7618. ;;
  7619. esac
  7620. ;;
  7621. *)
  7622. lt_use_gnu_ld_interface=yes
  7623. ;;
  7624. esac
  7625. fi
  7626. if test "$lt_use_gnu_ld_interface" = yes; then
  7627. # If archive_cmds runs LD, not CC, wlarc should be empty
  7628. wlarc='${wl}'
  7629. # Set some defaults for GNU ld with shared library support. These
  7630. # are reset later if shared libraries are not supported. Putting them
  7631. # here allows them to be overridden if necessary.
  7632. runpath_var=LD_RUN_PATH
  7633. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7634. export_dynamic_flag_spec='${wl}--export-dynamic'
  7635. # ancient GNU ld didn't support --whole-archive et. al.
  7636. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7637. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7638. else
  7639. whole_archive_flag_spec=
  7640. fi
  7641. supports_anon_versioning=no
  7642. case `$LD -v 2>&1` in
  7643. *GNU\ gold*) supports_anon_versioning=yes ;;
  7644. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7645. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7646. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7647. *\ 2.11.*) ;; # other 2.11 versions
  7648. *) supports_anon_versioning=yes ;;
  7649. esac
  7650. # See if GNU ld supports shared libraries.
  7651. case $host_os in
  7652. aix[3-9]*)
  7653. # On AIX/PPC, the GNU linker is very broken
  7654. if test "$host_cpu" != ia64; then
  7655. ld_shlibs=no
  7656. cat <<_LT_EOF 1>&2
  7657. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7658. *** to be unable to reliably create shared libraries on AIX.
  7659. *** Therefore, libtool is disabling shared libraries support. If you
  7660. *** really care for shared libraries, you may want to install binutils
  7661. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7662. *** You will then need to restart the configuration process.
  7663. _LT_EOF
  7664. fi
  7665. ;;
  7666. amigaos*)
  7667. case $host_cpu in
  7668. powerpc)
  7669. # see comment about AmigaOS4 .so support
  7670. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7671. archive_expsym_cmds=''
  7672. ;;
  7673. m68k)
  7674. 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)'
  7675. hardcode_libdir_flag_spec='-L$libdir'
  7676. hardcode_minus_L=yes
  7677. ;;
  7678. esac
  7679. ;;
  7680. beos*)
  7681. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7682. allow_undefined_flag=unsupported
  7683. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7684. # support --undefined. This deserves some investigation. FIXME
  7685. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. else
  7687. ld_shlibs=no
  7688. fi
  7689. ;;
  7690. cygwin* | mingw* | pw32* | cegcc*)
  7691. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7692. # as there is no search path for DLLs.
  7693. hardcode_libdir_flag_spec='-L$libdir'
  7694. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7695. allow_undefined_flag=unsupported
  7696. always_export_symbols=no
  7697. enable_shared_with_static_runtimes=yes
  7698. 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'
  7699. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7700. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7701. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7702. # If the export-symbols file already is a .def file (1st line
  7703. # is EXPORTS), use it as is; otherwise, prepend...
  7704. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7705. cp $export_symbols $output_objdir/$soname.def;
  7706. else
  7707. echo EXPORTS > $output_objdir/$soname.def;
  7708. cat $export_symbols >> $output_objdir/$soname.def;
  7709. fi~
  7710. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7711. else
  7712. ld_shlibs=no
  7713. fi
  7714. ;;
  7715. haiku*)
  7716. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7717. link_all_deplibs=yes
  7718. ;;
  7719. interix[3-9]*)
  7720. hardcode_direct=no
  7721. hardcode_shlibpath_var=no
  7722. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7723. export_dynamic_flag_spec='${wl}-E'
  7724. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7725. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7726. # default) and relocated if they conflict, which is a slow very memory
  7727. # consuming and fragmenting process. To avoid this, we pick a random,
  7728. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7729. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7730. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7731. 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'
  7732. ;;
  7733. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7734. tmp_diet=no
  7735. if test "$host_os" = linux-dietlibc; then
  7736. case $cc_basename in
  7737. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7738. esac
  7739. fi
  7740. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7741. && test "$tmp_diet" = no
  7742. then
  7743. tmp_addflag=' $pic_flag'
  7744. tmp_sharedflag='-shared'
  7745. case $cc_basename,$host_cpu in
  7746. pgcc*) # Portland Group C compiler
  7747. 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'
  7748. tmp_addflag=' $pic_flag'
  7749. ;;
  7750. pgf77* | pgf90* | pgf95* | pgfortran*)
  7751. # Portland Group f77 and f90 compilers
  7752. 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'
  7753. tmp_addflag=' $pic_flag -Mnomain' ;;
  7754. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7755. tmp_addflag=' -i_dynamic' ;;
  7756. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7757. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7758. ifc* | ifort*) # Intel Fortran compiler
  7759. tmp_addflag=' -nofor_main' ;;
  7760. lf95*) # Lahey Fortran 8.1
  7761. whole_archive_flag_spec=
  7762. tmp_sharedflag='--shared' ;;
  7763. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7764. tmp_sharedflag='-qmkshrobj'
  7765. tmp_addflag= ;;
  7766. nvcc*) # Cuda Compiler Driver 2.2
  7767. 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'
  7768. compiler_needs_object=yes
  7769. ;;
  7770. esac
  7771. case `$CC -V 2>&1 | sed 5q` in
  7772. *Sun\ C*) # Sun C 5.9
  7773. 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'
  7774. compiler_needs_object=yes
  7775. tmp_sharedflag='-G' ;;
  7776. *Sun\ F*) # Sun Fortran 8.3
  7777. tmp_sharedflag='-G' ;;
  7778. esac
  7779. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7780. if test "x$supports_anon_versioning" = xyes; then
  7781. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7782. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7783. echo "local: *; };" >> $output_objdir/$libname.ver~
  7784. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7785. fi
  7786. case $cc_basename in
  7787. xlf* | bgf* | bgxlf* | mpixlf*)
  7788. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7789. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7790. hardcode_libdir_flag_spec=
  7791. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7792. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7793. if test "x$supports_anon_versioning" = xyes; then
  7794. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7795. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7796. echo "local: *; };" >> $output_objdir/$libname.ver~
  7797. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7798. fi
  7799. ;;
  7800. esac
  7801. else
  7802. ld_shlibs=no
  7803. fi
  7804. ;;
  7805. netbsd* | netbsdelf*-gnu)
  7806. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7807. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7808. wlarc=
  7809. else
  7810. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7811. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7812. fi
  7813. ;;
  7814. solaris*)
  7815. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7816. ld_shlibs=no
  7817. cat <<_LT_EOF 1>&2
  7818. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7819. *** create shared libraries on Solaris systems. Therefore, libtool
  7820. *** is disabling shared libraries support. We urge you to upgrade GNU
  7821. *** binutils to release 2.9.1 or newer. Another option is to modify
  7822. *** your PATH or compiler configuration so that the native linker is
  7823. *** used, and then restart.
  7824. _LT_EOF
  7825. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7826. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7827. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7828. else
  7829. ld_shlibs=no
  7830. fi
  7831. ;;
  7832. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7833. case `$LD -v 2>&1` in
  7834. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7835. ld_shlibs=no
  7836. cat <<_LT_EOF 1>&2
  7837. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7838. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7839. *** is disabling shared libraries support. We urge you to upgrade GNU
  7840. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7841. *** your PATH or compiler configuration so that the native linker is
  7842. *** used, and then restart.
  7843. _LT_EOF
  7844. ;;
  7845. *)
  7846. # For security reasons, it is highly recommended that you always
  7847. # use absolute paths for naming shared libraries, and exclude the
  7848. # DT_RUNPATH tag from executables and libraries. But doing so
  7849. # requires that you compile everything twice, which is a pain.
  7850. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7851. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7852. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7853. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7854. else
  7855. ld_shlibs=no
  7856. fi
  7857. ;;
  7858. esac
  7859. ;;
  7860. sunos4*)
  7861. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7862. wlarc=
  7863. hardcode_direct=yes
  7864. hardcode_shlibpath_var=no
  7865. ;;
  7866. *)
  7867. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7868. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7869. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7870. else
  7871. ld_shlibs=no
  7872. fi
  7873. ;;
  7874. esac
  7875. if test "$ld_shlibs" = no; then
  7876. runpath_var=
  7877. hardcode_libdir_flag_spec=
  7878. export_dynamic_flag_spec=
  7879. whole_archive_flag_spec=
  7880. fi
  7881. else
  7882. # PORTME fill in a description of your system's linker (not GNU ld)
  7883. case $host_os in
  7884. aix3*)
  7885. allow_undefined_flag=unsupported
  7886. always_export_symbols=yes
  7887. 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'
  7888. # Note: this linker hardcodes the directories in LIBPATH if there
  7889. # are no directories specified by -L.
  7890. hardcode_minus_L=yes
  7891. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7892. # Neither direct hardcoding nor static linking is supported with a
  7893. # broken collect2.
  7894. hardcode_direct=unsupported
  7895. fi
  7896. ;;
  7897. aix[4-9]*)
  7898. if test "$host_cpu" = ia64; then
  7899. # On IA64, the linker does run time linking by default, so we don't
  7900. # have to do anything special.
  7901. aix_use_runtimelinking=no
  7902. exp_sym_flag='-Bexport'
  7903. no_entry_flag=""
  7904. else
  7905. # If we're using GNU nm, then we don't want the "-C" option.
  7906. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7907. # Also, AIX nm treats weak defined symbols like other global
  7908. # defined symbols, whereas GNU nm marks them as "W".
  7909. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7910. 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'
  7911. else
  7912. 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'
  7913. fi
  7914. aix_use_runtimelinking=no
  7915. # Test if we are trying to use run time linking or normal
  7916. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7917. # need to do runtime linking.
  7918. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7919. for ld_flag in $LDFLAGS; do
  7920. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7921. aix_use_runtimelinking=yes
  7922. break
  7923. fi
  7924. done
  7925. ;;
  7926. esac
  7927. exp_sym_flag='-bexport'
  7928. no_entry_flag='-bnoentry'
  7929. fi
  7930. # When large executables or shared objects are built, AIX ld can
  7931. # have problems creating the table of contents. If linking a library
  7932. # or program results in "error TOC overflow" add -mminimal-toc to
  7933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7935. archive_cmds=''
  7936. hardcode_direct=yes
  7937. hardcode_direct_absolute=yes
  7938. hardcode_libdir_separator=':'
  7939. link_all_deplibs=yes
  7940. file_list_spec='${wl}-f,'
  7941. if test "$GCC" = yes; then
  7942. case $host_os in aix4.[012]|aix4.[012].*)
  7943. # We only want to do this on AIX 4.2 and lower, the check
  7944. # below for broken collect2 doesn't work under 4.3+
  7945. collect2name=`${CC} -print-prog-name=collect2`
  7946. if test -f "$collect2name" &&
  7947. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7948. then
  7949. # We have reworked collect2
  7950. :
  7951. else
  7952. # We have old collect2
  7953. hardcode_direct=unsupported
  7954. # It fails to find uninstalled libraries when the uninstalled
  7955. # path is not listed in the libpath. Setting hardcode_minus_L
  7956. # to unsupported forces relinking
  7957. hardcode_minus_L=yes
  7958. hardcode_libdir_flag_spec='-L$libdir'
  7959. hardcode_libdir_separator=
  7960. fi
  7961. ;;
  7962. esac
  7963. shared_flag='-shared'
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. shared_flag="$shared_flag "'${wl}-G'
  7966. fi
  7967. link_all_deplibs=no
  7968. else
  7969. # not using gcc
  7970. if test "$host_cpu" = ia64; then
  7971. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7972. # chokes on -Wl,-G. The following line is correct:
  7973. shared_flag='-G'
  7974. else
  7975. if test "$aix_use_runtimelinking" = yes; then
  7976. shared_flag='${wl}-G'
  7977. else
  7978. shared_flag='${wl}-bM:SRE'
  7979. fi
  7980. fi
  7981. fi
  7982. export_dynamic_flag_spec='${wl}-bexpall'
  7983. # It seems that -bexpall does not export symbols beginning with
  7984. # underscore (_), so it is better to generate a list of symbols to export.
  7985. always_export_symbols=yes
  7986. if test "$aix_use_runtimelinking" = yes; then
  7987. # Warning - without using the other runtime loading flags (-brtl),
  7988. # -berok will link without error, but may produce a broken library.
  7989. allow_undefined_flag='-berok'
  7990. # Determine the default libpath from the value encoded in an
  7991. # empty executable.
  7992. if test "${lt_cv_aix_libpath+set}" = set; then
  7993. aix_libpath=$lt_cv_aix_libpath
  7994. else
  7995. if test "${lt_cv_aix_libpath_+set}" = set; then :
  7996. $as_echo_n "(cached) " >&6
  7997. else
  7998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7999. /* end confdefs.h. */
  8000. int
  8001. main ()
  8002. {
  8003. ;
  8004. return 0;
  8005. }
  8006. _ACEOF
  8007. if ac_fn_c_try_link "$LINENO"; then :
  8008. lt_aix_libpath_sed='
  8009. /Import File Strings/,/^$/ {
  8010. /^0/ {
  8011. s/^0 *\([^ ]*\) *$/\1/
  8012. p
  8013. }
  8014. }'
  8015. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8016. # Check for a 64-bit object if we didn't find anything.
  8017. if test -z "$lt_cv_aix_libpath_"; then
  8018. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8019. fi
  8020. fi
  8021. rm -f core conftest.err conftest.$ac_objext \
  8022. conftest$ac_exeext conftest.$ac_ext
  8023. if test -z "$lt_cv_aix_libpath_"; then
  8024. lt_cv_aix_libpath_="/usr/lib:/lib"
  8025. fi
  8026. fi
  8027. aix_libpath=$lt_cv_aix_libpath_
  8028. fi
  8029. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8030. 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"
  8031. else
  8032. if test "$host_cpu" = ia64; then
  8033. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8034. allow_undefined_flag="-z nodefs"
  8035. 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"
  8036. else
  8037. # Determine the default libpath from the value encoded in an
  8038. # empty executable.
  8039. if test "${lt_cv_aix_libpath+set}" = set; then
  8040. aix_libpath=$lt_cv_aix_libpath
  8041. else
  8042. if test "${lt_cv_aix_libpath_+set}" = set; then :
  8043. $as_echo_n "(cached) " >&6
  8044. else
  8045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8046. /* end confdefs.h. */
  8047. int
  8048. main ()
  8049. {
  8050. ;
  8051. return 0;
  8052. }
  8053. _ACEOF
  8054. if ac_fn_c_try_link "$LINENO"; then :
  8055. lt_aix_libpath_sed='
  8056. /Import File Strings/,/^$/ {
  8057. /^0/ {
  8058. s/^0 *\([^ ]*\) *$/\1/
  8059. p
  8060. }
  8061. }'
  8062. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8063. # Check for a 64-bit object if we didn't find anything.
  8064. if test -z "$lt_cv_aix_libpath_"; then
  8065. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8066. fi
  8067. fi
  8068. rm -f core conftest.err conftest.$ac_objext \
  8069. conftest$ac_exeext conftest.$ac_ext
  8070. if test -z "$lt_cv_aix_libpath_"; then
  8071. lt_cv_aix_libpath_="/usr/lib:/lib"
  8072. fi
  8073. fi
  8074. aix_libpath=$lt_cv_aix_libpath_
  8075. fi
  8076. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8077. # Warning - without using the other run time loading flags,
  8078. # -berok will link without error, but may produce a broken library.
  8079. no_undefined_flag=' ${wl}-bernotok'
  8080. allow_undefined_flag=' ${wl}-berok'
  8081. if test "$with_gnu_ld" = yes; then
  8082. # We only use this code for GNU lds that support --whole-archive.
  8083. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8084. else
  8085. # Exported symbols can be pulled into shared objects from archives
  8086. whole_archive_flag_spec='$convenience'
  8087. fi
  8088. archive_cmds_need_lc=yes
  8089. # This is similar to how AIX traditionally builds its shared libraries.
  8090. 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'
  8091. fi
  8092. fi
  8093. ;;
  8094. amigaos*)
  8095. case $host_cpu in
  8096. powerpc)
  8097. # see comment about AmigaOS4 .so support
  8098. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8099. archive_expsym_cmds=''
  8100. ;;
  8101. m68k)
  8102. 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)'
  8103. hardcode_libdir_flag_spec='-L$libdir'
  8104. hardcode_minus_L=yes
  8105. ;;
  8106. esac
  8107. ;;
  8108. bsdi[45]*)
  8109. export_dynamic_flag_spec=-rdynamic
  8110. ;;
  8111. cygwin* | mingw* | pw32* | cegcc*)
  8112. # When not using gcc, we currently assume that we are using
  8113. # Microsoft Visual C++.
  8114. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8115. # no search path for DLLs.
  8116. case $cc_basename in
  8117. cl*)
  8118. # Native MSVC
  8119. hardcode_libdir_flag_spec=' '
  8120. allow_undefined_flag=unsupported
  8121. always_export_symbols=yes
  8122. file_list_spec='@'
  8123. # Tell ltmain to make .lib files, not .a files.
  8124. libext=lib
  8125. # Tell ltmain to make .dll files, not .so files.
  8126. shrext_cmds=".dll"
  8127. # FIXME: Setting linknames here is a bad hack.
  8128. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8129. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8130. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8131. else
  8132. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8133. fi~
  8134. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8135. linknames='
  8136. # The linker will not automatically build a static lib if we build a DLL.
  8137. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8138. enable_shared_with_static_runtimes=yes
  8139. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8140. # Don't use ranlib
  8141. old_postinstall_cmds='chmod 644 $oldlib'
  8142. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8143. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8144. case $lt_outputfile in
  8145. *.exe|*.EXE) ;;
  8146. *)
  8147. lt_outputfile="$lt_outputfile.exe"
  8148. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8149. ;;
  8150. esac~
  8151. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8152. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8153. $RM "$lt_outputfile.manifest";
  8154. fi'
  8155. ;;
  8156. *)
  8157. # Assume MSVC wrapper
  8158. hardcode_libdir_flag_spec=' '
  8159. allow_undefined_flag=unsupported
  8160. # Tell ltmain to make .lib files, not .a files.
  8161. libext=lib
  8162. # Tell ltmain to make .dll files, not .so files.
  8163. shrext_cmds=".dll"
  8164. # FIXME: Setting linknames here is a bad hack.
  8165. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8166. # The linker will automatically build a .lib file if we build a DLL.
  8167. old_archive_from_new_cmds='true'
  8168. # FIXME: Should let the user specify the lib program.
  8169. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8170. enable_shared_with_static_runtimes=yes
  8171. ;;
  8172. esac
  8173. ;;
  8174. darwin* | rhapsody*)
  8175. archive_cmds_need_lc=no
  8176. hardcode_direct=no
  8177. hardcode_automatic=yes
  8178. hardcode_shlibpath_var=unsupported
  8179. if test "$lt_cv_ld_force_load" = "yes"; then
  8180. 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\"`'
  8181. else
  8182. whole_archive_flag_spec=''
  8183. fi
  8184. link_all_deplibs=yes
  8185. allow_undefined_flag="$_lt_dar_allow_undefined"
  8186. case $cc_basename in
  8187. ifort*) _lt_dar_can_shared=yes ;;
  8188. *) _lt_dar_can_shared=$GCC ;;
  8189. esac
  8190. if test "$_lt_dar_can_shared" = "yes"; then
  8191. output_verbose_link_cmd=func_echo_all
  8192. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8193. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8194. 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}"
  8195. 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}"
  8196. else
  8197. ld_shlibs=no
  8198. fi
  8199. ;;
  8200. dgux*)
  8201. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8202. hardcode_libdir_flag_spec='-L$libdir'
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. freebsd1*)
  8206. ld_shlibs=no
  8207. ;;
  8208. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8209. # support. Future versions do this automatically, but an explicit c++rt0.o
  8210. # does not break anything, and helps significantly (at the cost of a little
  8211. # extra space).
  8212. freebsd2.2*)
  8213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8214. hardcode_libdir_flag_spec='-R$libdir'
  8215. hardcode_direct=yes
  8216. hardcode_shlibpath_var=no
  8217. ;;
  8218. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8219. freebsd2*)
  8220. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8221. hardcode_direct=yes
  8222. hardcode_minus_L=yes
  8223. hardcode_shlibpath_var=no
  8224. ;;
  8225. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8226. freebsd* | dragonfly*)
  8227. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8228. hardcode_libdir_flag_spec='-R$libdir'
  8229. hardcode_direct=yes
  8230. hardcode_shlibpath_var=no
  8231. ;;
  8232. hpux9*)
  8233. if test "$GCC" = yes; then
  8234. 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'
  8235. else
  8236. 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'
  8237. fi
  8238. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_direct=yes
  8241. # hardcode_minus_L: Not really in the search PATH,
  8242. # but as the default location of the library.
  8243. hardcode_minus_L=yes
  8244. export_dynamic_flag_spec='${wl}-E'
  8245. ;;
  8246. hpux10*)
  8247. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8248. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8249. else
  8250. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8251. fi
  8252. if test "$with_gnu_ld" = no; then
  8253. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8254. hardcode_libdir_flag_spec_ld='+b $libdir'
  8255. hardcode_libdir_separator=:
  8256. hardcode_direct=yes
  8257. hardcode_direct_absolute=yes
  8258. export_dynamic_flag_spec='${wl}-E'
  8259. # hardcode_minus_L: Not really in the search PATH,
  8260. # but as the default location of the library.
  8261. hardcode_minus_L=yes
  8262. fi
  8263. ;;
  8264. hpux11*)
  8265. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8266. case $host_cpu in
  8267. hppa*64*)
  8268. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8269. ;;
  8270. ia64*)
  8271. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8272. ;;
  8273. *)
  8274. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. esac
  8277. else
  8278. case $host_cpu in
  8279. hppa*64*)
  8280. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8281. ;;
  8282. ia64*)
  8283. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8284. ;;
  8285. *)
  8286. # Older versions of the 11.00 compiler do not understand -b yet
  8287. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8289. $as_echo_n "checking if $CC understands -b... " >&6; }
  8290. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8291. $as_echo_n "(cached) " >&6
  8292. else
  8293. lt_cv_prog_compiler__b=no
  8294. save_LDFLAGS="$LDFLAGS"
  8295. LDFLAGS="$LDFLAGS -b"
  8296. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8297. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8298. # The linker can only warn and ignore the option if not recognized
  8299. # So say no if there are warnings
  8300. if test -s conftest.err; then
  8301. # Append any errors to the config.log.
  8302. cat conftest.err 1>&5
  8303. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8304. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8305. if diff conftest.exp conftest.er2 >/dev/null; then
  8306. lt_cv_prog_compiler__b=yes
  8307. fi
  8308. else
  8309. lt_cv_prog_compiler__b=yes
  8310. fi
  8311. fi
  8312. $RM -r conftest*
  8313. LDFLAGS="$save_LDFLAGS"
  8314. fi
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8316. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8317. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8318. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8319. else
  8320. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8321. fi
  8322. ;;
  8323. esac
  8324. fi
  8325. if test "$with_gnu_ld" = no; then
  8326. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8327. hardcode_libdir_separator=:
  8328. case $host_cpu in
  8329. hppa*64*|ia64*)
  8330. hardcode_direct=no
  8331. hardcode_shlibpath_var=no
  8332. ;;
  8333. *)
  8334. hardcode_direct=yes
  8335. hardcode_direct_absolute=yes
  8336. export_dynamic_flag_spec='${wl}-E'
  8337. # hardcode_minus_L: Not really in the search PATH,
  8338. # but as the default location of the library.
  8339. hardcode_minus_L=yes
  8340. ;;
  8341. esac
  8342. fi
  8343. ;;
  8344. irix5* | irix6* | nonstopux*)
  8345. if test "$GCC" = yes; then
  8346. 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'
  8347. # Try to use the -exported_symbol ld option, if it does not
  8348. # work, assume that -exports_file does not work either and
  8349. # implicitly export all symbols.
  8350. # This should be the same for all languages, so no per-tag cache variable.
  8351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8352. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8353. if test "${lt_cv_irix_exported_symbol+set}" = set; then :
  8354. $as_echo_n "(cached) " >&6
  8355. else
  8356. save_LDFLAGS="$LDFLAGS"
  8357. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8359. /* end confdefs.h. */
  8360. int foo (void) { return 0; }
  8361. _ACEOF
  8362. if ac_fn_c_try_link "$LINENO"; then :
  8363. lt_cv_irix_exported_symbol=yes
  8364. else
  8365. lt_cv_irix_exported_symbol=no
  8366. fi
  8367. rm -f core conftest.err conftest.$ac_objext \
  8368. conftest$ac_exeext conftest.$ac_ext
  8369. LDFLAGS="$save_LDFLAGS"
  8370. fi
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8372. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8373. if test "$lt_cv_irix_exported_symbol" = yes; then
  8374. 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'
  8375. fi
  8376. else
  8377. 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'
  8378. 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'
  8379. fi
  8380. archive_cmds_need_lc='no'
  8381. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8382. hardcode_libdir_separator=:
  8383. inherit_rpath=yes
  8384. link_all_deplibs=yes
  8385. ;;
  8386. netbsd* | netbsdelf*-gnu)
  8387. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8388. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8389. else
  8390. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8391. fi
  8392. hardcode_libdir_flag_spec='-R$libdir'
  8393. hardcode_direct=yes
  8394. hardcode_shlibpath_var=no
  8395. ;;
  8396. newsos6)
  8397. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8398. hardcode_direct=yes
  8399. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8400. hardcode_libdir_separator=:
  8401. hardcode_shlibpath_var=no
  8402. ;;
  8403. *nto* | *qnx*)
  8404. ;;
  8405. openbsd*)
  8406. if test -f /usr/libexec/ld.so; then
  8407. hardcode_direct=yes
  8408. hardcode_shlibpath_var=no
  8409. hardcode_direct_absolute=yes
  8410. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8411. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8412. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8413. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8414. export_dynamic_flag_spec='${wl}-E'
  8415. else
  8416. case $host_os in
  8417. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8418. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_libdir_flag_spec='-R$libdir'
  8420. ;;
  8421. *)
  8422. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8423. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8424. ;;
  8425. esac
  8426. fi
  8427. else
  8428. ld_shlibs=no
  8429. fi
  8430. ;;
  8431. os2*)
  8432. hardcode_libdir_flag_spec='-L$libdir'
  8433. hardcode_minus_L=yes
  8434. allow_undefined_flag=unsupported
  8435. 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'
  8436. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8437. ;;
  8438. osf3*)
  8439. if test "$GCC" = yes; then
  8440. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8441. 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'
  8442. else
  8443. allow_undefined_flag=' -expect_unresolved \*'
  8444. 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'
  8445. fi
  8446. archive_cmds_need_lc='no'
  8447. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8448. hardcode_libdir_separator=:
  8449. ;;
  8450. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8451. if test "$GCC" = yes; then
  8452. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8453. 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'
  8454. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8455. else
  8456. allow_undefined_flag=' -expect_unresolved \*'
  8457. 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'
  8458. 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~
  8459. $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'
  8460. # Both c and cxx compiler support -rpath directly
  8461. hardcode_libdir_flag_spec='-rpath $libdir'
  8462. fi
  8463. archive_cmds_need_lc='no'
  8464. hardcode_libdir_separator=:
  8465. ;;
  8466. solaris*)
  8467. no_undefined_flag=' -z defs'
  8468. if test "$GCC" = yes; then
  8469. wlarc='${wl}'
  8470. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8472. $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'
  8473. else
  8474. case `$CC -V 2>&1` in
  8475. *"Compilers 5.0"*)
  8476. wlarc=''
  8477. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8478. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8479. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8480. ;;
  8481. *)
  8482. wlarc='${wl}'
  8483. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8484. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8485. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8486. ;;
  8487. esac
  8488. fi
  8489. hardcode_libdir_flag_spec='-R$libdir'
  8490. hardcode_shlibpath_var=no
  8491. case $host_os in
  8492. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8493. *)
  8494. # The compiler driver will combine and reorder linker options,
  8495. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8496. # but is careful enough not to reorder.
  8497. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8498. if test "$GCC" = yes; then
  8499. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8500. else
  8501. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8502. fi
  8503. ;;
  8504. esac
  8505. link_all_deplibs=yes
  8506. ;;
  8507. sunos4*)
  8508. if test "x$host_vendor" = xsequent; then
  8509. # Use $CC to link under sequent, because it throws in some extra .o
  8510. # files that make .init and .fini sections work.
  8511. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8512. else
  8513. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8514. fi
  8515. hardcode_libdir_flag_spec='-L$libdir'
  8516. hardcode_direct=yes
  8517. hardcode_minus_L=yes
  8518. hardcode_shlibpath_var=no
  8519. ;;
  8520. sysv4)
  8521. case $host_vendor in
  8522. sni)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_direct=yes # is this really true???
  8525. ;;
  8526. siemens)
  8527. ## LD is ld it makes a PLAMLIB
  8528. ## CC just makes a GrossModule.
  8529. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8530. reload_cmds='$CC -r -o $output$reload_objs'
  8531. hardcode_direct=no
  8532. ;;
  8533. motorola)
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8536. ;;
  8537. esac
  8538. runpath_var='LD_RUN_PATH'
  8539. hardcode_shlibpath_var=no
  8540. ;;
  8541. sysv4.3*)
  8542. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8543. hardcode_shlibpath_var=no
  8544. export_dynamic_flag_spec='-Bexport'
  8545. ;;
  8546. sysv4*MP*)
  8547. if test -d /usr/nec; then
  8548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8549. hardcode_shlibpath_var=no
  8550. runpath_var=LD_RUN_PATH
  8551. hardcode_runpath_var=yes
  8552. ld_shlibs=yes
  8553. fi
  8554. ;;
  8555. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8556. no_undefined_flag='${wl}-z,text'
  8557. archive_cmds_need_lc=no
  8558. hardcode_shlibpath_var=no
  8559. runpath_var='LD_RUN_PATH'
  8560. if test "$GCC" = yes; then
  8561. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8563. else
  8564. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. fi
  8567. ;;
  8568. sysv5* | sco3.2v5* | sco5v6*)
  8569. # Note: We can NOT use -z defs as we might desire, because we do not
  8570. # link with -lc, and that would cause any symbols used from libc to
  8571. # always be unresolved, which means just about no library would
  8572. # ever link correctly. If we're not using GNU ld we use -z text
  8573. # though, which does catch some bad symbols but isn't as heavy-handed
  8574. # as -z defs.
  8575. no_undefined_flag='${wl}-z,text'
  8576. allow_undefined_flag='${wl}-z,nodefs'
  8577. archive_cmds_need_lc=no
  8578. hardcode_shlibpath_var=no
  8579. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8580. hardcode_libdir_separator=':'
  8581. link_all_deplibs=yes
  8582. export_dynamic_flag_spec='${wl}-Bexport'
  8583. runpath_var='LD_RUN_PATH'
  8584. if test "$GCC" = yes; then
  8585. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8586. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8587. else
  8588. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8590. fi
  8591. ;;
  8592. uts4*)
  8593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8594. hardcode_libdir_flag_spec='-L$libdir'
  8595. hardcode_shlibpath_var=no
  8596. ;;
  8597. *)
  8598. ld_shlibs=no
  8599. ;;
  8600. esac
  8601. if test x$host_vendor = xsni; then
  8602. case $host in
  8603. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8604. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8605. ;;
  8606. esac
  8607. fi
  8608. fi
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8610. $as_echo "$ld_shlibs" >&6; }
  8611. test "$ld_shlibs" = no && can_build_shared=no
  8612. with_gnu_ld=$with_gnu_ld
  8613. #
  8614. # Do we need to explicitly link libc?
  8615. #
  8616. case "x$archive_cmds_need_lc" in
  8617. x|xyes)
  8618. # Assume -lc should be added
  8619. archive_cmds_need_lc=yes
  8620. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8621. case $archive_cmds in
  8622. *'~'*)
  8623. # FIXME: we may have to deal with multi-command sequences.
  8624. ;;
  8625. '$CC '*)
  8626. # Test whether the compiler implicitly links with -lc since on some
  8627. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8628. # to ld, don't add -lc before -lgcc.
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8630. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8631. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8632. $as_echo_n "(cached) " >&6
  8633. else
  8634. $RM conftest*
  8635. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8637. (eval $ac_compile) 2>&5
  8638. ac_status=$?
  8639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8640. test $ac_status = 0; } 2>conftest.err; then
  8641. soname=conftest
  8642. lib=conftest
  8643. libobjs=conftest.$ac_objext
  8644. deplibs=
  8645. wl=$lt_prog_compiler_wl
  8646. pic_flag=$lt_prog_compiler_pic
  8647. compiler_flags=-v
  8648. linker_flags=-v
  8649. verstring=
  8650. output_objdir=.
  8651. libname=conftest
  8652. lt_save_allow_undefined_flag=$allow_undefined_flag
  8653. allow_undefined_flag=
  8654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8655. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8656. ac_status=$?
  8657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8658. test $ac_status = 0; }
  8659. then
  8660. lt_cv_archive_cmds_need_lc=no
  8661. else
  8662. lt_cv_archive_cmds_need_lc=yes
  8663. fi
  8664. allow_undefined_flag=$lt_save_allow_undefined_flag
  8665. else
  8666. cat conftest.err 1>&5
  8667. fi
  8668. $RM conftest*
  8669. fi
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8671. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8672. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8673. ;;
  8674. esac
  8675. fi
  8676. ;;
  8677. esac
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8679. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8680. if test "$GCC" = yes; then
  8681. case $host_os in
  8682. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8683. *) lt_awk_arg="/^libraries:/" ;;
  8684. esac
  8685. case $host_os in
  8686. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8687. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8688. esac
  8689. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8690. case $lt_search_path_spec in
  8691. *\;*)
  8692. # if the path contains ";" then we assume it to be the separator
  8693. # otherwise default to the standard path separator (i.e. ":") - it is
  8694. # assumed that no part of a normal pathname contains ";" but that should
  8695. # okay in the real world where ";" in dirpaths is itself problematic.
  8696. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8697. ;;
  8698. *)
  8699. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8700. ;;
  8701. esac
  8702. # Ok, now we have the path, separated by spaces, we can step through it
  8703. # and add multilib dir if necessary.
  8704. lt_tmp_lt_search_path_spec=
  8705. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8706. for lt_sys_path in $lt_search_path_spec; do
  8707. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8708. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8709. else
  8710. test -d "$lt_sys_path" && \
  8711. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8712. fi
  8713. done
  8714. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8715. BEGIN {RS=" "; FS="/|\n";} {
  8716. lt_foo="";
  8717. lt_count=0;
  8718. for (lt_i = NF; lt_i > 0; lt_i--) {
  8719. if ($lt_i != "" && $lt_i != ".") {
  8720. if ($lt_i == "..") {
  8721. lt_count++;
  8722. } else {
  8723. if (lt_count == 0) {
  8724. lt_foo="/" $lt_i lt_foo;
  8725. } else {
  8726. lt_count--;
  8727. }
  8728. }
  8729. }
  8730. }
  8731. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8732. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8733. }'`
  8734. # AWK program above erroneously prepends '/' to C:/dos/paths
  8735. # for these hosts.
  8736. case $host_os in
  8737. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8738. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8739. esac
  8740. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8741. else
  8742. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8743. fi
  8744. library_names_spec=
  8745. libname_spec='lib$name'
  8746. soname_spec=
  8747. shrext_cmds=".so"
  8748. postinstall_cmds=
  8749. postuninstall_cmds=
  8750. finish_cmds=
  8751. finish_eval=
  8752. shlibpath_var=
  8753. shlibpath_overrides_runpath=unknown
  8754. version_type=none
  8755. dynamic_linker="$host_os ld.so"
  8756. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8757. need_lib_prefix=unknown
  8758. hardcode_into_libs=no
  8759. # when you set need_version to no, make sure it does not cause -set_version
  8760. # flags to be left without arguments
  8761. need_version=unknown
  8762. case $host_os in
  8763. aix3*)
  8764. version_type=linux
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8766. shlibpath_var=LIBPATH
  8767. # AIX 3 has no versioning support, so we append a major version to the name.
  8768. soname_spec='${libname}${release}${shared_ext}$major'
  8769. ;;
  8770. aix[4-9]*)
  8771. version_type=linux
  8772. need_lib_prefix=no
  8773. need_version=no
  8774. hardcode_into_libs=yes
  8775. if test "$host_cpu" = ia64; then
  8776. # AIX 5 supports IA64
  8777. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8778. shlibpath_var=LD_LIBRARY_PATH
  8779. else
  8780. # With GCC up to 2.95.x, collect2 would create an import file
  8781. # for dependence libraries. The import file would start with
  8782. # the line `#! .'. This would cause the generated library to
  8783. # depend on `.', always an invalid library. This was fixed in
  8784. # development snapshots of GCC prior to 3.0.
  8785. case $host_os in
  8786. aix4 | aix4.[01] | aix4.[01].*)
  8787. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8788. echo ' yes '
  8789. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8790. :
  8791. else
  8792. can_build_shared=no
  8793. fi
  8794. ;;
  8795. esac
  8796. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8797. # soname into executable. Probably we can add versioning support to
  8798. # collect2, so additional links can be useful in future.
  8799. if test "$aix_use_runtimelinking" = yes; then
  8800. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8801. # instead of lib<name>.a to let people know that these are not
  8802. # typical AIX shared libraries.
  8803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8804. else
  8805. # We preserve .a as extension for shared libraries through AIX4.2
  8806. # and later when we are not doing run time linking.
  8807. library_names_spec='${libname}${release}.a $libname.a'
  8808. soname_spec='${libname}${release}${shared_ext}$major'
  8809. fi
  8810. shlibpath_var=LIBPATH
  8811. fi
  8812. ;;
  8813. amigaos*)
  8814. case $host_cpu in
  8815. powerpc)
  8816. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8817. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8819. ;;
  8820. m68k)
  8821. library_names_spec='$libname.ixlibrary $libname.a'
  8822. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8823. 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'
  8824. ;;
  8825. esac
  8826. ;;
  8827. beos*)
  8828. library_names_spec='${libname}${shared_ext}'
  8829. dynamic_linker="$host_os ld.so"
  8830. shlibpath_var=LIBRARY_PATH
  8831. ;;
  8832. bsdi[45]*)
  8833. version_type=linux
  8834. need_version=no
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8836. soname_spec='${libname}${release}${shared_ext}$major'
  8837. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8840. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8841. # the default ld.so.conf also contains /usr/contrib/lib and
  8842. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8843. # libtool to hard-code these into programs
  8844. ;;
  8845. cygwin* | mingw* | pw32* | cegcc*)
  8846. version_type=windows
  8847. shrext_cmds=".dll"
  8848. need_version=no
  8849. need_lib_prefix=no
  8850. case $GCC,$cc_basename in
  8851. yes,*)
  8852. # gcc
  8853. library_names_spec='$libname.dll.a'
  8854. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8855. postinstall_cmds='base_file=`basename \${file}`~
  8856. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8857. dldir=$destdir/`dirname \$dlpath`~
  8858. test -d \$dldir || mkdir -p \$dldir~
  8859. $install_prog $dir/$dlname \$dldir/$dlname~
  8860. chmod a+x \$dldir/$dlname~
  8861. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8862. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8863. fi'
  8864. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8865. dlpath=$dir/\$dldll~
  8866. $RM \$dlpath'
  8867. shlibpath_overrides_runpath=yes
  8868. case $host_os in
  8869. cygwin*)
  8870. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8871. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8872. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8873. ;;
  8874. mingw* | cegcc*)
  8875. # MinGW DLLs use traditional 'lib' prefix
  8876. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8877. ;;
  8878. pw32*)
  8879. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8880. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8881. ;;
  8882. esac
  8883. dynamic_linker='Win32 ld.exe'
  8884. ;;
  8885. *,cl*)
  8886. # Native MSVC
  8887. libname_spec='$name'
  8888. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8889. library_names_spec='${libname}.dll.lib'
  8890. case $build_os in
  8891. mingw*)
  8892. sys_lib_search_path_spec=
  8893. lt_save_ifs=$IFS
  8894. IFS=';'
  8895. for lt_path in $LIB
  8896. do
  8897. IFS=$lt_save_ifs
  8898. # Let DOS variable expansion print the short 8.3 style file name.
  8899. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8900. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8901. done
  8902. IFS=$lt_save_ifs
  8903. # Convert to MSYS style.
  8904. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8905. ;;
  8906. cygwin*)
  8907. # Convert to unix form, then to dos form, then back to unix form
  8908. # but this time dos style (no spaces!) so that the unix form looks
  8909. # like /cygdrive/c/PROGRA~1:/cygdr...
  8910. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8911. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8912. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8913. ;;
  8914. *)
  8915. sys_lib_search_path_spec="$LIB"
  8916. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8917. # It is most probably a Windows format PATH.
  8918. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8919. else
  8920. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8921. fi
  8922. # FIXME: find the short name or the path components, as spaces are
  8923. # common. (e.g. "Program Files" -> "PROGRA~1")
  8924. ;;
  8925. esac
  8926. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8927. postinstall_cmds='base_file=`basename \${file}`~
  8928. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8929. dldir=$destdir/`dirname \$dlpath`~
  8930. test -d \$dldir || mkdir -p \$dldir~
  8931. $install_prog $dir/$dlname \$dldir/$dlname'
  8932. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8933. dlpath=$dir/\$dldll~
  8934. $RM \$dlpath'
  8935. shlibpath_overrides_runpath=yes
  8936. dynamic_linker='Win32 link.exe'
  8937. ;;
  8938. *)
  8939. # Assume MSVC wrapper
  8940. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8941. dynamic_linker='Win32 ld.exe'
  8942. ;;
  8943. esac
  8944. # FIXME: first we should search . and the directory the executable is in
  8945. shlibpath_var=PATH
  8946. ;;
  8947. darwin* | rhapsody*)
  8948. dynamic_linker="$host_os dyld"
  8949. version_type=darwin
  8950. need_lib_prefix=no
  8951. need_version=no
  8952. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8953. soname_spec='${libname}${release}${major}$shared_ext'
  8954. shlibpath_overrides_runpath=yes
  8955. shlibpath_var=DYLD_LIBRARY_PATH
  8956. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8957. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8958. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8959. ;;
  8960. dgux*)
  8961. version_type=linux
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. ;;
  8968. freebsd1*)
  8969. dynamic_linker=no
  8970. ;;
  8971. freebsd* | dragonfly*)
  8972. # DragonFly does not have aout. When/if they implement a new
  8973. # versioning mechanism, adjust this.
  8974. if test -x /usr/bin/objformat; then
  8975. objformat=`/usr/bin/objformat`
  8976. else
  8977. case $host_os in
  8978. freebsd[123]*) objformat=aout ;;
  8979. *) objformat=elf ;;
  8980. esac
  8981. fi
  8982. version_type=freebsd-$objformat
  8983. case $version_type in
  8984. freebsd-elf*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8986. need_version=no
  8987. need_lib_prefix=no
  8988. ;;
  8989. freebsd-*)
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8991. need_version=yes
  8992. ;;
  8993. esac
  8994. shlibpath_var=LD_LIBRARY_PATH
  8995. case $host_os in
  8996. freebsd2*)
  8997. shlibpath_overrides_runpath=yes
  8998. ;;
  8999. freebsd3.[01]* | freebsdelf3.[01]*)
  9000. shlibpath_overrides_runpath=yes
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9004. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9005. shlibpath_overrides_runpath=no
  9006. hardcode_into_libs=yes
  9007. ;;
  9008. *) # from 4.6 on, and DragonFly
  9009. shlibpath_overrides_runpath=yes
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. esac
  9013. ;;
  9014. gnu*)
  9015. version_type=linux
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. shlibpath_overrides_runpath=no
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. haiku*)
  9025. version_type=linux
  9026. need_lib_prefix=no
  9027. need_version=no
  9028. dynamic_linker="$host_os runtime_loader"
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. shlibpath_var=LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes
  9033. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9034. hardcode_into_libs=yes
  9035. ;;
  9036. hpux9* | hpux10* | hpux11*)
  9037. # Give a soname corresponding to the major version so that dld.sl refuses to
  9038. # link against other versions.
  9039. version_type=sunos
  9040. need_lib_prefix=no
  9041. need_version=no
  9042. case $host_cpu in
  9043. ia64*)
  9044. shrext_cmds='.so'
  9045. hardcode_into_libs=yes
  9046. dynamic_linker="$host_os dld.so"
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. if test "X$HPUX_IA64_MODE" = X32; then
  9052. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9053. else
  9054. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9055. fi
  9056. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9057. ;;
  9058. hppa*64*)
  9059. shrext_cmds='.sl'
  9060. hardcode_into_libs=yes
  9061. dynamic_linker="$host_os dld.sl"
  9062. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9068. ;;
  9069. *)
  9070. shrext_cmds='.sl'
  9071. dynamic_linker="$host_os dld.sl"
  9072. shlibpath_var=SHLIB_PATH
  9073. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. ;;
  9077. esac
  9078. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9079. postinstall_cmds='chmod 555 $lib'
  9080. # or fails outright, so override atomically:
  9081. install_override_mode=555
  9082. ;;
  9083. interix[3-9]*)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=no
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. irix5* | irix6* | nonstopux*)
  9095. case $host_os in
  9096. nonstopux*) version_type=nonstopux ;;
  9097. *)
  9098. if test "$lt_cv_prog_gnu_ld" = yes; then
  9099. version_type=linux
  9100. else
  9101. version_type=irix
  9102. fi ;;
  9103. esac
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9108. case $host_os in
  9109. irix5* | nonstopux*)
  9110. libsuff= shlibsuff=
  9111. ;;
  9112. *)
  9113. case $LD in # libtool.m4 will add one of these switches to LD
  9114. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9115. libsuff= shlibsuff= libmagic=32-bit;;
  9116. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9117. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9118. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9119. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9120. *) libsuff= shlibsuff= libmagic=never-match;;
  9121. esac
  9122. ;;
  9123. esac
  9124. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9125. shlibpath_overrides_runpath=no
  9126. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9127. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9128. hardcode_into_libs=yes
  9129. ;;
  9130. # No shared lib support for Linux oldld, aout, or coff.
  9131. linux*oldld* | linux*aout* | linux*coff*)
  9132. dynamic_linker=no
  9133. ;;
  9134. # This must be Linux ELF.
  9135. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9136. version_type=linux
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. shlibpath_overrides_runpath=no
  9144. # Some binutils ld are patched to set DT_RUNPATH
  9145. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. lt_cv_shlibpath_overrides_runpath=no
  9149. save_LDFLAGS=$LDFLAGS
  9150. save_libdir=$libdir
  9151. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9152. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9164. lt_cv_shlibpath_overrides_runpath=yes
  9165. fi
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LDFLAGS=$save_LDFLAGS
  9170. libdir=$save_libdir
  9171. fi
  9172. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9173. # This implies no fast_install, which is unacceptable.
  9174. # Some rework will be needed to allow for fast_install
  9175. # before this can be enabled.
  9176. hardcode_into_libs=yes
  9177. # Append ld.so.conf contents to the search path
  9178. if test -f /etc/ld.so.conf; then
  9179. 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' ' '`
  9180. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9181. fi
  9182. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9183. # powerpc, because MkLinux only supported shared libraries with the
  9184. # GNU dynamic linker. Since this was broken with cross compilers,
  9185. # most powerpc-linux boxes support dynamic linking these days and
  9186. # people can always --disable-shared, the test was removed, and we
  9187. # assume the GNU/Linux dynamic linker is in use.
  9188. dynamic_linker='GNU/Linux ld.so'
  9189. ;;
  9190. netbsdelf*-gnu)
  9191. version_type=linux
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. shlibpath_overrides_runpath=no
  9198. hardcode_into_libs=yes
  9199. dynamic_linker='NetBSD ld.elf_so'
  9200. ;;
  9201. netbsd*)
  9202. version_type=sunos
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9207. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9208. dynamic_linker='NetBSD (a.out) ld.so'
  9209. else
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9211. soname_spec='${libname}${release}${shared_ext}$major'
  9212. dynamic_linker='NetBSD ld.elf_so'
  9213. fi
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=yes
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. newsos6)
  9219. version_type=linux
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. shlibpath_overrides_runpath=yes
  9223. ;;
  9224. *nto* | *qnx*)
  9225. version_type=qnx
  9226. need_lib_prefix=no
  9227. need_version=no
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9229. soname_spec='${libname}${release}${shared_ext}$major'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. shlibpath_overrides_runpath=no
  9232. hardcode_into_libs=yes
  9233. dynamic_linker='ldqnx.so'
  9234. ;;
  9235. openbsd*)
  9236. version_type=sunos
  9237. sys_lib_dlsearch_path_spec="/usr/lib"
  9238. need_lib_prefix=no
  9239. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9240. case $host_os in
  9241. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9242. *) need_version=no ;;
  9243. esac
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9245. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9248. case $host_os in
  9249. openbsd2.[89] | openbsd2.[89].*)
  9250. shlibpath_overrides_runpath=no
  9251. ;;
  9252. *)
  9253. shlibpath_overrides_runpath=yes
  9254. ;;
  9255. esac
  9256. else
  9257. shlibpath_overrides_runpath=yes
  9258. fi
  9259. ;;
  9260. os2*)
  9261. libname_spec='$name'
  9262. shrext_cmds=".dll"
  9263. need_lib_prefix=no
  9264. library_names_spec='$libname${shared_ext} $libname.a'
  9265. dynamic_linker='OS/2 ld.exe'
  9266. shlibpath_var=LIBPATH
  9267. ;;
  9268. osf3* | osf4* | osf5*)
  9269. version_type=osf
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. soname_spec='${libname}${release}${shared_ext}$major'
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9276. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9277. ;;
  9278. rdos*)
  9279. dynamic_linker=no
  9280. ;;
  9281. solaris*)
  9282. version_type=linux
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. shlibpath_overrides_runpath=yes
  9289. hardcode_into_libs=yes
  9290. # ldd complains unless libraries are executable
  9291. postinstall_cmds='chmod +x $lib'
  9292. ;;
  9293. sunos4*)
  9294. version_type=sunos
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9296. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. shlibpath_overrides_runpath=yes
  9299. if test "$with_gnu_ld" = yes; then
  9300. need_lib_prefix=no
  9301. fi
  9302. need_version=yes
  9303. ;;
  9304. sysv4 | sysv4.3*)
  9305. version_type=linux
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. soname_spec='${libname}${release}${shared_ext}$major'
  9308. shlibpath_var=LD_LIBRARY_PATH
  9309. case $host_vendor in
  9310. sni)
  9311. shlibpath_overrides_runpath=no
  9312. need_lib_prefix=no
  9313. runpath_var=LD_RUN_PATH
  9314. ;;
  9315. siemens)
  9316. need_lib_prefix=no
  9317. ;;
  9318. motorola)
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. shlibpath_overrides_runpath=no
  9322. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9323. ;;
  9324. esac
  9325. ;;
  9326. sysv4*MP*)
  9327. if test -d /usr/nec ;then
  9328. version_type=linux
  9329. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9330. soname_spec='$libname${shared_ext}.$major'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. fi
  9333. ;;
  9334. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9335. version_type=freebsd-elf
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9339. soname_spec='${libname}${release}${shared_ext}$major'
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. shlibpath_overrides_runpath=yes
  9342. hardcode_into_libs=yes
  9343. if test "$with_gnu_ld" = yes; then
  9344. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9345. else
  9346. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9347. case $host_os in
  9348. sco3.2v5*)
  9349. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9350. ;;
  9351. esac
  9352. fi
  9353. sys_lib_dlsearch_path_spec='/usr/lib'
  9354. ;;
  9355. tpf*)
  9356. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9357. version_type=linux
  9358. need_lib_prefix=no
  9359. need_version=no
  9360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9361. shlibpath_var=LD_LIBRARY_PATH
  9362. shlibpath_overrides_runpath=no
  9363. hardcode_into_libs=yes
  9364. ;;
  9365. uts4*)
  9366. version_type=linux
  9367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9368. soname_spec='${libname}${release}${shared_ext}$major'
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. ;;
  9371. *)
  9372. dynamic_linker=no
  9373. ;;
  9374. esac
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9376. $as_echo "$dynamic_linker" >&6; }
  9377. test "$dynamic_linker" = no && can_build_shared=no
  9378. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9379. if test "$GCC" = yes; then
  9380. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9381. fi
  9382. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9383. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9384. fi
  9385. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9386. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9389. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9390. hardcode_action=
  9391. if test -n "$hardcode_libdir_flag_spec" ||
  9392. test -n "$runpath_var" ||
  9393. test "X$hardcode_automatic" = "Xyes" ; then
  9394. # We can hardcode non-existent directories.
  9395. if test "$hardcode_direct" != no &&
  9396. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9397. # have to relink, otherwise we might link with an installed library
  9398. # when we should be linking with a yet-to-be-installed one
  9399. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9400. test "$hardcode_minus_L" != no; then
  9401. # Linking always hardcodes the temporary library directory.
  9402. hardcode_action=relink
  9403. else
  9404. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9405. hardcode_action=immediate
  9406. fi
  9407. else
  9408. # We cannot hardcode anything, or else we can only hardcode existing
  9409. # directories.
  9410. hardcode_action=unsupported
  9411. fi
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9413. $as_echo "$hardcode_action" >&6; }
  9414. if test "$hardcode_action" = relink ||
  9415. test "$inherit_rpath" = yes; then
  9416. # Fast installation is not supported
  9417. enable_fast_install=no
  9418. elif test "$shlibpath_overrides_runpath" = yes ||
  9419. test "$enable_shared" = no; then
  9420. # Fast installation is not necessary
  9421. enable_fast_install=needless
  9422. fi
  9423. if test "x$enable_dlopen" != xyes; then
  9424. enable_dlopen=unknown
  9425. enable_dlopen_self=unknown
  9426. enable_dlopen_self_static=unknown
  9427. else
  9428. lt_cv_dlopen=no
  9429. lt_cv_dlopen_libs=
  9430. case $host_os in
  9431. beos*)
  9432. lt_cv_dlopen="load_add_on"
  9433. lt_cv_dlopen_libs=
  9434. lt_cv_dlopen_self=yes
  9435. ;;
  9436. mingw* | pw32* | cegcc*)
  9437. lt_cv_dlopen="LoadLibrary"
  9438. lt_cv_dlopen_libs=
  9439. ;;
  9440. cygwin*)
  9441. lt_cv_dlopen="dlopen"
  9442. lt_cv_dlopen_libs=
  9443. ;;
  9444. darwin*)
  9445. # if libdl is installed we need to link against it
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9447. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9448. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. ac_check_lib_save_LIBS=$LIBS
  9452. LIBS="-ldl $LIBS"
  9453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h. */
  9455. /* Override any GCC internal prototype to avoid an error.
  9456. Use char because int might match the return type of a GCC
  9457. builtin and then its argument prototype would still apply. */
  9458. #ifdef __cplusplus
  9459. extern "C"
  9460. #endif
  9461. char dlopen ();
  9462. int
  9463. main ()
  9464. {
  9465. return dlopen ();
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. if ac_fn_c_try_link "$LINENO"; then :
  9471. ac_cv_lib_dl_dlopen=yes
  9472. else
  9473. ac_cv_lib_dl_dlopen=no
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext \
  9476. conftest$ac_exeext conftest.$ac_ext
  9477. LIBS=$ac_check_lib_save_LIBS
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9480. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9481. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9482. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9483. else
  9484. lt_cv_dlopen="dyld"
  9485. lt_cv_dlopen_libs=
  9486. lt_cv_dlopen_self=yes
  9487. fi
  9488. ;;
  9489. *)
  9490. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9491. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9492. lt_cv_dlopen="shl_load"
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9495. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9496. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-ldld $LIBS"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. /* Override any GCC internal prototype to avoid an error.
  9504. Use char because int might match the return type of a GCC
  9505. builtin and then its argument prototype would still apply. */
  9506. #ifdef __cplusplus
  9507. extern "C"
  9508. #endif
  9509. char shl_load ();
  9510. int
  9511. main ()
  9512. {
  9513. return shl_load ();
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. ac_cv_lib_dld_shl_load=yes
  9520. else
  9521. ac_cv_lib_dld_shl_load=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. LIBS=$ac_check_lib_save_LIBS
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9528. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9529. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9530. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9531. else
  9532. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9533. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9534. lt_cv_dlopen="dlopen"
  9535. else
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9537. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9538. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. ac_check_lib_save_LIBS=$LIBS
  9542. LIBS="-ldl $LIBS"
  9543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9544. /* end confdefs.h. */
  9545. /* Override any GCC internal prototype to avoid an error.
  9546. Use char because int might match the return type of a GCC
  9547. builtin and then its argument prototype would still apply. */
  9548. #ifdef __cplusplus
  9549. extern "C"
  9550. #endif
  9551. char dlopen ();
  9552. int
  9553. main ()
  9554. {
  9555. return dlopen ();
  9556. ;
  9557. return 0;
  9558. }
  9559. _ACEOF
  9560. if ac_fn_c_try_link "$LINENO"; then :
  9561. ac_cv_lib_dl_dlopen=yes
  9562. else
  9563. ac_cv_lib_dl_dlopen=no
  9564. fi
  9565. rm -f core conftest.err conftest.$ac_objext \
  9566. conftest$ac_exeext conftest.$ac_ext
  9567. LIBS=$ac_check_lib_save_LIBS
  9568. fi
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9570. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9571. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9572. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9573. else
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9575. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9576. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. ac_check_lib_save_LIBS=$LIBS
  9580. LIBS="-lsvld $LIBS"
  9581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9582. /* end confdefs.h. */
  9583. /* Override any GCC internal prototype to avoid an error.
  9584. Use char because int might match the return type of a GCC
  9585. builtin and then its argument prototype would still apply. */
  9586. #ifdef __cplusplus
  9587. extern "C"
  9588. #endif
  9589. char dlopen ();
  9590. int
  9591. main ()
  9592. {
  9593. return dlopen ();
  9594. ;
  9595. return 0;
  9596. }
  9597. _ACEOF
  9598. if ac_fn_c_try_link "$LINENO"; then :
  9599. ac_cv_lib_svld_dlopen=yes
  9600. else
  9601. ac_cv_lib_svld_dlopen=no
  9602. fi
  9603. rm -f core conftest.err conftest.$ac_objext \
  9604. conftest$ac_exeext conftest.$ac_ext
  9605. LIBS=$ac_check_lib_save_LIBS
  9606. fi
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9608. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9609. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9610. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9611. else
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9613. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9614. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9615. $as_echo_n "(cached) " >&6
  9616. else
  9617. ac_check_lib_save_LIBS=$LIBS
  9618. LIBS="-ldld $LIBS"
  9619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9620. /* end confdefs.h. */
  9621. /* Override any GCC internal prototype to avoid an error.
  9622. Use char because int might match the return type of a GCC
  9623. builtin and then its argument prototype would still apply. */
  9624. #ifdef __cplusplus
  9625. extern "C"
  9626. #endif
  9627. char dld_link ();
  9628. int
  9629. main ()
  9630. {
  9631. return dld_link ();
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. if ac_fn_c_try_link "$LINENO"; then :
  9637. ac_cv_lib_dld_dld_link=yes
  9638. else
  9639. ac_cv_lib_dld_dld_link=no
  9640. fi
  9641. rm -f core conftest.err conftest.$ac_objext \
  9642. conftest$ac_exeext conftest.$ac_ext
  9643. LIBS=$ac_check_lib_save_LIBS
  9644. fi
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9646. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9647. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9648. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9649. fi
  9650. fi
  9651. fi
  9652. fi
  9653. fi
  9654. fi
  9655. ;;
  9656. esac
  9657. if test "x$lt_cv_dlopen" != xno; then
  9658. enable_dlopen=yes
  9659. else
  9660. enable_dlopen=no
  9661. fi
  9662. case $lt_cv_dlopen in
  9663. dlopen)
  9664. save_CPPFLAGS="$CPPFLAGS"
  9665. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9666. save_LDFLAGS="$LDFLAGS"
  9667. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9668. save_LIBS="$LIBS"
  9669. LIBS="$lt_cv_dlopen_libs $LIBS"
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9671. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9672. if test "${lt_cv_dlopen_self+set}" = set; then :
  9673. $as_echo_n "(cached) " >&6
  9674. else
  9675. if test "$cross_compiling" = yes; then :
  9676. lt_cv_dlopen_self=cross
  9677. else
  9678. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9679. lt_status=$lt_dlunknown
  9680. cat > conftest.$ac_ext <<_LT_EOF
  9681. #line $LINENO "configure"
  9682. #include "confdefs.h"
  9683. #if HAVE_DLFCN_H
  9684. #include <dlfcn.h>
  9685. #endif
  9686. #include <stdio.h>
  9687. #ifdef RTLD_GLOBAL
  9688. # define LT_DLGLOBAL RTLD_GLOBAL
  9689. #else
  9690. # ifdef DL_GLOBAL
  9691. # define LT_DLGLOBAL DL_GLOBAL
  9692. # else
  9693. # define LT_DLGLOBAL 0
  9694. # endif
  9695. #endif
  9696. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9697. find out it does not work in some platform. */
  9698. #ifndef LT_DLLAZY_OR_NOW
  9699. # ifdef RTLD_LAZY
  9700. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9701. # else
  9702. # ifdef DL_LAZY
  9703. # define LT_DLLAZY_OR_NOW DL_LAZY
  9704. # else
  9705. # ifdef RTLD_NOW
  9706. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9707. # else
  9708. # ifdef DL_NOW
  9709. # define LT_DLLAZY_OR_NOW DL_NOW
  9710. # else
  9711. # define LT_DLLAZY_OR_NOW 0
  9712. # endif
  9713. # endif
  9714. # endif
  9715. # endif
  9716. #endif
  9717. /* When -fvisbility=hidden is used, assume the code has been annotated
  9718. correspondingly for the symbols needed. */
  9719. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9720. int fnord () __attribute__((visibility("default")));
  9721. #endif
  9722. int fnord () { return 42; }
  9723. int main ()
  9724. {
  9725. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9726. int status = $lt_dlunknown;
  9727. if (self)
  9728. {
  9729. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9730. else
  9731. {
  9732. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9733. else puts (dlerror ());
  9734. }
  9735. /* dlclose (self); */
  9736. }
  9737. else
  9738. puts (dlerror ());
  9739. return status;
  9740. }
  9741. _LT_EOF
  9742. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9743. (eval $ac_link) 2>&5
  9744. ac_status=$?
  9745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9746. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9747. (./conftest; exit; ) >&5 2>/dev/null
  9748. lt_status=$?
  9749. case x$lt_status in
  9750. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9751. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9752. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9753. esac
  9754. else :
  9755. # compilation failed
  9756. lt_cv_dlopen_self=no
  9757. fi
  9758. fi
  9759. rm -fr conftest*
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9762. $as_echo "$lt_cv_dlopen_self" >&6; }
  9763. if test "x$lt_cv_dlopen_self" = xyes; then
  9764. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9766. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9767. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9768. $as_echo_n "(cached) " >&6
  9769. else
  9770. if test "$cross_compiling" = yes; then :
  9771. lt_cv_dlopen_self_static=cross
  9772. else
  9773. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9774. lt_status=$lt_dlunknown
  9775. cat > conftest.$ac_ext <<_LT_EOF
  9776. #line $LINENO "configure"
  9777. #include "confdefs.h"
  9778. #if HAVE_DLFCN_H
  9779. #include <dlfcn.h>
  9780. #endif
  9781. #include <stdio.h>
  9782. #ifdef RTLD_GLOBAL
  9783. # define LT_DLGLOBAL RTLD_GLOBAL
  9784. #else
  9785. # ifdef DL_GLOBAL
  9786. # define LT_DLGLOBAL DL_GLOBAL
  9787. # else
  9788. # define LT_DLGLOBAL 0
  9789. # endif
  9790. #endif
  9791. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9792. find out it does not work in some platform. */
  9793. #ifndef LT_DLLAZY_OR_NOW
  9794. # ifdef RTLD_LAZY
  9795. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9796. # else
  9797. # ifdef DL_LAZY
  9798. # define LT_DLLAZY_OR_NOW DL_LAZY
  9799. # else
  9800. # ifdef RTLD_NOW
  9801. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9802. # else
  9803. # ifdef DL_NOW
  9804. # define LT_DLLAZY_OR_NOW DL_NOW
  9805. # else
  9806. # define LT_DLLAZY_OR_NOW 0
  9807. # endif
  9808. # endif
  9809. # endif
  9810. # endif
  9811. #endif
  9812. /* When -fvisbility=hidden is used, assume the code has been annotated
  9813. correspondingly for the symbols needed. */
  9814. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9815. int fnord () __attribute__((visibility("default")));
  9816. #endif
  9817. int fnord () { return 42; }
  9818. int main ()
  9819. {
  9820. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9821. int status = $lt_dlunknown;
  9822. if (self)
  9823. {
  9824. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9825. else
  9826. {
  9827. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9828. else puts (dlerror ());
  9829. }
  9830. /* dlclose (self); */
  9831. }
  9832. else
  9833. puts (dlerror ());
  9834. return status;
  9835. }
  9836. _LT_EOF
  9837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9838. (eval $ac_link) 2>&5
  9839. ac_status=$?
  9840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9841. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9842. (./conftest; exit; ) >&5 2>/dev/null
  9843. lt_status=$?
  9844. case x$lt_status in
  9845. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9846. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9847. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9848. esac
  9849. else :
  9850. # compilation failed
  9851. lt_cv_dlopen_self_static=no
  9852. fi
  9853. fi
  9854. rm -fr conftest*
  9855. fi
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9857. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9858. fi
  9859. CPPFLAGS="$save_CPPFLAGS"
  9860. LDFLAGS="$save_LDFLAGS"
  9861. LIBS="$save_LIBS"
  9862. ;;
  9863. esac
  9864. case $lt_cv_dlopen_self in
  9865. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9866. *) enable_dlopen_self=unknown ;;
  9867. esac
  9868. case $lt_cv_dlopen_self_static in
  9869. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9870. *) enable_dlopen_self_static=unknown ;;
  9871. esac
  9872. fi
  9873. striplib=
  9874. old_striplib=
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9876. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9877. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9878. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9879. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9881. $as_echo "yes" >&6; }
  9882. else
  9883. # FIXME - insert some real tests, host_os isn't really good enough
  9884. case $host_os in
  9885. darwin*)
  9886. if test -n "$STRIP" ; then
  9887. striplib="$STRIP -x"
  9888. old_striplib="$STRIP -S"
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9890. $as_echo "yes" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. ;;
  9896. *)
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9898. $as_echo "no" >&6; }
  9899. ;;
  9900. esac
  9901. fi
  9902. # Report which library types will actually be built
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9904. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9906. $as_echo "$can_build_shared" >&6; }
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9908. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9909. test "$can_build_shared" = "no" && enable_shared=no
  9910. # On AIX, shared libraries and static libraries use the same namespace, and
  9911. # are all built from PIC.
  9912. case $host_os in
  9913. aix3*)
  9914. test "$enable_shared" = yes && enable_static=no
  9915. if test -n "$RANLIB"; then
  9916. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9917. postinstall_cmds='$RANLIB $lib'
  9918. fi
  9919. ;;
  9920. aix[4-9]*)
  9921. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9922. test "$enable_shared" = yes && enable_static=no
  9923. fi
  9924. ;;
  9925. esac
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9927. $as_echo "$enable_shared" >&6; }
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9929. $as_echo_n "checking whether to build static libraries... " >&6; }
  9930. # Make sure either enable_shared or enable_static is yes.
  9931. test "$enable_shared" = yes || enable_static=yes
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9933. $as_echo "$enable_static" >&6; }
  9934. fi
  9935. ac_ext=c
  9936. ac_cpp='$CPP $CPPFLAGS'
  9937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9940. CC="$lt_save_CC"
  9941. ac_config_commands="$ac_config_commands libtool"
  9942. # Only expand once:
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
  9944. $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
  9945. if test "${libltdl_cv_shlibext+set}" = set; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. module=yes
  9949. eval libltdl_cv_shlibext=$shrext_cmds
  9950. module=no
  9951. eval libltdl_cv_shrext=$shrext_cmds
  9952. fi
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  9954. $as_echo "$libltdl_cv_shlibext" >&6; }
  9955. if test -n "$libltdl_cv_shlibext"; then
  9956. cat >>confdefs.h <<_ACEOF
  9957. #define LT_MODULE_EXT "$libltdl_cv_shlibext"
  9958. _ACEOF
  9959. fi
  9960. if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
  9961. cat >>confdefs.h <<_ACEOF
  9962. #define LT_SHARED_EXT "$libltdl_cv_shrext"
  9963. _ACEOF
  9964. fi
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
  9966. $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
  9967. if test "${lt_cv_module_path_var+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. lt_cv_module_path_var="$shlibpath_var"
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
  9973. $as_echo "$lt_cv_module_path_var" >&6; }
  9974. if test -n "$lt_cv_module_path_var"; then
  9975. cat >>confdefs.h <<_ACEOF
  9976. #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
  9977. _ACEOF
  9978. fi
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
  9980. $as_echo_n "checking for the default library search path... " >&6; }
  9981. if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
  9982. $as_echo_n "(cached) " >&6
  9983. else
  9984. lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
  9985. fi
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
  9987. $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
  9988. if test -n "$lt_cv_sys_dlsearch_path"; then
  9989. sys_dlsearch_path=
  9990. for dir in $lt_cv_sys_dlsearch_path; do
  9991. if test -z "$sys_dlsearch_path"; then
  9992. sys_dlsearch_path="$dir"
  9993. else
  9994. sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
  9995. fi
  9996. done
  9997. cat >>confdefs.h <<_ACEOF
  9998. #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
  9999. _ACEOF
  10000. fi
  10001. LT_DLLOADERS=
  10002. ac_ext=c
  10003. ac_cpp='$CPP $CPPFLAGS'
  10004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10007. LIBADD_DLOPEN=
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  10009. $as_echo_n "checking for library containing dlopen... " >&6; }
  10010. if test "${ac_cv_search_dlopen+set}" = set; then :
  10011. $as_echo_n "(cached) " >&6
  10012. else
  10013. ac_func_search_save_LIBS=$LIBS
  10014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10015. /* end confdefs.h. */
  10016. /* Override any GCC internal prototype to avoid an error.
  10017. Use char because int might match the return type of a GCC
  10018. builtin and then its argument prototype would still apply. */
  10019. #ifdef __cplusplus
  10020. extern "C"
  10021. #endif
  10022. char dlopen ();
  10023. int
  10024. main ()
  10025. {
  10026. return dlopen ();
  10027. ;
  10028. return 0;
  10029. }
  10030. _ACEOF
  10031. for ac_lib in '' dl; do
  10032. if test -z "$ac_lib"; then
  10033. ac_res="none required"
  10034. else
  10035. ac_res=-l$ac_lib
  10036. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10037. fi
  10038. if ac_fn_c_try_link "$LINENO"; then :
  10039. ac_cv_search_dlopen=$ac_res
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext \
  10042. conftest$ac_exeext
  10043. if test "${ac_cv_search_dlopen+set}" = set; then :
  10044. break
  10045. fi
  10046. done
  10047. if test "${ac_cv_search_dlopen+set}" = set; then :
  10048. else
  10049. ac_cv_search_dlopen=no
  10050. fi
  10051. rm conftest.$ac_ext
  10052. LIBS=$ac_func_search_save_LIBS
  10053. fi
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  10055. $as_echo "$ac_cv_search_dlopen" >&6; }
  10056. ac_res=$ac_cv_search_dlopen
  10057. if test "$ac_res" != no; then :
  10058. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10059. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10060. if test "$ac_cv_search_dlopen" != "none required" ; then
  10061. LIBADD_DLOPEN="-ldl"
  10062. fi
  10063. libltdl_cv_lib_dl_dlopen="yes"
  10064. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10065. else
  10066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10067. /* end confdefs.h. */
  10068. #if HAVE_DLFCN_H
  10069. # include <dlfcn.h>
  10070. #endif
  10071. int
  10072. main ()
  10073. {
  10074. dlopen(0, 0);
  10075. ;
  10076. return 0;
  10077. }
  10078. _ACEOF
  10079. if ac_fn_c_try_link "$LINENO"; then :
  10080. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10081. libltdl_cv_func_dlopen="yes"
  10082. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10083. else
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10085. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10086. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. ac_check_lib_save_LIBS=$LIBS
  10090. LIBS="-lsvld $LIBS"
  10091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10092. /* end confdefs.h. */
  10093. /* Override any GCC internal prototype to avoid an error.
  10094. Use char because int might match the return type of a GCC
  10095. builtin and then its argument prototype would still apply. */
  10096. #ifdef __cplusplus
  10097. extern "C"
  10098. #endif
  10099. char dlopen ();
  10100. int
  10101. main ()
  10102. {
  10103. return dlopen ();
  10104. ;
  10105. return 0;
  10106. }
  10107. _ACEOF
  10108. if ac_fn_c_try_link "$LINENO"; then :
  10109. ac_cv_lib_svld_dlopen=yes
  10110. else
  10111. ac_cv_lib_svld_dlopen=no
  10112. fi
  10113. rm -f core conftest.err conftest.$ac_objext \
  10114. conftest$ac_exeext conftest.$ac_ext
  10115. LIBS=$ac_check_lib_save_LIBS
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10118. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10119. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10120. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10121. LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
  10122. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10123. fi
  10124. fi
  10125. rm -f core conftest.err conftest.$ac_objext \
  10126. conftest$ac_exeext conftest.$ac_ext
  10127. fi
  10128. if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  10129. then
  10130. lt_save_LIBS="$LIBS"
  10131. LIBS="$LIBS $LIBADD_DLOPEN"
  10132. for ac_func in dlerror
  10133. do :
  10134. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  10135. if test "x$ac_cv_func_dlerror" = x""yes; then :
  10136. cat >>confdefs.h <<_ACEOF
  10137. #define HAVE_DLERROR 1
  10138. _ACEOF
  10139. fi
  10140. done
  10141. LIBS="$lt_save_LIBS"
  10142. fi
  10143. LIBADD_SHL_LOAD=
  10144. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10145. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10146. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  10147. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  10148. else
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10150. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10151. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. ac_check_lib_save_LIBS=$LIBS
  10155. LIBS="-ldld $LIBS"
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. /* Override any GCC internal prototype to avoid an error.
  10159. Use char because int might match the return type of a GCC
  10160. builtin and then its argument prototype would still apply. */
  10161. #ifdef __cplusplus
  10162. extern "C"
  10163. #endif
  10164. char shl_load ();
  10165. int
  10166. main ()
  10167. {
  10168. return shl_load ();
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. if ac_fn_c_try_link "$LINENO"; then :
  10174. ac_cv_lib_dld_shl_load=yes
  10175. else
  10176. ac_cv_lib_dld_shl_load=no
  10177. fi
  10178. rm -f core conftest.err conftest.$ac_objext \
  10179. conftest$ac_exeext conftest.$ac_ext
  10180. LIBS=$ac_check_lib_save_LIBS
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10183. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10184. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10185. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  10186. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  10187. LIBADD_SHL_LOAD="-ldld"
  10188. fi
  10189. fi
  10190. case $host_os in
  10191. darwin[1567].*)
  10192. # We only want this for pre-Mac OS X 10.4.
  10193. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  10194. if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
  10195. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  10196. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
  10197. fi
  10198. ;;
  10199. beos*)
  10200. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  10201. ;;
  10202. cygwin* | mingw* | os2* | pw32*)
  10203. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  10204. "
  10205. if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
  10206. ac_have_decl=1
  10207. else
  10208. ac_have_decl=0
  10209. fi
  10210. cat >>confdefs.h <<_ACEOF
  10211. #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
  10212. _ACEOF
  10213. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  10214. ;;
  10215. esac
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10217. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10218. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10219. $as_echo_n "(cached) " >&6
  10220. else
  10221. ac_check_lib_save_LIBS=$LIBS
  10222. LIBS="-ldld $LIBS"
  10223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10224. /* end confdefs.h. */
  10225. /* Override any GCC internal prototype to avoid an error.
  10226. Use char because int might match the return type of a GCC
  10227. builtin and then its argument prototype would still apply. */
  10228. #ifdef __cplusplus
  10229. extern "C"
  10230. #endif
  10231. char dld_link ();
  10232. int
  10233. main ()
  10234. {
  10235. return dld_link ();
  10236. ;
  10237. return 0;
  10238. }
  10239. _ACEOF
  10240. if ac_fn_c_try_link "$LINENO"; then :
  10241. ac_cv_lib_dld_dld_link=yes
  10242. else
  10243. ac_cv_lib_dld_dld_link=no
  10244. fi
  10245. rm -f core conftest.err conftest.$ac_objext \
  10246. conftest$ac_exeext conftest.$ac_ext
  10247. LIBS=$ac_check_lib_save_LIBS
  10248. fi
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10250. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10251. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10252. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  10253. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
  10254. fi
  10255. LT_DLPREOPEN=
  10256. if test -n "$LT_DLLOADERS"
  10257. then
  10258. for lt_loader in $LT_DLLOADERS; do
  10259. LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  10260. done
  10261. $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
  10262. fi
  10263. LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  10264. ac_ext=c
  10265. ac_cpp='$CPP $CPPFLAGS'
  10266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  10270. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  10271. if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
  10272. $as_echo_n "(cached) " >&6
  10273. else
  10274. lt_cv_sys_symbol_underscore=no
  10275. cat > conftest.$ac_ext <<_LT_EOF
  10276. void nm_test_func(){}
  10277. int main(){nm_test_func;return 0;}
  10278. _LT_EOF
  10279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10280. (eval $ac_compile) 2>&5
  10281. ac_status=$?
  10282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10283. test $ac_status = 0; }; then
  10284. # Now try to grab the symbols.
  10285. ac_nlist=conftest.nm
  10286. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  10287. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  10288. ac_status=$?
  10289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10290. test $ac_status = 0; } && test -s "$ac_nlist"; then
  10291. # See whether the symbols have a leading underscore.
  10292. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  10293. lt_cv_sys_symbol_underscore=yes
  10294. else
  10295. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  10296. :
  10297. else
  10298. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  10299. fi
  10300. fi
  10301. else
  10302. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10303. fi
  10304. else
  10305. echo "configure: failed program was:" >&5
  10306. cat conftest.c >&5
  10307. fi
  10308. rm -rf conftest*
  10309. fi
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
  10311. $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  10312. sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  10313. if test x"$lt_cv_sys_symbol_underscore" = xyes; then
  10314. if test x"$libltdl_cv_func_dlopen" = xyes ||
  10315. test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
  10317. $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
  10318. if test "${libltdl_cv_need_uscore+set}" = set; then :
  10319. $as_echo_n "(cached) " >&6
  10320. else
  10321. libltdl_cv_need_uscore=unknown
  10322. save_LIBS="$LIBS"
  10323. LIBS="$LIBS $LIBADD_DLOPEN"
  10324. if test "$cross_compiling" = yes; then :
  10325. libltdl_cv_need_uscore=cross
  10326. else
  10327. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10328. lt_status=$lt_dlunknown
  10329. cat > conftest.$ac_ext <<_LT_EOF
  10330. #line $LINENO "configure"
  10331. #include "confdefs.h"
  10332. #if HAVE_DLFCN_H
  10333. #include <dlfcn.h>
  10334. #endif
  10335. #include <stdio.h>
  10336. #ifdef RTLD_GLOBAL
  10337. # define LT_DLGLOBAL RTLD_GLOBAL
  10338. #else
  10339. # ifdef DL_GLOBAL
  10340. # define LT_DLGLOBAL DL_GLOBAL
  10341. # else
  10342. # define LT_DLGLOBAL 0
  10343. # endif
  10344. #endif
  10345. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10346. find out it does not work in some platform. */
  10347. #ifndef LT_DLLAZY_OR_NOW
  10348. # ifdef RTLD_LAZY
  10349. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10350. # else
  10351. # ifdef DL_LAZY
  10352. # define LT_DLLAZY_OR_NOW DL_LAZY
  10353. # else
  10354. # ifdef RTLD_NOW
  10355. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10356. # else
  10357. # ifdef DL_NOW
  10358. # define LT_DLLAZY_OR_NOW DL_NOW
  10359. # else
  10360. # define LT_DLLAZY_OR_NOW 0
  10361. # endif
  10362. # endif
  10363. # endif
  10364. # endif
  10365. #endif
  10366. /* When -fvisbility=hidden is used, assume the code has been annotated
  10367. correspondingly for the symbols needed. */
  10368. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10369. int fnord () __attribute__((visibility("default")));
  10370. #endif
  10371. int fnord () { return 42; }
  10372. int main ()
  10373. {
  10374. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10375. int status = $lt_dlunknown;
  10376. if (self)
  10377. {
  10378. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10379. else
  10380. {
  10381. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10382. else puts (dlerror ());
  10383. }
  10384. /* dlclose (self); */
  10385. }
  10386. else
  10387. puts (dlerror ());
  10388. return status;
  10389. }
  10390. _LT_EOF
  10391. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10392. (eval $ac_link) 2>&5
  10393. ac_status=$?
  10394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10395. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10396. (./conftest; exit; ) >&5 2>/dev/null
  10397. lt_status=$?
  10398. case x$lt_status in
  10399. x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
  10400. x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
  10401. x$lt_dlunknown|x*) ;;
  10402. esac
  10403. else :
  10404. # compilation failed
  10405. fi
  10406. fi
  10407. rm -fr conftest*
  10408. LIBS="$save_LIBS"
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
  10411. $as_echo "$libltdl_cv_need_uscore" >&6; }
  10412. fi
  10413. fi
  10414. if test x"$libltdl_cv_need_uscore" = xyes; then
  10415. $as_echo "#define NEED_USCORE 1" >>confdefs.h
  10416. fi
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
  10418. $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
  10419. if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. # PORTME does your system automatically load deplibs for dlopen?
  10423. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  10424. # For now, we just catch OSes we know something about -- in the
  10425. # future, we'll try test this programmatically.
  10426. lt_cv_sys_dlopen_deplibs=unknown
  10427. case $host_os in
  10428. aix3*|aix4.1.*|aix4.2.*)
  10429. # Unknown whether this is true for these versions of AIX, but
  10430. # we want this `case' here to explicitly catch those versions.
  10431. lt_cv_sys_dlopen_deplibs=unknown
  10432. ;;
  10433. aix[4-9]*)
  10434. lt_cv_sys_dlopen_deplibs=yes
  10435. ;;
  10436. amigaos*)
  10437. case $host_cpu in
  10438. powerpc)
  10439. lt_cv_sys_dlopen_deplibs=no
  10440. ;;
  10441. esac
  10442. ;;
  10443. darwin*)
  10444. # Assuming the user has installed a libdl from somewhere, this is true
  10445. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  10446. lt_cv_sys_dlopen_deplibs=yes
  10447. ;;
  10448. freebsd* | dragonfly*)
  10449. lt_cv_sys_dlopen_deplibs=yes
  10450. ;;
  10451. gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10452. # GNU and its variants, using gnu ld.so (Glibc)
  10453. lt_cv_sys_dlopen_deplibs=yes
  10454. ;;
  10455. hpux10*|hpux11*)
  10456. lt_cv_sys_dlopen_deplibs=yes
  10457. ;;
  10458. interix*)
  10459. lt_cv_sys_dlopen_deplibs=yes
  10460. ;;
  10461. irix[12345]*|irix6.[01]*)
  10462. # Catch all versions of IRIX before 6.2, and indicate that we don't
  10463. # know how it worked for any of those versions.
  10464. lt_cv_sys_dlopen_deplibs=unknown
  10465. ;;
  10466. irix*)
  10467. # The case above catches anything before 6.2, and it's known that
  10468. # at 6.2 and later dlopen does load deplibs.
  10469. lt_cv_sys_dlopen_deplibs=yes
  10470. ;;
  10471. netbsd* | netbsdelf*-gnu)
  10472. lt_cv_sys_dlopen_deplibs=yes
  10473. ;;
  10474. openbsd*)
  10475. lt_cv_sys_dlopen_deplibs=yes
  10476. ;;
  10477. osf[1234]*)
  10478. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  10479. # it did *not* use an RPATH in a shared library to find objects the
  10480. # library depends on, so we explicitly say `no'.
  10481. lt_cv_sys_dlopen_deplibs=no
  10482. ;;
  10483. osf5.0|osf5.0a|osf5.1)
  10484. # dlopen *does* load deplibs and with the right loader patch applied
  10485. # it even uses RPATH in a shared library to search for shared objects
  10486. # that the library depends on, but there's no easy way to know if that
  10487. # patch is installed. Since this is the case, all we can really
  10488. # say is unknown -- it depends on the patch being installed. If
  10489. # it is, this changes to `yes'. Without it, it would be `no'.
  10490. lt_cv_sys_dlopen_deplibs=unknown
  10491. ;;
  10492. osf*)
  10493. # the two cases above should catch all versions of osf <= 5.1. Read
  10494. # the comments above for what we know about them.
  10495. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  10496. # is used to find them so we can finally say `yes'.
  10497. lt_cv_sys_dlopen_deplibs=yes
  10498. ;;
  10499. qnx*)
  10500. lt_cv_sys_dlopen_deplibs=yes
  10501. ;;
  10502. solaris*)
  10503. lt_cv_sys_dlopen_deplibs=yes
  10504. ;;
  10505. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10506. libltdl_cv_sys_dlopen_deplibs=yes
  10507. ;;
  10508. esac
  10509. fi
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
  10511. $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
  10512. if test "$lt_cv_sys_dlopen_deplibs" != yes; then
  10513. $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
  10514. fi
  10515. :
  10516. for ac_header in argz.h
  10517. do :
  10518. ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
  10519. "
  10520. if test "x$ac_cv_header_argz_h" = x""yes; then :
  10521. cat >>confdefs.h <<_ACEOF
  10522. #define HAVE_ARGZ_H 1
  10523. _ACEOF
  10524. fi
  10525. done
  10526. ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
  10527. # include <argz.h>
  10528. #endif
  10529. "
  10530. if test "x$ac_cv_type_error_t" = x""yes; then :
  10531. cat >>confdefs.h <<_ACEOF
  10532. #define HAVE_ERROR_T 1
  10533. _ACEOF
  10534. else
  10535. $as_echo "#define error_t int" >>confdefs.h
  10536. $as_echo "#define __error_t_defined 1" >>confdefs.h
  10537. fi
  10538. ARGZ_H=
  10539. for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
  10540. argz_next argz_stringify
  10541. do :
  10542. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10543. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10544. eval as_val=\$$as_ac_var
  10545. if test "x$as_val" = x""yes; then :
  10546. cat >>confdefs.h <<_ACEOF
  10547. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10548. _ACEOF
  10549. else
  10550. ARGZ_H=argz.h;
  10551. _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
  10552. fi
  10553. done
  10554. if test -z "$ARGZ_H"; then :
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
  10556. $as_echo_n "checking if argz actually works... " >&6; }
  10557. if test "${lt_cv_sys_argz_works+set}" = set; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. case $host_os in #(
  10561. *cygwin*)
  10562. lt_cv_sys_argz_works=no
  10563. if test "$cross_compiling" != no; then
  10564. lt_cv_sys_argz_works="guessing no"
  10565. else
  10566. lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
  10567. save_IFS=$IFS
  10568. IFS=-.
  10569. set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
  10570. IFS=$save_IFS
  10571. lt_os_major=${2-0}
  10572. lt_os_minor=${3-0}
  10573. lt_os_micro=${4-0}
  10574. if test "$lt_os_major" -gt 1 \
  10575. || { test "$lt_os_major" -eq 1 \
  10576. && { test "$lt_os_minor" -gt 5 \
  10577. || { test "$lt_os_minor" -eq 5 \
  10578. && test "$lt_os_micro" -gt 24; }; }; }; then
  10579. lt_cv_sys_argz_works=yes
  10580. fi
  10581. fi
  10582. ;; #(
  10583. *) lt_cv_sys_argz_works=yes ;;
  10584. esac
  10585. fi
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
  10587. $as_echo "$lt_cv_sys_argz_works" >&6; }
  10588. if test "$lt_cv_sys_argz_works" = yes; then :
  10589. $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
  10590. else
  10591. ARGZ_H=argz.h
  10592. _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
  10593. fi
  10594. fi
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
  10596. $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
  10597. if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
  10598. $as_echo_n "(cached) " >&6
  10599. else
  10600. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  10601. libltdl_cv_preloaded_symbols=yes
  10602. else
  10603. libltdl_cv_preloaded_symbols=no
  10604. fi
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
  10607. $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
  10608. if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  10609. $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
  10610. fi
  10611. # Set options
  10612. # Check whether --with-included_ltdl was given.
  10613. if test "${with_included_ltdl+set}" = set; then :
  10614. withval=$with_included_ltdl;
  10615. fi
  10616. if test "x$with_included_ltdl" != xyes; then
  10617. # We are not being forced to use the included libltdl sources, so
  10618. # decide whether there is a useful installed version we can use.
  10619. ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
  10620. "
  10621. if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  10622. ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
  10623. #include <ltdl.h>
  10624. "
  10625. if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
  10627. $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
  10628. if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
  10629. $as_echo_n "(cached) " >&6
  10630. else
  10631. ac_check_lib_save_LIBS=$LIBS
  10632. LIBS="-lltdl $LIBS"
  10633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10634. /* end confdefs.h. */
  10635. /* Override any GCC internal prototype to avoid an error.
  10636. Use char because int might match the return type of a GCC
  10637. builtin and then its argument prototype would still apply. */
  10638. #ifdef __cplusplus
  10639. extern "C"
  10640. #endif
  10641. char lt_dladvise_preload ();
  10642. int
  10643. main ()
  10644. {
  10645. return lt_dladvise_preload ();
  10646. ;
  10647. return 0;
  10648. }
  10649. _ACEOF
  10650. if ac_fn_c_try_link "$LINENO"; then :
  10651. ac_cv_lib_ltdl_lt_dladvise_preload=yes
  10652. else
  10653. ac_cv_lib_ltdl_lt_dladvise_preload=no
  10654. fi
  10655. rm -f core conftest.err conftest.$ac_objext \
  10656. conftest$ac_exeext conftest.$ac_ext
  10657. LIBS=$ac_check_lib_save_LIBS
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
  10660. $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
  10661. if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
  10662. with_included_ltdl=no
  10663. else
  10664. with_included_ltdl=yes
  10665. fi
  10666. else
  10667. with_included_ltdl=yes
  10668. fi
  10669. else
  10670. with_included_ltdl=yes
  10671. fi
  10672. fi
  10673. # Check whether --with-ltdl_include was given.
  10674. if test "${with_ltdl_include+set}" = set; then :
  10675. withval=$with_ltdl_include;
  10676. fi
  10677. if test -n "$with_ltdl_include"; then
  10678. if test -f "$with_ltdl_include/ltdl.h"; then :
  10679. else
  10680. as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
  10681. fi
  10682. else
  10683. with_ltdl_include=no
  10684. fi
  10685. # Check whether --with-ltdl_lib was given.
  10686. if test "${with_ltdl_lib+set}" = set; then :
  10687. withval=$with_ltdl_lib;
  10688. fi
  10689. if test -n "$with_ltdl_lib"; then
  10690. if test -f "$with_ltdl_lib/libltdl.la"; then :
  10691. else
  10692. as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
  10693. fi
  10694. else
  10695. with_ltdl_lib=no
  10696. fi
  10697. case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
  10698. ,yes,no,no,)
  10699. case $enable_ltdl_convenience in
  10700. no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
  10701. "") enable_ltdl_convenience=yes
  10702. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  10703. esac
  10704. LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
  10705. LTDLDEPS=$LIBLTDL
  10706. LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
  10707. # For backwards non-gettext consistent compatibility...
  10708. INCLTDL="$LTDLINCL"
  10709. ;;
  10710. ,no,no,no,)
  10711. # If the included ltdl is not to be used, then use the
  10712. # preinstalled libltdl we found.
  10713. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  10714. LIBLTDL=-lltdl
  10715. LTDLDEPS=
  10716. LTDLINCL=
  10717. ;;
  10718. ,no*,no,*)
  10719. as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
  10720. ;;
  10721. *) with_included_ltdl=no
  10722. LIBLTDL="-L$with_ltdl_lib -lltdl"
  10723. LTDLDEPS=
  10724. LTDLINCL="-I$with_ltdl_include"
  10725. ;;
  10726. esac
  10727. INCLTDL="$LTDLINCL"
  10728. # Report our decision...
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
  10730. $as_echo_n "checking where to find libltdl headers... " >&6; }
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
  10732. $as_echo "$LTDLINCL" >&6; }
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
  10734. $as_echo_n "checking where to find libltdl library... " >&6; }
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
  10736. $as_echo "$LIBLTDL" >&6; }
  10737. # Check whether --enable-ltdl-install was given.
  10738. if test "${enable_ltdl_install+set}" = set; then :
  10739. enableval=$enable_ltdl_install;
  10740. fi
  10741. case ,${enable_ltdl_install},${enable_ltdl_convenience} in
  10742. *yes*) ;;
  10743. *) enable_ltdl_convenience=yes ;;
  10744. esac
  10745. if test x"${enable_ltdl_install-no}" != xno; then
  10746. INSTALL_LTDL_TRUE=
  10747. INSTALL_LTDL_FALSE='#'
  10748. else
  10749. INSTALL_LTDL_TRUE='#'
  10750. INSTALL_LTDL_FALSE=
  10751. fi
  10752. if test x"${enable_ltdl_convenience-no}" != xno; then
  10753. CONVENIENCE_LTDL_TRUE=
  10754. CONVENIENCE_LTDL_FALSE='#'
  10755. else
  10756. CONVENIENCE_LTDL_TRUE='#'
  10757. CONVENIENCE_LTDL_FALSE=
  10758. fi
  10759. subdirs="$subdirs libltdl"
  10760. # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
  10761. # the user used. This is so that ltdl.h can pick up the parent projects
  10762. # config.h file, The first file in AC_CONFIG_HEADERS must contain the
  10763. # definitions required by ltdl.c.
  10764. # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
  10765. for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
  10766. do :
  10767. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10768. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10769. "
  10770. eval as_val=\$$as_ac_Header
  10771. if test "x$as_val" = x""yes; then :
  10772. cat >>confdefs.h <<_ACEOF
  10773. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10774. _ACEOF
  10775. fi
  10776. done
  10777. for ac_func in closedir opendir readdir
  10778. do :
  10779. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10780. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10781. eval as_val=\$$as_ac_var
  10782. if test "x$as_val" = x""yes; then :
  10783. cat >>confdefs.h <<_ACEOF
  10784. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10785. _ACEOF
  10786. else
  10787. _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
  10788. fi
  10789. done
  10790. for ac_func in strlcat strlcpy
  10791. do :
  10792. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10793. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10794. eval as_val=\$$as_ac_var
  10795. if test "x$as_val" = x""yes; then :
  10796. cat >>confdefs.h <<_ACEOF
  10797. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10798. _ACEOF
  10799. else
  10800. _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
  10801. fi
  10802. done
  10803. cat >>confdefs.h <<_ACEOF
  10804. #define LT_LIBEXT "$libext"
  10805. _ACEOF
  10806. name=
  10807. eval "lt_libprefix=\"$libname_spec\""
  10808. cat >>confdefs.h <<_ACEOF
  10809. #define LT_LIBPREFIX "$lt_libprefix"
  10810. _ACEOF
  10811. name=ltdl
  10812. eval "LTDLOPEN=\"$libname_spec\""
  10813. # Only expand once:
  10814. # Checks for programs.
  10815. ac_ext=cpp
  10816. ac_cpp='$CXXCPP $CPPFLAGS'
  10817. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10818. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10819. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10820. if test -z "$CXX"; then
  10821. if test -n "$CCC"; then
  10822. CXX=$CCC
  10823. else
  10824. if test -n "$ac_tool_prefix"; then
  10825. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10826. do
  10827. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10828. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10830. $as_echo_n "checking for $ac_word... " >&6; }
  10831. if test "${ac_cv_prog_CXX+set}" = set; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. if test -n "$CXX"; then
  10835. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10836. else
  10837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10838. for as_dir in $PATH
  10839. do
  10840. IFS=$as_save_IFS
  10841. test -z "$as_dir" && as_dir=.
  10842. for ac_exec_ext in '' $ac_executable_extensions; do
  10843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10844. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10846. break 2
  10847. fi
  10848. done
  10849. done
  10850. IFS=$as_save_IFS
  10851. fi
  10852. fi
  10853. CXX=$ac_cv_prog_CXX
  10854. if test -n "$CXX"; then
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10856. $as_echo "$CXX" >&6; }
  10857. else
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10859. $as_echo "no" >&6; }
  10860. fi
  10861. test -n "$CXX" && break
  10862. done
  10863. fi
  10864. if test -z "$CXX"; then
  10865. ac_ct_CXX=$CXX
  10866. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10867. do
  10868. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10869. set dummy $ac_prog; ac_word=$2
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10871. $as_echo_n "checking for $ac_word... " >&6; }
  10872. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  10873. $as_echo_n "(cached) " >&6
  10874. else
  10875. if test -n "$ac_ct_CXX"; then
  10876. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10877. else
  10878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10879. for as_dir in $PATH
  10880. do
  10881. IFS=$as_save_IFS
  10882. test -z "$as_dir" && as_dir=.
  10883. for ac_exec_ext in '' $ac_executable_extensions; do
  10884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10885. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10887. break 2
  10888. fi
  10889. done
  10890. done
  10891. IFS=$as_save_IFS
  10892. fi
  10893. fi
  10894. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10895. if test -n "$ac_ct_CXX"; then
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10897. $as_echo "$ac_ct_CXX" >&6; }
  10898. else
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10900. $as_echo "no" >&6; }
  10901. fi
  10902. test -n "$ac_ct_CXX" && break
  10903. done
  10904. if test "x$ac_ct_CXX" = x; then
  10905. CXX="g++"
  10906. else
  10907. case $cross_compiling:$ac_tool_warned in
  10908. yes:)
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10910. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10911. ac_tool_warned=yes ;;
  10912. esac
  10913. CXX=$ac_ct_CXX
  10914. fi
  10915. fi
  10916. fi
  10917. fi
  10918. # Provide some information about the compiler.
  10919. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10920. set X $ac_compile
  10921. ac_compiler=$2
  10922. for ac_option in --version -v -V -qversion; do
  10923. { { ac_try="$ac_compiler $ac_option >&5"
  10924. case "(($ac_try" in
  10925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10926. *) ac_try_echo=$ac_try;;
  10927. esac
  10928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10929. $as_echo "$ac_try_echo"; } >&5
  10930. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10931. ac_status=$?
  10932. if test -s conftest.err; then
  10933. sed '10a\
  10934. ... rest of stderr output deleted ...
  10935. 10q' conftest.err >conftest.er1
  10936. cat conftest.er1 >&5
  10937. fi
  10938. rm -f conftest.er1 conftest.err
  10939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10940. test $ac_status = 0; }
  10941. done
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10943. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10944. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. int
  10950. main ()
  10951. {
  10952. #ifndef __GNUC__
  10953. choke me
  10954. #endif
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. if ac_fn_cxx_try_compile "$LINENO"; then :
  10960. ac_compiler_gnu=yes
  10961. else
  10962. ac_compiler_gnu=no
  10963. fi
  10964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10965. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10968. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10969. if test $ac_compiler_gnu = yes; then
  10970. GXX=yes
  10971. else
  10972. GXX=
  10973. fi
  10974. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10975. ac_save_CXXFLAGS=$CXXFLAGS
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10977. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10978. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  10979. $as_echo_n "(cached) " >&6
  10980. else
  10981. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10982. ac_cxx_werror_flag=yes
  10983. ac_cv_prog_cxx_g=no
  10984. CXXFLAGS="-g"
  10985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10986. /* end confdefs.h. */
  10987. int
  10988. main ()
  10989. {
  10990. ;
  10991. return 0;
  10992. }
  10993. _ACEOF
  10994. if ac_fn_cxx_try_compile "$LINENO"; then :
  10995. ac_cv_prog_cxx_g=yes
  10996. else
  10997. CXXFLAGS=""
  10998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10999. /* end confdefs.h. */
  11000. int
  11001. main ()
  11002. {
  11003. ;
  11004. return 0;
  11005. }
  11006. _ACEOF
  11007. if ac_fn_cxx_try_compile "$LINENO"; then :
  11008. else
  11009. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11010. CXXFLAGS="-g"
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. int
  11014. main ()
  11015. {
  11016. ;
  11017. return 0;
  11018. }
  11019. _ACEOF
  11020. if ac_fn_cxx_try_compile "$LINENO"; then :
  11021. ac_cv_prog_cxx_g=yes
  11022. fi
  11023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11024. fi
  11025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11026. fi
  11027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11028. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11029. fi
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11031. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11032. if test "$ac_test_CXXFLAGS" = set; then
  11033. CXXFLAGS=$ac_save_CXXFLAGS
  11034. elif test $ac_cv_prog_cxx_g = yes; then
  11035. if test "$GXX" = yes; then
  11036. CXXFLAGS="-g -O2"
  11037. else
  11038. CXXFLAGS="-g"
  11039. fi
  11040. else
  11041. if test "$GXX" = yes; then
  11042. CXXFLAGS="-O2"
  11043. else
  11044. CXXFLAGS=
  11045. fi
  11046. fi
  11047. ac_ext=c
  11048. ac_cpp='$CPP $CPPFLAGS'
  11049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11052. depcc="$CXX" am_compiler_list=
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11054. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11055. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  11056. $as_echo_n "(cached) " >&6
  11057. else
  11058. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11059. # We make a subdir and do the tests there. Otherwise we can end up
  11060. # making bogus files that we don't know about and never remove. For
  11061. # instance it was reported that on HP-UX the gcc test will end up
  11062. # making a dummy file named `D' -- because `-MD' means `put the output
  11063. # in D'.
  11064. mkdir conftest.dir
  11065. # Copy depcomp to subdir because otherwise we won't find it if we're
  11066. # using a relative directory.
  11067. cp "$am_depcomp" conftest.dir
  11068. cd conftest.dir
  11069. # We will build objects and dependencies in a subdirectory because
  11070. # it helps to detect inapplicable dependency modes. For instance
  11071. # both Tru64's cc and ICC support -MD to output dependencies as a
  11072. # side effect of compilation, but ICC will put the dependencies in
  11073. # the current directory while Tru64 will put them in the object
  11074. # directory.
  11075. mkdir sub
  11076. am_cv_CXX_dependencies_compiler_type=none
  11077. if test "$am_compiler_list" = ""; then
  11078. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11079. fi
  11080. am__universal=false
  11081. case " $depcc " in #(
  11082. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11083. esac
  11084. for depmode in $am_compiler_list; do
  11085. # Setup a source with many dependencies, because some compilers
  11086. # like to wrap large dependency lists on column 80 (with \), and
  11087. # we should not choose a depcomp mode which is confused by this.
  11088. #
  11089. # We need to recreate these files for each test, as the compiler may
  11090. # overwrite some of them when testing with obscure command lines.
  11091. # This happens at least with the AIX C compiler.
  11092. : > sub/conftest.c
  11093. for i in 1 2 3 4 5 6; do
  11094. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11095. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  11096. # Solaris 8's {/usr,}/bin/sh.
  11097. touch sub/conftst$i.h
  11098. done
  11099. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11100. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11101. # mode. It turns out that the SunPro C++ compiler does not properly
  11102. # handle `-M -o', and we need to detect this. Also, some Intel
  11103. # versions had trouble with output in subdirs
  11104. am__obj=sub/conftest.${OBJEXT-o}
  11105. am__minus_obj="-o $am__obj"
  11106. case $depmode in
  11107. gcc)
  11108. # This depmode causes a compiler race in universal mode.
  11109. test "$am__universal" = false || continue
  11110. ;;
  11111. nosideeffect)
  11112. # after this tag, mechanisms are not by side-effect, so they'll
  11113. # only be used when explicitly requested
  11114. if test "x$enable_dependency_tracking" = xyes; then
  11115. continue
  11116. else
  11117. break
  11118. fi
  11119. ;;
  11120. msvisualcpp | msvcmsys)
  11121. # This compiler won't grok `-c -o', but also, the minuso test has
  11122. # not run yet. These depmodes are late enough in the game, and
  11123. # so weak that their functioning should not be impacted.
  11124. am__obj=conftest.${OBJEXT-o}
  11125. am__minus_obj=
  11126. ;;
  11127. none) break ;;
  11128. esac
  11129. if depmode=$depmode \
  11130. source=sub/conftest.c object=$am__obj \
  11131. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11132. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11133. >/dev/null 2>conftest.err &&
  11134. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11135. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11136. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11137. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11138. # icc doesn't choke on unknown options, it will just issue warnings
  11139. # or remarks (even with -Werror). So we grep stderr for any message
  11140. # that says an option was ignored or not supported.
  11141. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11142. # icc: Command line warning: ignoring option '-M'; no argument required
  11143. # The diagnosis changed in icc 8.0:
  11144. # icc: Command line remark: option '-MP' not supported
  11145. if (grep 'ignoring option' conftest.err ||
  11146. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11147. am_cv_CXX_dependencies_compiler_type=$depmode
  11148. break
  11149. fi
  11150. fi
  11151. done
  11152. cd ..
  11153. rm -rf conftest.dir
  11154. else
  11155. am_cv_CXX_dependencies_compiler_type=none
  11156. fi
  11157. fi
  11158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11159. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11160. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11161. if
  11162. test "x$enable_dependency_tracking" != xno \
  11163. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11164. am__fastdepCXX_TRUE=
  11165. am__fastdepCXX_FALSE='#'
  11166. else
  11167. am__fastdepCXX_TRUE='#'
  11168. am__fastdepCXX_FALSE=
  11169. fi
  11170. func_stripname_cnf ()
  11171. {
  11172. case ${2} in
  11173. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11174. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11175. esac
  11176. } # func_stripname_cnf
  11177. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11178. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11179. (test "X$CXX" != "Xg++"))) ; then
  11180. ac_ext=cpp
  11181. ac_cpp='$CXXCPP $CPPFLAGS'
  11182. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11183. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11184. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11186. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11187. if test -z "$CXXCPP"; then
  11188. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  11189. $as_echo_n "(cached) " >&6
  11190. else
  11191. # Double quotes because CXXCPP needs to be expanded
  11192. for CXXCPP in "$CXX -E" "/lib/cpp"
  11193. do
  11194. ac_preproc_ok=false
  11195. for ac_cxx_preproc_warn_flag in '' yes
  11196. do
  11197. # Use a header file that comes with gcc, so configuring glibc
  11198. # with a fresh cross-compiler works.
  11199. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11200. # <limits.h> exists even on freestanding compilers.
  11201. # On the NeXT, cc -E runs the code through the compiler's parser,
  11202. # not just through cpp. "Syntax error" is here to catch this case.
  11203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11204. /* end confdefs.h. */
  11205. #ifdef __STDC__
  11206. # include <limits.h>
  11207. #else
  11208. # include <assert.h>
  11209. #endif
  11210. Syntax error
  11211. _ACEOF
  11212. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11213. else
  11214. # Broken: fails on valid input.
  11215. continue
  11216. fi
  11217. rm -f conftest.err conftest.$ac_ext
  11218. # OK, works on sane cases. Now check whether nonexistent headers
  11219. # can be detected and how.
  11220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11221. /* end confdefs.h. */
  11222. #include <ac_nonexistent.h>
  11223. _ACEOF
  11224. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11225. # Broken: success on invalid input.
  11226. continue
  11227. else
  11228. # Passes both tests.
  11229. ac_preproc_ok=:
  11230. break
  11231. fi
  11232. rm -f conftest.err conftest.$ac_ext
  11233. done
  11234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11235. rm -f conftest.err conftest.$ac_ext
  11236. if $ac_preproc_ok; then :
  11237. break
  11238. fi
  11239. done
  11240. ac_cv_prog_CXXCPP=$CXXCPP
  11241. fi
  11242. CXXCPP=$ac_cv_prog_CXXCPP
  11243. else
  11244. ac_cv_prog_CXXCPP=$CXXCPP
  11245. fi
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11247. $as_echo "$CXXCPP" >&6; }
  11248. ac_preproc_ok=false
  11249. for ac_cxx_preproc_warn_flag in '' yes
  11250. do
  11251. # Use a header file that comes with gcc, so configuring glibc
  11252. # with a fresh cross-compiler works.
  11253. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11254. # <limits.h> exists even on freestanding compilers.
  11255. # On the NeXT, cc -E runs the code through the compiler's parser,
  11256. # not just through cpp. "Syntax error" is here to catch this case.
  11257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11258. /* end confdefs.h. */
  11259. #ifdef __STDC__
  11260. # include <limits.h>
  11261. #else
  11262. # include <assert.h>
  11263. #endif
  11264. Syntax error
  11265. _ACEOF
  11266. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11267. else
  11268. # Broken: fails on valid input.
  11269. continue
  11270. fi
  11271. rm -f conftest.err conftest.$ac_ext
  11272. # OK, works on sane cases. Now check whether nonexistent headers
  11273. # can be detected and how.
  11274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11275. /* end confdefs.h. */
  11276. #include <ac_nonexistent.h>
  11277. _ACEOF
  11278. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11279. # Broken: success on invalid input.
  11280. continue
  11281. else
  11282. # Passes both tests.
  11283. ac_preproc_ok=:
  11284. break
  11285. fi
  11286. rm -f conftest.err conftest.$ac_ext
  11287. done
  11288. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11289. rm -f conftest.err conftest.$ac_ext
  11290. if $ac_preproc_ok; then :
  11291. else
  11292. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11294. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  11295. See \`config.log' for more details." "$LINENO" 5; }
  11296. fi
  11297. ac_ext=c
  11298. ac_cpp='$CPP $CPPFLAGS'
  11299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11302. else
  11303. _lt_caught_CXX_error=yes
  11304. fi
  11305. ac_ext=cpp
  11306. ac_cpp='$CXXCPP $CPPFLAGS'
  11307. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11308. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11309. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11310. archive_cmds_need_lc_CXX=no
  11311. allow_undefined_flag_CXX=
  11312. always_export_symbols_CXX=no
  11313. archive_expsym_cmds_CXX=
  11314. compiler_needs_object_CXX=no
  11315. export_dynamic_flag_spec_CXX=
  11316. hardcode_direct_CXX=no
  11317. hardcode_direct_absolute_CXX=no
  11318. hardcode_libdir_flag_spec_CXX=
  11319. hardcode_libdir_flag_spec_ld_CXX=
  11320. hardcode_libdir_separator_CXX=
  11321. hardcode_minus_L_CXX=no
  11322. hardcode_shlibpath_var_CXX=unsupported
  11323. hardcode_automatic_CXX=no
  11324. inherit_rpath_CXX=no
  11325. module_cmds_CXX=
  11326. module_expsym_cmds_CXX=
  11327. link_all_deplibs_CXX=unknown
  11328. old_archive_cmds_CXX=$old_archive_cmds
  11329. reload_flag_CXX=$reload_flag
  11330. reload_cmds_CXX=$reload_cmds
  11331. no_undefined_flag_CXX=
  11332. whole_archive_flag_spec_CXX=
  11333. enable_shared_with_static_runtimes_CXX=no
  11334. # Source file extension for C++ test sources.
  11335. ac_ext=cpp
  11336. # Object file extension for compiled C++ test sources.
  11337. objext=o
  11338. objext_CXX=$objext
  11339. # No sense in running all these tests if we already determined that
  11340. # the CXX compiler isn't working. Some variables (like enable_shared)
  11341. # are currently assumed to apply to all compilers on this platform,
  11342. # and will be corrupted by setting them based on a non-working compiler.
  11343. if test "$_lt_caught_CXX_error" != yes; then
  11344. # Code to be used in simple compile tests
  11345. lt_simple_compile_test_code="int some_variable = 0;"
  11346. # Code to be used in simple link tests
  11347. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11348. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11349. # If no C compiler was specified, use CC.
  11350. LTCC=${LTCC-"$CC"}
  11351. # If no C compiler flags were specified, use CFLAGS.
  11352. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11353. # Allow CC to be a program name with arguments.
  11354. compiler=$CC
  11355. # save warnings/boilerplate of simple test code
  11356. ac_outfile=conftest.$ac_objext
  11357. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11358. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11359. _lt_compiler_boilerplate=`cat conftest.err`
  11360. $RM conftest*
  11361. ac_outfile=conftest.$ac_objext
  11362. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11363. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11364. _lt_linker_boilerplate=`cat conftest.err`
  11365. $RM -r conftest*
  11366. # Allow CC to be a program name with arguments.
  11367. lt_save_CC=$CC
  11368. lt_save_CFLAGS=$CFLAGS
  11369. lt_save_LD=$LD
  11370. lt_save_GCC=$GCC
  11371. GCC=$GXX
  11372. lt_save_with_gnu_ld=$with_gnu_ld
  11373. lt_save_path_LD=$lt_cv_path_LD
  11374. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11375. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11376. else
  11377. $as_unset lt_cv_prog_gnu_ld
  11378. fi
  11379. if test -n "${lt_cv_path_LDCXX+set}"; then
  11380. lt_cv_path_LD=$lt_cv_path_LDCXX
  11381. else
  11382. $as_unset lt_cv_path_LD
  11383. fi
  11384. test -z "${LDCXX+set}" || LD=$LDCXX
  11385. CC=${CXX-"c++"}
  11386. CFLAGS=$CXXFLAGS
  11387. compiler=$CC
  11388. compiler_CXX=$CC
  11389. for cc_temp in $compiler""; do
  11390. case $cc_temp in
  11391. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11392. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11393. \-*) ;;
  11394. *) break;;
  11395. esac
  11396. done
  11397. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11398. if test -n "$compiler"; then
  11399. # We don't want -fno-exception when compiling C++ code, so set the
  11400. # no_builtin_flag separately
  11401. if test "$GXX" = yes; then
  11402. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11403. else
  11404. lt_prog_compiler_no_builtin_flag_CXX=
  11405. fi
  11406. if test "$GXX" = yes; then
  11407. # Set up default GNU C++ configuration
  11408. # Check whether --with-gnu-ld was given.
  11409. if test "${with_gnu_ld+set}" = set; then :
  11410. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11411. else
  11412. with_gnu_ld=no
  11413. fi
  11414. ac_prog=ld
  11415. if test "$GCC" = yes; then
  11416. # Check if gcc -print-prog-name=ld gives a path.
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11418. $as_echo_n "checking for ld used by $CC... " >&6; }
  11419. case $host in
  11420. *-*-mingw*)
  11421. # gcc leaves a trailing carriage return which upsets mingw
  11422. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11423. *)
  11424. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11425. esac
  11426. case $ac_prog in
  11427. # Accept absolute paths.
  11428. [\\/]* | ?:[\\/]*)
  11429. re_direlt='/[^/][^/]*/\.\./'
  11430. # Canonicalize the pathname of ld
  11431. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11432. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11433. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11434. done
  11435. test -z "$LD" && LD="$ac_prog"
  11436. ;;
  11437. "")
  11438. # If it fails, then pretend we aren't using GCC.
  11439. ac_prog=ld
  11440. ;;
  11441. *)
  11442. # If it is relative, then search for the first ld in PATH.
  11443. with_gnu_ld=unknown
  11444. ;;
  11445. esac
  11446. elif test "$with_gnu_ld" = yes; then
  11447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11448. $as_echo_n "checking for GNU ld... " >&6; }
  11449. else
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11451. $as_echo_n "checking for non-GNU ld... " >&6; }
  11452. fi
  11453. if test "${lt_cv_path_LD+set}" = set; then :
  11454. $as_echo_n "(cached) " >&6
  11455. else
  11456. if test -z "$LD"; then
  11457. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11458. for ac_dir in $PATH; do
  11459. IFS="$lt_save_ifs"
  11460. test -z "$ac_dir" && ac_dir=.
  11461. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11462. lt_cv_path_LD="$ac_dir/$ac_prog"
  11463. # Check to see if the program is GNU ld. I'd rather use --version,
  11464. # but apparently some variants of GNU ld only accept -v.
  11465. # Break only if it was the GNU/non-GNU ld that we prefer.
  11466. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11467. *GNU* | *'with BFD'*)
  11468. test "$with_gnu_ld" != no && break
  11469. ;;
  11470. *)
  11471. test "$with_gnu_ld" != yes && break
  11472. ;;
  11473. esac
  11474. fi
  11475. done
  11476. IFS="$lt_save_ifs"
  11477. else
  11478. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11479. fi
  11480. fi
  11481. LD="$lt_cv_path_LD"
  11482. if test -n "$LD"; then
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11484. $as_echo "$LD" >&6; }
  11485. else
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11487. $as_echo "no" >&6; }
  11488. fi
  11489. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  11490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11491. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11492. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  11493. $as_echo_n "(cached) " >&6
  11494. else
  11495. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11496. case `$LD -v 2>&1 </dev/null` in
  11497. *GNU* | *'with BFD'*)
  11498. lt_cv_prog_gnu_ld=yes
  11499. ;;
  11500. *)
  11501. lt_cv_prog_gnu_ld=no
  11502. ;;
  11503. esac
  11504. fi
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11506. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11507. with_gnu_ld=$lt_cv_prog_gnu_ld
  11508. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11509. # archiving commands below assume that GNU ld is being used.
  11510. if test "$with_gnu_ld" = yes; then
  11511. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11512. 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'
  11513. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11514. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11515. # If archive_cmds runs LD, not CC, wlarc should be empty
  11516. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11517. # investigate it a little bit more. (MM)
  11518. wlarc='${wl}'
  11519. # ancient GNU ld didn't support --whole-archive et. al.
  11520. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11521. $GREP 'no-whole-archive' > /dev/null; then
  11522. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11523. else
  11524. whole_archive_flag_spec_CXX=
  11525. fi
  11526. else
  11527. with_gnu_ld=no
  11528. wlarc=
  11529. # A generic and very simple default shared library creation
  11530. # command for GNU C++ for the case where it uses the native
  11531. # linker, instead of GNU ld. If possible, this setting should
  11532. # overridden to take advantage of the native linker features on
  11533. # the platform it is being used on.
  11534. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11535. fi
  11536. # Commands to make compiler produce verbose output that lists
  11537. # what "hidden" libraries, object files and flags are used when
  11538. # linking a shared library.
  11539. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11540. else
  11541. GXX=no
  11542. with_gnu_ld=no
  11543. wlarc=
  11544. fi
  11545. # PORTME: fill in a description of your system's C++ link characteristics
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11547. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11548. ld_shlibs_CXX=yes
  11549. case $host_os in
  11550. aix3*)
  11551. # FIXME: insert proper C++ library support
  11552. ld_shlibs_CXX=no
  11553. ;;
  11554. aix[4-9]*)
  11555. if test "$host_cpu" = ia64; then
  11556. # On IA64, the linker does run time linking by default, so we don't
  11557. # have to do anything special.
  11558. aix_use_runtimelinking=no
  11559. exp_sym_flag='-Bexport'
  11560. no_entry_flag=""
  11561. else
  11562. aix_use_runtimelinking=no
  11563. # Test if we are trying to use run time linking or normal
  11564. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11565. # need to do runtime linking.
  11566. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11567. for ld_flag in $LDFLAGS; do
  11568. case $ld_flag in
  11569. *-brtl*)
  11570. aix_use_runtimelinking=yes
  11571. break
  11572. ;;
  11573. esac
  11574. done
  11575. ;;
  11576. esac
  11577. exp_sym_flag='-bexport'
  11578. no_entry_flag='-bnoentry'
  11579. fi
  11580. # When large executables or shared objects are built, AIX ld can
  11581. # have problems creating the table of contents. If linking a library
  11582. # or program results in "error TOC overflow" add -mminimal-toc to
  11583. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11584. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11585. archive_cmds_CXX=''
  11586. hardcode_direct_CXX=yes
  11587. hardcode_direct_absolute_CXX=yes
  11588. hardcode_libdir_separator_CXX=':'
  11589. link_all_deplibs_CXX=yes
  11590. file_list_spec_CXX='${wl}-f,'
  11591. if test "$GXX" = yes; then
  11592. case $host_os in aix4.[012]|aix4.[012].*)
  11593. # We only want to do this on AIX 4.2 and lower, the check
  11594. # below for broken collect2 doesn't work under 4.3+
  11595. collect2name=`${CC} -print-prog-name=collect2`
  11596. if test -f "$collect2name" &&
  11597. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11598. then
  11599. # We have reworked collect2
  11600. :
  11601. else
  11602. # We have old collect2
  11603. hardcode_direct_CXX=unsupported
  11604. # It fails to find uninstalled libraries when the uninstalled
  11605. # path is not listed in the libpath. Setting hardcode_minus_L
  11606. # to unsupported forces relinking
  11607. hardcode_minus_L_CXX=yes
  11608. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11609. hardcode_libdir_separator_CXX=
  11610. fi
  11611. esac
  11612. shared_flag='-shared'
  11613. if test "$aix_use_runtimelinking" = yes; then
  11614. shared_flag="$shared_flag "'${wl}-G'
  11615. fi
  11616. else
  11617. # not using gcc
  11618. if test "$host_cpu" = ia64; then
  11619. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11620. # chokes on -Wl,-G. The following line is correct:
  11621. shared_flag='-G'
  11622. else
  11623. if test "$aix_use_runtimelinking" = yes; then
  11624. shared_flag='${wl}-G'
  11625. else
  11626. shared_flag='${wl}-bM:SRE'
  11627. fi
  11628. fi
  11629. fi
  11630. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11631. # It seems that -bexpall does not export symbols beginning with
  11632. # underscore (_), so it is better to generate a list of symbols to
  11633. # export.
  11634. always_export_symbols_CXX=yes
  11635. if test "$aix_use_runtimelinking" = yes; then
  11636. # Warning - without using the other runtime loading flags (-brtl),
  11637. # -berok will link without error, but may produce a broken library.
  11638. allow_undefined_flag_CXX='-berok'
  11639. # Determine the default libpath from the value encoded in an empty
  11640. # executable.
  11641. if test "${lt_cv_aix_libpath+set}" = set; then
  11642. aix_libpath=$lt_cv_aix_libpath
  11643. else
  11644. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  11645. $as_echo_n "(cached) " >&6
  11646. else
  11647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11648. /* end confdefs.h. */
  11649. int
  11650. main ()
  11651. {
  11652. ;
  11653. return 0;
  11654. }
  11655. _ACEOF
  11656. if ac_fn_cxx_try_link "$LINENO"; then :
  11657. lt_aix_libpath_sed='
  11658. /Import File Strings/,/^$/ {
  11659. /^0/ {
  11660. s/^0 *\([^ ]*\) *$/\1/
  11661. p
  11662. }
  11663. }'
  11664. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11665. # Check for a 64-bit object if we didn't find anything.
  11666. if test -z "$lt_cv_aix_libpath__CXX"; then
  11667. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11668. fi
  11669. fi
  11670. rm -f core conftest.err conftest.$ac_objext \
  11671. conftest$ac_exeext conftest.$ac_ext
  11672. if test -z "$lt_cv_aix_libpath__CXX"; then
  11673. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11674. fi
  11675. fi
  11676. aix_libpath=$lt_cv_aix_libpath__CXX
  11677. fi
  11678. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11679. 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"
  11680. else
  11681. if test "$host_cpu" = ia64; then
  11682. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11683. allow_undefined_flag_CXX="-z nodefs"
  11684. 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"
  11685. else
  11686. # Determine the default libpath from the value encoded in an
  11687. # empty executable.
  11688. if test "${lt_cv_aix_libpath+set}" = set; then
  11689. aix_libpath=$lt_cv_aix_libpath
  11690. else
  11691. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  11692. $as_echo_n "(cached) " >&6
  11693. else
  11694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11695. /* end confdefs.h. */
  11696. int
  11697. main ()
  11698. {
  11699. ;
  11700. return 0;
  11701. }
  11702. _ACEOF
  11703. if ac_fn_cxx_try_link "$LINENO"; then :
  11704. lt_aix_libpath_sed='
  11705. /Import File Strings/,/^$/ {
  11706. /^0/ {
  11707. s/^0 *\([^ ]*\) *$/\1/
  11708. p
  11709. }
  11710. }'
  11711. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11712. # Check for a 64-bit object if we didn't find anything.
  11713. if test -z "$lt_cv_aix_libpath__CXX"; then
  11714. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11715. fi
  11716. fi
  11717. rm -f core conftest.err conftest.$ac_objext \
  11718. conftest$ac_exeext conftest.$ac_ext
  11719. if test -z "$lt_cv_aix_libpath__CXX"; then
  11720. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11721. fi
  11722. fi
  11723. aix_libpath=$lt_cv_aix_libpath__CXX
  11724. fi
  11725. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11726. # Warning - without using the other run time loading flags,
  11727. # -berok will link without error, but may produce a broken library.
  11728. no_undefined_flag_CXX=' ${wl}-bernotok'
  11729. allow_undefined_flag_CXX=' ${wl}-berok'
  11730. if test "$with_gnu_ld" = yes; then
  11731. # We only use this code for GNU lds that support --whole-archive.
  11732. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11733. else
  11734. # Exported symbols can be pulled into shared objects from archives
  11735. whole_archive_flag_spec_CXX='$convenience'
  11736. fi
  11737. archive_cmds_need_lc_CXX=yes
  11738. # This is similar to how AIX traditionally builds its shared
  11739. # libraries.
  11740. 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'
  11741. fi
  11742. fi
  11743. ;;
  11744. beos*)
  11745. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11746. allow_undefined_flag_CXX=unsupported
  11747. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11748. # support --undefined. This deserves some investigation. FIXME
  11749. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11750. else
  11751. ld_shlibs_CXX=no
  11752. fi
  11753. ;;
  11754. chorus*)
  11755. case $cc_basename in
  11756. *)
  11757. # FIXME: insert proper C++ library support
  11758. ld_shlibs_CXX=no
  11759. ;;
  11760. esac
  11761. ;;
  11762. cygwin* | mingw* | pw32* | cegcc*)
  11763. case $GXX,$cc_basename in
  11764. ,cl* | no,cl*)
  11765. # Native MSVC
  11766. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11767. # no search path for DLLs.
  11768. hardcode_libdir_flag_spec_CXX=' '
  11769. allow_undefined_flag_CXX=unsupported
  11770. always_export_symbols_CXX=yes
  11771. file_list_spec_CXX='@'
  11772. # Tell ltmain to make .lib files, not .a files.
  11773. libext=lib
  11774. # Tell ltmain to make .dll files, not .so files.
  11775. shrext_cmds=".dll"
  11776. # FIXME: Setting linknames here is a bad hack.
  11777. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11778. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11779. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11780. else
  11781. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11782. fi~
  11783. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11784. linknames='
  11785. # The linker will not automatically build a static lib if we build a DLL.
  11786. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11787. enable_shared_with_static_runtimes_CXX=yes
  11788. # Don't use ranlib
  11789. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11790. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11791. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11792. case $lt_outputfile in
  11793. *.exe|*.EXE) ;;
  11794. *)
  11795. lt_outputfile="$lt_outputfile.exe"
  11796. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11797. ;;
  11798. esac~
  11799. func_to_tool_file "$lt_outputfile"~
  11800. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11801. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11802. $RM "$lt_outputfile.manifest";
  11803. fi'
  11804. ;;
  11805. *)
  11806. # g++
  11807. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11808. # as there is no search path for DLLs.
  11809. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11810. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11811. allow_undefined_flag_CXX=unsupported
  11812. always_export_symbols_CXX=no
  11813. enable_shared_with_static_runtimes_CXX=yes
  11814. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11815. 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'
  11816. # If the export-symbols file already is a .def file (1st line
  11817. # is EXPORTS), use it as is; otherwise, prepend...
  11818. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11819. cp $export_symbols $output_objdir/$soname.def;
  11820. else
  11821. echo EXPORTS > $output_objdir/$soname.def;
  11822. cat $export_symbols >> $output_objdir/$soname.def;
  11823. fi~
  11824. $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'
  11825. else
  11826. ld_shlibs_CXX=no
  11827. fi
  11828. ;;
  11829. esac
  11830. ;;
  11831. darwin* | rhapsody*)
  11832. archive_cmds_need_lc_CXX=no
  11833. hardcode_direct_CXX=no
  11834. hardcode_automatic_CXX=yes
  11835. hardcode_shlibpath_var_CXX=unsupported
  11836. if test "$lt_cv_ld_force_load" = "yes"; then
  11837. 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\"`'
  11838. else
  11839. whole_archive_flag_spec_CXX=''
  11840. fi
  11841. link_all_deplibs_CXX=yes
  11842. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11843. case $cc_basename in
  11844. ifort*) _lt_dar_can_shared=yes ;;
  11845. *) _lt_dar_can_shared=$GCC ;;
  11846. esac
  11847. if test "$_lt_dar_can_shared" = "yes"; then
  11848. output_verbose_link_cmd=func_echo_all
  11849. 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}"
  11850. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11851. 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}"
  11852. 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}"
  11853. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11854. 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}"
  11855. 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}"
  11856. fi
  11857. else
  11858. ld_shlibs_CXX=no
  11859. fi
  11860. ;;
  11861. dgux*)
  11862. case $cc_basename in
  11863. ec++*)
  11864. # FIXME: insert proper C++ library support
  11865. ld_shlibs_CXX=no
  11866. ;;
  11867. ghcx*)
  11868. # Green Hills C++ Compiler
  11869. # FIXME: insert proper C++ library support
  11870. ld_shlibs_CXX=no
  11871. ;;
  11872. *)
  11873. # FIXME: insert proper C++ library support
  11874. ld_shlibs_CXX=no
  11875. ;;
  11876. esac
  11877. ;;
  11878. freebsd[12]*)
  11879. # C++ shared libraries reported to be fairly broken before
  11880. # switch to ELF
  11881. ld_shlibs_CXX=no
  11882. ;;
  11883. freebsd-elf*)
  11884. archive_cmds_need_lc_CXX=no
  11885. ;;
  11886. freebsd* | dragonfly*)
  11887. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11888. # conventions
  11889. ld_shlibs_CXX=yes
  11890. ;;
  11891. gnu*)
  11892. ;;
  11893. haiku*)
  11894. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11895. link_all_deplibs_CXX=yes
  11896. ;;
  11897. hpux9*)
  11898. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11899. hardcode_libdir_separator_CXX=:
  11900. export_dynamic_flag_spec_CXX='${wl}-E'
  11901. hardcode_direct_CXX=yes
  11902. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11903. # but as the default
  11904. # location of the library.
  11905. case $cc_basename in
  11906. CC*)
  11907. # FIXME: insert proper C++ library support
  11908. ld_shlibs_CXX=no
  11909. ;;
  11910. aCC*)
  11911. 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'
  11912. # Commands to make compiler produce verbose output that lists
  11913. # what "hidden" libraries, object files and flags are used when
  11914. # linking a shared library.
  11915. #
  11916. # There doesn't appear to be a way to prevent this compiler from
  11917. # explicitly linking system object files so we need to strip them
  11918. # from the output so that they don't get included in the library
  11919. # dependencies.
  11920. 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"'
  11921. ;;
  11922. *)
  11923. if test "$GXX" = yes; then
  11924. 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'
  11925. else
  11926. # FIXME: insert proper C++ library support
  11927. ld_shlibs_CXX=no
  11928. fi
  11929. ;;
  11930. esac
  11931. ;;
  11932. hpux10*|hpux11*)
  11933. if test $with_gnu_ld = no; then
  11934. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11935. hardcode_libdir_separator_CXX=:
  11936. case $host_cpu in
  11937. hppa*64*|ia64*)
  11938. ;;
  11939. *)
  11940. export_dynamic_flag_spec_CXX='${wl}-E'
  11941. ;;
  11942. esac
  11943. fi
  11944. case $host_cpu in
  11945. hppa*64*|ia64*)
  11946. hardcode_direct_CXX=no
  11947. hardcode_shlibpath_var_CXX=no
  11948. ;;
  11949. *)
  11950. hardcode_direct_CXX=yes
  11951. hardcode_direct_absolute_CXX=yes
  11952. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11953. # but as the default
  11954. # location of the library.
  11955. ;;
  11956. esac
  11957. case $cc_basename in
  11958. CC*)
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. aCC*)
  11963. case $host_cpu in
  11964. hppa*64*)
  11965. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11966. ;;
  11967. ia64*)
  11968. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11969. ;;
  11970. *)
  11971. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11972. ;;
  11973. esac
  11974. # Commands to make compiler produce verbose output that lists
  11975. # what "hidden" libraries, object files and flags are used when
  11976. # linking a shared library.
  11977. #
  11978. # There doesn't appear to be a way to prevent this compiler from
  11979. # explicitly linking system object files so we need to strip them
  11980. # from the output so that they don't get included in the library
  11981. # dependencies.
  11982. 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"'
  11983. ;;
  11984. *)
  11985. if test "$GXX" = yes; then
  11986. if test $with_gnu_ld = no; then
  11987. case $host_cpu in
  11988. hppa*64*)
  11989. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11990. ;;
  11991. ia64*)
  11992. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11993. ;;
  11994. *)
  11995. 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'
  11996. ;;
  11997. esac
  11998. fi
  11999. else
  12000. # FIXME: insert proper C++ library support
  12001. ld_shlibs_CXX=no
  12002. fi
  12003. ;;
  12004. esac
  12005. ;;
  12006. interix[3-9]*)
  12007. hardcode_direct_CXX=no
  12008. hardcode_shlibpath_var_CXX=no
  12009. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12010. export_dynamic_flag_spec_CXX='${wl}-E'
  12011. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12012. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12013. # default) and relocated if they conflict, which is a slow very memory
  12014. # consuming and fragmenting process. To avoid this, we pick a random,
  12015. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12016. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12017. 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'
  12018. 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'
  12019. ;;
  12020. irix5* | irix6*)
  12021. case $cc_basename in
  12022. CC*)
  12023. # SGI C++
  12024. 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'
  12025. # Archives containing C++ object files must be created using
  12026. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12027. # necessary to make sure instantiated templates are included
  12028. # in the archive.
  12029. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12030. ;;
  12031. *)
  12032. if test "$GXX" = yes; then
  12033. if test "$with_gnu_ld" = no; then
  12034. 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'
  12035. else
  12036. 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'
  12037. fi
  12038. fi
  12039. link_all_deplibs_CXX=yes
  12040. ;;
  12041. esac
  12042. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12043. hardcode_libdir_separator_CXX=:
  12044. inherit_rpath_CXX=yes
  12045. ;;
  12046. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12047. case $cc_basename in
  12048. KCC*)
  12049. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12050. # KCC will only create a shared library if the output file
  12051. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12052. # to its proper name (with version) after linking.
  12053. 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'
  12054. 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'
  12055. # Commands to make compiler produce verbose output that lists
  12056. # what "hidden" libraries, object files and flags are used when
  12057. # linking a shared library.
  12058. #
  12059. # There doesn't appear to be a way to prevent this compiler from
  12060. # explicitly linking system object files so we need to strip them
  12061. # from the output so that they don't get included in the library
  12062. # dependencies.
  12063. 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"'
  12064. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12065. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12066. # Archives containing C++ object files must be created using
  12067. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12068. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12069. ;;
  12070. icpc* | ecpc* )
  12071. # Intel C++
  12072. with_gnu_ld=yes
  12073. # version 8.0 and above of icpc choke on multiply defined symbols
  12074. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12075. # earlier do not add the objects themselves.
  12076. case `$CC -V 2>&1` in
  12077. *"Version 7."*)
  12078. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12079. 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'
  12080. ;;
  12081. *) # Version 8.0 or newer
  12082. tmp_idyn=
  12083. case $host_cpu in
  12084. ia64*) tmp_idyn=' -i_dynamic';;
  12085. esac
  12086. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12087. 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'
  12088. ;;
  12089. esac
  12090. archive_cmds_need_lc_CXX=no
  12091. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12092. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12093. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12094. ;;
  12095. pgCC* | pgcpp*)
  12096. # Portland Group C++ compiler
  12097. case `$CC -V` in
  12098. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12099. prelink_cmds_CXX='tpldir=Template.dir~
  12100. rm -rf $tpldir~
  12101. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12102. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12103. old_archive_cmds_CXX='tpldir=Template.dir~
  12104. rm -rf $tpldir~
  12105. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12106. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12107. $RANLIB $oldlib'
  12108. archive_cmds_CXX='tpldir=Template.dir~
  12109. rm -rf $tpldir~
  12110. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12111. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12112. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12113. rm -rf $tpldir~
  12114. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12115. $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'
  12116. ;;
  12117. *) # Version 6 and above use weak symbols
  12118. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12119. 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'
  12120. ;;
  12121. esac
  12122. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12123. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12124. 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'
  12125. ;;
  12126. cxx*)
  12127. # Compaq C++
  12128. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12129. 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'
  12130. runpath_var=LD_RUN_PATH
  12131. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12132. hardcode_libdir_separator_CXX=:
  12133. # Commands to make compiler produce verbose output that lists
  12134. # what "hidden" libraries, object files and flags are used when
  12135. # linking a shared library.
  12136. #
  12137. # There doesn't appear to be a way to prevent this compiler from
  12138. # explicitly linking system object files so we need to strip them
  12139. # from the output so that they don't get included in the library
  12140. # dependencies.
  12141. 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'
  12142. ;;
  12143. xl* | mpixl* | bgxl*)
  12144. # IBM XL 8.0 on PPC, with GNU ld
  12145. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12146. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12147. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12148. if test "x$supports_anon_versioning" = xyes; then
  12149. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12150. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12151. echo "local: *; };" >> $output_objdir/$libname.ver~
  12152. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12153. fi
  12154. ;;
  12155. *)
  12156. case `$CC -V 2>&1 | sed 5q` in
  12157. *Sun\ C*)
  12158. # Sun C++ 5.9
  12159. no_undefined_flag_CXX=' -zdefs'
  12160. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12161. 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'
  12162. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12163. 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'
  12164. compiler_needs_object_CXX=yes
  12165. # Not sure whether something based on
  12166. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12167. # would be better.
  12168. output_verbose_link_cmd='func_echo_all'
  12169. # Archives containing C++ object files must be created using
  12170. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12171. # necessary to make sure instantiated templates are included
  12172. # in the archive.
  12173. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12174. ;;
  12175. esac
  12176. ;;
  12177. esac
  12178. ;;
  12179. lynxos*)
  12180. # FIXME: insert proper C++ library support
  12181. ld_shlibs_CXX=no
  12182. ;;
  12183. m88k*)
  12184. # FIXME: insert proper C++ library support
  12185. ld_shlibs_CXX=no
  12186. ;;
  12187. mvs*)
  12188. case $cc_basename in
  12189. cxx*)
  12190. # FIXME: insert proper C++ library support
  12191. ld_shlibs_CXX=no
  12192. ;;
  12193. *)
  12194. # FIXME: insert proper C++ library support
  12195. ld_shlibs_CXX=no
  12196. ;;
  12197. esac
  12198. ;;
  12199. netbsd*)
  12200. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12201. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12202. wlarc=
  12203. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12204. hardcode_direct_CXX=yes
  12205. hardcode_shlibpath_var_CXX=no
  12206. fi
  12207. # Workaround some broken pre-1.5 toolchains
  12208. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12209. ;;
  12210. *nto* | *qnx*)
  12211. ld_shlibs_CXX=yes
  12212. ;;
  12213. openbsd2*)
  12214. # C++ shared libraries are fairly broken
  12215. ld_shlibs_CXX=no
  12216. ;;
  12217. openbsd*)
  12218. if test -f /usr/libexec/ld.so; then
  12219. hardcode_direct_CXX=yes
  12220. hardcode_shlibpath_var_CXX=no
  12221. hardcode_direct_absolute_CXX=yes
  12222. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12223. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12224. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12225. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12226. export_dynamic_flag_spec_CXX='${wl}-E'
  12227. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12228. fi
  12229. output_verbose_link_cmd=func_echo_all
  12230. else
  12231. ld_shlibs_CXX=no
  12232. fi
  12233. ;;
  12234. osf3* | osf4* | osf5*)
  12235. case $cc_basename in
  12236. KCC*)
  12237. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12238. # KCC will only create a shared library if the output file
  12239. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12240. # to its proper name (with version) after linking.
  12241. 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'
  12242. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12243. hardcode_libdir_separator_CXX=:
  12244. # Archives containing C++ object files must be created using
  12245. # the KAI C++ compiler.
  12246. case $host in
  12247. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12248. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12249. esac
  12250. ;;
  12251. RCC*)
  12252. # Rational C++ 2.4.1
  12253. # FIXME: insert proper C++ library support
  12254. ld_shlibs_CXX=no
  12255. ;;
  12256. cxx*)
  12257. case $host in
  12258. osf3*)
  12259. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12260. 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'
  12261. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12262. ;;
  12263. *)
  12264. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12265. 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'
  12266. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12267. echo "-hidden">> $lib.exp~
  12268. $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~
  12269. $RM $lib.exp'
  12270. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12271. ;;
  12272. esac
  12273. hardcode_libdir_separator_CXX=:
  12274. # Commands to make compiler produce verbose output that lists
  12275. # what "hidden" libraries, object files and flags are used when
  12276. # linking a shared library.
  12277. #
  12278. # There doesn't appear to be a way to prevent this compiler from
  12279. # explicitly linking system object files so we need to strip them
  12280. # from the output so that they don't get included in the library
  12281. # dependencies.
  12282. 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"'
  12283. ;;
  12284. *)
  12285. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12286. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12287. case $host in
  12288. osf3*)
  12289. 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'
  12290. ;;
  12291. *)
  12292. 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'
  12293. ;;
  12294. esac
  12295. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12296. hardcode_libdir_separator_CXX=:
  12297. # Commands to make compiler produce verbose output that lists
  12298. # what "hidden" libraries, object files and flags are used when
  12299. # linking a shared library.
  12300. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12301. else
  12302. # FIXME: insert proper C++ library support
  12303. ld_shlibs_CXX=no
  12304. fi
  12305. ;;
  12306. esac
  12307. ;;
  12308. psos*)
  12309. # FIXME: insert proper C++ library support
  12310. ld_shlibs_CXX=no
  12311. ;;
  12312. sunos4*)
  12313. case $cc_basename in
  12314. CC*)
  12315. # Sun C++ 4.x
  12316. # FIXME: insert proper C++ library support
  12317. ld_shlibs_CXX=no
  12318. ;;
  12319. lcc*)
  12320. # Lucid
  12321. # FIXME: insert proper C++ library support
  12322. ld_shlibs_CXX=no
  12323. ;;
  12324. *)
  12325. # FIXME: insert proper C++ library support
  12326. ld_shlibs_CXX=no
  12327. ;;
  12328. esac
  12329. ;;
  12330. solaris*)
  12331. case $cc_basename in
  12332. CC* | sunCC*)
  12333. # Sun C++ 4.2, 5.x and Centerline C++
  12334. archive_cmds_need_lc_CXX=yes
  12335. no_undefined_flag_CXX=' -zdefs'
  12336. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12337. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12338. $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'
  12339. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12340. hardcode_shlibpath_var_CXX=no
  12341. case $host_os in
  12342. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12343. *)
  12344. # The compiler driver will combine and reorder linker options,
  12345. # but understands `-z linker_flag'.
  12346. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12347. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12348. ;;
  12349. esac
  12350. link_all_deplibs_CXX=yes
  12351. output_verbose_link_cmd='func_echo_all'
  12352. # Archives containing C++ object files must be created using
  12353. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12354. # necessary to make sure instantiated templates are included
  12355. # in the archive.
  12356. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12357. ;;
  12358. gcx*)
  12359. # Green Hills C++ Compiler
  12360. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12361. # The C++ compiler must be used to create the archive.
  12362. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12363. ;;
  12364. *)
  12365. # GNU C++ compiler with Solaris linker
  12366. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12367. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12368. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12369. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12370. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12371. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12372. # Commands to make compiler produce verbose output that lists
  12373. # what "hidden" libraries, object files and flags are used when
  12374. # linking a shared library.
  12375. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12376. else
  12377. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12378. # platform.
  12379. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12380. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12381. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12382. # Commands to make compiler produce verbose output that lists
  12383. # what "hidden" libraries, object files and flags are used when
  12384. # linking a shared library.
  12385. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12386. fi
  12387. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12388. case $host_os in
  12389. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12390. *)
  12391. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12392. ;;
  12393. esac
  12394. fi
  12395. ;;
  12396. esac
  12397. ;;
  12398. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12399. no_undefined_flag_CXX='${wl}-z,text'
  12400. archive_cmds_need_lc_CXX=no
  12401. hardcode_shlibpath_var_CXX=no
  12402. runpath_var='LD_RUN_PATH'
  12403. case $cc_basename in
  12404. CC*)
  12405. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12406. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12407. ;;
  12408. *)
  12409. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12410. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12411. ;;
  12412. esac
  12413. ;;
  12414. sysv5* | sco3.2v5* | sco5v6*)
  12415. # Note: We can NOT use -z defs as we might desire, because we do not
  12416. # link with -lc, and that would cause any symbols used from libc to
  12417. # always be unresolved, which means just about no library would
  12418. # ever link correctly. If we're not using GNU ld we use -z text
  12419. # though, which does catch some bad symbols but isn't as heavy-handed
  12420. # as -z defs.
  12421. no_undefined_flag_CXX='${wl}-z,text'
  12422. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12423. archive_cmds_need_lc_CXX=no
  12424. hardcode_shlibpath_var_CXX=no
  12425. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12426. hardcode_libdir_separator_CXX=':'
  12427. link_all_deplibs_CXX=yes
  12428. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12429. runpath_var='LD_RUN_PATH'
  12430. case $cc_basename in
  12431. CC*)
  12432. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12433. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12434. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12435. '"$old_archive_cmds_CXX"
  12436. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12437. '"$reload_cmds_CXX"
  12438. ;;
  12439. *)
  12440. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12441. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12442. ;;
  12443. esac
  12444. ;;
  12445. tandem*)
  12446. case $cc_basename in
  12447. NCC*)
  12448. # NonStop-UX NCC 3.20
  12449. # FIXME: insert proper C++ library support
  12450. ld_shlibs_CXX=no
  12451. ;;
  12452. *)
  12453. # FIXME: insert proper C++ library support
  12454. ld_shlibs_CXX=no
  12455. ;;
  12456. esac
  12457. ;;
  12458. vxworks*)
  12459. # FIXME: insert proper C++ library support
  12460. ld_shlibs_CXX=no
  12461. ;;
  12462. *)
  12463. # FIXME: insert proper C++ library support
  12464. ld_shlibs_CXX=no
  12465. ;;
  12466. esac
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12468. $as_echo "$ld_shlibs_CXX" >&6; }
  12469. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12470. GCC_CXX="$GXX"
  12471. LD_CXX="$LD"
  12472. ## CAVEAT EMPTOR:
  12473. ## There is no encapsulation within the following macros, do not change
  12474. ## the running order or otherwise move them around unless you know exactly
  12475. ## what you are doing...
  12476. # Dependencies to place before and after the object being linked:
  12477. predep_objects_CXX=
  12478. postdep_objects_CXX=
  12479. predeps_CXX=
  12480. postdeps_CXX=
  12481. compiler_lib_search_path_CXX=
  12482. cat > conftest.$ac_ext <<_LT_EOF
  12483. class Foo
  12484. {
  12485. public:
  12486. Foo (void) { a = 0; }
  12487. private:
  12488. int a;
  12489. };
  12490. _LT_EOF
  12491. _lt_libdeps_save_CFLAGS=$CFLAGS
  12492. case "$CC $CFLAGS " in #(
  12493. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12494. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12495. esac
  12496. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12497. (eval $ac_compile) 2>&5
  12498. ac_status=$?
  12499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12500. test $ac_status = 0; }; then
  12501. # Parse the compiler output and extract the necessary
  12502. # objects, libraries and library flags.
  12503. # Sentinel used to keep track of whether or not we are before
  12504. # the conftest object file.
  12505. pre_test_object_deps_done=no
  12506. for p in `eval "$output_verbose_link_cmd"`; do
  12507. case ${prev}${p} in
  12508. -L* | -R* | -l*)
  12509. # Some compilers place space between "-{L,R}" and the path.
  12510. # Remove the space.
  12511. if test $p = "-L" ||
  12512. test $p = "-R"; then
  12513. prev=$p
  12514. continue
  12515. fi
  12516. # Expand the sysroot to ease extracting the directories later.
  12517. if test -z "$prev"; then
  12518. case $p in
  12519. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12520. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12521. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12522. esac
  12523. fi
  12524. case $p in
  12525. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12526. esac
  12527. if test "$pre_test_object_deps_done" = no; then
  12528. case ${prev} in
  12529. -L | -R)
  12530. # Internal compiler library paths should come after those
  12531. # provided the user. The postdeps already come after the
  12532. # user supplied libs so there is no need to process them.
  12533. if test -z "$compiler_lib_search_path_CXX"; then
  12534. compiler_lib_search_path_CXX="${prev}${p}"
  12535. else
  12536. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12537. fi
  12538. ;;
  12539. # The "-l" case would never come before the object being
  12540. # linked, so don't bother handling this case.
  12541. esac
  12542. else
  12543. if test -z "$postdeps_CXX"; then
  12544. postdeps_CXX="${prev}${p}"
  12545. else
  12546. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12547. fi
  12548. fi
  12549. prev=
  12550. ;;
  12551. *.lto.$objext) ;; # Ignore GCC LTO objects
  12552. *.$objext)
  12553. # This assumes that the test object file only shows up
  12554. # once in the compiler output.
  12555. if test "$p" = "conftest.$objext"; then
  12556. pre_test_object_deps_done=yes
  12557. continue
  12558. fi
  12559. if test "$pre_test_object_deps_done" = no; then
  12560. if test -z "$predep_objects_CXX"; then
  12561. predep_objects_CXX="$p"
  12562. else
  12563. predep_objects_CXX="$predep_objects_CXX $p"
  12564. fi
  12565. else
  12566. if test -z "$postdep_objects_CXX"; then
  12567. postdep_objects_CXX="$p"
  12568. else
  12569. postdep_objects_CXX="$postdep_objects_CXX $p"
  12570. fi
  12571. fi
  12572. ;;
  12573. *) ;; # Ignore the rest.
  12574. esac
  12575. done
  12576. # Clean up.
  12577. rm -f a.out a.exe
  12578. else
  12579. echo "libtool.m4: error: problem compiling CXX test program"
  12580. fi
  12581. $RM -f confest.$objext
  12582. CFLAGS=$_lt_libdeps_save_CFLAGS
  12583. # PORTME: override above test on systems where it is broken
  12584. case $host_os in
  12585. interix[3-9]*)
  12586. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12587. # hack all around it, let's just trust "g++" to DTRT.
  12588. predep_objects_CXX=
  12589. postdep_objects_CXX=
  12590. postdeps_CXX=
  12591. ;;
  12592. linux*)
  12593. case `$CC -V 2>&1 | sed 5q` in
  12594. *Sun\ C*)
  12595. # Sun C++ 5.9
  12596. # The more standards-conforming stlport4 library is
  12597. # incompatible with the Cstd library. Avoid specifying
  12598. # it if it's in CXXFLAGS. Ignore libCrun as
  12599. # -library=stlport4 depends on it.
  12600. case " $CXX $CXXFLAGS " in
  12601. *" -library=stlport4 "*)
  12602. solaris_use_stlport4=yes
  12603. ;;
  12604. esac
  12605. if test "$solaris_use_stlport4" != yes; then
  12606. postdeps_CXX='-library=Cstd -library=Crun'
  12607. fi
  12608. ;;
  12609. esac
  12610. ;;
  12611. solaris*)
  12612. case $cc_basename in
  12613. CC* | sunCC*)
  12614. # The more standards-conforming stlport4 library is
  12615. # incompatible with the Cstd library. Avoid specifying
  12616. # it if it's in CXXFLAGS. Ignore libCrun as
  12617. # -library=stlport4 depends on it.
  12618. case " $CXX $CXXFLAGS " in
  12619. *" -library=stlport4 "*)
  12620. solaris_use_stlport4=yes
  12621. ;;
  12622. esac
  12623. # Adding this requires a known-good setup of shared libraries for
  12624. # Sun compiler versions before 5.6, else PIC objects from an old
  12625. # archive will be linked into the output, leading to subtle bugs.
  12626. if test "$solaris_use_stlport4" != yes; then
  12627. postdeps_CXX='-library=Cstd -library=Crun'
  12628. fi
  12629. ;;
  12630. esac
  12631. ;;
  12632. esac
  12633. case " $postdeps_CXX " in
  12634. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12635. esac
  12636. compiler_lib_search_dirs_CXX=
  12637. if test -n "${compiler_lib_search_path_CXX}"; then
  12638. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12639. fi
  12640. lt_prog_compiler_wl_CXX=
  12641. lt_prog_compiler_pic_CXX=
  12642. lt_prog_compiler_static_CXX=
  12643. # C++ specific cases for pic, static, wl, etc.
  12644. if test "$GXX" = yes; then
  12645. lt_prog_compiler_wl_CXX='-Wl,'
  12646. lt_prog_compiler_static_CXX='-static'
  12647. case $host_os in
  12648. aix*)
  12649. # All AIX code is PIC.
  12650. if test "$host_cpu" = ia64; then
  12651. # AIX 5 now supports IA64 processor
  12652. lt_prog_compiler_static_CXX='-Bstatic'
  12653. fi
  12654. ;;
  12655. amigaos*)
  12656. case $host_cpu in
  12657. powerpc)
  12658. # see comment about AmigaOS4 .so support
  12659. lt_prog_compiler_pic_CXX='-fPIC'
  12660. ;;
  12661. m68k)
  12662. # FIXME: we need at least 68020 code to build shared libraries, but
  12663. # adding the `-m68020' flag to GCC prevents building anything better,
  12664. # like `-m68040'.
  12665. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12666. ;;
  12667. esac
  12668. ;;
  12669. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12670. # PIC is the default for these OSes.
  12671. ;;
  12672. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12673. # This hack is so that the source file can tell whether it is being
  12674. # built for inclusion in a dll (and should export symbols for example).
  12675. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12676. # (--disable-auto-import) libraries
  12677. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12678. ;;
  12679. darwin* | rhapsody*)
  12680. # PIC is the default on this platform
  12681. # Common symbols not allowed in MH_DYLIB files
  12682. lt_prog_compiler_pic_CXX='-fno-common'
  12683. ;;
  12684. *djgpp*)
  12685. # DJGPP does not support shared libraries at all
  12686. lt_prog_compiler_pic_CXX=
  12687. ;;
  12688. haiku*)
  12689. # PIC is the default for Haiku.
  12690. # The "-static" flag exists, but is broken.
  12691. lt_prog_compiler_static_CXX=
  12692. ;;
  12693. interix[3-9]*)
  12694. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12695. # Instead, we relocate shared libraries at runtime.
  12696. ;;
  12697. sysv4*MP*)
  12698. if test -d /usr/nec; then
  12699. lt_prog_compiler_pic_CXX=-Kconform_pic
  12700. fi
  12701. ;;
  12702. hpux*)
  12703. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12704. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12705. # sets the default TLS model and affects inlining.
  12706. case $host_cpu in
  12707. hppa*64*)
  12708. ;;
  12709. *)
  12710. lt_prog_compiler_pic_CXX='-fPIC'
  12711. ;;
  12712. esac
  12713. ;;
  12714. *qnx* | *nto*)
  12715. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12716. # it will coredump.
  12717. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12718. ;;
  12719. *)
  12720. lt_prog_compiler_pic_CXX='-fPIC'
  12721. ;;
  12722. esac
  12723. else
  12724. case $host_os in
  12725. aix[4-9]*)
  12726. # All AIX code is PIC.
  12727. if test "$host_cpu" = ia64; then
  12728. # AIX 5 now supports IA64 processor
  12729. lt_prog_compiler_static_CXX='-Bstatic'
  12730. else
  12731. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12732. fi
  12733. ;;
  12734. chorus*)
  12735. case $cc_basename in
  12736. cxch68*)
  12737. # Green Hills C++ Compiler
  12738. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12739. ;;
  12740. esac
  12741. ;;
  12742. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12743. # This hack is so that the source file can tell whether it is being
  12744. # built for inclusion in a dll (and should export symbols for example).
  12745. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12746. ;;
  12747. dgux*)
  12748. case $cc_basename in
  12749. ec++*)
  12750. lt_prog_compiler_pic_CXX='-KPIC'
  12751. ;;
  12752. ghcx*)
  12753. # Green Hills C++ Compiler
  12754. lt_prog_compiler_pic_CXX='-pic'
  12755. ;;
  12756. *)
  12757. ;;
  12758. esac
  12759. ;;
  12760. freebsd* | dragonfly*)
  12761. # FreeBSD uses GNU C++
  12762. ;;
  12763. hpux9* | hpux10* | hpux11*)
  12764. case $cc_basename in
  12765. CC*)
  12766. lt_prog_compiler_wl_CXX='-Wl,'
  12767. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12768. if test "$host_cpu" != ia64; then
  12769. lt_prog_compiler_pic_CXX='+Z'
  12770. fi
  12771. ;;
  12772. aCC*)
  12773. lt_prog_compiler_wl_CXX='-Wl,'
  12774. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12775. case $host_cpu in
  12776. hppa*64*|ia64*)
  12777. # +Z the default
  12778. ;;
  12779. *)
  12780. lt_prog_compiler_pic_CXX='+Z'
  12781. ;;
  12782. esac
  12783. ;;
  12784. *)
  12785. ;;
  12786. esac
  12787. ;;
  12788. interix*)
  12789. # This is c89, which is MS Visual C++ (no shared libs)
  12790. # Anyone wants to do a port?
  12791. ;;
  12792. irix5* | irix6* | nonstopux*)
  12793. case $cc_basename in
  12794. CC*)
  12795. lt_prog_compiler_wl_CXX='-Wl,'
  12796. lt_prog_compiler_static_CXX='-non_shared'
  12797. # CC pic flag -KPIC is the default.
  12798. ;;
  12799. *)
  12800. ;;
  12801. esac
  12802. ;;
  12803. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12804. case $cc_basename in
  12805. KCC*)
  12806. # KAI C++ Compiler
  12807. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12808. lt_prog_compiler_pic_CXX='-fPIC'
  12809. ;;
  12810. ecpc* )
  12811. # old Intel C++ for x86_64 which still supported -KPIC.
  12812. lt_prog_compiler_wl_CXX='-Wl,'
  12813. lt_prog_compiler_pic_CXX='-KPIC'
  12814. lt_prog_compiler_static_CXX='-static'
  12815. ;;
  12816. icpc* )
  12817. # Intel C++, used to be incompatible with GCC.
  12818. # ICC 10 doesn't accept -KPIC any more.
  12819. lt_prog_compiler_wl_CXX='-Wl,'
  12820. lt_prog_compiler_pic_CXX='-fPIC'
  12821. lt_prog_compiler_static_CXX='-static'
  12822. ;;
  12823. pgCC* | pgcpp*)
  12824. # Portland Group C++ compiler
  12825. lt_prog_compiler_wl_CXX='-Wl,'
  12826. lt_prog_compiler_pic_CXX='-fpic'
  12827. lt_prog_compiler_static_CXX='-Bstatic'
  12828. ;;
  12829. cxx*)
  12830. # Compaq C++
  12831. # Make sure the PIC flag is empty. It appears that all Alpha
  12832. # Linux and Compaq Tru64 Unix objects are PIC.
  12833. lt_prog_compiler_pic_CXX=
  12834. lt_prog_compiler_static_CXX='-non_shared'
  12835. ;;
  12836. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12837. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12838. lt_prog_compiler_wl_CXX='-Wl,'
  12839. lt_prog_compiler_pic_CXX='-qpic'
  12840. lt_prog_compiler_static_CXX='-qstaticlink'
  12841. ;;
  12842. *)
  12843. case `$CC -V 2>&1 | sed 5q` in
  12844. *Sun\ C*)
  12845. # Sun C++ 5.9
  12846. lt_prog_compiler_pic_CXX='-KPIC'
  12847. lt_prog_compiler_static_CXX='-Bstatic'
  12848. lt_prog_compiler_wl_CXX='-Qoption ld '
  12849. ;;
  12850. esac
  12851. ;;
  12852. esac
  12853. ;;
  12854. lynxos*)
  12855. ;;
  12856. m88k*)
  12857. ;;
  12858. mvs*)
  12859. case $cc_basename in
  12860. cxx*)
  12861. lt_prog_compiler_pic_CXX='-W c,exportall'
  12862. ;;
  12863. *)
  12864. ;;
  12865. esac
  12866. ;;
  12867. netbsd* | netbsdelf*-gnu)
  12868. ;;
  12869. *qnx* | *nto*)
  12870. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12871. # it will coredump.
  12872. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12873. ;;
  12874. osf3* | osf4* | osf5*)
  12875. case $cc_basename in
  12876. KCC*)
  12877. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12878. ;;
  12879. RCC*)
  12880. # Rational C++ 2.4.1
  12881. lt_prog_compiler_pic_CXX='-pic'
  12882. ;;
  12883. cxx*)
  12884. # Digital/Compaq C++
  12885. lt_prog_compiler_wl_CXX='-Wl,'
  12886. # Make sure the PIC flag is empty. It appears that all Alpha
  12887. # Linux and Compaq Tru64 Unix objects are PIC.
  12888. lt_prog_compiler_pic_CXX=
  12889. lt_prog_compiler_static_CXX='-non_shared'
  12890. ;;
  12891. *)
  12892. ;;
  12893. esac
  12894. ;;
  12895. psos*)
  12896. ;;
  12897. solaris*)
  12898. case $cc_basename in
  12899. CC* | sunCC*)
  12900. # Sun C++ 4.2, 5.x and Centerline C++
  12901. lt_prog_compiler_pic_CXX='-KPIC'
  12902. lt_prog_compiler_static_CXX='-Bstatic'
  12903. lt_prog_compiler_wl_CXX='-Qoption ld '
  12904. ;;
  12905. gcx*)
  12906. # Green Hills C++ Compiler
  12907. lt_prog_compiler_pic_CXX='-PIC'
  12908. ;;
  12909. *)
  12910. ;;
  12911. esac
  12912. ;;
  12913. sunos4*)
  12914. case $cc_basename in
  12915. CC*)
  12916. # Sun C++ 4.x
  12917. lt_prog_compiler_pic_CXX='-pic'
  12918. lt_prog_compiler_static_CXX='-Bstatic'
  12919. ;;
  12920. lcc*)
  12921. # Lucid
  12922. lt_prog_compiler_pic_CXX='-pic'
  12923. ;;
  12924. *)
  12925. ;;
  12926. esac
  12927. ;;
  12928. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12929. case $cc_basename in
  12930. CC*)
  12931. lt_prog_compiler_wl_CXX='-Wl,'
  12932. lt_prog_compiler_pic_CXX='-KPIC'
  12933. lt_prog_compiler_static_CXX='-Bstatic'
  12934. ;;
  12935. esac
  12936. ;;
  12937. tandem*)
  12938. case $cc_basename in
  12939. NCC*)
  12940. # NonStop-UX NCC 3.20
  12941. lt_prog_compiler_pic_CXX='-KPIC'
  12942. ;;
  12943. *)
  12944. ;;
  12945. esac
  12946. ;;
  12947. vxworks*)
  12948. ;;
  12949. *)
  12950. lt_prog_compiler_can_build_shared_CXX=no
  12951. ;;
  12952. esac
  12953. fi
  12954. case $host_os in
  12955. # For platforms which do not support PIC, -DPIC is meaningless:
  12956. *djgpp*)
  12957. lt_prog_compiler_pic_CXX=
  12958. ;;
  12959. *)
  12960. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12961. ;;
  12962. esac
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12964. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12965. if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
  12966. $as_echo_n "(cached) " >&6
  12967. else
  12968. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12969. fi
  12970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12971. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12972. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12973. #
  12974. # Check to make sure the PIC flag actually works.
  12975. #
  12976. if test -n "$lt_prog_compiler_pic_CXX"; then
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12978. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12979. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12980. $as_echo_n "(cached) " >&6
  12981. else
  12982. lt_cv_prog_compiler_pic_works_CXX=no
  12983. ac_outfile=conftest.$ac_objext
  12984. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12985. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12986. # Insert the option either (1) after the last *FLAGS variable, or
  12987. # (2) before a word containing "conftest.", or (3) at the end.
  12988. # Note that $ac_compile itself does not contain backslashes and begins
  12989. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12990. # The option is referenced via a variable to avoid confusing sed.
  12991. lt_compile=`echo "$ac_compile" | $SED \
  12992. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12993. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12994. -e 's:$: $lt_compiler_flag:'`
  12995. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12996. (eval "$lt_compile" 2>conftest.err)
  12997. ac_status=$?
  12998. cat conftest.err >&5
  12999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13000. if (exit $ac_status) && test -s "$ac_outfile"; then
  13001. # The compiler can only warn and ignore the option if not recognized
  13002. # So say no if there are warnings other than the usual output.
  13003. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13004. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13005. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13006. lt_cv_prog_compiler_pic_works_CXX=yes
  13007. fi
  13008. fi
  13009. $RM conftest*
  13010. fi
  13011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13012. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13013. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13014. case $lt_prog_compiler_pic_CXX in
  13015. "" | " "*) ;;
  13016. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13017. esac
  13018. else
  13019. lt_prog_compiler_pic_CXX=
  13020. lt_prog_compiler_can_build_shared_CXX=no
  13021. fi
  13022. fi
  13023. #
  13024. # Check to make sure the static flag actually works.
  13025. #
  13026. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13028. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13029. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  13030. $as_echo_n "(cached) " >&6
  13031. else
  13032. lt_cv_prog_compiler_static_works_CXX=no
  13033. save_LDFLAGS="$LDFLAGS"
  13034. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13035. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13036. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13037. # The linker can only warn and ignore the option if not recognized
  13038. # So say no if there are warnings
  13039. if test -s conftest.err; then
  13040. # Append any errors to the config.log.
  13041. cat conftest.err 1>&5
  13042. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13043. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13044. if diff conftest.exp conftest.er2 >/dev/null; then
  13045. lt_cv_prog_compiler_static_works_CXX=yes
  13046. fi
  13047. else
  13048. lt_cv_prog_compiler_static_works_CXX=yes
  13049. fi
  13050. fi
  13051. $RM -r conftest*
  13052. LDFLAGS="$save_LDFLAGS"
  13053. fi
  13054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13055. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13056. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13057. :
  13058. else
  13059. lt_prog_compiler_static_CXX=
  13060. fi
  13061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13062. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13063. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13064. $as_echo_n "(cached) " >&6
  13065. else
  13066. lt_cv_prog_compiler_c_o_CXX=no
  13067. $RM -r conftest 2>/dev/null
  13068. mkdir conftest
  13069. cd conftest
  13070. mkdir out
  13071. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13072. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13073. # Insert the option either (1) after the last *FLAGS variable, or
  13074. # (2) before a word containing "conftest.", or (3) at the end.
  13075. # Note that $ac_compile itself does not contain backslashes and begins
  13076. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13077. lt_compile=`echo "$ac_compile" | $SED \
  13078. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13079. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13080. -e 's:$: $lt_compiler_flag:'`
  13081. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13082. (eval "$lt_compile" 2>out/conftest.err)
  13083. ac_status=$?
  13084. cat out/conftest.err >&5
  13085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13086. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13087. then
  13088. # The compiler can only warn and ignore the option if not recognized
  13089. # So say no if there are warnings
  13090. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13091. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13092. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13093. lt_cv_prog_compiler_c_o_CXX=yes
  13094. fi
  13095. fi
  13096. chmod u+w . 2>&5
  13097. $RM conftest*
  13098. # SGI C++ compiler will create directory out/ii_files/ for
  13099. # template instantiation
  13100. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13101. $RM out/* && rmdir out
  13102. cd ..
  13103. $RM -r conftest
  13104. $RM conftest*
  13105. fi
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13107. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13109. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13110. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13111. $as_echo_n "(cached) " >&6
  13112. else
  13113. lt_cv_prog_compiler_c_o_CXX=no
  13114. $RM -r conftest 2>/dev/null
  13115. mkdir conftest
  13116. cd conftest
  13117. mkdir out
  13118. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13119. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13120. # Insert the option either (1) after the last *FLAGS variable, or
  13121. # (2) before a word containing "conftest.", or (3) at the end.
  13122. # Note that $ac_compile itself does not contain backslashes and begins
  13123. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13124. lt_compile=`echo "$ac_compile" | $SED \
  13125. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13126. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13127. -e 's:$: $lt_compiler_flag:'`
  13128. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13129. (eval "$lt_compile" 2>out/conftest.err)
  13130. ac_status=$?
  13131. cat out/conftest.err >&5
  13132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13133. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13134. then
  13135. # The compiler can only warn and ignore the option if not recognized
  13136. # So say no if there are warnings
  13137. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13138. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13139. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13140. lt_cv_prog_compiler_c_o_CXX=yes
  13141. fi
  13142. fi
  13143. chmod u+w . 2>&5
  13144. $RM conftest*
  13145. # SGI C++ compiler will create directory out/ii_files/ for
  13146. # template instantiation
  13147. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13148. $RM out/* && rmdir out
  13149. cd ..
  13150. $RM -r conftest
  13151. $RM conftest*
  13152. fi
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13154. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13155. hard_links="nottested"
  13156. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13157. # do not overwrite the value of need_locks provided by the user
  13158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13159. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13160. hard_links=yes
  13161. $RM conftest*
  13162. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13163. touch conftest.a
  13164. ln conftest.a conftest.b 2>&5 || hard_links=no
  13165. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13167. $as_echo "$hard_links" >&6; }
  13168. if test "$hard_links" = no; then
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13170. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13171. need_locks=warn
  13172. fi
  13173. else
  13174. need_locks=no
  13175. fi
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13177. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13178. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13179. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13180. case $host_os in
  13181. aix[4-9]*)
  13182. # If we're using GNU nm, then we don't want the "-C" option.
  13183. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13184. # Also, AIX nm treats weak defined symbols like other global defined
  13185. # symbols, whereas GNU nm marks them as "W".
  13186. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13187. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13188. else
  13189. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13190. fi
  13191. ;;
  13192. pw32*)
  13193. export_symbols_cmds_CXX="$ltdll_cmds"
  13194. ;;
  13195. cygwin* | mingw* | cegcc*)
  13196. case $cc_basename in
  13197. cl*) ;;
  13198. *)
  13199. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13200. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13201. ;;
  13202. esac
  13203. ;;
  13204. linux* | k*bsd*-gnu | gnu*)
  13205. link_all_deplibs_CXX=no
  13206. ;;
  13207. *)
  13208. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13209. ;;
  13210. esac
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13212. $as_echo "$ld_shlibs_CXX" >&6; }
  13213. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13214. with_gnu_ld_CXX=$with_gnu_ld
  13215. #
  13216. # Do we need to explicitly link libc?
  13217. #
  13218. case "x$archive_cmds_need_lc_CXX" in
  13219. x|xyes)
  13220. # Assume -lc should be added
  13221. archive_cmds_need_lc_CXX=yes
  13222. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13223. case $archive_cmds_CXX in
  13224. *'~'*)
  13225. # FIXME: we may have to deal with multi-command sequences.
  13226. ;;
  13227. '$CC '*)
  13228. # Test whether the compiler implicitly links with -lc since on some
  13229. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13230. # to ld, don't add -lc before -lgcc.
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13232. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13233. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  13234. $as_echo_n "(cached) " >&6
  13235. else
  13236. $RM conftest*
  13237. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13239. (eval $ac_compile) 2>&5
  13240. ac_status=$?
  13241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13242. test $ac_status = 0; } 2>conftest.err; then
  13243. soname=conftest
  13244. lib=conftest
  13245. libobjs=conftest.$ac_objext
  13246. deplibs=
  13247. wl=$lt_prog_compiler_wl_CXX
  13248. pic_flag=$lt_prog_compiler_pic_CXX
  13249. compiler_flags=-v
  13250. linker_flags=-v
  13251. verstring=
  13252. output_objdir=.
  13253. libname=conftest
  13254. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13255. allow_undefined_flag_CXX=
  13256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13257. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13258. ac_status=$?
  13259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13260. test $ac_status = 0; }
  13261. then
  13262. lt_cv_archive_cmds_need_lc_CXX=no
  13263. else
  13264. lt_cv_archive_cmds_need_lc_CXX=yes
  13265. fi
  13266. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13267. else
  13268. cat conftest.err 1>&5
  13269. fi
  13270. $RM conftest*
  13271. fi
  13272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13273. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13274. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13275. ;;
  13276. esac
  13277. fi
  13278. ;;
  13279. esac
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13281. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13282. library_names_spec=
  13283. libname_spec='lib$name'
  13284. soname_spec=
  13285. shrext_cmds=".so"
  13286. postinstall_cmds=
  13287. postuninstall_cmds=
  13288. finish_cmds=
  13289. finish_eval=
  13290. shlibpath_var=
  13291. shlibpath_overrides_runpath=unknown
  13292. version_type=none
  13293. dynamic_linker="$host_os ld.so"
  13294. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13295. need_lib_prefix=unknown
  13296. hardcode_into_libs=no
  13297. # when you set need_version to no, make sure it does not cause -set_version
  13298. # flags to be left without arguments
  13299. need_version=unknown
  13300. case $host_os in
  13301. aix3*)
  13302. version_type=linux
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13304. shlibpath_var=LIBPATH
  13305. # AIX 3 has no versioning support, so we append a major version to the name.
  13306. soname_spec='${libname}${release}${shared_ext}$major'
  13307. ;;
  13308. aix[4-9]*)
  13309. version_type=linux
  13310. need_lib_prefix=no
  13311. need_version=no
  13312. hardcode_into_libs=yes
  13313. if test "$host_cpu" = ia64; then
  13314. # AIX 5 supports IA64
  13315. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13316. shlibpath_var=LD_LIBRARY_PATH
  13317. else
  13318. # With GCC up to 2.95.x, collect2 would create an import file
  13319. # for dependence libraries. The import file would start with
  13320. # the line `#! .'. This would cause the generated library to
  13321. # depend on `.', always an invalid library. This was fixed in
  13322. # development snapshots of GCC prior to 3.0.
  13323. case $host_os in
  13324. aix4 | aix4.[01] | aix4.[01].*)
  13325. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13326. echo ' yes '
  13327. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13328. :
  13329. else
  13330. can_build_shared=no
  13331. fi
  13332. ;;
  13333. esac
  13334. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13335. # soname into executable. Probably we can add versioning support to
  13336. # collect2, so additional links can be useful in future.
  13337. if test "$aix_use_runtimelinking" = yes; then
  13338. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13339. # instead of lib<name>.a to let people know that these are not
  13340. # typical AIX shared libraries.
  13341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13342. else
  13343. # We preserve .a as extension for shared libraries through AIX4.2
  13344. # and later when we are not doing run time linking.
  13345. library_names_spec='${libname}${release}.a $libname.a'
  13346. soname_spec='${libname}${release}${shared_ext}$major'
  13347. fi
  13348. shlibpath_var=LIBPATH
  13349. fi
  13350. ;;
  13351. amigaos*)
  13352. case $host_cpu in
  13353. powerpc)
  13354. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13355. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13357. ;;
  13358. m68k)
  13359. library_names_spec='$libname.ixlibrary $libname.a'
  13360. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13361. 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'
  13362. ;;
  13363. esac
  13364. ;;
  13365. beos*)
  13366. library_names_spec='${libname}${shared_ext}'
  13367. dynamic_linker="$host_os ld.so"
  13368. shlibpath_var=LIBRARY_PATH
  13369. ;;
  13370. bsdi[45]*)
  13371. version_type=linux
  13372. need_version=no
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13374. soname_spec='${libname}${release}${shared_ext}$major'
  13375. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13376. shlibpath_var=LD_LIBRARY_PATH
  13377. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13378. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13379. # the default ld.so.conf also contains /usr/contrib/lib and
  13380. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13381. # libtool to hard-code these into programs
  13382. ;;
  13383. cygwin* | mingw* | pw32* | cegcc*)
  13384. version_type=windows
  13385. shrext_cmds=".dll"
  13386. need_version=no
  13387. need_lib_prefix=no
  13388. case $GCC,$cc_basename in
  13389. yes,*)
  13390. # gcc
  13391. library_names_spec='$libname.dll.a'
  13392. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13393. postinstall_cmds='base_file=`basename \${file}`~
  13394. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13395. dldir=$destdir/`dirname \$dlpath`~
  13396. test -d \$dldir || mkdir -p \$dldir~
  13397. $install_prog $dir/$dlname \$dldir/$dlname~
  13398. chmod a+x \$dldir/$dlname~
  13399. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13400. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13401. fi'
  13402. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13403. dlpath=$dir/\$dldll~
  13404. $RM \$dlpath'
  13405. shlibpath_overrides_runpath=yes
  13406. case $host_os in
  13407. cygwin*)
  13408. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13409. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13410. ;;
  13411. mingw* | cegcc*)
  13412. # MinGW DLLs use traditional 'lib' prefix
  13413. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13414. ;;
  13415. pw32*)
  13416. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13417. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13418. ;;
  13419. esac
  13420. dynamic_linker='Win32 ld.exe'
  13421. ;;
  13422. *,cl*)
  13423. # Native MSVC
  13424. libname_spec='$name'
  13425. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13426. library_names_spec='${libname}.dll.lib'
  13427. case $build_os in
  13428. mingw*)
  13429. sys_lib_search_path_spec=
  13430. lt_save_ifs=$IFS
  13431. IFS=';'
  13432. for lt_path in $LIB
  13433. do
  13434. IFS=$lt_save_ifs
  13435. # Let DOS variable expansion print the short 8.3 style file name.
  13436. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13437. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13438. done
  13439. IFS=$lt_save_ifs
  13440. # Convert to MSYS style.
  13441. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13442. ;;
  13443. cygwin*)
  13444. # Convert to unix form, then to dos form, then back to unix form
  13445. # but this time dos style (no spaces!) so that the unix form looks
  13446. # like /cygdrive/c/PROGRA~1:/cygdr...
  13447. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13448. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13449. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13450. ;;
  13451. *)
  13452. sys_lib_search_path_spec="$LIB"
  13453. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13454. # It is most probably a Windows format PATH.
  13455. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13456. else
  13457. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13458. fi
  13459. # FIXME: find the short name or the path components, as spaces are
  13460. # common. (e.g. "Program Files" -> "PROGRA~1")
  13461. ;;
  13462. esac
  13463. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13464. postinstall_cmds='base_file=`basename \${file}`~
  13465. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13466. dldir=$destdir/`dirname \$dlpath`~
  13467. test -d \$dldir || mkdir -p \$dldir~
  13468. $install_prog $dir/$dlname \$dldir/$dlname'
  13469. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13470. dlpath=$dir/\$dldll~
  13471. $RM \$dlpath'
  13472. shlibpath_overrides_runpath=yes
  13473. dynamic_linker='Win32 link.exe'
  13474. ;;
  13475. *)
  13476. # Assume MSVC wrapper
  13477. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13478. dynamic_linker='Win32 ld.exe'
  13479. ;;
  13480. esac
  13481. # FIXME: first we should search . and the directory the executable is in
  13482. shlibpath_var=PATH
  13483. ;;
  13484. darwin* | rhapsody*)
  13485. dynamic_linker="$host_os dyld"
  13486. version_type=darwin
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13490. soname_spec='${libname}${release}${major}$shared_ext'
  13491. shlibpath_overrides_runpath=yes
  13492. shlibpath_var=DYLD_LIBRARY_PATH
  13493. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13494. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13495. ;;
  13496. dgux*)
  13497. version_type=linux
  13498. need_lib_prefix=no
  13499. need_version=no
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13501. soname_spec='${libname}${release}${shared_ext}$major'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. ;;
  13504. freebsd1*)
  13505. dynamic_linker=no
  13506. ;;
  13507. freebsd* | dragonfly*)
  13508. # DragonFly does not have aout. When/if they implement a new
  13509. # versioning mechanism, adjust this.
  13510. if test -x /usr/bin/objformat; then
  13511. objformat=`/usr/bin/objformat`
  13512. else
  13513. case $host_os in
  13514. freebsd[123]*) objformat=aout ;;
  13515. *) objformat=elf ;;
  13516. esac
  13517. fi
  13518. version_type=freebsd-$objformat
  13519. case $version_type in
  13520. freebsd-elf*)
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13522. need_version=no
  13523. need_lib_prefix=no
  13524. ;;
  13525. freebsd-*)
  13526. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13527. need_version=yes
  13528. ;;
  13529. esac
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. case $host_os in
  13532. freebsd2*)
  13533. shlibpath_overrides_runpath=yes
  13534. ;;
  13535. freebsd3.[01]* | freebsdelf3.[01]*)
  13536. shlibpath_overrides_runpath=yes
  13537. hardcode_into_libs=yes
  13538. ;;
  13539. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13540. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13541. shlibpath_overrides_runpath=no
  13542. hardcode_into_libs=yes
  13543. ;;
  13544. *) # from 4.6 on, and DragonFly
  13545. shlibpath_overrides_runpath=yes
  13546. hardcode_into_libs=yes
  13547. ;;
  13548. esac
  13549. ;;
  13550. gnu*)
  13551. version_type=linux
  13552. need_lib_prefix=no
  13553. need_version=no
  13554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13555. soname_spec='${libname}${release}${shared_ext}$major'
  13556. shlibpath_var=LD_LIBRARY_PATH
  13557. shlibpath_overrides_runpath=no
  13558. hardcode_into_libs=yes
  13559. ;;
  13560. haiku*)
  13561. version_type=linux
  13562. need_lib_prefix=no
  13563. need_version=no
  13564. dynamic_linker="$host_os runtime_loader"
  13565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13566. soname_spec='${libname}${release}${shared_ext}$major'
  13567. shlibpath_var=LIBRARY_PATH
  13568. shlibpath_overrides_runpath=yes
  13569. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13570. hardcode_into_libs=yes
  13571. ;;
  13572. hpux9* | hpux10* | hpux11*)
  13573. # Give a soname corresponding to the major version so that dld.sl refuses to
  13574. # link against other versions.
  13575. version_type=sunos
  13576. need_lib_prefix=no
  13577. need_version=no
  13578. case $host_cpu in
  13579. ia64*)
  13580. shrext_cmds='.so'
  13581. hardcode_into_libs=yes
  13582. dynamic_linker="$host_os dld.so"
  13583. shlibpath_var=LD_LIBRARY_PATH
  13584. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13586. soname_spec='${libname}${release}${shared_ext}$major'
  13587. if test "X$HPUX_IA64_MODE" = X32; then
  13588. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13589. else
  13590. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13591. fi
  13592. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13593. ;;
  13594. hppa*64*)
  13595. shrext_cmds='.sl'
  13596. hardcode_into_libs=yes
  13597. dynamic_linker="$host_os dld.sl"
  13598. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13599. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13601. soname_spec='${libname}${release}${shared_ext}$major'
  13602. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13603. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13604. ;;
  13605. *)
  13606. shrext_cmds='.sl'
  13607. dynamic_linker="$host_os dld.sl"
  13608. shlibpath_var=SHLIB_PATH
  13609. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13611. soname_spec='${libname}${release}${shared_ext}$major'
  13612. ;;
  13613. esac
  13614. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13615. postinstall_cmds='chmod 555 $lib'
  13616. # or fails outright, so override atomically:
  13617. install_override_mode=555
  13618. ;;
  13619. interix[3-9]*)
  13620. version_type=linux
  13621. need_lib_prefix=no
  13622. need_version=no
  13623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13624. soname_spec='${libname}${release}${shared_ext}$major'
  13625. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13626. shlibpath_var=LD_LIBRARY_PATH
  13627. shlibpath_overrides_runpath=no
  13628. hardcode_into_libs=yes
  13629. ;;
  13630. irix5* | irix6* | nonstopux*)
  13631. case $host_os in
  13632. nonstopux*) version_type=nonstopux ;;
  13633. *)
  13634. if test "$lt_cv_prog_gnu_ld" = yes; then
  13635. version_type=linux
  13636. else
  13637. version_type=irix
  13638. fi ;;
  13639. esac
  13640. need_lib_prefix=no
  13641. need_version=no
  13642. soname_spec='${libname}${release}${shared_ext}$major'
  13643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13644. case $host_os in
  13645. irix5* | nonstopux*)
  13646. libsuff= shlibsuff=
  13647. ;;
  13648. *)
  13649. case $LD in # libtool.m4 will add one of these switches to LD
  13650. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13651. libsuff= shlibsuff= libmagic=32-bit;;
  13652. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13653. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13654. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13655. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13656. *) libsuff= shlibsuff= libmagic=never-match;;
  13657. esac
  13658. ;;
  13659. esac
  13660. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13661. shlibpath_overrides_runpath=no
  13662. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13663. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13664. hardcode_into_libs=yes
  13665. ;;
  13666. # No shared lib support for Linux oldld, aout, or coff.
  13667. linux*oldld* | linux*aout* | linux*coff*)
  13668. dynamic_linker=no
  13669. ;;
  13670. # This must be Linux ELF.
  13671. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13672. version_type=linux
  13673. need_lib_prefix=no
  13674. need_version=no
  13675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13676. soname_spec='${libname}${release}${shared_ext}$major'
  13677. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13678. shlibpath_var=LD_LIBRARY_PATH
  13679. shlibpath_overrides_runpath=no
  13680. # Some binutils ld are patched to set DT_RUNPATH
  13681. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  13682. $as_echo_n "(cached) " >&6
  13683. else
  13684. lt_cv_shlibpath_overrides_runpath=no
  13685. save_LDFLAGS=$LDFLAGS
  13686. save_libdir=$libdir
  13687. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13688. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13690. /* end confdefs.h. */
  13691. int
  13692. main ()
  13693. {
  13694. ;
  13695. return 0;
  13696. }
  13697. _ACEOF
  13698. if ac_fn_cxx_try_link "$LINENO"; then :
  13699. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13700. lt_cv_shlibpath_overrides_runpath=yes
  13701. fi
  13702. fi
  13703. rm -f core conftest.err conftest.$ac_objext \
  13704. conftest$ac_exeext conftest.$ac_ext
  13705. LDFLAGS=$save_LDFLAGS
  13706. libdir=$save_libdir
  13707. fi
  13708. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13709. # This implies no fast_install, which is unacceptable.
  13710. # Some rework will be needed to allow for fast_install
  13711. # before this can be enabled.
  13712. hardcode_into_libs=yes
  13713. # Append ld.so.conf contents to the search path
  13714. if test -f /etc/ld.so.conf; then
  13715. 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' ' '`
  13716. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13717. fi
  13718. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13719. # powerpc, because MkLinux only supported shared libraries with the
  13720. # GNU dynamic linker. Since this was broken with cross compilers,
  13721. # most powerpc-linux boxes support dynamic linking these days and
  13722. # people can always --disable-shared, the test was removed, and we
  13723. # assume the GNU/Linux dynamic linker is in use.
  13724. dynamic_linker='GNU/Linux ld.so'
  13725. ;;
  13726. netbsdelf*-gnu)
  13727. version_type=linux
  13728. need_lib_prefix=no
  13729. need_version=no
  13730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13731. soname_spec='${libname}${release}${shared_ext}$major'
  13732. shlibpath_var=LD_LIBRARY_PATH
  13733. shlibpath_overrides_runpath=no
  13734. hardcode_into_libs=yes
  13735. dynamic_linker='NetBSD ld.elf_so'
  13736. ;;
  13737. netbsd*)
  13738. version_type=sunos
  13739. need_lib_prefix=no
  13740. need_version=no
  13741. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13743. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13744. dynamic_linker='NetBSD (a.out) ld.so'
  13745. else
  13746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13747. soname_spec='${libname}${release}${shared_ext}$major'
  13748. dynamic_linker='NetBSD ld.elf_so'
  13749. fi
  13750. shlibpath_var=LD_LIBRARY_PATH
  13751. shlibpath_overrides_runpath=yes
  13752. hardcode_into_libs=yes
  13753. ;;
  13754. newsos6)
  13755. version_type=linux
  13756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13757. shlibpath_var=LD_LIBRARY_PATH
  13758. shlibpath_overrides_runpath=yes
  13759. ;;
  13760. *nto* | *qnx*)
  13761. version_type=qnx
  13762. need_lib_prefix=no
  13763. need_version=no
  13764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13765. soname_spec='${libname}${release}${shared_ext}$major'
  13766. shlibpath_var=LD_LIBRARY_PATH
  13767. shlibpath_overrides_runpath=no
  13768. hardcode_into_libs=yes
  13769. dynamic_linker='ldqnx.so'
  13770. ;;
  13771. openbsd*)
  13772. version_type=sunos
  13773. sys_lib_dlsearch_path_spec="/usr/lib"
  13774. need_lib_prefix=no
  13775. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13776. case $host_os in
  13777. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13778. *) need_version=no ;;
  13779. esac
  13780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13781. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13782. shlibpath_var=LD_LIBRARY_PATH
  13783. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13784. case $host_os in
  13785. openbsd2.[89] | openbsd2.[89].*)
  13786. shlibpath_overrides_runpath=no
  13787. ;;
  13788. *)
  13789. shlibpath_overrides_runpath=yes
  13790. ;;
  13791. esac
  13792. else
  13793. shlibpath_overrides_runpath=yes
  13794. fi
  13795. ;;
  13796. os2*)
  13797. libname_spec='$name'
  13798. shrext_cmds=".dll"
  13799. need_lib_prefix=no
  13800. library_names_spec='$libname${shared_ext} $libname.a'
  13801. dynamic_linker='OS/2 ld.exe'
  13802. shlibpath_var=LIBPATH
  13803. ;;
  13804. osf3* | osf4* | osf5*)
  13805. version_type=osf
  13806. need_lib_prefix=no
  13807. need_version=no
  13808. soname_spec='${libname}${release}${shared_ext}$major'
  13809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13810. shlibpath_var=LD_LIBRARY_PATH
  13811. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13812. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13813. ;;
  13814. rdos*)
  13815. dynamic_linker=no
  13816. ;;
  13817. solaris*)
  13818. version_type=linux
  13819. need_lib_prefix=no
  13820. need_version=no
  13821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13822. soname_spec='${libname}${release}${shared_ext}$major'
  13823. shlibpath_var=LD_LIBRARY_PATH
  13824. shlibpath_overrides_runpath=yes
  13825. hardcode_into_libs=yes
  13826. # ldd complains unless libraries are executable
  13827. postinstall_cmds='chmod +x $lib'
  13828. ;;
  13829. sunos4*)
  13830. version_type=sunos
  13831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13832. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13833. shlibpath_var=LD_LIBRARY_PATH
  13834. shlibpath_overrides_runpath=yes
  13835. if test "$with_gnu_ld" = yes; then
  13836. need_lib_prefix=no
  13837. fi
  13838. need_version=yes
  13839. ;;
  13840. sysv4 | sysv4.3*)
  13841. version_type=linux
  13842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13843. soname_spec='${libname}${release}${shared_ext}$major'
  13844. shlibpath_var=LD_LIBRARY_PATH
  13845. case $host_vendor in
  13846. sni)
  13847. shlibpath_overrides_runpath=no
  13848. need_lib_prefix=no
  13849. runpath_var=LD_RUN_PATH
  13850. ;;
  13851. siemens)
  13852. need_lib_prefix=no
  13853. ;;
  13854. motorola)
  13855. need_lib_prefix=no
  13856. need_version=no
  13857. shlibpath_overrides_runpath=no
  13858. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13859. ;;
  13860. esac
  13861. ;;
  13862. sysv4*MP*)
  13863. if test -d /usr/nec ;then
  13864. version_type=linux
  13865. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13866. soname_spec='$libname${shared_ext}.$major'
  13867. shlibpath_var=LD_LIBRARY_PATH
  13868. fi
  13869. ;;
  13870. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13871. version_type=freebsd-elf
  13872. need_lib_prefix=no
  13873. need_version=no
  13874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13875. soname_spec='${libname}${release}${shared_ext}$major'
  13876. shlibpath_var=LD_LIBRARY_PATH
  13877. shlibpath_overrides_runpath=yes
  13878. hardcode_into_libs=yes
  13879. if test "$with_gnu_ld" = yes; then
  13880. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13881. else
  13882. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13883. case $host_os in
  13884. sco3.2v5*)
  13885. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13886. ;;
  13887. esac
  13888. fi
  13889. sys_lib_dlsearch_path_spec='/usr/lib'
  13890. ;;
  13891. tpf*)
  13892. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13893. version_type=linux
  13894. need_lib_prefix=no
  13895. need_version=no
  13896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13897. shlibpath_var=LD_LIBRARY_PATH
  13898. shlibpath_overrides_runpath=no
  13899. hardcode_into_libs=yes
  13900. ;;
  13901. uts4*)
  13902. version_type=linux
  13903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13904. soname_spec='${libname}${release}${shared_ext}$major'
  13905. shlibpath_var=LD_LIBRARY_PATH
  13906. ;;
  13907. *)
  13908. dynamic_linker=no
  13909. ;;
  13910. esac
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13912. $as_echo "$dynamic_linker" >&6; }
  13913. test "$dynamic_linker" = no && can_build_shared=no
  13914. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13915. if test "$GCC" = yes; then
  13916. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13917. fi
  13918. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13919. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13920. fi
  13921. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13922. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13923. fi
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13925. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13926. hardcode_action_CXX=
  13927. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13928. test -n "$runpath_var_CXX" ||
  13929. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13930. # We can hardcode non-existent directories.
  13931. if test "$hardcode_direct_CXX" != no &&
  13932. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13933. # have to relink, otherwise we might link with an installed library
  13934. # when we should be linking with a yet-to-be-installed one
  13935. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13936. test "$hardcode_minus_L_CXX" != no; then
  13937. # Linking always hardcodes the temporary library directory.
  13938. hardcode_action_CXX=relink
  13939. else
  13940. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13941. hardcode_action_CXX=immediate
  13942. fi
  13943. else
  13944. # We cannot hardcode anything, or else we can only hardcode existing
  13945. # directories.
  13946. hardcode_action_CXX=unsupported
  13947. fi
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13949. $as_echo "$hardcode_action_CXX" >&6; }
  13950. if test "$hardcode_action_CXX" = relink ||
  13951. test "$inherit_rpath_CXX" = yes; then
  13952. # Fast installation is not supported
  13953. enable_fast_install=no
  13954. elif test "$shlibpath_overrides_runpath" = yes ||
  13955. test "$enable_shared" = no; then
  13956. # Fast installation is not necessary
  13957. enable_fast_install=needless
  13958. fi
  13959. fi # test -n "$compiler"
  13960. CC=$lt_save_CC
  13961. CFLAGS=$lt_save_CFLAGS
  13962. LDCXX=$LD
  13963. LD=$lt_save_LD
  13964. GCC=$lt_save_GCC
  13965. with_gnu_ld=$lt_save_with_gnu_ld
  13966. lt_cv_path_LDCXX=$lt_cv_path_LD
  13967. lt_cv_path_LD=$lt_save_path_LD
  13968. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13969. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13970. fi # test "$_lt_caught_CXX_error" != yes
  13971. ac_ext=c
  13972. ac_cpp='$CPP $CPPFLAGS'
  13973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13976. ac_ext=c
  13977. ac_cpp='$CPP $CPPFLAGS'
  13978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13981. if test -n "$ac_tool_prefix"; then
  13982. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  13983. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13985. $as_echo_n "checking for $ac_word... " >&6; }
  13986. if test "${ac_cv_prog_CC+set}" = set; then :
  13987. $as_echo_n "(cached) " >&6
  13988. else
  13989. if test -n "$CC"; then
  13990. ac_cv_prog_CC="$CC" # Let the user override the test.
  13991. else
  13992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13993. for as_dir in $PATH
  13994. do
  13995. IFS=$as_save_IFS
  13996. test -z "$as_dir" && as_dir=.
  13997. for ac_exec_ext in '' $ac_executable_extensions; do
  13998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13999. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  14000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14001. break 2
  14002. fi
  14003. done
  14004. done
  14005. IFS=$as_save_IFS
  14006. fi
  14007. fi
  14008. CC=$ac_cv_prog_CC
  14009. if test -n "$CC"; then
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14011. $as_echo "$CC" >&6; }
  14012. else
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14014. $as_echo "no" >&6; }
  14015. fi
  14016. fi
  14017. if test -z "$ac_cv_prog_CC"; then
  14018. ac_ct_CC=$CC
  14019. # Extract the first word of "gcc", so it can be a program name with args.
  14020. set dummy gcc; ac_word=$2
  14021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14022. $as_echo_n "checking for $ac_word... " >&6; }
  14023. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  14024. $as_echo_n "(cached) " >&6
  14025. else
  14026. if test -n "$ac_ct_CC"; then
  14027. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  14028. else
  14029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14030. for as_dir in $PATH
  14031. do
  14032. IFS=$as_save_IFS
  14033. test -z "$as_dir" && as_dir=.
  14034. for ac_exec_ext in '' $ac_executable_extensions; do
  14035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14036. ac_cv_prog_ac_ct_CC="gcc"
  14037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14038. break 2
  14039. fi
  14040. done
  14041. done
  14042. IFS=$as_save_IFS
  14043. fi
  14044. fi
  14045. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14046. if test -n "$ac_ct_CC"; then
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14048. $as_echo "$ac_ct_CC" >&6; }
  14049. else
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14051. $as_echo "no" >&6; }
  14052. fi
  14053. if test "x$ac_ct_CC" = x; then
  14054. CC=""
  14055. else
  14056. case $cross_compiling:$ac_tool_warned in
  14057. yes:)
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14060. ac_tool_warned=yes ;;
  14061. esac
  14062. CC=$ac_ct_CC
  14063. fi
  14064. else
  14065. CC="$ac_cv_prog_CC"
  14066. fi
  14067. if test -z "$CC"; then
  14068. if test -n "$ac_tool_prefix"; then
  14069. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  14070. set dummy ${ac_tool_prefix}cc; ac_word=$2
  14071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14072. $as_echo_n "checking for $ac_word... " >&6; }
  14073. if test "${ac_cv_prog_CC+set}" = set; then :
  14074. $as_echo_n "(cached) " >&6
  14075. else
  14076. if test -n "$CC"; then
  14077. ac_cv_prog_CC="$CC" # Let the user override the test.
  14078. else
  14079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14080. for as_dir in $PATH
  14081. do
  14082. IFS=$as_save_IFS
  14083. test -z "$as_dir" && as_dir=.
  14084. for ac_exec_ext in '' $ac_executable_extensions; do
  14085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14086. ac_cv_prog_CC="${ac_tool_prefix}cc"
  14087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14088. break 2
  14089. fi
  14090. done
  14091. done
  14092. IFS=$as_save_IFS
  14093. fi
  14094. fi
  14095. CC=$ac_cv_prog_CC
  14096. if test -n "$CC"; then
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14098. $as_echo "$CC" >&6; }
  14099. else
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14101. $as_echo "no" >&6; }
  14102. fi
  14103. fi
  14104. fi
  14105. if test -z "$CC"; then
  14106. # Extract the first word of "cc", so it can be a program name with args.
  14107. set dummy cc; ac_word=$2
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14109. $as_echo_n "checking for $ac_word... " >&6; }
  14110. if test "${ac_cv_prog_CC+set}" = set; then :
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. if test -n "$CC"; then
  14114. ac_cv_prog_CC="$CC" # Let the user override the test.
  14115. else
  14116. ac_prog_rejected=no
  14117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14118. for as_dir in $PATH
  14119. do
  14120. IFS=$as_save_IFS
  14121. test -z "$as_dir" && as_dir=.
  14122. for ac_exec_ext in '' $ac_executable_extensions; do
  14123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14124. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  14125. ac_prog_rejected=yes
  14126. continue
  14127. fi
  14128. ac_cv_prog_CC="cc"
  14129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14130. break 2
  14131. fi
  14132. done
  14133. done
  14134. IFS=$as_save_IFS
  14135. if test $ac_prog_rejected = yes; then
  14136. # We found a bogon in the path, so make sure we never use it.
  14137. set dummy $ac_cv_prog_CC
  14138. shift
  14139. if test $# != 0; then
  14140. # We chose a different compiler from the bogus one.
  14141. # However, it has the same basename, so the bogon will be chosen
  14142. # first if we set CC to just the basename; use the full file name.
  14143. shift
  14144. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  14145. fi
  14146. fi
  14147. fi
  14148. fi
  14149. CC=$ac_cv_prog_CC
  14150. if test -n "$CC"; then
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14152. $as_echo "$CC" >&6; }
  14153. else
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14155. $as_echo "no" >&6; }
  14156. fi
  14157. fi
  14158. if test -z "$CC"; then
  14159. if test -n "$ac_tool_prefix"; then
  14160. for ac_prog in cl.exe
  14161. do
  14162. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14163. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14165. $as_echo_n "checking for $ac_word... " >&6; }
  14166. if test "${ac_cv_prog_CC+set}" = set; then :
  14167. $as_echo_n "(cached) " >&6
  14168. else
  14169. if test -n "$CC"; then
  14170. ac_cv_prog_CC="$CC" # Let the user override the test.
  14171. else
  14172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14173. for as_dir in $PATH
  14174. do
  14175. IFS=$as_save_IFS
  14176. test -z "$as_dir" && as_dir=.
  14177. for ac_exec_ext in '' $ac_executable_extensions; do
  14178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14179. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  14180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14181. break 2
  14182. fi
  14183. done
  14184. done
  14185. IFS=$as_save_IFS
  14186. fi
  14187. fi
  14188. CC=$ac_cv_prog_CC
  14189. if test -n "$CC"; then
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14191. $as_echo "$CC" >&6; }
  14192. else
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14194. $as_echo "no" >&6; }
  14195. fi
  14196. test -n "$CC" && break
  14197. done
  14198. fi
  14199. if test -z "$CC"; then
  14200. ac_ct_CC=$CC
  14201. for ac_prog in cl.exe
  14202. do
  14203. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14204. set dummy $ac_prog; ac_word=$2
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14206. $as_echo_n "checking for $ac_word... " >&6; }
  14207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  14208. $as_echo_n "(cached) " >&6
  14209. else
  14210. if test -n "$ac_ct_CC"; then
  14211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  14212. else
  14213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14214. for as_dir in $PATH
  14215. do
  14216. IFS=$as_save_IFS
  14217. test -z "$as_dir" && as_dir=.
  14218. for ac_exec_ext in '' $ac_executable_extensions; do
  14219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14220. ac_cv_prog_ac_ct_CC="$ac_prog"
  14221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14222. break 2
  14223. fi
  14224. done
  14225. done
  14226. IFS=$as_save_IFS
  14227. fi
  14228. fi
  14229. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14230. if test -n "$ac_ct_CC"; then
  14231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14232. $as_echo "$ac_ct_CC" >&6; }
  14233. else
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14235. $as_echo "no" >&6; }
  14236. fi
  14237. test -n "$ac_ct_CC" && break
  14238. done
  14239. if test "x$ac_ct_CC" = x; then
  14240. CC=""
  14241. else
  14242. case $cross_compiling:$ac_tool_warned in
  14243. yes:)
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14246. ac_tool_warned=yes ;;
  14247. esac
  14248. CC=$ac_ct_CC
  14249. fi
  14250. fi
  14251. fi
  14252. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14253. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14254. as_fn_error "no acceptable C compiler found in \$PATH
  14255. See \`config.l