PageRenderTime 58ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 2ms

/configure

https://bitbucket.org/mike_php_net/libmysqludf
Shell | 14201 lines | 11901 code | 1371 blank | 929 comment | 1061 complexity | 9606b253c396114543bcc3b9e7d736ae MD5 | raw file
Possible License(s): BSD-2-Clause
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for libmysqludf 0.3.
  4. #
  5. # Report bugs to <mike@iworks.at>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, 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. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and mike@iworks.at
  231. $0: about your system, including any error possibly output
  232. $0: before this message. Then install a modern shell, or
  233. $0: manually run the script under such a shell if you do
  234. $0: have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='libmysqludf'
  523. PACKAGE_TARNAME='libmysqludf'
  524. PACKAGE_VERSION='0.3'
  525. PACKAGE_STRING='libmysqludf 0.3'
  526. PACKAGE_BUGREPORT='mike@iworks.at'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_unique_file="lib"
  564. ac_subst_vars='am__EXEEXT_FALSE
  565. am__EXEEXT_TRUE
  566. LTLIBOBJS
  567. LIBOBJS
  568. am__fastdepCC_FALSE
  569. am__fastdepCC_TRUE
  570. CCDEPMODE
  571. am__nodep
  572. AMDEPBACKSLASH
  573. AMDEP_FALSE
  574. AMDEP_TRUE
  575. am__quote
  576. am__include
  577. DEPDIR
  578. am__untar
  579. am__tar
  580. AMTAR
  581. am__leading_dot
  582. SET_MAKE
  583. mkdir_p
  584. MKDIR_P
  585. INSTALL_STRIP_PROGRAM
  586. install_sh
  587. MAKEINFO
  588. AUTOHEADER
  589. AUTOMAKE
  590. AUTOCONF
  591. ACLOCAL
  592. VERSION
  593. PACKAGE
  594. CYGPATH_W
  595. am__isrc
  596. INSTALL_DATA
  597. INSTALL_SCRIPT
  598. INSTALL_PROGRAM
  599. INCLUDES
  600. LIBTOOL_DEPS
  601. CPP
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. AWK
  609. RANLIB
  610. STRIP
  611. ac_ct_AR
  612. AR
  613. DLLTOOL
  614. OBJDUMP
  615. LN_S
  616. NM
  617. ac_ct_DUMPBIN
  618. DUMPBIN
  619. LD
  620. FGREP
  621. EGREP
  622. GREP
  623. host_os
  624. host_vendor
  625. host_cpu
  626. host
  627. build_os
  628. build_vendor
  629. build_cpu
  630. build
  631. LIBTOOL
  632. OBJEXT
  633. EXEEXT
  634. ac_ct_CC
  635. CPPFLAGS
  636. LDFLAGS
  637. CFLAGS
  638. CC
  639. SED
  640. target_alias
  641. host_alias
  642. build_alias
  643. LIBS
  644. ECHO_T
  645. ECHO_N
  646. ECHO_C
  647. DEFS
  648. mandir
  649. localedir
  650. libdir
  651. psdir
  652. pdfdir
  653. dvidir
  654. htmldir
  655. infodir
  656. docdir
  657. oldincludedir
  658. includedir
  659. localstatedir
  660. sharedstatedir
  661. sysconfdir
  662. datadir
  663. datarootdir
  664. libexecdir
  665. sbindir
  666. bindir
  667. program_transform_name
  668. prefix
  669. exec_prefix
  670. PACKAGE_URL
  671. PACKAGE_BUGREPORT
  672. PACKAGE_STRING
  673. PACKAGE_VERSION
  674. PACKAGE_TARNAME
  675. PACKAGE_NAME
  676. PATH_SEPARATOR
  677. SHELL'
  678. ac_subst_files=''
  679. ac_user_opts='
  680. enable_option_checking
  681. enable_shared
  682. enable_static
  683. with_pic
  684. enable_fast_install
  685. with_gnu_ld
  686. with_sysroot
  687. enable_libtool_lock
  688. with_mysql
  689. with_mysql_config
  690. with_mysql_includes
  691. enable_dependency_tracking
  692. '
  693. ac_precious_vars='build_alias
  694. host_alias
  695. target_alias
  696. CC
  697. CFLAGS
  698. LDFLAGS
  699. LIBS
  700. CPPFLAGS
  701. CPP'
  702. # Initialize some variables set by options.
  703. ac_init_help=
  704. ac_init_version=false
  705. ac_unrecognized_opts=
  706. ac_unrecognized_sep=
  707. # The variables have the same names as the options, with
  708. # dashes changed to underlines.
  709. cache_file=/dev/null
  710. exec_prefix=NONE
  711. no_create=
  712. no_recursion=
  713. prefix=NONE
  714. program_prefix=NONE
  715. program_suffix=NONE
  716. program_transform_name=s,x,x,
  717. silent=
  718. site=
  719. srcdir=
  720. verbose=
  721. x_includes=NONE
  722. x_libraries=NONE
  723. # Installation directory options.
  724. # These are left unexpanded so users can "make install exec_prefix=/foo"
  725. # and all the variables that are supposed to be based on exec_prefix
  726. # by default will actually change.
  727. # Use braces instead of parens because sh, perl, etc. also accept them.
  728. # (The list follows the same order as the GNU Coding Standards.)
  729. bindir='${exec_prefix}/bin'
  730. sbindir='${exec_prefix}/sbin'
  731. libexecdir='${exec_prefix}/libexec'
  732. datarootdir='${prefix}/share'
  733. datadir='${datarootdir}'
  734. sysconfdir='${prefix}/etc'
  735. sharedstatedir='${prefix}/com'
  736. localstatedir='${prefix}/var'
  737. includedir='${prefix}/include'
  738. oldincludedir='/usr/include'
  739. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  740. infodir='${datarootdir}/info'
  741. htmldir='${docdir}'
  742. dvidir='${docdir}'
  743. pdfdir='${docdir}'
  744. psdir='${docdir}'
  745. libdir='${exec_prefix}/lib'
  746. localedir='${datarootdir}/locale'
  747. mandir='${datarootdir}/man'
  748. ac_prev=
  749. ac_dashdash=
  750. for ac_option
  751. do
  752. # If the previous option needs an argument, assign it.
  753. if test -n "$ac_prev"; then
  754. eval $ac_prev=\$ac_option
  755. ac_prev=
  756. continue
  757. fi
  758. case $ac_option in
  759. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  760. *=) ac_optarg= ;;
  761. *) ac_optarg=yes ;;
  762. esac
  763. # Accept the important Cygnus configure options, so we can diagnose typos.
  764. case $ac_dashdash$ac_option in
  765. --)
  766. ac_dashdash=yes ;;
  767. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  768. ac_prev=bindir ;;
  769. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  770. bindir=$ac_optarg ;;
  771. -build | --build | --buil | --bui | --bu)
  772. ac_prev=build_alias ;;
  773. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  774. build_alias=$ac_optarg ;;
  775. -cache-file | --cache-file | --cache-fil | --cache-fi \
  776. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  777. ac_prev=cache_file ;;
  778. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  779. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  780. cache_file=$ac_optarg ;;
  781. --config-cache | -C)
  782. cache_file=config.cache ;;
  783. -datadir | --datadir | --datadi | --datad)
  784. ac_prev=datadir ;;
  785. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  786. datadir=$ac_optarg ;;
  787. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  788. | --dataroo | --dataro | --datar)
  789. ac_prev=datarootdir ;;
  790. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  791. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  792. datarootdir=$ac_optarg ;;
  793. -disable-* | --disable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error $? "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=no ;;
  808. -docdir | --docdir | --docdi | --doc | --do)
  809. ac_prev=docdir ;;
  810. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  811. docdir=$ac_optarg ;;
  812. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  813. ac_prev=dvidir ;;
  814. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  815. dvidir=$ac_optarg ;;
  816. -enable-* | --enable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error $? "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=\$ac_optarg ;;
  831. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  832. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  833. | --exec | --exe | --ex)
  834. ac_prev=exec_prefix ;;
  835. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  836. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  837. | --exec=* | --exe=* | --ex=*)
  838. exec_prefix=$ac_optarg ;;
  839. -gas | --gas | --ga | --g)
  840. # Obsolete; use --with-gas.
  841. with_gas=yes ;;
  842. -help | --help | --hel | --he | -h)
  843. ac_init_help=long ;;
  844. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  845. ac_init_help=recursive ;;
  846. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  847. ac_init_help=short ;;
  848. -host | --host | --hos | --ho)
  849. ac_prev=host_alias ;;
  850. -host=* | --host=* | --hos=* | --ho=*)
  851. host_alias=$ac_optarg ;;
  852. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  853. ac_prev=htmldir ;;
  854. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  855. | --ht=*)
  856. htmldir=$ac_optarg ;;
  857. -includedir | --includedir | --includedi | --included | --include \
  858. | --includ | --inclu | --incl | --inc)
  859. ac_prev=includedir ;;
  860. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  861. | --includ=* | --inclu=* | --incl=* | --inc=*)
  862. includedir=$ac_optarg ;;
  863. -infodir | --infodir | --infodi | --infod | --info | --inf)
  864. ac_prev=infodir ;;
  865. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  866. infodir=$ac_optarg ;;
  867. -libdir | --libdir | --libdi | --libd)
  868. ac_prev=libdir ;;
  869. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  870. libdir=$ac_optarg ;;
  871. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  872. | --libexe | --libex | --libe)
  873. ac_prev=libexecdir ;;
  874. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  875. | --libexe=* | --libex=* | --libe=*)
  876. libexecdir=$ac_optarg ;;
  877. -localedir | --localedir | --localedi | --localed | --locale)
  878. ac_prev=localedir ;;
  879. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  880. localedir=$ac_optarg ;;
  881. -localstatedir | --localstatedir | --localstatedi | --localstated \
  882. | --localstate | --localstat | --localsta | --localst | --locals)
  883. ac_prev=localstatedir ;;
  884. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  885. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  886. localstatedir=$ac_optarg ;;
  887. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  888. ac_prev=mandir ;;
  889. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  890. mandir=$ac_optarg ;;
  891. -nfp | --nfp | --nf)
  892. # Obsolete; use --without-fp.
  893. with_fp=no ;;
  894. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  895. | --no-cr | --no-c | -n)
  896. no_create=yes ;;
  897. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  898. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  899. no_recursion=yes ;;
  900. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  901. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  902. | --oldin | --oldi | --old | --ol | --o)
  903. ac_prev=oldincludedir ;;
  904. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  905. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  906. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  907. oldincludedir=$ac_optarg ;;
  908. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  909. ac_prev=prefix ;;
  910. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  911. prefix=$ac_optarg ;;
  912. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  913. | --program-pre | --program-pr | --program-p)
  914. ac_prev=program_prefix ;;
  915. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  916. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  917. program_prefix=$ac_optarg ;;
  918. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  919. | --program-suf | --program-su | --program-s)
  920. ac_prev=program_suffix ;;
  921. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  922. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  923. program_suffix=$ac_optarg ;;
  924. -program-transform-name | --program-transform-name \
  925. | --program-transform-nam | --program-transform-na \
  926. | --program-transform-n | --program-transform- \
  927. | --program-transform | --program-transfor \
  928. | --program-transfo | --program-transf \
  929. | --program-trans | --program-tran \
  930. | --progr-tra | --program-tr | --program-t)
  931. ac_prev=program_transform_name ;;
  932. -program-transform-name=* | --program-transform-name=* \
  933. | --program-transform-nam=* | --program-transform-na=* \
  934. | --program-transform-n=* | --program-transform-=* \
  935. | --program-transform=* | --program-transfor=* \
  936. | --program-transfo=* | --program-transf=* \
  937. | --program-trans=* | --program-tran=* \
  938. | --progr-tra=* | --program-tr=* | --program-t=*)
  939. program_transform_name=$ac_optarg ;;
  940. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  941. ac_prev=pdfdir ;;
  942. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  943. pdfdir=$ac_optarg ;;
  944. -psdir | --psdir | --psdi | --psd | --ps)
  945. ac_prev=psdir ;;
  946. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  947. psdir=$ac_optarg ;;
  948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  949. | -silent | --silent | --silen | --sile | --sil)
  950. silent=yes ;;
  951. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  952. ac_prev=sbindir ;;
  953. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  954. | --sbi=* | --sb=*)
  955. sbindir=$ac_optarg ;;
  956. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  957. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  958. | --sharedst | --shareds | --shared | --share | --shar \
  959. | --sha | --sh)
  960. ac_prev=sharedstatedir ;;
  961. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  962. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  963. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  964. | --sha=* | --sh=*)
  965. sharedstatedir=$ac_optarg ;;
  966. -site | --site | --sit)
  967. ac_prev=site ;;
  968. -site=* | --site=* | --sit=*)
  969. site=$ac_optarg ;;
  970. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  971. ac_prev=srcdir ;;
  972. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  973. srcdir=$ac_optarg ;;
  974. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  975. | --syscon | --sysco | --sysc | --sys | --sy)
  976. ac_prev=sysconfdir ;;
  977. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  978. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  979. sysconfdir=$ac_optarg ;;
  980. -target | --target | --targe | --targ | --tar | --ta | --t)
  981. ac_prev=target_alias ;;
  982. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  983. target_alias=$ac_optarg ;;
  984. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  985. verbose=yes ;;
  986. -version | --version | --versio | --versi | --vers | -V)
  987. ac_init_version=: ;;
  988. -with-* | --with-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=\$ac_optarg ;;
  1003. -without-* | --without-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid package name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "with_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval with_$ac_useropt=no ;;
  1018. --x)
  1019. # Obsolete; use --with-x.
  1020. with_x=yes ;;
  1021. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1022. | --x-incl | --x-inc | --x-in | --x-i)
  1023. ac_prev=x_includes ;;
  1024. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1025. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1026. x_includes=$ac_optarg ;;
  1027. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1028. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1029. ac_prev=x_libraries ;;
  1030. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1031. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1032. x_libraries=$ac_optarg ;;
  1033. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1034. Try \`$0 --help' for more information"
  1035. ;;
  1036. *=*)
  1037. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1038. # Reject names that are not valid shell variable names.
  1039. case $ac_envvar in #(
  1040. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1041. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1042. esac
  1043. eval $ac_envvar=\$ac_optarg
  1044. export $ac_envvar ;;
  1045. *)
  1046. # FIXME: should be removed in autoconf 3.0.
  1047. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1048. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1049. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1050. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1051. ;;
  1052. esac
  1053. done
  1054. if test -n "$ac_prev"; then
  1055. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1056. as_fn_error $? "missing argument to $ac_option"
  1057. fi
  1058. if test -n "$ac_unrecognized_opts"; then
  1059. case $enable_option_checking in
  1060. no) ;;
  1061. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1062. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1063. esac
  1064. fi
  1065. # Check all directory arguments for consistency.
  1066. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1067. datadir sysconfdir sharedstatedir localstatedir includedir \
  1068. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1069. libdir localedir mandir
  1070. do
  1071. eval ac_val=\$$ac_var
  1072. # Remove trailing slashes.
  1073. case $ac_val in
  1074. */ )
  1075. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1076. eval $ac_var=\$ac_val;;
  1077. esac
  1078. # Be sure to have absolute directory names.
  1079. case $ac_val in
  1080. [\\/$]* | ?:[\\/]* ) continue;;
  1081. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1082. esac
  1083. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1084. done
  1085. # There might be people who depend on the old broken behavior: `$host'
  1086. # used to hold the argument of --host etc.
  1087. # FIXME: To remove some day.
  1088. build=$build_alias
  1089. host=$host_alias
  1090. target=$target_alias
  1091. # FIXME: To remove some day.
  1092. if test "x$host_alias" != x; then
  1093. if test "x$build_alias" = x; then
  1094. cross_compiling=maybe
  1095. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1096. If a cross compiler is detected then cross compile mode will be used" >&2
  1097. elif test "x$build_alias" != "x$host_alias"; then
  1098. cross_compiling=yes
  1099. fi
  1100. fi
  1101. ac_tool_prefix=
  1102. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1103. test "$silent" = yes && exec 6>/dev/null
  1104. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1105. ac_ls_di=`ls -di .` &&
  1106. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1107. as_fn_error $? "working directory cannot be determined"
  1108. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1109. as_fn_error $? "pwd does not report name of working directory"
  1110. # Find the source files, if location was not specified.
  1111. if test -z "$srcdir"; then
  1112. ac_srcdir_defaulted=yes
  1113. # Try the directory containing this script, then the parent directory.
  1114. ac_confdir=`$as_dirname -- "$as_myself" ||
  1115. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1116. X"$as_myself" : 'X\(//\)[^/]' \| \
  1117. X"$as_myself" : 'X\(//\)$' \| \
  1118. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1119. $as_echo X"$as_myself" |
  1120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)[^/].*/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\/\)$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\).*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. s/.*/./; q'`
  1137. srcdir=$ac_confdir
  1138. if test ! -r "$srcdir/$ac_unique_file"; then
  1139. srcdir=..
  1140. fi
  1141. else
  1142. ac_srcdir_defaulted=no
  1143. fi
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1146. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1147. fi
  1148. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1149. ac_abs_confdir=`(
  1150. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures libmysqludf 0.3 to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking ...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. [$ac_default_prefix]
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. [PREFIX]
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root [DATAROOTDIR/doc/libmysqludf]
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. Program names:
  1223. --program-prefix=PREFIX prepend PREFIX to installed program names
  1224. --program-suffix=SUFFIX append SUFFIX to installed program names
  1225. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1226. System types:
  1227. --build=BUILD configure for building on BUILD [guessed]
  1228. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1229. _ACEOF
  1230. fi
  1231. if test -n "$ac_init_help"; then
  1232. case $ac_init_help in
  1233. short | recursive ) echo "Configuration of libmysqludf 0.3:";;
  1234. esac
  1235. cat <<\_ACEOF
  1236. Optional Features:
  1237. --disable-option-checking ignore unrecognized --enable/--with options
  1238. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1239. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1240. --enable-shared[=PKGS] build shared libraries [default=yes]
  1241. --enable-static[=PKGS] build static libraries [default=yes]
  1242. --enable-fast-install[=PKGS]
  1243. optimize for fast installation [default=yes]
  1244. --disable-libtool-lock avoid locking (might break parallel builds)
  1245. --disable-dependency-tracking speeds up one-time build
  1246. --enable-dependency-tracking do not reject slow dependency extractors
  1247. Optional Packages:
  1248. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1249. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1250. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1251. both]
  1252. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1253. --with-sysroot=DIR Search for dependent libraries within DIR
  1254. (or the compiler's sysroot if not specified).
  1255. --with-mysql where mysql is installed
  1256. --with-mysql_config where mysql_config is located
  1257. --with-mysql-include where mysql include directory is located
  1258. Some influential environment variables:
  1259. CC C compiler command
  1260. CFLAGS C compiler flags
  1261. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1262. nonstandard directory <lib dir>
  1263. LIBS libraries to pass to the linker, e.g. -l<library>
  1264. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1265. you have headers in a nonstandard directory <include dir>
  1266. CPP C preprocessor
  1267. Use these variables to override the choices made by `configure' or to help
  1268. it to find libraries and programs with nonstandard names/locations.
  1269. Report bugs to <mike@iworks.at>.
  1270. _ACEOF
  1271. ac_status=$?
  1272. fi
  1273. if test "$ac_init_help" = "recursive"; then
  1274. # If there are subdirs, report their specific --help.
  1275. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1276. test -d "$ac_dir" ||
  1277. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1278. continue
  1279. ac_builddir=.
  1280. case "$ac_dir" in
  1281. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1282. *)
  1283. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1284. # A ".." for each directory in $ac_dir_suffix.
  1285. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1286. case $ac_top_builddir_sub in
  1287. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1288. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1289. esac ;;
  1290. esac
  1291. ac_abs_top_builddir=$ac_pwd
  1292. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1293. # for backward compatibility:
  1294. ac_top_builddir=$ac_top_build_prefix
  1295. case $srcdir in
  1296. .) # We are building in place.
  1297. ac_srcdir=.
  1298. ac_top_srcdir=$ac_top_builddir_sub
  1299. ac_abs_top_srcdir=$ac_pwd ;;
  1300. [\\/]* | ?:[\\/]* ) # Absolute name.
  1301. ac_srcdir=$srcdir$ac_dir_suffix;
  1302. ac_top_srcdir=$srcdir
  1303. ac_abs_top_srcdir=$srcdir ;;
  1304. *) # Relative name.
  1305. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1306. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1307. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1308. esac
  1309. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1310. cd "$ac_dir" || { ac_status=$?; continue; }
  1311. # Check for guested configure.
  1312. if test -f "$ac_srcdir/configure.gnu"; then
  1313. echo &&
  1314. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1315. elif test -f "$ac_srcdir/configure"; then
  1316. echo &&
  1317. $SHELL "$ac_srcdir/configure" --help=recursive
  1318. else
  1319. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1320. fi || ac_status=$?
  1321. cd "$ac_pwd" || { ac_status=$?; break; }
  1322. done
  1323. fi
  1324. test -n "$ac_init_help" && exit $ac_status
  1325. if $ac_init_version; then
  1326. cat <<\_ACEOF
  1327. libmysqludf configure 0.3
  1328. generated by GNU Autoconf 2.68
  1329. Copyright (C) 2010 Free Software Foundation, Inc.
  1330. This configure script is free software; the Free Software Foundation
  1331. gives unlimited permission to copy, distribute and modify it.
  1332. _ACEOF
  1333. exit
  1334. fi
  1335. ## ------------------------ ##
  1336. ## Autoconf initialization. ##
  1337. ## ------------------------ ##
  1338. # ac_fn_c_try_compile LINENO
  1339. # --------------------------
  1340. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1341. ac_fn_c_try_compile ()
  1342. {
  1343. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1344. rm -f conftest.$ac_objext
  1345. if { { ac_try="$ac_compile"
  1346. case "(($ac_try" in
  1347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1348. *) ac_try_echo=$ac_try;;
  1349. esac
  1350. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1351. $as_echo "$ac_try_echo"; } >&5
  1352. (eval "$ac_compile") 2>conftest.err
  1353. ac_status=$?
  1354. if test -s conftest.err; then
  1355. grep -v '^ *+' conftest.err >conftest.er1
  1356. cat conftest.er1 >&5
  1357. mv -f conftest.er1 conftest.err
  1358. fi
  1359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1360. test $ac_status = 0; } && {
  1361. test -z "$ac_c_werror_flag" ||
  1362. test ! -s conftest.err
  1363. } && test -s conftest.$ac_objext; then :
  1364. ac_retval=0
  1365. else
  1366. $as_echo "$as_me: failed program was:" >&5
  1367. sed 's/^/| /' conftest.$ac_ext >&5
  1368. ac_retval=1
  1369. fi
  1370. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1371. as_fn_set_status $ac_retval
  1372. } # ac_fn_c_try_compile
  1373. # ac_fn_c_try_link LINENO
  1374. # -----------------------
  1375. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1376. ac_fn_c_try_link ()
  1377. {
  1378. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1379. rm -f conftest.$ac_objext conftest$ac_exeext
  1380. if { { ac_try="$ac_link"
  1381. case "(($ac_try" in
  1382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1383. *) ac_try_echo=$ac_try;;
  1384. esac
  1385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1386. $as_echo "$ac_try_echo"; } >&5
  1387. (eval "$ac_link") 2>conftest.err
  1388. ac_status=$?
  1389. if test -s conftest.err; then
  1390. grep -v '^ *+' conftest.err >conftest.er1
  1391. cat conftest.er1 >&5
  1392. mv -f conftest.er1 conftest.err
  1393. fi
  1394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1395. test $ac_status = 0; } && {
  1396. test -z "$ac_c_werror_flag" ||
  1397. test ! -s conftest.err
  1398. } && test -s conftest$ac_exeext && {
  1399. test "$cross_compiling" = yes ||
  1400. $as_test_x conftest$ac_exeext
  1401. }; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1409. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1410. # interfere with the next link command; also delete a directory that is
  1411. # left behind by Apple's compiler. We do this before executing the actions.
  1412. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1413. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1414. as_fn_set_status $ac_retval
  1415. } # ac_fn_c_try_link
  1416. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1417. # -------------------------------------------------------
  1418. # Tests whether HEADER exists and can be compiled using the include files in
  1419. # INCLUDES, setting the cache variable VAR accordingly.
  1420. ac_fn_c_check_header_compile ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1424. $as_echo_n "checking for $2... " >&6; }
  1425. if eval \${$3+:} false; then :
  1426. $as_echo_n "(cached) " >&6
  1427. else
  1428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1429. /* end confdefs.h. */
  1430. $4
  1431. #include <$2>
  1432. _ACEOF
  1433. if ac_fn_c_try_compile "$LINENO"; then :
  1434. eval "$3=yes"
  1435. else
  1436. eval "$3=no"
  1437. fi
  1438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1439. fi
  1440. eval ac_res=\$$3
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1442. $as_echo "$ac_res" >&6; }
  1443. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1444. } # ac_fn_c_check_header_compile
  1445. # ac_fn_c_try_cpp LINENO
  1446. # ----------------------
  1447. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1448. ac_fn_c_try_cpp ()
  1449. {
  1450. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1451. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1452. case "(($ac_try" in
  1453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1454. *) ac_try_echo=$ac_try;;
  1455. esac
  1456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1457. $as_echo "$ac_try_echo"; } >&5
  1458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1459. ac_status=$?
  1460. if test -s conftest.err; then
  1461. grep -v '^ *+' conftest.err >conftest.er1
  1462. cat conftest.er1 >&5
  1463. mv -f conftest.er1 conftest.err
  1464. fi
  1465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1466. test $ac_status = 0; } > conftest.i && {
  1467. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1468. test ! -s conftest.err
  1469. }; then :
  1470. ac_retval=0
  1471. else
  1472. $as_echo "$as_me: failed program was:" >&5
  1473. sed 's/^/| /' conftest.$ac_ext >&5
  1474. ac_retval=1
  1475. fi
  1476. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1477. as_fn_set_status $ac_retval
  1478. } # ac_fn_c_try_cpp
  1479. # ac_fn_c_try_run LINENO
  1480. # ----------------------
  1481. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1482. # that executables *can* be run.
  1483. ac_fn_c_try_run ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. if { { ac_try="$ac_link"
  1487. case "(($ac_try" in
  1488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. *) ac_try_echo=$ac_try;;
  1490. esac
  1491. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. $as_echo "$ac_try_echo"; } >&5
  1493. (eval "$ac_link") 2>&5
  1494. ac_status=$?
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1497. { { case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_try") 2>&5
  1504. ac_status=$?
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; }; }; then :
  1507. ac_retval=0
  1508. else
  1509. $as_echo "$as_me: program exited with status $ac_status" >&5
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=$ac_status
  1513. fi
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_run
  1518. # ac_fn_c_check_func LINENO FUNC VAR
  1519. # ----------------------------------
  1520. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1521. ac_fn_c_check_func ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1525. $as_echo_n "checking for $2... " >&6; }
  1526. if eval \${$3+:} false; then :
  1527. $as_echo_n "(cached) " >&6
  1528. else
  1529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1530. /* end confdefs.h. */
  1531. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1532. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1533. #define $2 innocuous_$2
  1534. /* System header to define __stub macros and hopefully few prototypes,
  1535. which can conflict with char $2 (); below.
  1536. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1537. <limits.h> exists even on freestanding compilers. */
  1538. #ifdef __STDC__
  1539. # include <limits.h>
  1540. #else
  1541. # include <assert.h>
  1542. #endif
  1543. #undef $2
  1544. /* Override any GCC internal prototype to avoid an error.
  1545. Use char because int might match the return type of a GCC
  1546. builtin and then its argument prototype would still apply. */
  1547. #ifdef __cplusplus
  1548. extern "C"
  1549. #endif
  1550. char $2 ();
  1551. /* The GNU C library defines this for functions which it implements
  1552. to always fail with ENOSYS. Some functions are actually named
  1553. something starting with __ and the normal name is an alias. */
  1554. #if defined __stub_$2 || defined __stub___$2
  1555. choke me
  1556. #endif
  1557. int
  1558. main ()
  1559. {
  1560. return $2 ();
  1561. ;
  1562. return 0;
  1563. }
  1564. _ACEOF
  1565. if ac_fn_c_try_link "$LINENO"; then :
  1566. eval "$3=yes"
  1567. else
  1568. eval "$3=no"
  1569. fi
  1570. rm -f core conftest.err conftest.$ac_objext \
  1571. conftest$ac_exeext conftest.$ac_ext
  1572. fi
  1573. eval ac_res=\$$3
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1575. $as_echo "$ac_res" >&6; }
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. } # ac_fn_c_check_func
  1578. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1579. # -------------------------------------------------------
  1580. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1581. # the include files in INCLUDES and setting the cache variable VAR
  1582. # accordingly.
  1583. ac_fn_c_check_header_mongrel ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. if eval \${$3+:} false; then :
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1588. $as_echo_n "checking for $2... " >&6; }
  1589. if eval \${$3+:} false; then :
  1590. $as_echo_n "(cached) " >&6
  1591. fi
  1592. eval ac_res=\$$3
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1594. $as_echo "$ac_res" >&6; }
  1595. else
  1596. # Is the header compilable?
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1598. $as_echo_n "checking $2 usability... " >&6; }
  1599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1600. /* end confdefs.h. */
  1601. $4
  1602. #include <$2>
  1603. _ACEOF
  1604. if ac_fn_c_try_compile "$LINENO"; then :
  1605. ac_header_compiler=yes
  1606. else
  1607. ac_header_compiler=no
  1608. fi
  1609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1611. $as_echo "$ac_header_compiler" >&6; }
  1612. # Is the header present?
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1614. $as_echo_n "checking $2 presence... " >&6; }
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. #include <$2>
  1618. _ACEOF
  1619. if ac_fn_c_try_cpp "$LINENO"; then :
  1620. ac_header_preproc=yes
  1621. else
  1622. ac_header_preproc=no
  1623. fi
  1624. rm -f conftest.err conftest.i conftest.$ac_ext
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1626. $as_echo "$ac_header_preproc" >&6; }
  1627. # So? What about this header?
  1628. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1629. yes:no: )
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1631. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1633. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1634. ;;
  1635. no:yes:* )
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1637. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1639. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1641. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1643. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1645. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1646. ( $as_echo "## ----------------------------- ##
  1647. ## Report this to mike@iworks.at ##
  1648. ## ----------------------------- ##"
  1649. ) | sed "s/^/$as_me: WARNING: /" >&2
  1650. ;;
  1651. esac
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1653. $as_echo_n "checking for $2... " >&6; }
  1654. if eval \${$3+:} false; then :
  1655. $as_echo_n "(cached) " >&6
  1656. else
  1657. eval "$3=\$ac_header_compiler"
  1658. fi
  1659. eval ac_res=\$$3
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1661. $as_echo "$ac_res" >&6; }
  1662. fi
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. } # ac_fn_c_check_header_mongrel
  1665. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1666. # --------------------------------------------
  1667. # Tries to find the compile-time value of EXPR in a program that includes
  1668. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1669. # computed
  1670. ac_fn_c_compute_int ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. if test "$cross_compiling" = yes; then
  1674. # Depending upon the size, compute the lo and hi bounds.
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. $4
  1678. int
  1679. main ()
  1680. {
  1681. static int test_array [1 - 2 * !(($2) >= 0)];
  1682. test_array [0] = 0
  1683. ;
  1684. return 0;
  1685. }
  1686. _ACEOF
  1687. if ac_fn_c_try_compile "$LINENO"; then :
  1688. ac_lo=0 ac_mid=0
  1689. while :; do
  1690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1691. /* end confdefs.h. */
  1692. $4
  1693. int
  1694. main ()
  1695. {
  1696. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1697. test_array [0] = 0
  1698. ;
  1699. return 0;
  1700. }
  1701. _ACEOF
  1702. if ac_fn_c_try_compile "$LINENO"; then :
  1703. ac_hi=$ac_mid; break
  1704. else
  1705. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1706. if test $ac_lo -le $ac_mid; then
  1707. ac_lo= ac_hi=
  1708. break
  1709. fi
  1710. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1711. fi
  1712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1713. done
  1714. else
  1715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1716. /* end confdefs.h. */
  1717. $4
  1718. int
  1719. main ()
  1720. {
  1721. static int test_array [1 - 2 * !(($2) < 0)];
  1722. test_array [0] = 0
  1723. ;
  1724. return 0;
  1725. }
  1726. _ACEOF
  1727. if ac_fn_c_try_compile "$LINENO"; then :
  1728. ac_hi=-1 ac_mid=-1
  1729. while :; do
  1730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1731. /* end confdefs.h. */
  1732. $4
  1733. int
  1734. main ()
  1735. {
  1736. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1737. test_array [0] = 0
  1738. ;
  1739. return 0;
  1740. }
  1741. _ACEOF
  1742. if ac_fn_c_try_compile "$LINENO"; then :
  1743. ac_lo=$ac_mid; break
  1744. else
  1745. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1746. if test $ac_mid -le $ac_hi; then
  1747. ac_lo= ac_hi=
  1748. break
  1749. fi
  1750. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1751. fi
  1752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1753. done
  1754. else
  1755. ac_lo= ac_hi=
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. fi
  1759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1760. # Binary search between lo and hi bounds.
  1761. while test "x$ac_lo" != "x$ac_hi"; do
  1762. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. $4
  1766. int
  1767. main ()
  1768. {
  1769. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1770. test_array [0] = 0
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_c_try_compile "$LINENO"; then :
  1776. ac_hi=$ac_mid
  1777. else
  1778. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. done
  1782. case $ac_lo in #((
  1783. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1784. '') ac_retval=1 ;;
  1785. esac
  1786. else
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. $4
  1790. static long int longval () { return $2; }
  1791. static unsigned long int ulongval () { return $2; }
  1792. #include <stdio.h>
  1793. #include <stdlib.h>
  1794. int
  1795. main ()
  1796. {
  1797. FILE *f = fopen ("conftest.val", "w");
  1798. if (! f)
  1799. return 1;
  1800. if (($2) < 0)
  1801. {
  1802. long int i = longval ();
  1803. if (i != ($2))
  1804. return 1;
  1805. fprintf (f, "%ld", i);
  1806. }
  1807. else
  1808. {
  1809. unsigned long int i = ulongval ();
  1810. if (i != ($2))
  1811. return 1;
  1812. fprintf (f, "%lu", i);
  1813. }
  1814. /* Do not output a trailing newline, as this causes \r\n confusion
  1815. on some platforms. */
  1816. return ferror (f) || fclose (f) != 0;
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_c_try_run "$LINENO"; then :
  1822. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1823. else
  1824. ac_retval=1
  1825. fi
  1826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1828. rm -f conftest.val
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_c_compute_int
  1833. cat >config.log <<_ACEOF
  1834. This file contains any messages produced by compilers while
  1835. running configure, to aid debugging if configure makes a mistake.
  1836. It was created by libmysqludf $as_me 0.3, which was
  1837. generated by GNU Autoconf 2.68. Invocation command line was
  1838. $ $0 $@
  1839. _ACEOF
  1840. exec 5>>config.log
  1841. {
  1842. cat <<_ASUNAME
  1843. ## --------- ##
  1844. ## Platform. ##
  1845. ## --------- ##
  1846. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1847. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1848. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1849. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1850. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1851. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1852. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1853. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1854. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1855. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1856. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1857. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1858. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1859. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1860. _ASUNAME
  1861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1862. for as_dir in $PATH
  1863. do
  1864. IFS=$as_save_IFS
  1865. test -z "$as_dir" && as_dir=.
  1866. $as_echo "PATH: $as_dir"
  1867. done
  1868. IFS=$as_save_IFS
  1869. } >&5
  1870. cat >&5 <<_ACEOF
  1871. ## ----------- ##
  1872. ## Core tests. ##
  1873. ## ----------- ##
  1874. _ACEOF
  1875. # Keep a trace of the command line.
  1876. # Strip out --no-create and --no-recursion so they do not pile up.
  1877. # Strip out --silent because we don't want to record it for future runs.
  1878. # Also quote any args containing shell meta-characters.
  1879. # Make two passes to allow for proper duplicate-argument suppression.
  1880. ac_configure_args=
  1881. ac_configure_args0=
  1882. ac_configure_args1=
  1883. ac_must_keep_next=false
  1884. for ac_pass in 1 2
  1885. do
  1886. for ac_arg
  1887. do
  1888. case $ac_arg in
  1889. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1891. | -silent | --silent | --silen | --sile | --sil)
  1892. continue ;;
  1893. *\'*)
  1894. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1895. esac
  1896. case $ac_pass in
  1897. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1898. 2)
  1899. as_fn_append ac_configure_args1 " '$ac_arg'"
  1900. if test $ac_must_keep_next = true; then
  1901. ac_must_keep_next=false # Got value, back to normal.
  1902. else
  1903. case $ac_arg in
  1904. *=* | --config-cache | -C | -disable-* | --disable-* \
  1905. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1906. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1907. | -with-* | --with-* | -without-* | --without-* | --x)
  1908. case "$ac_configure_args0 " in
  1909. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1910. esac
  1911. ;;
  1912. -* ) ac_must_keep_next=true ;;
  1913. esac
  1914. fi
  1915. as_fn_append ac_configure_args " '$ac_arg'"
  1916. ;;
  1917. esac
  1918. done
  1919. done
  1920. { ac_configure_args0=; unset ac_configure_args0;}
  1921. { ac_configure_args1=; unset ac_configure_args1;}
  1922. # When interrupted or exit'd, cleanup temporary files, and complete
  1923. # config.log. We remove comments because anyway the quotes in there
  1924. # would cause problems or look ugly.
  1925. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1926. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1927. trap 'exit_status=$?
  1928. # Save into config.log some information that might help in debugging.
  1929. {
  1930. echo
  1931. $as_echo "## ---------------- ##
  1932. ## Cache variables. ##
  1933. ## ---------------- ##"
  1934. echo
  1935. # The following way of writing the cache mishandles newlines in values,
  1936. (
  1937. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1938. eval ac_val=\$$ac_var
  1939. case $ac_val in #(
  1940. *${as_nl}*)
  1941. case $ac_var in #(
  1942. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1943. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1944. esac
  1945. case $ac_var in #(
  1946. _ | IFS | as_nl) ;; #(
  1947. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1948. *) { eval $ac_var=; unset $ac_var;} ;;
  1949. esac ;;
  1950. esac
  1951. done
  1952. (set) 2>&1 |
  1953. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1954. *${as_nl}ac_space=\ *)
  1955. sed -n \
  1956. "s/'\''/'\''\\\\'\'''\''/g;
  1957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1958. ;; #(
  1959. *)
  1960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1961. ;;
  1962. esac |
  1963. sort
  1964. )
  1965. echo
  1966. $as_echo "## ----------------- ##
  1967. ## Output variables. ##
  1968. ## ----------------- ##"
  1969. echo
  1970. for ac_var in $ac_subst_vars
  1971. do
  1972. eval ac_val=\$$ac_var
  1973. case $ac_val in
  1974. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1975. esac
  1976. $as_echo "$ac_var='\''$ac_val'\''"
  1977. done | sort
  1978. echo
  1979. if test -n "$ac_subst_files"; then
  1980. $as_echo "## ------------------- ##
  1981. ## File substitutions. ##
  1982. ## ------------------- ##"
  1983. echo
  1984. for ac_var in $ac_subst_files
  1985. do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in
  1988. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1989. esac
  1990. $as_echo "$ac_var='\''$ac_val'\''"
  1991. done | sort
  1992. echo
  1993. fi
  1994. if test -s confdefs.h; then
  1995. $as_echo "## ----------- ##
  1996. ## confdefs.h. ##
  1997. ## ----------- ##"
  1998. echo
  1999. cat confdefs.h
  2000. echo
  2001. fi
  2002. test "$ac_signal" != 0 &&
  2003. $as_echo "$as_me: caught signal $ac_signal"
  2004. $as_echo "$as_me: exit $exit_status"
  2005. } >&5
  2006. rm -f core *.core core.conftest.* &&
  2007. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2008. exit $exit_status
  2009. ' 0
  2010. for ac_signal in 1 2 13 15; do
  2011. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2012. done
  2013. ac_signal=0
  2014. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2015. rm -f -r conftest* confdefs.h
  2016. $as_echo "/* confdefs.h */" > confdefs.h
  2017. # Predefined preprocessor variables.
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_NAME "$PACKAGE_NAME"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_STRING "$PACKAGE_STRING"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_URL "$PACKAGE_URL"
  2035. _ACEOF
  2036. # Let the site file select an alternate cache file if it wants to.
  2037. # Prefer an explicitly selected file to automatically selected ones.
  2038. ac_site_file1=NONE
  2039. ac_site_file2=NONE
  2040. if test -n "$CONFIG_SITE"; then
  2041. # We do not want a PATH search for config.site.
  2042. case $CONFIG_SITE in #((
  2043. -*) ac_site_file1=./$CONFIG_SITE;;
  2044. */*) ac_site_file1=$CONFIG_SITE;;
  2045. *) ac_site_file1=./$CONFIG_SITE;;
  2046. esac
  2047. elif test "x$prefix" != xNONE; then
  2048. ac_site_file1=$prefix/share/config.site
  2049. ac_site_file2=$prefix/etc/config.site
  2050. else
  2051. ac_site_file1=$ac_default_prefix/share/config.site
  2052. ac_site_file2=$ac_default_prefix/etc/config.site
  2053. fi
  2054. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2055. do
  2056. test "x$ac_site_file" = xNONE && continue
  2057. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2059. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2060. sed 's/^/| /' "$ac_site_file" >&5
  2061. . "$ac_site_file" \
  2062. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2064. as_fn_error $? "failed to load site script $ac_site_file
  2065. See \`config.log' for more details" "$LINENO" 5; }
  2066. fi
  2067. done
  2068. if test -r "$cache_file"; then
  2069. # Some versions of bash will fail to source /dev/null (special files
  2070. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2071. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2073. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2074. case $cache_file in
  2075. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2076. *) . "./$cache_file";;
  2077. esac
  2078. fi
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2081. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2082. >$cache_file
  2083. fi
  2084. # Check that the precious variables saved in the cache have kept the same
  2085. # value.
  2086. ac_cache_corrupted=false
  2087. for ac_var in $ac_precious_vars; do
  2088. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2089. eval ac_new_set=\$ac_env_${ac_var}_set
  2090. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2091. eval ac_new_val=\$ac_env_${ac_var}_value
  2092. case $ac_old_set,$ac_new_set in
  2093. set,)
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2095. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2096. ac_cache_corrupted=: ;;
  2097. ,set)
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2099. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2100. ac_cache_corrupted=: ;;
  2101. ,);;
  2102. *)
  2103. if test "x$ac_old_val" != "x$ac_new_val"; then
  2104. # differences in whitespace do not lead to failure.
  2105. ac_old_val_w=`echo x $ac_old_val`
  2106. ac_new_val_w=`echo x $ac_new_val`
  2107. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2109. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2110. ac_cache_corrupted=:
  2111. else
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2113. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2114. eval $ac_var=\$ac_old_val
  2115. fi
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2117. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2119. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2120. fi;;
  2121. esac
  2122. # Pass precious variables to config.status.
  2123. if test "$ac_new_set" = set; then
  2124. case $ac_new_val in
  2125. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2126. *) ac_arg=$ac_var=$ac_new_val ;;
  2127. esac
  2128. case " $ac_configure_args " in
  2129. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2130. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2131. esac
  2132. fi
  2133. done
  2134. if $ac_cache_corrupted; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2138. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2139. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2140. fi
  2141. ## -------------------- ##
  2142. ## Main body of script. ##
  2143. ## -------------------- ##
  2144. ac_ext=c
  2145. ac_cpp='$CPP $CPPFLAGS'
  2146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2150. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2151. if ${ac_cv_path_SED+:} false; then :
  2152. $as_echo_n "(cached) " >&6
  2153. else
  2154. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2155. for ac_i in 1 2 3 4 5 6 7; do
  2156. ac_script="$ac_script$as_nl$ac_script"
  2157. done
  2158. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2159. { ac_script=; unset ac_script;}
  2160. if test -z "$SED"; then
  2161. ac_path_SED_found=false
  2162. # Loop through the user's path and test for each of PROGNAME-LIST
  2163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2164. for as_dir in $PATH
  2165. do
  2166. IFS=$as_save_IFS
  2167. test -z "$as_dir" && as_dir=.
  2168. for ac_prog in sed gsed; do
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2171. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2172. # Check for GNU ac_path_SED and select it if it is found.
  2173. # Check for GNU $ac_path_SED
  2174. case `"$ac_path_SED" --version 2>&1` in
  2175. *GNU*)
  2176. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2177. *)
  2178. ac_count=0
  2179. $as_echo_n 0123456789 >"conftest.in"
  2180. while :
  2181. do
  2182. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2183. mv "conftest.tmp" "conftest.in"
  2184. cp "conftest.in" "conftest.nl"
  2185. $as_echo '' >> "conftest.nl"
  2186. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2187. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2188. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2189. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2190. # Best one so far, save it but keep looking for a better one
  2191. ac_cv_path_SED="$ac_path_SED"
  2192. ac_path_SED_max=$ac_count
  2193. fi
  2194. # 10*(2^10) chars as input seems more than enough
  2195. test $ac_count -gt 10 && break
  2196. done
  2197. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2198. esac
  2199. $ac_path_SED_found && break 3
  2200. done
  2201. done
  2202. done
  2203. IFS=$as_save_IFS
  2204. if test -z "$ac_cv_path_SED"; then
  2205. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2206. fi
  2207. else
  2208. ac_cv_path_SED=$SED
  2209. fi
  2210. fi
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2212. $as_echo "$ac_cv_path_SED" >&6; }
  2213. SED="$ac_cv_path_SED"
  2214. rm -f conftest.sed
  2215. ac_ext=c
  2216. ac_cpp='$CPP $CPPFLAGS'
  2217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2220. if test -n "$ac_tool_prefix"; then
  2221. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2222. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2224. $as_echo_n "checking for $ac_word... " >&6; }
  2225. if ${ac_cv_prog_CC+:} false; then :
  2226. $as_echo_n "(cached) " >&6
  2227. else
  2228. if test -n "$CC"; then
  2229. ac_cv_prog_CC="$CC" # Let the user override the test.
  2230. else
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. test -z "$as_dir" && as_dir=.
  2236. for ac_exec_ext in '' $ac_executable_extensions; do
  2237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2238. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240. break 2
  2241. fi
  2242. done
  2243. done
  2244. IFS=$as_save_IFS
  2245. fi
  2246. fi
  2247. CC=$ac_cv_prog_CC
  2248. if test -n "$CC"; then
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2250. $as_echo "$CC" >&6; }
  2251. else
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2253. $as_echo "no" >&6; }
  2254. fi
  2255. fi
  2256. if test -z "$ac_cv_prog_CC"; then
  2257. ac_ct_CC=$CC
  2258. # Extract the first word of "gcc", so it can be a program name with args.
  2259. set dummy gcc; ac_word=$2
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2261. $as_echo_n "checking for $ac_word... " >&6; }
  2262. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -n "$ac_ct_CC"; then
  2266. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2275. ac_cv_prog_ac_ct_CC="gcc"
  2276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. IFS=$as_save_IFS
  2282. fi
  2283. fi
  2284. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2285. if test -n "$ac_ct_CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2287. $as_echo "$ac_ct_CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. if test "x$ac_ct_CC" = x; then
  2293. CC=""
  2294. else
  2295. case $cross_compiling:$ac_tool_warned in
  2296. yes:)
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2299. ac_tool_warned=yes ;;
  2300. esac
  2301. CC=$ac_ct_CC
  2302. fi
  2303. else
  2304. CC="$ac_cv_prog_CC"
  2305. fi
  2306. if test -z "$CC"; then
  2307. if test -n "$ac_tool_prefix"; then
  2308. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2309. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2311. $as_echo_n "checking for $ac_word... " >&6; }
  2312. if ${ac_cv_prog_CC+:} false; then :
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. if test -n "$CC"; then
  2316. ac_cv_prog_CC="$CC" # Let the user override the test.
  2317. else
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. for ac_exec_ext in '' $ac_executable_extensions; do
  2324. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2325. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. fi
  2334. CC=$ac_cv_prog_CC
  2335. if test -n "$CC"; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2337. $as_echo "$CC" >&6; }
  2338. else
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2340. $as_echo "no" >&6; }
  2341. fi
  2342. fi
  2343. fi
  2344. if test -z "$CC"; then
  2345. # Extract the first word of "cc", so it can be a program name with args.
  2346. set dummy cc; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_CC+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$CC"; then
  2353. ac_cv_prog_CC="$CC" # Let the user override the test.
  2354. else
  2355. ac_prog_rejected=no
  2356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2357. for as_dir in $PATH
  2358. do
  2359. IFS=$as_save_IFS
  2360. test -z "$as_dir" && as_dir=.
  2361. for ac_exec_ext in '' $ac_executable_extensions; do
  2362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2363. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2364. ac_prog_rejected=yes
  2365. continue
  2366. fi
  2367. ac_cv_prog_CC="cc"
  2368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2369. break 2
  2370. fi
  2371. done
  2372. done
  2373. IFS=$as_save_IFS
  2374. if test $ac_prog_rejected = yes; then
  2375. # We found a bogon in the path, so make sure we never use it.
  2376. set dummy $ac_cv_prog_CC
  2377. shift
  2378. if test $# != 0; then
  2379. # We chose a different compiler from the bogus one.
  2380. # However, it has the same basename, so the bogon will be chosen
  2381. # first if we set CC to just the basename; use the full file name.
  2382. shift
  2383. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2384. fi
  2385. fi
  2386. fi
  2387. fi
  2388. CC=$ac_cv_prog_CC
  2389. if test -n "$CC"; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2391. $as_echo "$CC" >&6; }
  2392. else
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2394. $as_echo "no" >&6; }
  2395. fi
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. for ac_prog in cl.exe
  2400. do
  2401. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2402. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2404. $as_echo_n "checking for $ac_word... " >&6; }
  2405. if ${ac_cv_prog_CC+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. if test -n "$CC"; then
  2409. ac_cv_prog_CC="$CC" # Let the user override the test.
  2410. else
  2411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2412. for as_dir in $PATH
  2413. do
  2414. IFS=$as_save_IFS
  2415. test -z "$as_dir" && as_dir=.
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2418. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. fi
  2427. CC=$ac_cv_prog_CC
  2428. if test -n "$CC"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2430. $as_echo "$CC" >&6; }
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2433. $as_echo "no" >&6; }
  2434. fi
  2435. test -n "$CC" && break
  2436. done
  2437. fi
  2438. if test -z "$CC"; then
  2439. ac_ct_CC=$CC
  2440. for ac_prog in cl.exe
  2441. do
  2442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2443. set dummy $ac_prog; ac_word=$2
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2445. $as_echo_n "checking for $ac_word... " >&6; }
  2446. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. if test -n "$ac_ct_CC"; then
  2450. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2451. else
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. for ac_exec_ext in '' $ac_executable_extensions; do
  2458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2459. ac_cv_prog_ac_ct_CC="$ac_prog"
  2460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. fi
  2467. fi
  2468. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2469. if test -n "$ac_ct_CC"; then
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2471. $as_echo "$ac_ct_CC" >&6; }
  2472. else
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. fi
  2476. test -n "$ac_ct_CC" && break
  2477. done
  2478. if test "x$ac_ct_CC" = x; then
  2479. CC=""
  2480. else
  2481. case $cross_compiling:$ac_tool_warned in
  2482. yes:)
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2485. ac_tool_warned=yes ;;
  2486. esac
  2487. CC=$ac_ct_CC
  2488. fi
  2489. fi
  2490. fi
  2491. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2493. as_fn_error $? "no acceptable C compiler found in \$PATH
  2494. See \`config.log' for more details" "$LINENO" 5; }
  2495. # Provide some information about the compiler.
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2497. set X $ac_compile
  2498. ac_compiler=$2
  2499. for ac_option in --version -v -V -qversion; do
  2500. { { ac_try="$ac_compiler $ac_option >&5"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2506. $as_echo "$ac_try_echo"; } >&5
  2507. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2508. ac_status=$?
  2509. if test -s conftest.err; then
  2510. sed '10a\
  2511. ... rest of stderr output deleted ...
  2512. 10q' conftest.err >conftest.er1
  2513. cat conftest.er1 >&5
  2514. fi
  2515. rm -f conftest.er1 conftest.err
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2517. test $ac_status = 0; }
  2518. done
  2519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2520. /* end confdefs.h. */
  2521. int
  2522. main ()
  2523. {
  2524. ;
  2525. return 0;
  2526. }
  2527. _ACEOF
  2528. ac_clean_files_save=$ac_clean_files
  2529. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2530. # Try to create an executable without -o first, disregard a.out.
  2531. # It will help us diagnose broken compilers, and finding out an intuition
  2532. # of exeext.
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2534. $as_echo_n "checking whether the C compiler works... " >&6; }
  2535. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2536. # The possible output files:
  2537. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2538. ac_rmfiles=
  2539. for ac_file in $ac_files
  2540. do
  2541. case $ac_file in
  2542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2543. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2544. esac
  2545. done
  2546. rm -f $ac_rmfiles
  2547. if { { ac_try="$ac_link_default"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link_default") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }; then :
  2558. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2559. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2560. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2561. # so that the user can short-circuit this test for compilers unknown to
  2562. # Autoconf.
  2563. for ac_file in $ac_files ''
  2564. do
  2565. test -f "$ac_file" || continue
  2566. case $ac_file in
  2567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2568. ;;
  2569. [ab].out )
  2570. # We found the default executable, but exeext='' is most
  2571. # certainly right.
  2572. break;;
  2573. *.* )
  2574. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2575. then :; else
  2576. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2577. fi
  2578. # We set ac_cv_exeext here because the later test for it is not
  2579. # safe: cross compilers may not add the suffix if given an `-o'
  2580. # argument, so we may need to know it at that point already.
  2581. # Even if this section looks crufty: it has the advantage of
  2582. # actually working.
  2583. break;;
  2584. * )
  2585. break;;
  2586. esac
  2587. done
  2588. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2589. else
  2590. ac_file=''
  2591. fi
  2592. if test -z "$ac_file"; then :
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. $as_echo "$as_me: failed program was:" >&5
  2596. sed 's/^/| /' conftest.$ac_ext >&5
  2597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2599. as_fn_error 77 "C compiler cannot create executables
  2600. See \`config.log' for more details" "$LINENO" 5; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2603. $as_echo "yes" >&6; }
  2604. fi
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2606. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2608. $as_echo "$ac_file" >&6; }
  2609. ac_exeext=$ac_cv_exeext
  2610. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2611. ac_clean_files=$ac_clean_files_save
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2613. $as_echo_n "checking for suffix of executables... " >&6; }
  2614. if { { ac_try="$ac_link"
  2615. case "(($ac_try" in
  2616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2617. *) ac_try_echo=$ac_try;;
  2618. esac
  2619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2620. $as_echo "$ac_try_echo"; } >&5
  2621. (eval "$ac_link") 2>&5
  2622. ac_status=$?
  2623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2624. test $ac_status = 0; }; then :
  2625. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2626. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2627. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2628. # `rm'.
  2629. for ac_file in conftest.exe conftest conftest.*; do
  2630. test -f "$ac_file" || continue
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2633. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2634. break;;
  2635. * ) break;;
  2636. esac
  2637. done
  2638. else
  2639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2641. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2642. See \`config.log' for more details" "$LINENO" 5; }
  2643. fi
  2644. rm -f conftest conftest$ac_cv_exeext
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2646. $as_echo "$ac_cv_exeext" >&6; }
  2647. rm -f conftest.$ac_ext
  2648. EXEEXT=$ac_cv_exeext
  2649. ac_exeext=$EXEEXT
  2650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2651. /* end confdefs.h. */
  2652. #include <stdio.h>
  2653. int
  2654. main ()
  2655. {
  2656. FILE *f = fopen ("conftest.out", "w");
  2657. return ferror (f) || fclose (f) != 0;
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. ac_clean_files="$ac_clean_files conftest.out"
  2663. # Check that the compiler produces executables we can run. If not, either
  2664. # the compiler is broken, or we cross compile.
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2666. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2667. if test "$cross_compiling" != yes; then
  2668. { { ac_try="$ac_link"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2674. $as_echo "$ac_try_echo"; } >&5
  2675. (eval "$ac_link") 2>&5
  2676. ac_status=$?
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2678. test $ac_status = 0; }
  2679. if { ac_try='./conftest$ac_cv_exeext'
  2680. { { case "(($ac_try" in
  2681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2682. *) ac_try_echo=$ac_try;;
  2683. esac
  2684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2685. $as_echo "$ac_try_echo"; } >&5
  2686. (eval "$ac_try") 2>&5
  2687. ac_status=$?
  2688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2689. test $ac_status = 0; }; }; then
  2690. cross_compiling=no
  2691. else
  2692. if test "$cross_compiling" = maybe; then
  2693. cross_compiling=yes
  2694. else
  2695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2697. as_fn_error $? "cannot run C compiled programs.
  2698. If you meant to cross compile, use \`--host'.
  2699. See \`config.log' for more details" "$LINENO" 5; }
  2700. fi
  2701. fi
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2704. $as_echo "$cross_compiling" >&6; }
  2705. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2706. ac_clean_files=$ac_clean_files_save
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2708. $as_echo_n "checking for suffix of object files... " >&6; }
  2709. if ${ac_cv_objext+:} false; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2713. /* end confdefs.h. */
  2714. int
  2715. main ()
  2716. {
  2717. ;
  2718. return 0;
  2719. }
  2720. _ACEOF
  2721. rm -f conftest.o conftest.obj
  2722. if { { ac_try="$ac_compile"
  2723. case "(($ac_try" in
  2724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2725. *) ac_try_echo=$ac_try;;
  2726. esac
  2727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2728. $as_echo "$ac_try_echo"; } >&5
  2729. (eval "$ac_compile") 2>&5
  2730. ac_status=$?
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2732. test $ac_status = 0; }; then :
  2733. for ac_file in conftest.o conftest.obj conftest.*; do
  2734. test -f "$ac_file" || continue;
  2735. case $ac_file in
  2736. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2737. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2738. break;;
  2739. esac
  2740. done
  2741. else
  2742. $as_echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2747. See \`config.log' for more details" "$LINENO" 5; }
  2748. fi
  2749. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2750. fi
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2752. $as_echo "$ac_cv_objext" >&6; }
  2753. OBJEXT=$ac_cv_objext
  2754. ac_objext=$OBJEXT
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2756. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2757. if ${ac_cv_c_compiler_gnu+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2761. /* end confdefs.h. */
  2762. int
  2763. main ()
  2764. {
  2765. #ifndef __GNUC__
  2766. choke me
  2767. #endif
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. if ac_fn_c_try_compile "$LINENO"; then :
  2773. ac_compiler_gnu=yes
  2774. else
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2781. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2782. if test $ac_compiler_gnu = yes; then
  2783. GCC=yes
  2784. else
  2785. GCC=
  2786. fi
  2787. ac_test_CFLAGS=${CFLAGS+set}
  2788. ac_save_CFLAGS=$CFLAGS
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2790. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2791. if ${ac_cv_prog_cc_g+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. ac_save_c_werror_flag=$ac_c_werror_flag
  2795. ac_c_werror_flag=yes
  2796. ac_cv_prog_cc_g=no
  2797. CFLAGS="-g"
  2798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. if ac_fn_c_try_compile "$LINENO"; then :
  2808. ac_cv_prog_cc_g=yes
  2809. else
  2810. CFLAGS=""
  2811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2812. /* end confdefs.h. */
  2813. int
  2814. main ()
  2815. {
  2816. ;
  2817. return 0;
  2818. }
  2819. _ACEOF
  2820. if ac_fn_c_try_compile "$LINENO"; then :
  2821. else
  2822. ac_c_werror_flag=$ac_save_c_werror_flag
  2823. CFLAGS="-g"
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. if ac_fn_c_try_compile "$LINENO"; then :
  2834. ac_cv_prog_cc_g=yes
  2835. fi
  2836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2837. fi
  2838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2839. fi
  2840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2841. ac_c_werror_flag=$ac_save_c_werror_flag
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2844. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2845. if test "$ac_test_CFLAGS" = set; then
  2846. CFLAGS=$ac_save_CFLAGS
  2847. elif test $ac_cv_prog_cc_g = yes; then
  2848. if test "$GCC" = yes; then
  2849. CFLAGS="-g -O2"
  2850. else
  2851. CFLAGS="-g"
  2852. fi
  2853. else
  2854. if test "$GCC" = yes; then
  2855. CFLAGS="-O2"
  2856. else
  2857. CFLAGS=
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2861. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2862. if ${ac_cv_prog_cc_c89+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. ac_cv_prog_cc_c89=no
  2866. ac_save_CC=$CC
  2867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2868. /* end confdefs.h. */
  2869. #include <stdarg.h>
  2870. #include <stdio.h>
  2871. #include <sys/types.h>
  2872. #include <sys/stat.h>
  2873. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2874. struct buf { int x; };
  2875. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2876. static char *e (p, i)
  2877. char **p;
  2878. int i;
  2879. {
  2880. return p[i];
  2881. }
  2882. static char *f (char * (*g) (char **, int), char **p, ...)
  2883. {
  2884. char *s;
  2885. va_list v;
  2886. va_start (v,p);
  2887. s = g (p, va_arg (v,int));
  2888. va_end (v);
  2889. return s;
  2890. }
  2891. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2892. function prototypes and stuff, but not '\xHH' hex character constants.
  2893. These don't provoke an error unfortunately, instead are silently treated
  2894. as 'x'. The following induces an error, until -std is added to get
  2895. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2896. array size at least. It's necessary to write '\x00'==0 to get something
  2897. that's true only with -std. */
  2898. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2899. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2900. inside strings and character constants. */
  2901. #define FOO(x) 'x'
  2902. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2903. int test (int i, double x);
  2904. struct s1 {int (*f) (int a);};
  2905. struct s2 {int (*f) (double a);};
  2906. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2907. int argc;
  2908. char **argv;
  2909. int
  2910. main ()
  2911. {
  2912. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2913. ;
  2914. return 0;
  2915. }
  2916. _ACEOF
  2917. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2918. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2919. do
  2920. CC="$ac_save_CC $ac_arg"
  2921. if ac_fn_c_try_compile "$LINENO"; then :
  2922. ac_cv_prog_cc_c89=$ac_arg
  2923. fi
  2924. rm -f core conftest.err conftest.$ac_objext
  2925. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2926. done
  2927. rm -f conftest.$ac_ext
  2928. CC=$ac_save_CC
  2929. fi
  2930. # AC_CACHE_VAL
  2931. case "x$ac_cv_prog_cc_c89" in
  2932. x)
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2934. $as_echo "none needed" >&6; } ;;
  2935. xno)
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2937. $as_echo "unsupported" >&6; } ;;
  2938. *)
  2939. CC="$CC $ac_cv_prog_cc_c89"
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2941. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2942. esac
  2943. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2944. fi
  2945. ac_ext=c
  2946. ac_cpp='$CPP $CPPFLAGS'
  2947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2950. ac_aux_dir=
  2951. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2952. if test -f "$ac_dir/install-sh"; then
  2953. ac_aux_dir=$ac_dir
  2954. ac_install_sh="$ac_aux_dir/install-sh -c"
  2955. break
  2956. elif test -f "$ac_dir/install.sh"; then
  2957. ac_aux_dir=$ac_dir
  2958. ac_install_sh="$ac_aux_dir/install.sh -c"
  2959. break
  2960. elif test -f "$ac_dir/shtool"; then
  2961. ac_aux_dir=$ac_dir
  2962. ac_install_sh="$ac_aux_dir/shtool install -c"
  2963. break
  2964. fi
  2965. done
  2966. if test -z "$ac_aux_dir"; then
  2967. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2968. fi
  2969. # These three variables are undocumented and unsupported,
  2970. # and are intended to be withdrawn in a future Autoconf release.
  2971. # They can cause serious problems if a builder's source tree is in a directory
  2972. # whose full name contains unusual characters.
  2973. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2974. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2975. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2976. case `pwd` in
  2977. *\ * | *\ *)
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2979. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2980. esac
  2981. macro_version='2.4.2'
  2982. macro_revision='1.3337'
  2983. ltmain="$ac_aux_dir/ltmain.sh"
  2984. # Make sure we can run config.sub.
  2985. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2986. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2988. $as_echo_n "checking build system type... " >&6; }
  2989. if ${ac_cv_build+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. ac_build_alias=$build_alias
  2993. test "x$ac_build_alias" = x &&
  2994. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2995. test "x$ac_build_alias" = x &&
  2996. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2997. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2998. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3001. $as_echo "$ac_cv_build" >&6; }
  3002. case $ac_cv_build in
  3003. *-*-*) ;;
  3004. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3005. esac
  3006. build=$ac_cv_build
  3007. ac_save_IFS=$IFS; IFS='-'
  3008. set x $ac_cv_build
  3009. shift
  3010. build_cpu=$1
  3011. build_vendor=$2
  3012. shift; shift
  3013. # Remember, the first character of IFS is used to create $*,
  3014. # except with old shells:
  3015. build_os=$*
  3016. IFS=$ac_save_IFS
  3017. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3019. $as_echo_n "checking host system type... " >&6; }
  3020. if ${ac_cv_host+:} false; then :
  3021. $as_echo_n "(cached) " >&6
  3022. else
  3023. if test "x$host_alias" = x; then
  3024. ac_cv_host=$ac_cv_build
  3025. else
  3026. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3027. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3028. fi
  3029. fi
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3031. $as_echo "$ac_cv_host" >&6; }
  3032. case $ac_cv_host in
  3033. *-*-*) ;;
  3034. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3035. esac
  3036. host=$ac_cv_host
  3037. ac_save_IFS=$IFS; IFS='-'
  3038. set x $ac_cv_host
  3039. shift
  3040. host_cpu=$1
  3041. host_vendor=$2
  3042. shift; shift
  3043. # Remember, the first character of IFS is used to create $*,
  3044. # except with old shells:
  3045. host_os=$*
  3046. IFS=$ac_save_IFS
  3047. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3048. # Backslashify metacharacters that are still active within
  3049. # double-quoted strings.
  3050. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3051. # Same as above, but do not quote variable references.
  3052. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3053. # Sed substitution to delay expansion of an escaped shell variable in a
  3054. # double_quote_subst'ed string.
  3055. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3056. # Sed substitution to delay expansion of an escaped single quote.
  3057. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3058. # Sed substitution to avoid accidental globbing in evaled expressions
  3059. no_glob_subst='s/\*/\\\*/g'
  3060. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3061. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3062. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3064. $as_echo_n "checking how to print strings... " >&6; }
  3065. # Test print first, because it will be a builtin if present.
  3066. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3067. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3068. ECHO='print -r --'
  3069. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3070. ECHO='printf %s\n'
  3071. else
  3072. # Use this function as a fallback that always works.
  3073. func_fallback_echo ()
  3074. {
  3075. eval 'cat <<_LTECHO_EOF
  3076. $1
  3077. _LTECHO_EOF'
  3078. }
  3079. ECHO='func_fallback_echo'
  3080. fi
  3081. # func_echo_all arg...
  3082. # Invoke $ECHO with all args, space-separated.
  3083. func_echo_all ()
  3084. {
  3085. $ECHO ""
  3086. }
  3087. case "$ECHO" in
  3088. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3089. $as_echo "printf" >&6; } ;;
  3090. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3091. $as_echo "print -r" >&6; } ;;
  3092. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3093. $as_echo "cat" >&6; } ;;
  3094. esac
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3096. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3097. if ${ac_cv_path_SED+:} false; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3101. for ac_i in 1 2 3 4 5 6 7; do
  3102. ac_script="$ac_script$as_nl$ac_script"
  3103. done
  3104. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3105. { ac_script=; unset ac_script;}
  3106. if test -z "$SED"; then
  3107. ac_path_SED_found=false
  3108. # Loop through the user's path and test for each of PROGNAME-LIST
  3109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3110. for as_dir in $PATH
  3111. do
  3112. IFS=$as_save_IFS
  3113. test -z "$as_dir" && as_dir=.
  3114. for ac_prog in sed gsed; do
  3115. for ac_exec_ext in '' $ac_executable_extensions; do
  3116. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3117. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3118. # Check for GNU ac_path_SED and select it if it is found.
  3119. # Check for GNU $ac_path_SED
  3120. case `"$ac_path_SED" --version 2>&1` in
  3121. *GNU*)
  3122. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3123. *)
  3124. ac_count=0
  3125. $as_echo_n 0123456789 >"conftest.in"
  3126. while :
  3127. do
  3128. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3129. mv "conftest.tmp" "conftest.in"
  3130. cp "conftest.in" "conftest.nl"
  3131. $as_echo '' >> "conftest.nl"
  3132. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3133. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3134. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3135. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3136. # Best one so far, save it but keep looking for a better one
  3137. ac_cv_path_SED="$ac_path_SED"
  3138. ac_path_SED_max=$ac_count
  3139. fi
  3140. # 10*(2^10) chars as input seems more than enough
  3141. test $ac_count -gt 10 && break
  3142. done
  3143. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3144. esac
  3145. $ac_path_SED_found && break 3
  3146. done
  3147. done
  3148. done
  3149. IFS=$as_save_IFS
  3150. if test -z "$ac_cv_path_SED"; then
  3151. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3152. fi
  3153. else
  3154. ac_cv_path_SED=$SED
  3155. fi
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3158. $as_echo "$ac_cv_path_SED" >&6; }
  3159. SED="$ac_cv_path_SED"
  3160. rm -f conftest.sed
  3161. test -z "$SED" && SED=sed
  3162. Xsed="$SED -e 1s/^X//"
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3164. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3165. if ${ac_cv_path_GREP+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. if test -z "$GREP"; then
  3169. ac_path_GREP_found=false
  3170. # Loop through the user's path and test for each of PROGNAME-LIST
  3171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3172. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3173. do
  3174. IFS=$as_save_IFS
  3175. test -z "$as_dir" && as_dir=.
  3176. for ac_prog in grep ggrep; do
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3179. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3180. # Check for GNU ac_path_GREP and select it if it is found.
  3181. # Check for GNU $ac_path_GREP
  3182. case `"$ac_path_GREP" --version 2>&1` in
  3183. *GNU*)
  3184. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3185. *)
  3186. ac_count=0
  3187. $as_echo_n 0123456789 >"conftest.in"
  3188. while :
  3189. do
  3190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3191. mv "conftest.tmp" "conftest.in"
  3192. cp "conftest.in" "conftest.nl"
  3193. $as_echo 'GREP' >> "conftest.nl"
  3194. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3197. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3198. # Best one so far, save it but keep looking for a better one
  3199. ac_cv_path_GREP="$ac_path_GREP"
  3200. ac_path_GREP_max=$ac_count
  3201. fi
  3202. # 10*(2^10) chars as input seems more than enough
  3203. test $ac_count -gt 10 && break
  3204. done
  3205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3206. esac
  3207. $ac_path_GREP_found && break 3
  3208. done
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. if test -z "$ac_cv_path_GREP"; then
  3213. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3214. fi
  3215. else
  3216. ac_cv_path_GREP=$GREP
  3217. fi
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3220. $as_echo "$ac_cv_path_GREP" >&6; }
  3221. GREP="$ac_cv_path_GREP"
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3223. $as_echo_n "checking for egrep... " >&6; }
  3224. if ${ac_cv_path_EGREP+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3228. then ac_cv_path_EGREP="$GREP -E"
  3229. else
  3230. if test -z "$EGREP"; then
  3231. ac_path_EGREP_found=false
  3232. # Loop through the user's path and test for each of PROGNAME-LIST
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_prog in egrep; do
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3241. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3242. # Check for GNU ac_path_EGREP and select it if it is found.
  3243. # Check for GNU $ac_path_EGREP
  3244. case `"$ac_path_EGREP" --version 2>&1` in
  3245. *GNU*)
  3246. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3247. *)
  3248. ac_count=0
  3249. $as_echo_n 0123456789 >"conftest.in"
  3250. while :
  3251. do
  3252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3253. mv "conftest.tmp" "conftest.in"
  3254. cp "conftest.in" "conftest.nl"
  3255. $as_echo 'EGREP' >> "conftest.nl"
  3256. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3259. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3260. # Best one so far, save it but keep looking for a better one
  3261. ac_cv_path_EGREP="$ac_path_EGREP"
  3262. ac_path_EGREP_max=$ac_count
  3263. fi
  3264. # 10*(2^10) chars as input seems more than enough
  3265. test $ac_count -gt 10 && break
  3266. done
  3267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3268. esac
  3269. $ac_path_EGREP_found && break 3
  3270. done
  3271. done
  3272. done
  3273. IFS=$as_save_IFS
  3274. if test -z "$ac_cv_path_EGREP"; then
  3275. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3276. fi
  3277. else
  3278. ac_cv_path_EGREP=$EGREP
  3279. fi
  3280. fi
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3283. $as_echo "$ac_cv_path_EGREP" >&6; }
  3284. EGREP="$ac_cv_path_EGREP"
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3286. $as_echo_n "checking for fgrep... " >&6; }
  3287. if ${ac_cv_path_FGREP+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3291. then ac_cv_path_FGREP="$GREP -F"
  3292. else
  3293. if test -z "$FGREP"; then
  3294. ac_path_FGREP_found=false
  3295. # Loop through the user's path and test for each of PROGNAME-LIST
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3298. do
  3299. IFS=$as_save_IFS
  3300. test -z "$as_dir" && as_dir=.
  3301. for ac_prog in fgrep; do
  3302. for ac_exec_ext in '' $ac_executable_extensions; do
  3303. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3304. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3305. # Check for GNU ac_path_FGREP and select it if it is found.
  3306. # Check for GNU $ac_path_FGREP
  3307. case `"$ac_path_FGREP" --version 2>&1` in
  3308. *GNU*)
  3309. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3310. *)
  3311. ac_count=0
  3312. $as_echo_n 0123456789 >"conftest.in"
  3313. while :
  3314. do
  3315. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3316. mv "conftest.tmp" "conftest.in"
  3317. cp "conftest.in" "conftest.nl"
  3318. $as_echo 'FGREP' >> "conftest.nl"
  3319. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3320. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3321. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3322. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3323. # Best one so far, save it but keep looking for a better one
  3324. ac_cv_path_FGREP="$ac_path_FGREP"
  3325. ac_path_FGREP_max=$ac_count
  3326. fi
  3327. # 10*(2^10) chars as input seems more than enough
  3328. test $ac_count -gt 10 && break
  3329. done
  3330. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3331. esac
  3332. $ac_path_FGREP_found && break 3
  3333. done
  3334. done
  3335. done
  3336. IFS=$as_save_IFS
  3337. if test -z "$ac_cv_path_FGREP"; then
  3338. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3339. fi
  3340. else
  3341. ac_cv_path_FGREP=$FGREP
  3342. fi
  3343. fi
  3344. fi
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3346. $as_echo "$ac_cv_path_FGREP" >&6; }
  3347. FGREP="$ac_cv_path_FGREP"
  3348. test -z "$GREP" && GREP=grep
  3349. # Check whether --with-gnu-ld was given.
  3350. if test "${with_gnu_ld+set}" = set; then :
  3351. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3352. else
  3353. with_gnu_ld=no
  3354. fi
  3355. ac_prog=ld
  3356. if test "$GCC" = yes; then
  3357. # Check if gcc -print-prog-name=ld gives a path.
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3359. $as_echo_n "checking for ld used by $CC... " >&6; }
  3360. case $host in
  3361. *-*-mingw*)
  3362. # gcc leaves a trailing carriage return which upsets mingw
  3363. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3364. *)
  3365. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3366. esac
  3367. case $ac_prog in
  3368. # Accept absolute paths.
  3369. [\\/]* | ?:[\\/]*)
  3370. re_direlt='/[^/][^/]*/\.\./'
  3371. # Canonicalize the pathname of ld
  3372. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3373. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3374. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3375. done
  3376. test -z "$LD" && LD="$ac_prog"
  3377. ;;
  3378. "")
  3379. # If it fails, then pretend we aren't using GCC.
  3380. ac_prog=ld
  3381. ;;
  3382. *)
  3383. # If it is relative, then search for the first ld in PATH.
  3384. with_gnu_ld=unknown
  3385. ;;
  3386. esac
  3387. elif test "$with_gnu_ld" = yes; then
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3389. $as_echo_n "checking for GNU ld... " >&6; }
  3390. else
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3392. $as_echo_n "checking for non-GNU ld... " >&6; }
  3393. fi
  3394. if ${lt_cv_path_LD+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. if test -z "$LD"; then
  3398. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3399. for ac_dir in $PATH; do
  3400. IFS="$lt_save_ifs"
  3401. test -z "$ac_dir" && ac_dir=.
  3402. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3403. lt_cv_path_LD="$ac_dir/$ac_prog"
  3404. # Check to see if the program is GNU ld. I'd rather use --version,
  3405. # but apparently some variants of GNU ld only accept -v.
  3406. # Break only if it was the GNU/non-GNU ld that we prefer.
  3407. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3408. *GNU* | *'with BFD'*)
  3409. test "$with_gnu_ld" != no && break
  3410. ;;
  3411. *)
  3412. test "$with_gnu_ld" != yes && break
  3413. ;;
  3414. esac
  3415. fi
  3416. done
  3417. IFS="$lt_save_ifs"
  3418. else
  3419. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3420. fi
  3421. fi
  3422. LD="$lt_cv_path_LD"
  3423. if test -n "$LD"; then
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3425. $as_echo "$LD" >&6; }
  3426. else
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. $as_echo "no" >&6; }
  3429. fi
  3430. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3432. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3433. if ${lt_cv_prog_gnu_ld+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3437. case `$LD -v 2>&1 </dev/null` in
  3438. *GNU* | *'with BFD'*)
  3439. lt_cv_prog_gnu_ld=yes
  3440. ;;
  3441. *)
  3442. lt_cv_prog_gnu_ld=no
  3443. ;;
  3444. esac
  3445. fi
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3447. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3448. with_gnu_ld=$lt_cv_prog_gnu_ld
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3450. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3451. if ${lt_cv_path_NM+:} false; then :
  3452. $as_echo_n "(cached) " >&6
  3453. else
  3454. if test -n "$NM"; then
  3455. # Let the user override the test.
  3456. lt_cv_path_NM="$NM"
  3457. else
  3458. lt_nm_to_check="${ac_tool_prefix}nm"
  3459. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3460. lt_nm_to_check="$lt_nm_to_check nm"
  3461. fi
  3462. for lt_tmp_nm in $lt_nm_to_check; do
  3463. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3464. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3465. IFS="$lt_save_ifs"
  3466. test -z "$ac_dir" && ac_dir=.
  3467. tmp_nm="$ac_dir/$lt_tmp_nm"
  3468. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3469. # Check to see if the nm accepts a BSD-compat flag.
  3470. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3471. # nm: unknown option "B" ignored
  3472. # Tru64's nm complains that /dev/null is an invalid object file
  3473. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3474. */dev/null* | *'Invalid file or object type'*)
  3475. lt_cv_path_NM="$tmp_nm -B"
  3476. break
  3477. ;;
  3478. *)
  3479. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3480. */dev/null*)
  3481. lt_cv_path_NM="$tmp_nm -p"
  3482. break
  3483. ;;
  3484. *)
  3485. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3486. continue # so that we can try to find one that supports BSD flags
  3487. ;;
  3488. esac
  3489. ;;
  3490. esac
  3491. fi
  3492. done
  3493. IFS="$lt_save_ifs"
  3494. done
  3495. : ${lt_cv_path_NM=no}
  3496. fi
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3499. $as_echo "$lt_cv_path_NM" >&6; }
  3500. if test "$lt_cv_path_NM" != "no"; then
  3501. NM="$lt_cv_path_NM"
  3502. else
  3503. # Didn't find any BSD compatible name lister, look for dumpbin.
  3504. if test -n "$DUMPBIN"; then :
  3505. # Let the user override the test.
  3506. else
  3507. if test -n "$ac_tool_prefix"; then
  3508. for ac_prog in dumpbin "link -dump"
  3509. do
  3510. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3511. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3513. $as_echo_n "checking for $ac_word... " >&6; }
  3514. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3515. $as_echo_n "(cached) " >&6
  3516. else
  3517. if test -n "$DUMPBIN"; then
  3518. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3519. else
  3520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3521. for as_dir in $PATH
  3522. do
  3523. IFS=$as_save_IFS
  3524. test -z "$as_dir" && as_dir=.
  3525. for ac_exec_ext in '' $ac_executable_extensions; do
  3526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3527. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3529. break 2
  3530. fi
  3531. done
  3532. done
  3533. IFS=$as_save_IFS
  3534. fi
  3535. fi
  3536. DUMPBIN=$ac_cv_prog_DUMPBIN
  3537. if test -n "$DUMPBIN"; then
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3539. $as_echo "$DUMPBIN" >&6; }
  3540. else
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3542. $as_echo "no" >&6; }
  3543. fi
  3544. test -n "$DUMPBIN" && break
  3545. done
  3546. fi
  3547. if test -z "$DUMPBIN"; then
  3548. ac_ct_DUMPBIN=$DUMPBIN
  3549. for ac_prog in dumpbin "link -dump"
  3550. do
  3551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3552. set dummy $ac_prog; ac_word=$2
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$ac_ct_DUMPBIN"; then
  3559. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3578. if test -n "$ac_ct_DUMPBIN"; then
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3580. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. test -n "$ac_ct_DUMPBIN" && break
  3586. done
  3587. if test "x$ac_ct_DUMPBIN" = x; then
  3588. DUMPBIN=":"
  3589. else
  3590. case $cross_compiling:$ac_tool_warned in
  3591. yes:)
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3593. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3594. ac_tool_warned=yes ;;
  3595. esac
  3596. DUMPBIN=$ac_ct_DUMPBIN
  3597. fi
  3598. fi
  3599. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3600. *COFF*)
  3601. DUMPBIN="$DUMPBIN -symbols"
  3602. ;;
  3603. *)
  3604. DUMPBIN=:
  3605. ;;
  3606. esac
  3607. fi
  3608. if test "$DUMPBIN" != ":"; then
  3609. NM="$DUMPBIN"
  3610. fi
  3611. fi
  3612. test -z "$NM" && NM=nm
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3614. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3615. if ${lt_cv_nm_interface+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. lt_cv_nm_interface="BSD nm"
  3619. echo "int some_variable = 0;" > conftest.$ac_ext
  3620. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3621. (eval "$ac_compile" 2>conftest.err)
  3622. cat conftest.err >&5
  3623. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3624. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3625. cat conftest.err >&5
  3626. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3627. cat conftest.out >&5
  3628. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3629. lt_cv_nm_interface="MS dumpbin"
  3630. fi
  3631. rm -f conftest*
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3634. $as_echo "$lt_cv_nm_interface" >&6; }
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3636. $as_echo_n "checking whether ln -s works... " >&6; }
  3637. LN_S=$as_ln_s
  3638. if test "$LN_S" = "ln -s"; then
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3640. $as_echo "yes" >&6; }
  3641. else
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3643. $as_echo "no, using $LN_S" >&6; }
  3644. fi
  3645. # find the maximum length of command line arguments
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3647. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3648. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3649. $as_echo_n "(cached) " >&6
  3650. else
  3651. i=0
  3652. teststring="ABCD"
  3653. case $build_os in
  3654. msdosdjgpp*)
  3655. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3656. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3657. # during glob expansion). Even if it were fixed, the result of this
  3658. # check would be larger than it should be.
  3659. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3660. ;;
  3661. gnu*)
  3662. # Under GNU Hurd, this test is not required because there is
  3663. # no limit to the length of command line arguments.
  3664. # Libtool will interpret -1 as no limit whatsoever
  3665. lt_cv_sys_max_cmd_len=-1;
  3666. ;;
  3667. cygwin* | mingw* | cegcc*)
  3668. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3669. # about 5 minutes as the teststring grows exponentially.
  3670. # Worse, since 9x/ME are not pre-emptively multitasking,
  3671. # you end up with a "frozen" computer, even though with patience
  3672. # the test eventually succeeds (with a max line length of 256k).
  3673. # Instead, let's just punt: use the minimum linelength reported by
  3674. # all of the supported platforms: 8192 (on NT/2K/XP).
  3675. lt_cv_sys_max_cmd_len=8192;
  3676. ;;
  3677. mint*)
  3678. # On MiNT this can take a long time and run out of memory.
  3679. lt_cv_sys_max_cmd_len=8192;
  3680. ;;
  3681. amigaos*)
  3682. # On AmigaOS with pdksh, this test takes hours, literally.
  3683. # So we just punt and use a minimum line length of 8192.
  3684. lt_cv_sys_max_cmd_len=8192;
  3685. ;;
  3686. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3687. # This has been around since 386BSD, at least. Likely further.
  3688. if test -x /sbin/sysctl; then
  3689. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3690. elif test -x /usr/sbin/sysctl; then
  3691. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3692. else
  3693. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3694. fi
  3695. # And add a safety zone
  3696. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3697. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3698. ;;
  3699. interix*)
  3700. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3701. lt_cv_sys_max_cmd_len=196608
  3702. ;;
  3703. os2*)
  3704. # The test takes a long time on OS/2.
  3705. lt_cv_sys_max_cmd_len=8192
  3706. ;;
  3707. osf*)
  3708. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3709. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3710. # nice to cause kernel panics so lets avoid the loop below.
  3711. # First set a reasonable default.
  3712. lt_cv_sys_max_cmd_len=16384
  3713. #
  3714. if test -x /sbin/sysconfig; then
  3715. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3716. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3717. esac
  3718. fi
  3719. ;;
  3720. sco3.2v5*)
  3721. lt_cv_sys_max_cmd_len=102400
  3722. ;;
  3723. sysv5* | sco5v6* | sysv4.2uw2*)
  3724. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3725. if test -n "$kargmax"; then
  3726. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3727. else
  3728. lt_cv_sys_max_cmd_len=32768
  3729. fi
  3730. ;;
  3731. *)
  3732. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3733. if test -n "$lt_cv_sys_max_cmd_len"; then
  3734. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3735. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3736. else
  3737. # Make teststring a little bigger before we do anything with it.
  3738. # a 1K string should be a reasonable start.
  3739. for i in 1 2 3 4 5 6 7 8 ; do
  3740. teststring=$teststring$teststring
  3741. done
  3742. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3743. # If test is not a shell built-in, we'll probably end up computing a
  3744. # maximum length that is only half of the actual maximum length, but
  3745. # we can't tell.
  3746. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3747. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3748. test $i != 17 # 1/2 MB should be enough
  3749. do
  3750. i=`expr $i + 1`
  3751. teststring=$teststring$teststring
  3752. done
  3753. # Only check the string length outside the loop.
  3754. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3755. teststring=
  3756. # Add a significant safety factor because C++ compilers can tack on
  3757. # massive amounts of additional arguments before passing them to the
  3758. # linker. It appears as though 1/2 is a usable value.
  3759. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3760. fi
  3761. ;;
  3762. esac
  3763. fi
  3764. if test -n $lt_cv_sys_max_cmd_len ; then
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3766. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3767. else
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3769. $as_echo "none" >&6; }
  3770. fi
  3771. max_cmd_len=$lt_cv_sys_max_cmd_len
  3772. : ${CP="cp -f"}
  3773. : ${MV="mv -f"}
  3774. : ${RM="rm -f"}
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3776. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3777. # Try some XSI features
  3778. xsi_shell=no
  3779. ( _lt_dummy="a/b/c"
  3780. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3781. = c,a/b,b/c, \
  3782. && eval 'test $(( 1 + 1 )) -eq 2 \
  3783. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3784. && xsi_shell=yes
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3786. $as_echo "$xsi_shell" >&6; }
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3788. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3789. lt_shell_append=no
  3790. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3791. >/dev/null 2>&1 \
  3792. && lt_shell_append=yes
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3794. $as_echo "$lt_shell_append" >&6; }
  3795. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3796. lt_unset=unset
  3797. else
  3798. lt_unset=false
  3799. fi
  3800. # test EBCDIC or ASCII
  3801. case `echo X|tr X '\101'` in
  3802. A) # ASCII based system
  3803. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3804. lt_SP2NL='tr \040 \012'
  3805. lt_NL2SP='tr \015\012 \040\040'
  3806. ;;
  3807. *) # EBCDIC based system
  3808. lt_SP2NL='tr \100 \n'
  3809. lt_NL2SP='tr \r\n \100\100'
  3810. ;;
  3811. esac
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  3813. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  3814. if ${lt_cv_to_host_file_cmd+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. case $host in
  3818. *-*-mingw* )
  3819. case $build in
  3820. *-*-mingw* ) # actually msys
  3821. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  3822. ;;
  3823. *-*-cygwin* )
  3824. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  3825. ;;
  3826. * ) # otherwise, assume *nix
  3827. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  3828. ;;
  3829. esac
  3830. ;;
  3831. *-*-cygwin* )
  3832. case $build in
  3833. *-*-mingw* ) # actually msys
  3834. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  3835. ;;
  3836. *-*-cygwin* )
  3837. lt_cv_to_host_file_cmd=func_convert_file_noop
  3838. ;;
  3839. * ) # otherwise, assume *nix
  3840. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  3841. ;;
  3842. esac
  3843. ;;
  3844. * ) # unhandled hosts (and "normal" native builds)
  3845. lt_cv_to_host_file_cmd=func_convert_file_noop
  3846. ;;
  3847. esac
  3848. fi
  3849. to_host_file_cmd=$lt_cv_to_host_file_cmd
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  3851. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  3853. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  3854. if ${lt_cv_to_tool_file_cmd+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. #assume ordinary cross tools, or native build.
  3858. lt_cv_to_tool_file_cmd=func_convert_file_noop
  3859. case $host in
  3860. *-*-mingw* )
  3861. case $build in
  3862. *-*-mingw* ) # actually msys
  3863. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  3864. ;;
  3865. esac
  3866. ;;
  3867. esac
  3868. fi
  3869. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  3871. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  3873. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3874. if ${lt_cv_ld_reload_flag+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. lt_cv_ld_reload_flag='-r'
  3878. fi
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  3880. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3881. reload_flag=$lt_cv_ld_reload_flag
  3882. case $reload_flag in
  3883. "" | " "*) ;;
  3884. *) reload_flag=" $reload_flag" ;;
  3885. esac
  3886. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3887. case $host_os in
  3888. cygwin* | mingw* | pw32* | cegcc*)
  3889. if test "$GCC" != yes; then
  3890. reload_cmds=false
  3891. fi
  3892. ;;
  3893. darwin*)
  3894. if test "$GCC" = yes; then
  3895. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3896. else
  3897. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3898. fi
  3899. ;;
  3900. esac
  3901. if test -n "$ac_tool_prefix"; then
  3902. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3903. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3905. $as_echo_n "checking for $ac_word... " >&6; }
  3906. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -n "$OBJDUMP"; then
  3910. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3911. else
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3919. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3921. break 2
  3922. fi
  3923. done
  3924. done
  3925. IFS=$as_save_IFS
  3926. fi
  3927. fi
  3928. OBJDUMP=$ac_cv_prog_OBJDUMP
  3929. if test -n "$OBJDUMP"; then
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3931. $as_echo "$OBJDUMP" >&6; }
  3932. else
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3934. $as_echo "no" >&6; }
  3935. fi
  3936. fi
  3937. if test -z "$ac_cv_prog_OBJDUMP"; then
  3938. ac_ct_OBJDUMP=$OBJDUMP
  3939. # Extract the first word of "objdump", so it can be a program name with args.
  3940. set dummy objdump; ac_word=$2
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3942. $as_echo_n "checking for $ac_word... " >&6; }
  3943. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3944. $as_echo_n "(cached) " >&6
  3945. else
  3946. if test -n "$ac_ct_OBJDUMP"; then
  3947. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3948. else
  3949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3950. for as_dir in $PATH
  3951. do
  3952. IFS=$as_save_IFS
  3953. test -z "$as_dir" && as_dir=.
  3954. for ac_exec_ext in '' $ac_executable_extensions; do
  3955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3956. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3958. break 2
  3959. fi
  3960. done
  3961. done
  3962. IFS=$as_save_IFS
  3963. fi
  3964. fi
  3965. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3966. if test -n "$ac_ct_OBJDUMP"; then
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3968. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3969. else
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3971. $as_echo "no" >&6; }
  3972. fi
  3973. if test "x$ac_ct_OBJDUMP" = x; then
  3974. OBJDUMP="false"
  3975. else
  3976. case $cross_compiling:$ac_tool_warned in
  3977. yes:)
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3980. ac_tool_warned=yes ;;
  3981. esac
  3982. OBJDUMP=$ac_ct_OBJDUMP
  3983. fi
  3984. else
  3985. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3986. fi
  3987. test -z "$OBJDUMP" && OBJDUMP=objdump
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  3989. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  3990. if ${lt_cv_deplibs_check_method+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3994. lt_cv_file_magic_test_file=
  3995. lt_cv_deplibs_check_method='unknown'
  3996. # Need to set the preceding variable on all platforms that support
  3997. # interlibrary dependencies.
  3998. # 'none' -- dependencies not supported.
  3999. # `unknown' -- same as none, but documents that we really don't know.
  4000. # 'pass_all' -- all dependencies passed with no checks.
  4001. # 'test_compile' -- check by making test program.
  4002. # 'file_magic [[regex]]' -- check by looking for files in library path
  4003. # which responds to the $file_magic_cmd with a given extended regex.
  4004. # If you have `file' or equivalent on your system and you're not sure
  4005. # whether `pass_all' will *always* work, you probably want this one.
  4006. case $host_os in
  4007. aix[4-9]*)
  4008. lt_cv_deplibs_check_method=pass_all
  4009. ;;
  4010. beos*)
  4011. lt_cv_deplibs_check_method=pass_all
  4012. ;;
  4013. bsdi[45]*)
  4014. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4015. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4016. lt_cv_file_magic_test_file=/shlib/libc.so
  4017. ;;
  4018. cygwin*)
  4019. # func_win32_libid is a shell function defined in ltmain.sh
  4020. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4021. lt_cv_file_magic_cmd='func_win32_libid'
  4022. ;;
  4023. mingw* | pw32*)
  4024. # Base MSYS/MinGW do not provide the 'file' command needed by
  4025. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4026. # unless we find 'file', for example because we are cross-compiling.
  4027. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4028. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4029. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4030. lt_cv_file_magic_cmd='func_win32_libid'
  4031. else
  4032. # Keep this pattern in sync with the one in func_win32_libid.
  4033. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4034. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4035. fi
  4036. ;;
  4037. cegcc*)
  4038. # use the weaker test based on 'objdump'. See mingw*.
  4039. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4040. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4041. ;;
  4042. darwin* | rhapsody*)
  4043. lt_cv_deplibs_check_method=pass_all
  4044. ;;
  4045. freebsd* | dragonfly*)
  4046. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4047. case $host_cpu in
  4048. i*86 )
  4049. # Not sure whether the presence of OpenBSD here was a mistake.
  4050. # Let's accept both of them until this is cleared up.
  4051. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4052. lt_cv_file_magic_cmd=/usr/bin/file
  4053. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4054. ;;
  4055. esac
  4056. else
  4057. lt_cv_deplibs_check_method=pass_all
  4058. fi
  4059. ;;
  4060. gnu*)
  4061. lt_cv_deplibs_check_method=pass_all
  4062. ;;
  4063. haiku*)
  4064. lt_cv_deplibs_check_method=pass_all
  4065. ;;
  4066. hpux10.20* | hpux11*)
  4067. lt_cv_file_magic_cmd=/usr/bin/file
  4068. case $host_cpu in
  4069. ia64*)
  4070. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4071. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4072. ;;
  4073. hppa*64*)
  4074. 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]'
  4075. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4076. ;;
  4077. *)
  4078. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4079. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4080. ;;
  4081. esac
  4082. ;;
  4083. interix[3-9]*)
  4084. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4085. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4086. ;;
  4087. irix5* | irix6* | nonstopux*)
  4088. case $LD in
  4089. *-32|*"-32 ") libmagic=32-bit;;
  4090. *-n32|*"-n32 ") libmagic=N32;;
  4091. *-64|*"-64 ") libmagic=64-bit;;
  4092. *) libmagic=never-match;;
  4093. esac
  4094. lt_cv_deplibs_check_method=pass_all
  4095. ;;
  4096. # This must be glibc/ELF.
  4097. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4098. lt_cv_deplibs_check_method=pass_all
  4099. ;;
  4100. netbsd*)
  4101. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4102. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4103. else
  4104. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4105. fi
  4106. ;;
  4107. newos6*)
  4108. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4109. lt_cv_file_magic_cmd=/usr/bin/file
  4110. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4111. ;;
  4112. *nto* | *qnx*)
  4113. lt_cv_deplibs_check_method=pass_all
  4114. ;;
  4115. openbsd*)
  4116. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4117. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4118. else
  4119. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4120. fi
  4121. ;;
  4122. osf3* | osf4* | osf5*)
  4123. lt_cv_deplibs_check_method=pass_all
  4124. ;;
  4125. rdos*)
  4126. lt_cv_deplibs_check_method=pass_all
  4127. ;;
  4128. solaris*)
  4129. lt_cv_deplibs_check_method=pass_all
  4130. ;;
  4131. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4132. lt_cv_deplibs_check_method=pass_all
  4133. ;;
  4134. sysv4 | sysv4.3*)
  4135. case $host_vendor in
  4136. motorola)
  4137. 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]'
  4138. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4139. ;;
  4140. ncr)
  4141. lt_cv_deplibs_check_method=pass_all
  4142. ;;
  4143. sequent)
  4144. lt_cv_file_magic_cmd='/bin/file'
  4145. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4146. ;;
  4147. sni)
  4148. lt_cv_file_magic_cmd='/bin/file'
  4149. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4150. lt_cv_file_magic_test_file=/lib/libc.so
  4151. ;;
  4152. siemens)
  4153. lt_cv_deplibs_check_method=pass_all
  4154. ;;
  4155. pc)
  4156. lt_cv_deplibs_check_method=pass_all
  4157. ;;
  4158. esac
  4159. ;;
  4160. tpf*)
  4161. lt_cv_deplibs_check_method=pass_all
  4162. ;;
  4163. esac
  4164. fi
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4166. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4167. file_magic_glob=
  4168. want_nocaseglob=no
  4169. if test "$build" = "$host"; then
  4170. case $host_os in
  4171. mingw* | pw32*)
  4172. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4173. want_nocaseglob=yes
  4174. else
  4175. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4176. fi
  4177. ;;
  4178. esac
  4179. fi
  4180. file_magic_cmd=$lt_cv_file_magic_cmd
  4181. deplibs_check_method=$lt_cv_deplibs_check_method
  4182. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4183. if test -n "$ac_tool_prefix"; then
  4184. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4185. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4187. $as_echo_n "checking for $ac_word... " >&6; }
  4188. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. if test -n "$DLLTOOL"; then
  4192. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4193. else
  4194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4195. for as_dir in $PATH
  4196. do
  4197. IFS=$as_save_IFS
  4198. test -z "$as_dir" && as_dir=.
  4199. for ac_exec_ext in '' $ac_executable_extensions; do
  4200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4201. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4203. break 2
  4204. fi
  4205. done
  4206. done
  4207. IFS=$as_save_IFS
  4208. fi
  4209. fi
  4210. DLLTOOL=$ac_cv_prog_DLLTOOL
  4211. if test -n "$DLLTOOL"; then
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4213. $as_echo "$DLLTOOL" >&6; }
  4214. else
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4216. $as_echo "no" >&6; }
  4217. fi
  4218. fi
  4219. if test -z "$ac_cv_prog_DLLTOOL"; then
  4220. ac_ct_DLLTOOL=$DLLTOOL
  4221. # Extract the first word of "dlltool", so it can be a program name with args.
  4222. set dummy dlltool; ac_word=$2
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4224. $as_echo_n "checking for $ac_word... " >&6; }
  4225. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. if test -n "$ac_ct_DLLTOOL"; then
  4229. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234. IFS=$as_save_IFS
  4235. test -z "$as_dir" && as_dir=.
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4238. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240. break 2
  4241. fi
  4242. done
  4243. done
  4244. IFS=$as_save_IFS
  4245. fi
  4246. fi
  4247. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4248. if test -n "$ac_ct_DLLTOOL"; then
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4250. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4251. else
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4253. $as_echo "no" >&6; }
  4254. fi
  4255. if test "x$ac_ct_DLLTOOL" = x; then
  4256. DLLTOOL="false"
  4257. else
  4258. case $cross_compiling:$ac_tool_warned in
  4259. yes:)
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4262. ac_tool_warned=yes ;;
  4263. esac
  4264. DLLTOOL=$ac_ct_DLLTOOL
  4265. fi
  4266. else
  4267. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4268. fi
  4269. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4271. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4272. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4276. case $host_os in
  4277. cygwin* | mingw* | pw32* | cegcc*)
  4278. # two different shell functions defined in ltmain.sh
  4279. # decide which to use based on capabilities of $DLLTOOL
  4280. case `$DLLTOOL --help 2>&1` in
  4281. *--identify-strict*)
  4282. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4283. ;;
  4284. *)
  4285. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4286. ;;
  4287. esac
  4288. ;;
  4289. *)
  4290. # fallback: assume linklib IS sharedlib
  4291. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4292. ;;
  4293. esac
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4296. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4297. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4298. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4299. if test -n "$ac_tool_prefix"; then
  4300. for ac_prog in ar
  4301. do
  4302. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4303. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4305. $as_echo_n "checking for $ac_word... " >&6; }
  4306. if ${ac_cv_prog_AR+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. if test -n "$AR"; then
  4310. ac_cv_prog_AR="$AR" # Let the user override the test.
  4311. else
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4319. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4321. break 2
  4322. fi
  4323. done
  4324. done
  4325. IFS=$as_save_IFS
  4326. fi
  4327. fi
  4328. AR=$ac_cv_prog_AR
  4329. if test -n "$AR"; then
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4331. $as_echo "$AR" >&6; }
  4332. else
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4334. $as_echo "no" >&6; }
  4335. fi
  4336. test -n "$AR" && break
  4337. done
  4338. fi
  4339. if test -z "$AR"; then
  4340. ac_ct_AR=$AR
  4341. for ac_prog in ar
  4342. do
  4343. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4344. set dummy $ac_prog; ac_word=$2
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4346. $as_echo_n "checking for $ac_word... " >&6; }
  4347. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. if test -n "$ac_ct_AR"; then
  4351. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4352. else
  4353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4354. for as_dir in $PATH
  4355. do
  4356. IFS=$as_save_IFS
  4357. test -z "$as_dir" && as_dir=.
  4358. for ac_exec_ext in '' $ac_executable_extensions; do
  4359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4360. ac_cv_prog_ac_ct_AR="$ac_prog"
  4361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4362. break 2
  4363. fi
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. fi
  4368. fi
  4369. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4370. if test -n "$ac_ct_AR"; then
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4372. $as_echo "$ac_ct_AR" >&6; }
  4373. else
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4375. $as_echo "no" >&6; }
  4376. fi
  4377. test -n "$ac_ct_AR" && break
  4378. done
  4379. if test "x$ac_ct_AR" = x; then
  4380. AR="false"
  4381. else
  4382. case $cross_compiling:$ac_tool_warned in
  4383. yes:)
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4385. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4386. ac_tool_warned=yes ;;
  4387. esac
  4388. AR=$ac_ct_AR
  4389. fi
  4390. fi
  4391. : ${AR=ar}
  4392. : ${AR_FLAGS=cru}
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4394. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4395. if ${lt_cv_ar_at_file+:} false; then :
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. lt_cv_ar_at_file=no
  4399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4400. /* end confdefs.h. */
  4401. int
  4402. main ()
  4403. {
  4404. ;
  4405. return 0;
  4406. }
  4407. _ACEOF
  4408. if ac_fn_c_try_compile "$LINENO"; then :
  4409. echo conftest.$ac_objext > conftest.lst
  4410. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4411. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4412. (eval $lt_ar_try) 2>&5
  4413. ac_status=$?
  4414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4415. test $ac_status = 0; }
  4416. if test "$ac_status" -eq 0; then
  4417. # Ensure the archiver fails upon bogus file names.
  4418. rm -f conftest.$ac_objext libconftest.a
  4419. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4420. (eval $lt_ar_try) 2>&5
  4421. ac_status=$?
  4422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4423. test $ac_status = 0; }
  4424. if test "$ac_status" -ne 0; then
  4425. lt_cv_ar_at_file=@
  4426. fi
  4427. fi
  4428. rm -f conftest.* libconftest.a
  4429. fi
  4430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4433. $as_echo "$lt_cv_ar_at_file" >&6; }
  4434. if test "x$lt_cv_ar_at_file" = xno; then
  4435. archiver_list_spec=
  4436. else
  4437. archiver_list_spec=$lt_cv_ar_at_file
  4438. fi
  4439. if test -n "$ac_tool_prefix"; then
  4440. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4441. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4443. $as_echo_n "checking for $ac_word... " >&6; }
  4444. if ${ac_cv_prog_STRIP+:} false; then :
  4445. $as_echo_n "(cached) " >&6
  4446. else
  4447. if test -n "$STRIP"; then
  4448. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4449. else
  4450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4451. for as_dir in $PATH
  4452. do
  4453. IFS=$as_save_IFS
  4454. test -z "$as_dir" && as_dir=.
  4455. for ac_exec_ext in '' $ac_executable_extensions; do
  4456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4457. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4459. break 2
  4460. fi
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. fi
  4465. fi
  4466. STRIP=$ac_cv_prog_STRIP
  4467. if test -n "$STRIP"; then
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4469. $as_echo "$STRIP" >&6; }
  4470. else
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4472. $as_echo "no" >&6; }
  4473. fi
  4474. fi
  4475. if test -z "$ac_cv_prog_STRIP"; then
  4476. ac_ct_STRIP=$STRIP
  4477. # Extract the first word of "strip", so it can be a program name with args.
  4478. set dummy strip; ac_word=$2
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4480. $as_echo_n "checking for $ac_word... " >&6; }
  4481. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -n "$ac_ct_STRIP"; then
  4485. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4486. else
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH
  4489. do
  4490. IFS=$as_save_IFS
  4491. test -z "$as_dir" && as_dir=.
  4492. for ac_exec_ext in '' $ac_executable_extensions; do
  4493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4494. ac_cv_prog_ac_ct_STRIP="strip"
  4495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4496. break 2
  4497. fi
  4498. done
  4499. done
  4500. IFS=$as_save_IFS
  4501. fi
  4502. fi
  4503. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4504. if test -n "$ac_ct_STRIP"; then
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4506. $as_echo "$ac_ct_STRIP" >&6; }
  4507. else
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4509. $as_echo "no" >&6; }
  4510. fi
  4511. if test "x$ac_ct_STRIP" = x; then
  4512. STRIP=":"
  4513. else
  4514. case $cross_compiling:$ac_tool_warned in
  4515. yes:)
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4518. ac_tool_warned=yes ;;
  4519. esac
  4520. STRIP=$ac_ct_STRIP
  4521. fi
  4522. else
  4523. STRIP="$ac_cv_prog_STRIP"
  4524. fi
  4525. test -z "$STRIP" && STRIP=:
  4526. if test -n "$ac_tool_prefix"; then
  4527. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4528. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4530. $as_echo_n "checking for $ac_word... " >&6; }
  4531. if ${ac_cv_prog_RANLIB+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. if test -n "$RANLIB"; then
  4535. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4536. else
  4537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4538. for as_dir in $PATH
  4539. do
  4540. IFS=$as_save_IFS
  4541. test -z "$as_dir" && as_dir=.
  4542. for ac_exec_ext in '' $ac_executable_extensions; do
  4543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4544. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4546. break 2
  4547. fi
  4548. done
  4549. done
  4550. IFS=$as_save_IFS
  4551. fi
  4552. fi
  4553. RANLIB=$ac_cv_prog_RANLIB
  4554. if test -n "$RANLIB"; then
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4556. $as_echo "$RANLIB" >&6; }
  4557. else
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4559. $as_echo "no" >&6; }
  4560. fi
  4561. fi
  4562. if test -z "$ac_cv_prog_RANLIB"; then
  4563. ac_ct_RANLIB=$RANLIB
  4564. # Extract the first word of "ranlib", so it can be a program name with args.
  4565. set dummy ranlib; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_RANLIB"; then
  4572. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4581. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4591. if test -n "$ac_ct_RANLIB"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4593. $as_echo "$ac_ct_RANLIB" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. if test "x$ac_ct_RANLIB" = x; then
  4599. RANLIB=":"
  4600. else
  4601. case $cross_compiling:$ac_tool_warned in
  4602. yes:)
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4605. ac_tool_warned=yes ;;
  4606. esac
  4607. RANLIB=$ac_ct_RANLIB
  4608. fi
  4609. else
  4610. RANLIB="$ac_cv_prog_RANLIB"
  4611. fi
  4612. test -z "$RANLIB" && RANLIB=:
  4613. # Determine commands to create old-style static archives.
  4614. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4615. old_postinstall_cmds='chmod 644 $oldlib'
  4616. old_postuninstall_cmds=
  4617. if test -n "$RANLIB"; then
  4618. case $host_os in
  4619. openbsd*)
  4620. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4621. ;;
  4622. *)
  4623. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4624. ;;
  4625. esac
  4626. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4627. fi
  4628. case $host_os in
  4629. darwin*)
  4630. lock_old_archive_extraction=yes ;;
  4631. *)
  4632. lock_old_archive_extraction=no ;;
  4633. esac
  4634. for ac_prog in gawk mawk nawk awk
  4635. do
  4636. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4637. set dummy $ac_prog; ac_word=$2
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4639. $as_echo_n "checking for $ac_word... " >&6; }
  4640. if ${ac_cv_prog_AWK+:} false; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. if test -n "$AWK"; then
  4644. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4645. else
  4646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4647. for as_dir in $PATH
  4648. do
  4649. IFS=$as_save_IFS
  4650. test -z "$as_dir" && as_dir=.
  4651. for ac_exec_ext in '' $ac_executable_extensions; do
  4652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4653. ac_cv_prog_AWK="$ac_prog"
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4655. break 2
  4656. fi
  4657. done
  4658. done
  4659. IFS=$as_save_IFS
  4660. fi
  4661. fi
  4662. AWK=$ac_cv_prog_AWK
  4663. if test -n "$AWK"; then
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4665. $as_echo "$AWK" >&6; }
  4666. else
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4668. $as_echo "no" >&6; }
  4669. fi
  4670. test -n "$AWK" && break
  4671. done
  4672. # If no C compiler was specified, use CC.
  4673. LTCC=${LTCC-"$CC"}
  4674. # If no C compiler flags were specified, use CFLAGS.
  4675. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4676. # Allow CC to be a program name with arguments.
  4677. compiler=$CC
  4678. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4680. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4681. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4682. $as_echo_n "(cached) " >&6
  4683. else
  4684. # These are sane defaults that work on at least a few old systems.
  4685. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4686. # Character class describing NM global symbol codes.
  4687. symcode='[BCDEGRST]'
  4688. # Regexp to match symbols that can be accessed directly from C.
  4689. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4690. # Define system-specific variables.
  4691. case $host_os in
  4692. aix*)
  4693. symcode='[BCDT]'
  4694. ;;
  4695. cygwin* | mingw* | pw32* | cegcc*)
  4696. symcode='[ABCDGISTW]'
  4697. ;;
  4698. hpux*)
  4699. if test "$host_cpu" = ia64; then
  4700. symcode='[ABCDEGRST]'
  4701. fi
  4702. ;;
  4703. irix* | nonstopux*)
  4704. symcode='[BCDEGRST]'
  4705. ;;
  4706. osf*)
  4707. symcode='[BCDEGQRST]'
  4708. ;;
  4709. solaris*)
  4710. symcode='[BDRT]'
  4711. ;;
  4712. sco3.2v5*)
  4713. symcode='[DT]'
  4714. ;;
  4715. sysv4.2uw2*)
  4716. symcode='[DT]'
  4717. ;;
  4718. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4719. symcode='[ABDT]'
  4720. ;;
  4721. sysv4)
  4722. symcode='[DFNSTU]'
  4723. ;;
  4724. esac
  4725. # If we're using GNU nm, then use its standard symbol codes.
  4726. case `$NM -V 2>&1` in
  4727. *GNU* | *'with BFD'*)
  4728. symcode='[ABCDGIRSTW]' ;;
  4729. esac
  4730. # Transform an extracted symbol line into a proper C declaration.
  4731. # Some systems (esp. on ia64) link data and code symbols differently,
  4732. # so use this general approach.
  4733. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4734. # Transform an extracted symbol line into symbol name and symbol address
  4735. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4736. 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'"
  4737. # Handle CRLF in mingw tool chain
  4738. opt_cr=
  4739. case $build_os in
  4740. mingw*)
  4741. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4742. ;;
  4743. esac
  4744. # Try without a prefix underscore, then with it.
  4745. for ac_symprfx in "" "_"; do
  4746. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4747. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4748. # Write the raw and C identifiers.
  4749. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4750. # Fake it for dumpbin and say T for any non-static function
  4751. # and D for any global variable.
  4752. # Also find C++ and __fastcall symbols from MSVC++,
  4753. # which start with @ or ?.
  4754. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4755. " {last_section=section; section=\$ 3};"\
  4756. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4757. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4758. " \$ 0!~/External *\|/{next};"\
  4759. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4760. " {if(hide[section]) next};"\
  4761. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4762. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4763. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4764. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4765. " ' prfx=^$ac_symprfx"
  4766. else
  4767. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4768. fi
  4769. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4770. # Check to see that the pipe works correctly.
  4771. pipe_works=no
  4772. rm -f conftest*
  4773. cat > conftest.$ac_ext <<_LT_EOF
  4774. #ifdef __cplusplus
  4775. extern "C" {
  4776. #endif
  4777. char nm_test_var;
  4778. void nm_test_func(void);
  4779. void nm_test_func(void){}
  4780. #ifdef __cplusplus
  4781. }
  4782. #endif
  4783. int main(){nm_test_var='a';nm_test_func();return(0);}
  4784. _LT_EOF
  4785. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4786. (eval $ac_compile) 2>&5
  4787. ac_status=$?
  4788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4789. test $ac_status = 0; }; then
  4790. # Now try to grab the symbols.
  4791. nlist=conftest.nm
  4792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4793. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4794. ac_status=$?
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4796. test $ac_status = 0; } && test -s "$nlist"; then
  4797. # Try sorting and uniquifying the output.
  4798. if sort "$nlist" | uniq > "$nlist"T; then
  4799. mv -f "$nlist"T "$nlist"
  4800. else
  4801. rm -f "$nlist"T
  4802. fi
  4803. # Make sure that we snagged all the symbols we need.
  4804. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4805. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4806. cat <<_LT_EOF > conftest.$ac_ext
  4807. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4808. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  4809. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  4810. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4811. # define LT_DLSYM_CONST
  4812. #elif defined(__osf__)
  4813. /* This system does not cope well with relocations in const data. */
  4814. # define LT_DLSYM_CONST
  4815. #else
  4816. # define LT_DLSYM_CONST const
  4817. #endif
  4818. #ifdef __cplusplus
  4819. extern "C" {
  4820. #endif
  4821. _LT_EOF
  4822. # Now generate the symbol file.
  4823. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4824. cat <<_LT_EOF >> conftest.$ac_ext
  4825. /* The mapping between symbol names and symbols. */
  4826. LT_DLSYM_CONST struct {
  4827. const char *name;
  4828. void *address;
  4829. }
  4830. lt__PROGRAM__LTX_preloaded_symbols[] =
  4831. {
  4832. { "@PROGRAM@", (void *) 0 },
  4833. _LT_EOF
  4834. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4835. cat <<\_LT_EOF >> conftest.$ac_ext
  4836. {0, (void *) 0}
  4837. };
  4838. /* This works around a problem in FreeBSD linker */
  4839. #ifdef FREEBSD_WORKAROUND
  4840. static const void *lt_preloaded_setup() {
  4841. return lt__PROGRAM__LTX_preloaded_symbols;
  4842. }
  4843. #endif
  4844. #ifdef __cplusplus
  4845. }
  4846. #endif
  4847. _LT_EOF
  4848. # Now try linking the two files.
  4849. mv conftest.$ac_objext conftstm.$ac_objext
  4850. lt_globsym_save_LIBS=$LIBS
  4851. lt_globsym_save_CFLAGS=$CFLAGS
  4852. LIBS="conftstm.$ac_objext"
  4853. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4854. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4855. (eval $ac_link) 2>&5
  4856. ac_status=$?
  4857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4858. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4859. pipe_works=yes
  4860. fi
  4861. LIBS=$lt_globsym_save_LIBS
  4862. CFLAGS=$lt_globsym_save_CFLAGS
  4863. else
  4864. echo "cannot find nm_test_func in $nlist" >&5
  4865. fi
  4866. else
  4867. echo "cannot find nm_test_var in $nlist" >&5
  4868. fi
  4869. else
  4870. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4871. fi
  4872. else
  4873. echo "$progname: failed program was:" >&5
  4874. cat conftest.$ac_ext >&5
  4875. fi
  4876. rm -rf conftest* conftst*
  4877. # Do not use the global_symbol_pipe unless it works.
  4878. if test "$pipe_works" = yes; then
  4879. break
  4880. else
  4881. lt_cv_sys_global_symbol_pipe=
  4882. fi
  4883. done
  4884. fi
  4885. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4886. lt_cv_sys_global_symbol_to_cdecl=
  4887. fi
  4888. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4890. $as_echo "failed" >&6; }
  4891. else
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4893. $as_echo "ok" >&6; }
  4894. fi
  4895. # Response file support.
  4896. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4897. nm_file_list_spec='@'
  4898. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  4899. nm_file_list_spec='@'
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  4902. $as_echo_n "checking for sysroot... " >&6; }
  4903. # Check whether --with-sysroot was given.
  4904. if test "${with_sysroot+set}" = set; then :
  4905. withval=$with_sysroot;
  4906. else
  4907. with_sysroot=no
  4908. fi
  4909. lt_sysroot=
  4910. case ${with_sysroot} in #(
  4911. yes)
  4912. if test "$GCC" = yes; then
  4913. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  4914. fi
  4915. ;; #(
  4916. /*)
  4917. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  4918. ;; #(
  4919. no|'')
  4920. ;; #(
  4921. *)
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  4923. $as_echo "${with_sysroot}" >&6; }
  4924. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  4925. ;;
  4926. esac
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  4928. $as_echo "${lt_sysroot:-no}" >&6; }
  4929. # Check whether --enable-libtool-lock was given.
  4930. if test "${enable_libtool_lock+set}" = set; then :
  4931. enableval=$enable_libtool_lock;
  4932. fi
  4933. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4934. # Some flags need to be propagated to the compiler or linker for good
  4935. # libtool support.
  4936. case $host in
  4937. ia64-*-hpux*)
  4938. # Find out which ABI we are using.
  4939. echo 'int i;' > conftest.$ac_ext
  4940. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4941. (eval $ac_compile) 2>&5
  4942. ac_status=$?
  4943. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4944. test $ac_status = 0; }; then
  4945. case `/usr/bin/file conftest.$ac_objext` in
  4946. *ELF-32*)
  4947. HPUX_IA64_MODE="32"
  4948. ;;
  4949. *ELF-64*)
  4950. HPUX_IA64_MODE="64"
  4951. ;;
  4952. esac
  4953. fi
  4954. rm -rf conftest*
  4955. ;;
  4956. *-*-irix6*)
  4957. # Find out which ABI we are using.
  4958. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  4959. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4960. (eval $ac_compile) 2>&5
  4961. ac_status=$?
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4963. test $ac_status = 0; }; then
  4964. if test "$lt_cv_prog_gnu_ld" = yes; then
  4965. case `/usr/bin/file conftest.$ac_objext` in
  4966. *32-bit*)
  4967. LD="${LD-ld} -melf32bsmip"
  4968. ;;
  4969. *N32*)
  4970. LD="${LD-ld} -melf32bmipn32"
  4971. ;;
  4972. *64-bit*)
  4973. LD="${LD-ld} -melf64bmip"
  4974. ;;
  4975. esac
  4976. else
  4977. case `/usr/bin/file conftest.$ac_objext` in
  4978. *32-bit*)
  4979. LD="${LD-ld} -32"
  4980. ;;
  4981. *N32*)
  4982. LD="${LD-ld} -n32"
  4983. ;;
  4984. *64-bit*)
  4985. LD="${LD-ld} -64"
  4986. ;;
  4987. esac
  4988. fi
  4989. fi
  4990. rm -rf conftest*
  4991. ;;
  4992. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4993. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4994. # Find out which ABI we are using.
  4995. echo 'int i;' > conftest.$ac_ext
  4996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4997. (eval $ac_compile) 2>&5
  4998. ac_status=$?
  4999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5000. test $ac_status = 0; }; then
  5001. case `/usr/bin/file conftest.o` in
  5002. *32-bit*)
  5003. case $host in
  5004. x86_64-*kfreebsd*-gnu)
  5005. LD="${LD-ld} -m elf_i386_fbsd"
  5006. ;;
  5007. x86_64-*linux*)
  5008. LD="${LD-ld} -m elf_i386"
  5009. ;;
  5010. ppc64-*linux*|powerpc64-*linux*)
  5011. LD="${LD-ld} -m elf32ppclinux"
  5012. ;;
  5013. s390x-*linux*)
  5014. LD="${LD-ld} -m elf_s390"
  5015. ;;
  5016. sparc64-*linux*)
  5017. LD="${LD-ld} -m elf32_sparc"
  5018. ;;
  5019. esac
  5020. ;;
  5021. *64-bit*)
  5022. case $host in
  5023. x86_64-*kfreebsd*-gnu)
  5024. LD="${LD-ld} -m elf_x86_64_fbsd"
  5025. ;;
  5026. x86_64-*linux*)
  5027. LD="${LD-ld} -m elf_x86_64"
  5028. ;;
  5029. ppc*-*linux*|powerpc*-*linux*)
  5030. LD="${LD-ld} -m elf64ppc"
  5031. ;;
  5032. s390*-*linux*|s390*-*tpf*)
  5033. LD="${LD-ld} -m elf64_s390"
  5034. ;;
  5035. sparc*-*linux*)
  5036. LD="${LD-ld} -m elf64_sparc"
  5037. ;;
  5038. esac
  5039. ;;
  5040. esac
  5041. fi
  5042. rm -rf conftest*
  5043. ;;
  5044. *-*-sco3.2v5*)
  5045. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5046. SAVE_CFLAGS="$CFLAGS"
  5047. CFLAGS="$CFLAGS -belf"
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5049. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5050. if ${lt_cv_cc_needs_belf+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. ac_ext=c
  5054. ac_cpp='$CPP $CPPFLAGS'
  5055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. int
  5061. main ()
  5062. {
  5063. ;
  5064. return 0;
  5065. }
  5066. _ACEOF
  5067. if ac_fn_c_try_link "$LINENO"; then :
  5068. lt_cv_cc_needs_belf=yes
  5069. else
  5070. lt_cv_cc_needs_belf=no
  5071. fi
  5072. rm -f core conftest.err conftest.$ac_objext \
  5073. conftest$ac_exeext conftest.$ac_ext
  5074. ac_ext=c
  5075. ac_cpp='$CPP $CPPFLAGS'
  5076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5079. fi
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5081. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5082. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5083. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5084. CFLAGS="$SAVE_CFLAGS"
  5085. fi
  5086. ;;
  5087. *-*solaris*)
  5088. # Find out which ABI we are using.
  5089. echo 'int i;' > conftest.$ac_ext
  5090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5091. (eval $ac_compile) 2>&5
  5092. ac_status=$?
  5093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5094. test $ac_status = 0; }; then
  5095. case `/usr/bin/file conftest.o` in
  5096. *64-bit*)
  5097. case $lt_cv_prog_gnu_ld in
  5098. yes*)
  5099. case $host in
  5100. i?86-*-solaris*)
  5101. LD="${LD-ld} -m elf_x86_64"
  5102. ;;
  5103. sparc*-*-solaris*)
  5104. LD="${LD-ld} -m elf64_sparc"
  5105. ;;
  5106. esac
  5107. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5108. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5109. LD="${LD-ld}_sol2"
  5110. fi
  5111. ;;
  5112. *)
  5113. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5114. LD="${LD-ld} -64"
  5115. fi
  5116. ;;
  5117. esac
  5118. ;;
  5119. esac
  5120. fi
  5121. rm -rf conftest*
  5122. ;;
  5123. esac
  5124. need_locks="$enable_libtool_lock"
  5125. if test -n "$ac_tool_prefix"; then
  5126. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5127. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. if test -n "$MANIFEST_TOOL"; then
  5134. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5135. else
  5136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5137. for as_dir in $PATH
  5138. do
  5139. IFS=$as_save_IFS
  5140. test -z "$as_dir" && as_dir=.
  5141. for ac_exec_ext in '' $ac_executable_extensions; do
  5142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5143. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5145. break 2
  5146. fi
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. fi
  5151. fi
  5152. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5153. if test -n "$MANIFEST_TOOL"; then
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5155. $as_echo "$MANIFEST_TOOL" >&6; }
  5156. else
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5158. $as_echo "no" >&6; }
  5159. fi
  5160. fi
  5161. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5162. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5163. # Extract the first word of "mt", so it can be a program name with args.
  5164. set dummy mt; ac_word=$2
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5166. $as_echo_n "checking for $ac_word... " >&6; }
  5167. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5171. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5172. else
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. fi
  5188. fi
  5189. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5190. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5192. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5193. else
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5195. $as_echo "no" >&6; }
  5196. fi
  5197. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5198. MANIFEST_TOOL=":"
  5199. else
  5200. case $cross_compiling:$ac_tool_warned in
  5201. yes:)
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5204. ac_tool_warned=yes ;;
  5205. esac
  5206. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5207. fi
  5208. else
  5209. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5210. fi
  5211. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5213. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5214. if ${lt_cv_path_mainfest_tool+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. lt_cv_path_mainfest_tool=no
  5218. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5219. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5220. cat conftest.err >&5
  5221. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5222. lt_cv_path_mainfest_tool=yes
  5223. fi
  5224. rm -f conftest*
  5225. fi
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5227. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5228. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5229. MANIFEST_TOOL=:
  5230. fi
  5231. case $host_os in
  5232. rhapsody* | darwin*)
  5233. if test -n "$ac_tool_prefix"; then
  5234. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5235. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5237. $as_echo_n "checking for $ac_word... " >&6; }
  5238. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. if test -n "$DSYMUTIL"; then
  5242. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5243. else
  5244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5245. for as_dir in $PATH
  5246. do
  5247. IFS=$as_save_IFS
  5248. test -z "$as_dir" && as_dir=.
  5249. for ac_exec_ext in '' $ac_executable_extensions; do
  5250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5251. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5253. break 2
  5254. fi
  5255. done
  5256. done
  5257. IFS=$as_save_IFS
  5258. fi
  5259. fi
  5260. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5261. if test -n "$DSYMUTIL"; then
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5263. $as_echo "$DSYMUTIL" >&6; }
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. fi
  5268. fi
  5269. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5270. ac_ct_DSYMUTIL=$DSYMUTIL
  5271. # Extract the first word of "dsymutil", so it can be a program name with args.
  5272. set dummy dsymutil; ac_word=$2
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5274. $as_echo_n "checking for $ac_word... " >&6; }
  5275. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5276. $as_echo_n "(cached) " >&6
  5277. else
  5278. if test -n "$ac_ct_DSYMUTIL"; then
  5279. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5280. else
  5281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5282. for as_dir in $PATH
  5283. do
  5284. IFS=$as_save_IFS
  5285. test -z "$as_dir" && as_dir=.
  5286. for ac_exec_ext in '' $ac_executable_extensions; do
  5287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5288. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5290. break 2
  5291. fi
  5292. done
  5293. done
  5294. IFS=$as_save_IFS
  5295. fi
  5296. fi
  5297. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5298. if test -n "$ac_ct_DSYMUTIL"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5300. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5303. $as_echo "no" >&6; }
  5304. fi
  5305. if test "x$ac_ct_DSYMUTIL" = x; then
  5306. DSYMUTIL=":"
  5307. else
  5308. case $cross_compiling:$ac_tool_warned in
  5309. yes:)
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5312. ac_tool_warned=yes ;;
  5313. esac
  5314. DSYMUTIL=$ac_ct_DSYMUTIL
  5315. fi
  5316. else
  5317. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5318. fi
  5319. if test -n "$ac_tool_prefix"; then
  5320. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5321. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5323. $as_echo_n "checking for $ac_word... " >&6; }
  5324. if ${ac_cv_prog_NMEDIT+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. if test -n "$NMEDIT"; then
  5328. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5329. else
  5330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5331. for as_dir in $PATH
  5332. do
  5333. IFS=$as_save_IFS
  5334. test -z "$as_dir" && as_dir=.
  5335. for ac_exec_ext in '' $ac_executable_extensions; do
  5336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5337. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5339. break 2
  5340. fi
  5341. done
  5342. done
  5343. IFS=$as_save_IFS
  5344. fi
  5345. fi
  5346. NMEDIT=$ac_cv_prog_NMEDIT
  5347. if test -n "$NMEDIT"; then
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5349. $as_echo "$NMEDIT" >&6; }
  5350. else
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5352. $as_echo "no" >&6; }
  5353. fi
  5354. fi
  5355. if test -z "$ac_cv_prog_NMEDIT"; then
  5356. ac_ct_NMEDIT=$NMEDIT
  5357. # Extract the first word of "nmedit", so it can be a program name with args.
  5358. set dummy nmedit; ac_word=$2
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5360. $as_echo_n "checking for $ac_word... " >&6; }
  5361. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5362. $as_echo_n "(cached) " >&6
  5363. else
  5364. if test -n "$ac_ct_NMEDIT"; then
  5365. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5366. else
  5367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5368. for as_dir in $PATH
  5369. do
  5370. IFS=$as_save_IFS
  5371. test -z "$as_dir" && as_dir=.
  5372. for ac_exec_ext in '' $ac_executable_extensions; do
  5373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5374. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5376. break 2
  5377. fi
  5378. done
  5379. done
  5380. IFS=$as_save_IFS
  5381. fi
  5382. fi
  5383. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5384. if test -n "$ac_ct_NMEDIT"; then
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5386. $as_echo "$ac_ct_NMEDIT" >&6; }
  5387. else
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5389. $as_echo "no" >&6; }
  5390. fi
  5391. if test "x$ac_ct_NMEDIT" = x; then
  5392. NMEDIT=":"
  5393. else
  5394. case $cross_compiling:$ac_tool_warned in
  5395. yes:)
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5397. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5398. ac_tool_warned=yes ;;
  5399. esac
  5400. NMEDIT=$ac_ct_NMEDIT
  5401. fi
  5402. else
  5403. NMEDIT="$ac_cv_prog_NMEDIT"
  5404. fi
  5405. if test -n "$ac_tool_prefix"; then
  5406. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5407. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5409. $as_echo_n "checking for $ac_word... " >&6; }
  5410. if ${ac_cv_prog_LIPO+:} false; then :
  5411. $as_echo_n "(cached) " >&6
  5412. else
  5413. if test -n "$LIPO"; then
  5414. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5415. else
  5416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5417. for as_dir in $PATH
  5418. do
  5419. IFS=$as_save_IFS
  5420. test -z "$as_dir" && as_dir=.
  5421. for ac_exec_ext in '' $ac_executable_extensions; do
  5422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5423. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5425. break 2
  5426. fi
  5427. done
  5428. done
  5429. IFS=$as_save_IFS
  5430. fi
  5431. fi
  5432. LIPO=$ac_cv_prog_LIPO
  5433. if test -n "$LIPO"; then
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5435. $as_echo "$LIPO" >&6; }
  5436. else
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5438. $as_echo "no" >&6; }
  5439. fi
  5440. fi
  5441. if test -z "$ac_cv_prog_LIPO"; then
  5442. ac_ct_LIPO=$LIPO
  5443. # Extract the first word of "lipo", so it can be a program name with args.
  5444. set dummy lipo; ac_word=$2
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5446. $as_echo_n "checking for $ac_word... " >&6; }
  5447. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. if test -n "$ac_ct_LIPO"; then
  5451. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5452. else
  5453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5454. for as_dir in $PATH
  5455. do
  5456. IFS=$as_save_IFS
  5457. test -z "$as_dir" && as_dir=.
  5458. for ac_exec_ext in '' $ac_executable_extensions; do
  5459. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5460. ac_cv_prog_ac_ct_LIPO="lipo"
  5461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5462. break 2
  5463. fi
  5464. done
  5465. done
  5466. IFS=$as_save_IFS
  5467. fi
  5468. fi
  5469. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5470. if test -n "$ac_ct_LIPO"; then
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5472. $as_echo "$ac_ct_LIPO" >&6; }
  5473. else
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5475. $as_echo "no" >&6; }
  5476. fi
  5477. if test "x$ac_ct_LIPO" = x; then
  5478. LIPO=":"
  5479. else
  5480. case $cross_compiling:$ac_tool_warned in
  5481. yes:)
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5484. ac_tool_warned=yes ;;
  5485. esac
  5486. LIPO=$ac_ct_LIPO
  5487. fi
  5488. else
  5489. LIPO="$ac_cv_prog_LIPO"
  5490. fi
  5491. if test -n "$ac_tool_prefix"; then
  5492. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5493. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_OTOOL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$OTOOL"; then
  5500. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5509. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. OTOOL=$ac_cv_prog_OTOOL
  5519. if test -n "$OTOOL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5521. $as_echo "$OTOOL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_OTOOL"; then
  5528. ac_ct_OTOOL=$OTOOL
  5529. # Extract the first word of "otool", so it can be a program name with args.
  5530. set dummy otool; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$ac_ct_OTOOL"; then
  5537. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5546. ac_cv_prog_ac_ct_OTOOL="otool"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5556. if test -n "$ac_ct_OTOOL"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5558. $as_echo "$ac_ct_OTOOL" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. if test "x$ac_ct_OTOOL" = x; then
  5564. OTOOL=":"
  5565. else
  5566. case $cross_compiling:$ac_tool_warned in
  5567. yes:)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. ac_tool_warned=yes ;;
  5571. esac
  5572. OTOOL=$ac_ct_OTOOL
  5573. fi
  5574. else
  5575. OTOOL="$ac_cv_prog_OTOOL"
  5576. fi
  5577. if test -n "$ac_tool_prefix"; then
  5578. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5579. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_OTOOL64+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$OTOOL64"; then
  5586. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5595. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. OTOOL64=$ac_cv_prog_OTOOL64
  5605. if test -n "$OTOOL64"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5607. $as_echo "$OTOOL64" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. fi
  5613. if test -z "$ac_cv_prog_OTOOL64"; then
  5614. ac_ct_OTOOL64=$OTOOL64
  5615. # Extract the first word of "otool64", so it can be a program name with args.
  5616. set dummy otool64; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$ac_ct_OTOOL64"; then
  5623. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5632. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5642. if test -n "$ac_ct_OTOOL64"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5644. $as_echo "$ac_ct_OTOOL64" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. if test "x$ac_ct_OTOOL64" = x; then
  5650. OTOOL64=":"
  5651. else
  5652. case $cross_compiling:$ac_tool_warned in
  5653. yes:)
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5656. ac_tool_warned=yes ;;
  5657. esac
  5658. OTOOL64=$ac_ct_OTOOL64
  5659. fi
  5660. else
  5661. OTOOL64="$ac_cv_prog_OTOOL64"
  5662. fi
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5664. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5665. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. lt_cv_apple_cc_single_mod=no
  5669. if test -z "${LT_MULTI_MODULE}"; then
  5670. # By default we will add the -single_module flag. You can override
  5671. # by either setting the environment variable LT_MULTI_MODULE
  5672. # non-empty at configure time, or by adding -multi_module to the
  5673. # link flags.
  5674. rm -rf libconftest.dylib*
  5675. echo "int foo(void){return 1;}" > conftest.c
  5676. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5677. -dynamiclib -Wl,-single_module conftest.c" >&5
  5678. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5679. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5680. _lt_result=$?
  5681. # If there is a non-empty error log, and "single_module"
  5682. # appears in it, assume the flag caused a linker warning
  5683. if test -s conftest.err && $GREP single_module conftest.err; then
  5684. cat conftest.err >&5
  5685. # Otherwise, if the output was created with a 0 exit code from
  5686. # the compiler, it worked.
  5687. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5688. lt_cv_apple_cc_single_mod=yes
  5689. else
  5690. cat conftest.err >&5
  5691. fi
  5692. rm -rf libconftest.dylib*
  5693. rm -f conftest.*
  5694. fi
  5695. fi
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5697. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5699. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5700. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. lt_cv_ld_exported_symbols_list=no
  5704. save_LDFLAGS=$LDFLAGS
  5705. echo "_main" > conftest.sym
  5706. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5708. /* end confdefs.h. */
  5709. int
  5710. main ()
  5711. {
  5712. ;
  5713. return 0;
  5714. }
  5715. _ACEOF
  5716. if ac_fn_c_try_link "$LINENO"; then :
  5717. lt_cv_ld_exported_symbols_list=yes
  5718. else
  5719. lt_cv_ld_exported_symbols_list=no
  5720. fi
  5721. rm -f core conftest.err conftest.$ac_objext \
  5722. conftest$ac_exeext conftest.$ac_ext
  5723. LDFLAGS="$save_LDFLAGS"
  5724. fi
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5726. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5728. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5729. if ${lt_cv_ld_force_load+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. lt_cv_ld_force_load=no
  5733. cat > conftest.c << _LT_EOF
  5734. int forced_loaded() { return 2;}
  5735. _LT_EOF
  5736. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5737. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5738. echo "$AR cru libconftest.a conftest.o" >&5
  5739. $AR cru libconftest.a conftest.o 2>&5
  5740. echo "$RANLIB libconftest.a" >&5
  5741. $RANLIB libconftest.a 2>&5
  5742. cat > conftest.c << _LT_EOF
  5743. int main() { return 0;}
  5744. _LT_EOF
  5745. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5746. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5747. _lt_result=$?
  5748. if test -s conftest.err && $GREP force_load conftest.err; then
  5749. cat conftest.err >&5
  5750. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5751. lt_cv_ld_force_load=yes
  5752. else
  5753. cat conftest.err >&5
  5754. fi
  5755. rm -f conftest.err libconftest.a conftest conftest.c
  5756. rm -rf conftest.dSYM
  5757. fi
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5759. $as_echo "$lt_cv_ld_force_load" >&6; }
  5760. case $host_os in
  5761. rhapsody* | darwin1.[012])
  5762. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5763. darwin1.*)
  5764. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5765. darwin*) # darwin 5.x on
  5766. # if running on 10.5 or later, the deployment target defaults
  5767. # to the OS version, if on x86, and 10.4, the deployment
  5768. # target defaults to 10.4. Don't you love it?
  5769. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5770. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5771. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5772. 10.[012]*)
  5773. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5774. 10.*)
  5775. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5776. esac
  5777. ;;
  5778. esac
  5779. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5780. _lt_dar_single_mod='$single_module'
  5781. fi
  5782. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5783. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5784. else
  5785. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5786. fi
  5787. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5788. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5789. else
  5790. _lt_dsymutil=
  5791. fi
  5792. ;;
  5793. esac
  5794. ac_ext=c
  5795. ac_cpp='$CPP $CPPFLAGS'
  5796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5800. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5801. # On Suns, sometimes $CPP names a directory.
  5802. if test -n "$CPP" && test -d "$CPP"; then
  5803. CPP=
  5804. fi
  5805. if test -z "$CPP"; then
  5806. if ${ac_cv_prog_CPP+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. # Double quotes because CPP needs to be expanded
  5810. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5811. do
  5812. ac_preproc_ok=false
  5813. for ac_c_preproc_warn_flag in '' yes
  5814. do
  5815. # Use a header file that comes with gcc, so configuring glibc
  5816. # with a fresh cross-compiler works.
  5817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5818. # <limits.h> exists even on freestanding compilers.
  5819. # On the NeXT, cc -E runs the code through the compiler's parser,
  5820. # not just through cpp. "Syntax error" is here to catch this case.
  5821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5822. /* end confdefs.h. */
  5823. #ifdef __STDC__
  5824. # include <limits.h>
  5825. #else
  5826. # include <assert.h>
  5827. #endif
  5828. Syntax error
  5829. _ACEOF
  5830. if ac_fn_c_try_cpp "$LINENO"; then :
  5831. else
  5832. # Broken: fails on valid input.
  5833. continue
  5834. fi
  5835. rm -f conftest.err conftest.i conftest.$ac_ext
  5836. # OK, works on sane cases. Now check whether nonexistent headers
  5837. # can be detected and how.
  5838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5839. /* end confdefs.h. */
  5840. #include <ac_nonexistent.h>
  5841. _ACEOF
  5842. if ac_fn_c_try_cpp "$LINENO"; then :
  5843. # Broken: success on invalid input.
  5844. continue
  5845. else
  5846. # Passes both tests.
  5847. ac_preproc_ok=:
  5848. break
  5849. fi
  5850. rm -f conftest.err conftest.i conftest.$ac_ext
  5851. done
  5852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5853. rm -f conftest.i conftest.err conftest.$ac_ext
  5854. if $ac_preproc_ok; then :
  5855. break
  5856. fi
  5857. done
  5858. ac_cv_prog_CPP=$CPP
  5859. fi
  5860. CPP=$ac_cv_prog_CPP
  5861. else
  5862. ac_cv_prog_CPP=$CPP
  5863. fi
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5865. $as_echo "$CPP" >&6; }
  5866. ac_preproc_ok=false
  5867. for ac_c_preproc_warn_flag in '' yes
  5868. do
  5869. # Use a header file that comes with gcc, so configuring glibc
  5870. # with a fresh cross-compiler works.
  5871. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5872. # <limits.h> exists even on freestanding compilers.
  5873. # On the NeXT, cc -E runs the code through the compiler's parser,
  5874. # not just through cpp. "Syntax error" is here to catch this case.
  5875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5876. /* end confdefs.h. */
  5877. #ifdef __STDC__
  5878. # include <limits.h>
  5879. #else
  5880. # include <assert.h>
  5881. #endif
  5882. Syntax error
  5883. _ACEOF
  5884. if ac_fn_c_try_cpp "$LINENO"; then :
  5885. else
  5886. # Broken: fails on valid input.
  5887. continue
  5888. fi
  5889. rm -f conftest.err conftest.i conftest.$ac_ext
  5890. # OK, works on sane cases. Now check whether nonexistent headers
  5891. # can be detected and how.
  5892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5893. /* end confdefs.h. */
  5894. #include <ac_nonexistent.h>
  5895. _ACEOF
  5896. if ac_fn_c_try_cpp "$LINENO"; then :
  5897. # Broken: success on invalid input.
  5898. continue
  5899. else
  5900. # Passes both tests.
  5901. ac_preproc_ok=:
  5902. break
  5903. fi
  5904. rm -f conftest.err conftest.i conftest.$ac_ext
  5905. done
  5906. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5907. rm -f conftest.i conftest.err conftest.$ac_ext
  5908. if $ac_preproc_ok; then :
  5909. else
  5910. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5911. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5912. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5913. See \`config.log' for more details" "$LINENO" 5; }
  5914. fi
  5915. ac_ext=c
  5916. ac_cpp='$CPP $CPPFLAGS'
  5917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5921. $as_echo_n "checking for ANSI C header files... " >&6; }
  5922. if ${ac_cv_header_stdc+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5926. /* end confdefs.h. */
  5927. #include <stdlib.h>
  5928. #include <stdarg.h>
  5929. #include <string.h>
  5930. #include <float.h>
  5931. int
  5932. main ()
  5933. {
  5934. ;
  5935. return 0;
  5936. }
  5937. _ACEOF
  5938. if ac_fn_c_try_compile "$LINENO"; then :
  5939. ac_cv_header_stdc=yes
  5940. else
  5941. ac_cv_header_stdc=no
  5942. fi
  5943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5944. if test $ac_cv_header_stdc = yes; then
  5945. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end confdefs.h. */
  5948. #include <string.h>
  5949. _ACEOF
  5950. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5951. $EGREP "memchr" >/dev/null 2>&1; then :
  5952. else
  5953. ac_cv_header_stdc=no
  5954. fi
  5955. rm -f conftest*
  5956. fi
  5957. if test $ac_cv_header_stdc = yes; then
  5958. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5960. /* end confdefs.h. */
  5961. #include <stdlib.h>
  5962. _ACEOF
  5963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5964. $EGREP "free" >/dev/null 2>&1; then :
  5965. else
  5966. ac_cv_header_stdc=no
  5967. fi
  5968. rm -f conftest*
  5969. fi
  5970. if test $ac_cv_header_stdc = yes; then
  5971. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5972. if test "$cross_compiling" = yes; then :
  5973. :
  5974. else
  5975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5976. /* end confdefs.h. */
  5977. #include <ctype.h>
  5978. #include <stdlib.h>
  5979. #if ((' ' & 0x0FF) == 0x020)
  5980. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5981. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5982. #else
  5983. # define ISLOWER(c) \
  5984. (('a' <= (c) && (c) <= 'i') \
  5985. || ('j' <= (c) && (c) <= 'r') \
  5986. || ('s' <= (c) && (c) <= 'z'))
  5987. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5988. #endif
  5989. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5990. int
  5991. main ()
  5992. {
  5993. int i;
  5994. for (i = 0; i < 256; i++)
  5995. if (XOR (islower (i), ISLOWER (i))
  5996. || toupper (i) != TOUPPER (i))
  5997. return 2;
  5998. return 0;
  5999. }
  6000. _ACEOF
  6001. if ac_fn_c_try_run "$LINENO"; then :
  6002. else
  6003. ac_cv_header_stdc=no
  6004. fi
  6005. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6006. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6007. fi
  6008. fi
  6009. fi
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6011. $as_echo "$ac_cv_header_stdc" >&6; }
  6012. if test $ac_cv_header_stdc = yes; then
  6013. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6014. fi
  6015. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6016. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6017. inttypes.h stdint.h unistd.h
  6018. do :
  6019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6020. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6021. "
  6022. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6023. cat >>confdefs.h <<_ACEOF
  6024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6025. _ACEOF
  6026. fi
  6027. done
  6028. for ac_header in dlfcn.h
  6029. do :
  6030. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6031. "
  6032. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6033. cat >>confdefs.h <<_ACEOF
  6034. #define HAVE_DLFCN_H 1
  6035. _ACEOF
  6036. fi
  6037. done
  6038. # Set options
  6039. enable_dlopen=no
  6040. enable_win32_dll=no
  6041. # Check whether --enable-shared was given.
  6042. if test "${enable_shared+set}" = set; then :
  6043. enableval=$enable_shared; p=${PACKAGE-default}
  6044. case $enableval in
  6045. yes) enable_shared=yes ;;
  6046. no) enable_shared=no ;;
  6047. *)
  6048. enable_shared=no
  6049. # Look at the argument we got. We use all the common list separators.
  6050. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6051. for pkg in $enableval; do
  6052. IFS="$lt_save_ifs"
  6053. if test "X$pkg" = "X$p"; then
  6054. enable_shared=yes
  6055. fi
  6056. done
  6057. IFS="$lt_save_ifs"
  6058. ;;
  6059. esac
  6060. else
  6061. enable_shared=yes
  6062. fi
  6063. # Check whether --enable-static was given.
  6064. if test "${enable_static+set}" = set; then :
  6065. enableval=$enable_static; p=${PACKAGE-default}
  6066. case $enableval in
  6067. yes) enable_static=yes ;;
  6068. no) enable_static=no ;;
  6069. *)
  6070. enable_static=no
  6071. # Look at the argument we got. We use all the common list separators.
  6072. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6073. for pkg in $enableval; do
  6074. IFS="$lt_save_ifs"
  6075. if test "X$pkg" = "X$p"; then
  6076. enable_static=yes
  6077. fi
  6078. done
  6079. IFS="$lt_save_ifs"
  6080. ;;
  6081. esac
  6082. else
  6083. enable_static=yes
  6084. fi
  6085. # Check whether --with-pic was given.
  6086. if test "${with_pic+set}" = set; then :
  6087. withval=$with_pic; lt_p=${PACKAGE-default}
  6088. case $withval in
  6089. yes|no) pic_mode=$withval ;;
  6090. *)
  6091. pic_mode=default
  6092. # Look at the argument we got. We use all the common list separators.
  6093. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6094. for lt_pkg in $withval; do
  6095. IFS="$lt_save_ifs"
  6096. if test "X$lt_pkg" = "X$lt_p"; then
  6097. pic_mode=yes
  6098. fi
  6099. done
  6100. IFS="$lt_save_ifs"
  6101. ;;
  6102. esac
  6103. else
  6104. pic_mode=default
  6105. fi
  6106. test -z "$pic_mode" && pic_mode=default
  6107. # Check whether --enable-fast-install was given.
  6108. if test "${enable_fast_install+set}" = set; then :
  6109. enableval=$enable_fast_install; p=${PACKAGE-default}
  6110. case $enableval in
  6111. yes) enable_fast_install=yes ;;
  6112. no) enable_fast_install=no ;;
  6113. *)
  6114. enable_fast_install=no
  6115. # Look at the argument we got. We use all the common list separators.
  6116. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6117. for pkg in $enableval; do
  6118. IFS="$lt_save_ifs"
  6119. if test "X$pkg" = "X$p"; then
  6120. enable_fast_install=yes
  6121. fi
  6122. done
  6123. IFS="$lt_save_ifs"
  6124. ;;
  6125. esac
  6126. else
  6127. enable_fast_install=yes
  6128. fi
  6129. # This can be used to rebuild libtool when needed
  6130. LIBTOOL_DEPS="$ltmain"
  6131. # Always use our own libtool.
  6132. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6133. test -z "$LN_S" && LN_S="ln -s"
  6134. if test -n "${ZSH_VERSION+set}" ; then
  6135. setopt NO_GLOB_SUBST
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6138. $as_echo_n "checking for objdir... " >&6; }
  6139. if ${lt_cv_objdir+:} false; then :
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. rm -f .libs 2>/dev/null
  6143. mkdir .libs 2>/dev/null
  6144. if test -d .libs; then
  6145. lt_cv_objdir=.libs
  6146. else
  6147. # MS-DOS does not allow filenames that begin with a dot.
  6148. lt_cv_objdir=_libs
  6149. fi
  6150. rmdir .libs 2>/dev/null
  6151. fi
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6153. $as_echo "$lt_cv_objdir" >&6; }
  6154. objdir=$lt_cv_objdir
  6155. cat >>confdefs.h <<_ACEOF
  6156. #define LT_OBJDIR "$lt_cv_objdir/"
  6157. _ACEOF
  6158. case $host_os in
  6159. aix3*)
  6160. # AIX sometimes has problems with the GCC collect2 program. For some
  6161. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6162. # vanish in a puff of smoke.
  6163. if test "X${COLLECT_NAMES+set}" != Xset; then
  6164. COLLECT_NAMES=
  6165. export COLLECT_NAMES
  6166. fi
  6167. ;;
  6168. esac
  6169. # Global variables:
  6170. ofile=libtool
  6171. can_build_shared=yes
  6172. # All known linkers require a `.a' archive for static linking (except MSVC,
  6173. # which needs '.lib').
  6174. libext=a
  6175. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6176. old_CC="$CC"
  6177. old_CFLAGS="$CFLAGS"
  6178. # Set sane defaults for various variables
  6179. test -z "$CC" && CC=cc
  6180. test -z "$LTCC" && LTCC=$CC
  6181. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6182. test -z "$LD" && LD=ld
  6183. test -z "$ac_objext" && ac_objext=o
  6184. for cc_temp in $compiler""; do
  6185. case $cc_temp in
  6186. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6187. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6188. \-*) ;;
  6189. *) break;;
  6190. esac
  6191. done
  6192. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6193. # Only perform the check for file, if the check method requires it
  6194. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6195. case $deplibs_check_method in
  6196. file_magic*)
  6197. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6199. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6200. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. case $MAGIC_CMD in
  6204. [\\/*] | ?:[\\/]*)
  6205. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6206. ;;
  6207. *)
  6208. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6209. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6210. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6211. for ac_dir in $ac_dummy; do
  6212. IFS="$lt_save_ifs"
  6213. test -z "$ac_dir" && ac_dir=.
  6214. if test -f $ac_dir/${ac_tool_prefix}file; then
  6215. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6216. if test -n "$file_magic_test_file"; then
  6217. case $deplibs_check_method in
  6218. "file_magic "*)
  6219. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6220. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6221. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6222. $EGREP "$file_magic_regex" > /dev/null; then
  6223. :
  6224. else
  6225. cat <<_LT_EOF 1>&2
  6226. *** Warning: the command libtool uses to detect shared libraries,
  6227. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6228. *** The result is that libtool may fail to recognize shared libraries
  6229. *** as such. This will affect the creation of libtool libraries that
  6230. *** depend on shared libraries, but programs linked with such libtool
  6231. *** libraries will work regardless of this problem. Nevertheless, you
  6232. *** may want to report the problem to your system manager and/or to
  6233. *** bug-libtool@gnu.org
  6234. _LT_EOF
  6235. fi ;;
  6236. esac
  6237. fi
  6238. break
  6239. fi
  6240. done
  6241. IFS="$lt_save_ifs"
  6242. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6243. ;;
  6244. esac
  6245. fi
  6246. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6247. if test -n "$MAGIC_CMD"; then
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6249. $as_echo "$MAGIC_CMD" >&6; }
  6250. else
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6252. $as_echo "no" >&6; }
  6253. fi
  6254. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6255. if test -n "$ac_tool_prefix"; then
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6257. $as_echo_n "checking for file... " >&6; }
  6258. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. case $MAGIC_CMD in
  6262. [\\/*] | ?:[\\/]*)
  6263. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6264. ;;
  6265. *)
  6266. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6267. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6268. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6269. for ac_dir in $ac_dummy; do
  6270. IFS="$lt_save_ifs"
  6271. test -z "$ac_dir" && ac_dir=.
  6272. if test -f $ac_dir/file; then
  6273. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6274. if test -n "$file_magic_test_file"; then
  6275. case $deplibs_check_method in
  6276. "file_magic "*)
  6277. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6278. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6279. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6280. $EGREP "$file_magic_regex" > /dev/null; then
  6281. :
  6282. else
  6283. cat <<_LT_EOF 1>&2
  6284. *** Warning: the command libtool uses to detect shared libraries,
  6285. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6286. *** The result is that libtool may fail to recognize shared libraries
  6287. *** as such. This will affect the creation of libtool libraries that
  6288. *** depend on shared libraries, but programs linked with such libtool
  6289. *** libraries will work regardless of this problem. Nevertheless, you
  6290. *** may want to report the problem to your system manager and/or to
  6291. *** bug-libtool@gnu.org
  6292. _LT_EOF
  6293. fi ;;
  6294. esac
  6295. fi
  6296. break
  6297. fi
  6298. done
  6299. IFS="$lt_save_ifs"
  6300. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6301. ;;
  6302. esac
  6303. fi
  6304. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6305. if test -n "$MAGIC_CMD"; then
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6307. $as_echo "$MAGIC_CMD" >&6; }
  6308. else
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. $as_echo "no" >&6; }
  6311. fi
  6312. else
  6313. MAGIC_CMD=:
  6314. fi
  6315. fi
  6316. fi
  6317. ;;
  6318. esac
  6319. # Use C for the default configuration in the libtool script
  6320. lt_save_CC="$CC"
  6321. ac_ext=c
  6322. ac_cpp='$CPP $CPPFLAGS'
  6323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6326. # Source file extension for C test sources.
  6327. ac_ext=c
  6328. # Object file extension for compiled C test sources.
  6329. objext=o
  6330. objext=$objext
  6331. # Code to be used in simple compile tests
  6332. lt_simple_compile_test_code="int some_variable = 0;"
  6333. # Code to be used in simple link tests
  6334. lt_simple_link_test_code='int main(){return(0);}'
  6335. # If no C compiler was specified, use CC.
  6336. LTCC=${LTCC-"$CC"}
  6337. # If no C compiler flags were specified, use CFLAGS.
  6338. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6339. # Allow CC to be a program name with arguments.
  6340. compiler=$CC
  6341. # Save the default compiler, since it gets overwritten when the other
  6342. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6343. compiler_DEFAULT=$CC
  6344. # save warnings/boilerplate of simple test code
  6345. ac_outfile=conftest.$ac_objext
  6346. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6347. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6348. _lt_compiler_boilerplate=`cat conftest.err`
  6349. $RM conftest*
  6350. ac_outfile=conftest.$ac_objext
  6351. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6352. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6353. _lt_linker_boilerplate=`cat conftest.err`
  6354. $RM -r conftest*
  6355. if test -n "$compiler"; then
  6356. lt_prog_compiler_no_builtin_flag=
  6357. if test "$GCC" = yes; then
  6358. case $cc_basename in
  6359. nvcc*)
  6360. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6361. *)
  6362. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6363. esac
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6365. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6366. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. lt_cv_prog_compiler_rtti_exceptions=no
  6370. ac_outfile=conftest.$ac_objext
  6371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6372. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6373. # Insert the option either (1) after the last *FLAGS variable, or
  6374. # (2) before a word containing "conftest.", or (3) at the end.
  6375. # Note that $ac_compile itself does not contain backslashes and begins
  6376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6377. # The option is referenced via a variable to avoid confusing sed.
  6378. lt_compile=`echo "$ac_compile" | $SED \
  6379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6381. -e 's:$: $lt_compiler_flag:'`
  6382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6383. (eval "$lt_compile" 2>conftest.err)
  6384. ac_status=$?
  6385. cat conftest.err >&5
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. if (exit $ac_status) && test -s "$ac_outfile"; then
  6388. # The compiler can only warn and ignore the option if not recognized
  6389. # So say no if there are warnings other than the usual output.
  6390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6393. lt_cv_prog_compiler_rtti_exceptions=yes
  6394. fi
  6395. fi
  6396. $RM conftest*
  6397. fi
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6399. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6400. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6401. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6402. else
  6403. :
  6404. fi
  6405. fi
  6406. lt_prog_compiler_wl=
  6407. lt_prog_compiler_pic=
  6408. lt_prog_compiler_static=
  6409. if test "$GCC" = yes; then
  6410. lt_prog_compiler_wl='-Wl,'
  6411. lt_prog_compiler_static='-static'
  6412. case $host_os in
  6413. aix*)
  6414. # All AIX code is PIC.
  6415. if test "$host_cpu" = ia64; then
  6416. # AIX 5 now supports IA64 processor
  6417. lt_prog_compiler_static='-Bstatic'
  6418. fi
  6419. ;;
  6420. amigaos*)
  6421. case $host_cpu in
  6422. powerpc)
  6423. # see comment about AmigaOS4 .so support
  6424. lt_prog_compiler_pic='-fPIC'
  6425. ;;
  6426. m68k)
  6427. # FIXME: we need at least 68020 code to build shared libraries, but
  6428. # adding the `-m68020' flag to GCC prevents building anything better,
  6429. # like `-m68040'.
  6430. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6431. ;;
  6432. esac
  6433. ;;
  6434. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6435. # PIC is the default for these OSes.
  6436. ;;
  6437. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6438. # This hack is so that the source file can tell whether it is being
  6439. # built for inclusion in a dll (and should export symbols for example).
  6440. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6441. # (--disable-auto-import) libraries
  6442. lt_prog_compiler_pic='-DDLL_EXPORT'
  6443. ;;
  6444. darwin* | rhapsody*)
  6445. # PIC is the default on this platform
  6446. # Common symbols not allowed in MH_DYLIB files
  6447. lt_prog_compiler_pic='-fno-common'
  6448. ;;
  6449. haiku*)
  6450. # PIC is the default for Haiku.
  6451. # The "-static" flag exists, but is broken.
  6452. lt_prog_compiler_static=
  6453. ;;
  6454. hpux*)
  6455. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6456. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6457. # sets the default TLS model and affects inlining.
  6458. case $host_cpu in
  6459. hppa*64*)
  6460. # +Z the default
  6461. ;;
  6462. *)
  6463. lt_prog_compiler_pic='-fPIC'
  6464. ;;
  6465. esac
  6466. ;;
  6467. interix[3-9]*)
  6468. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6469. # Instead, we relocate shared libraries at runtime.
  6470. ;;
  6471. msdosdjgpp*)
  6472. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6473. # on systems that don't support them.
  6474. lt_prog_compiler_can_build_shared=no
  6475. enable_shared=no
  6476. ;;
  6477. *nto* | *qnx*)
  6478. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6479. # it will coredump.
  6480. lt_prog_compiler_pic='-fPIC -shared'
  6481. ;;
  6482. sysv4*MP*)
  6483. if test -d /usr/nec; then
  6484. lt_prog_compiler_pic=-Kconform_pic
  6485. fi
  6486. ;;
  6487. *)
  6488. lt_prog_compiler_pic='-fPIC'
  6489. ;;
  6490. esac
  6491. case $cc_basename in
  6492. nvcc*) # Cuda Compiler Driver 2.2
  6493. lt_prog_compiler_wl='-Xlinker '
  6494. if test -n "$lt_prog_compiler_pic"; then
  6495. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6496. fi
  6497. ;;
  6498. esac
  6499. else
  6500. # PORTME Check for flag to pass linker flags through the system compiler.
  6501. case $host_os in
  6502. aix*)
  6503. lt_prog_compiler_wl='-Wl,'
  6504. if test "$host_cpu" = ia64; then
  6505. # AIX 5 now supports IA64 processor
  6506. lt_prog_compiler_static='-Bstatic'
  6507. else
  6508. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6509. fi
  6510. ;;
  6511. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6512. # This hack is so that the source file can tell whether it is being
  6513. # built for inclusion in a dll (and should export symbols for example).
  6514. lt_prog_compiler_pic='-DDLL_EXPORT'
  6515. ;;
  6516. hpux9* | hpux10* | hpux11*)
  6517. lt_prog_compiler_wl='-Wl,'
  6518. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6519. # not for PA HP-UX.
  6520. case $host_cpu in
  6521. hppa*64*|ia64*)
  6522. # +Z the default
  6523. ;;
  6524. *)
  6525. lt_prog_compiler_pic='+Z'
  6526. ;;
  6527. esac
  6528. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6529. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6530. ;;
  6531. irix5* | irix6* | nonstopux*)
  6532. lt_prog_compiler_wl='-Wl,'
  6533. # PIC (with -KPIC) is the default.
  6534. lt_prog_compiler_static='-non_shared'
  6535. ;;
  6536. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6537. case $cc_basename in
  6538. # old Intel for x86_64 which still supported -KPIC.
  6539. ecc*)
  6540. lt_prog_compiler_wl='-Wl,'
  6541. lt_prog_compiler_pic='-KPIC'
  6542. lt_prog_compiler_static='-static'
  6543. ;;
  6544. # icc used to be incompatible with GCC.
  6545. # ICC 10 doesn't accept -KPIC any more.
  6546. icc* | ifort*)
  6547. lt_prog_compiler_wl='-Wl,'
  6548. lt_prog_compiler_pic='-fPIC'
  6549. lt_prog_compiler_static='-static'
  6550. ;;
  6551. # Lahey Fortran 8.1.
  6552. lf95*)
  6553. lt_prog_compiler_wl='-Wl,'
  6554. lt_prog_compiler_pic='--shared'
  6555. lt_prog_compiler_static='--static'
  6556. ;;
  6557. nagfor*)
  6558. # NAG Fortran compiler
  6559. lt_prog_compiler_wl='-Wl,-Wl,,'
  6560. lt_prog_compiler_pic='-PIC'
  6561. lt_prog_compiler_static='-Bstatic'
  6562. ;;
  6563. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6564. # Portland Group compilers (*not* the Pentium gcc compiler,
  6565. # which looks to be a dead project)
  6566. lt_prog_compiler_wl='-Wl,'
  6567. lt_prog_compiler_pic='-fpic'
  6568. lt_prog_compiler_static='-Bstatic'
  6569. ;;
  6570. ccc*)
  6571. lt_prog_compiler_wl='-Wl,'
  6572. # All Alpha code is PIC.
  6573. lt_prog_compiler_static='-non_shared'
  6574. ;;
  6575. xl* | bgxl* | bgf* | mpixl*)
  6576. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6577. lt_prog_compiler_wl='-Wl,'
  6578. lt_prog_compiler_pic='-qpic'
  6579. lt_prog_compiler_static='-qstaticlink'
  6580. ;;
  6581. *)
  6582. case `$CC -V 2>&1 | sed 5q` in
  6583. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6584. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6585. lt_prog_compiler_pic='-KPIC'
  6586. lt_prog_compiler_static='-Bstatic'
  6587. lt_prog_compiler_wl=''
  6588. ;;
  6589. *Sun\ F* | *Sun*Fortran*)
  6590. lt_prog_compiler_pic='-KPIC'
  6591. lt_prog_compiler_static='-Bstatic'
  6592. lt_prog_compiler_wl='-Qoption ld '
  6593. ;;
  6594. *Sun\ C*)
  6595. # Sun C 5.9
  6596. lt_prog_compiler_pic='-KPIC'
  6597. lt_prog_compiler_static='-Bstatic'
  6598. lt_prog_compiler_wl='-Wl,'
  6599. ;;
  6600. *Intel*\ [CF]*Compiler*)
  6601. lt_prog_compiler_wl='-Wl,'
  6602. lt_prog_compiler_pic='-fPIC'
  6603. lt_prog_compiler_static='-static'
  6604. ;;
  6605. *Portland\ Group*)
  6606. lt_prog_compiler_wl='-Wl,'
  6607. lt_prog_compiler_pic='-fpic'
  6608. lt_prog_compiler_static='-Bstatic'
  6609. ;;
  6610. esac
  6611. ;;
  6612. esac
  6613. ;;
  6614. newsos6)
  6615. lt_prog_compiler_pic='-KPIC'
  6616. lt_prog_compiler_static='-Bstatic'
  6617. ;;
  6618. *nto* | *qnx*)
  6619. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6620. # it will coredump.
  6621. lt_prog_compiler_pic='-fPIC -shared'
  6622. ;;
  6623. osf3* | osf4* | osf5*)
  6624. lt_prog_compiler_wl='-Wl,'
  6625. # All OSF/1 code is PIC.
  6626. lt_prog_compiler_static='-non_shared'
  6627. ;;
  6628. rdos*)
  6629. lt_prog_compiler_static='-non_shared'
  6630. ;;
  6631. solaris*)
  6632. lt_prog_compiler_pic='-KPIC'
  6633. lt_prog_compiler_static='-Bstatic'
  6634. case $cc_basename in
  6635. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6636. lt_prog_compiler_wl='-Qoption ld ';;
  6637. *)
  6638. lt_prog_compiler_wl='-Wl,';;
  6639. esac
  6640. ;;
  6641. sunos4*)
  6642. lt_prog_compiler_wl='-Qoption ld '
  6643. lt_prog_compiler_pic='-PIC'
  6644. lt_prog_compiler_static='-Bstatic'
  6645. ;;
  6646. sysv4 | sysv4.2uw2* | sysv4.3*)
  6647. lt_prog_compiler_wl='-Wl,'
  6648. lt_prog_compiler_pic='-KPIC'
  6649. lt_prog_compiler_static='-Bstatic'
  6650. ;;
  6651. sysv4*MP*)
  6652. if test -d /usr/nec ;then
  6653. lt_prog_compiler_pic='-Kconform_pic'
  6654. lt_prog_compiler_static='-Bstatic'
  6655. fi
  6656. ;;
  6657. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6658. lt_prog_compiler_wl='-Wl,'
  6659. lt_prog_compiler_pic='-KPIC'
  6660. lt_prog_compiler_static='-Bstatic'
  6661. ;;
  6662. unicos*)
  6663. lt_prog_compiler_wl='-Wl,'
  6664. lt_prog_compiler_can_build_shared=no
  6665. ;;
  6666. uts4*)
  6667. lt_prog_compiler_pic='-pic'
  6668. lt_prog_compiler_static='-Bstatic'
  6669. ;;
  6670. *)
  6671. lt_prog_compiler_can_build_shared=no
  6672. ;;
  6673. esac
  6674. fi
  6675. case $host_os in
  6676. # For platforms which do not support PIC, -DPIC is meaningless:
  6677. *djgpp*)
  6678. lt_prog_compiler_pic=
  6679. ;;
  6680. *)
  6681. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6682. ;;
  6683. esac
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6685. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6686. if ${lt_cv_prog_compiler_pic+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  6690. fi
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  6692. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  6693. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  6694. #
  6695. # Check to make sure the PIC flag actually works.
  6696. #
  6697. if test -n "$lt_prog_compiler_pic"; then
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6699. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6700. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. lt_cv_prog_compiler_pic_works=no
  6704. ac_outfile=conftest.$ac_objext
  6705. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6706. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6707. # Insert the option either (1) after the last *FLAGS variable, or
  6708. # (2) before a word containing "conftest.", or (3) at the end.
  6709. # Note that $ac_compile itself does not contain backslashes and begins
  6710. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6711. # The option is referenced via a variable to avoid confusing sed.
  6712. lt_compile=`echo "$ac_compile" | $SED \
  6713. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6714. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6715. -e 's:$: $lt_compiler_flag:'`
  6716. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6717. (eval "$lt_compile" 2>conftest.err)
  6718. ac_status=$?
  6719. cat conftest.err >&5
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. if (exit $ac_status) && test -s "$ac_outfile"; then
  6722. # The compiler can only warn and ignore the option if not recognized
  6723. # So say no if there are warnings other than the usual output.
  6724. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6725. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6726. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6727. lt_cv_prog_compiler_pic_works=yes
  6728. fi
  6729. fi
  6730. $RM conftest*
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6733. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6734. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6735. case $lt_prog_compiler_pic in
  6736. "" | " "*) ;;
  6737. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6738. esac
  6739. else
  6740. lt_prog_compiler_pic=
  6741. lt_prog_compiler_can_build_shared=no
  6742. fi
  6743. fi
  6744. #
  6745. # Check to make sure the static flag actually works.
  6746. #
  6747. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6749. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6750. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. lt_cv_prog_compiler_static_works=no
  6754. save_LDFLAGS="$LDFLAGS"
  6755. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6756. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6757. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6758. # The linker can only warn and ignore the option if not recognized
  6759. # So say no if there are warnings
  6760. if test -s conftest.err; then
  6761. # Append any errors to the config.log.
  6762. cat conftest.err 1>&5
  6763. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6764. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6765. if diff conftest.exp conftest.er2 >/dev/null; then
  6766. lt_cv_prog_compiler_static_works=yes
  6767. fi
  6768. else
  6769. lt_cv_prog_compiler_static_works=yes
  6770. fi
  6771. fi
  6772. $RM -r conftest*
  6773. LDFLAGS="$save_LDFLAGS"
  6774. fi
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6776. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6777. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6778. :
  6779. else
  6780. lt_prog_compiler_static=
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6783. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6784. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6785. $as_echo_n "(cached) " >&6
  6786. else
  6787. lt_cv_prog_compiler_c_o=no
  6788. $RM -r conftest 2>/dev/null
  6789. mkdir conftest
  6790. cd conftest
  6791. mkdir out
  6792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6793. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6794. # Insert the option either (1) after the last *FLAGS variable, or
  6795. # (2) before a word containing "conftest.", or (3) at the end.
  6796. # Note that $ac_compile itself does not contain backslashes and begins
  6797. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6798. lt_compile=`echo "$ac_compile" | $SED \
  6799. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6800. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6801. -e 's:$: $lt_compiler_flag:'`
  6802. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6803. (eval "$lt_compile" 2>out/conftest.err)
  6804. ac_status=$?
  6805. cat out/conftest.err >&5
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6808. then
  6809. # The compiler can only warn and ignore the option if not recognized
  6810. # So say no if there are warnings
  6811. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6812. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6813. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6814. lt_cv_prog_compiler_c_o=yes
  6815. fi
  6816. fi
  6817. chmod u+w . 2>&5
  6818. $RM conftest*
  6819. # SGI C++ compiler will create directory out/ii_files/ for
  6820. # template instantiation
  6821. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6822. $RM out/* && rmdir out
  6823. cd ..
  6824. $RM -r conftest
  6825. $RM conftest*
  6826. fi
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6828. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6830. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6831. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. lt_cv_prog_compiler_c_o=no
  6835. $RM -r conftest 2>/dev/null
  6836. mkdir conftest
  6837. cd conftest
  6838. mkdir out
  6839. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6840. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6841. # Insert the option either (1) after the last *FLAGS variable, or
  6842. # (2) before a word containing "conftest.", or (3) at the end.
  6843. # Note that $ac_compile itself does not contain backslashes and begins
  6844. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6845. lt_compile=`echo "$ac_compile" | $SED \
  6846. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6847. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6848. -e 's:$: $lt_compiler_flag:'`
  6849. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6850. (eval "$lt_compile" 2>out/conftest.err)
  6851. ac_status=$?
  6852. cat out/conftest.err >&5
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6855. then
  6856. # The compiler can only warn and ignore the option if not recognized
  6857. # So say no if there are warnings
  6858. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6859. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6860. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6861. lt_cv_prog_compiler_c_o=yes
  6862. fi
  6863. fi
  6864. chmod u+w . 2>&5
  6865. $RM conftest*
  6866. # SGI C++ compiler will create directory out/ii_files/ for
  6867. # template instantiation
  6868. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6869. $RM out/* && rmdir out
  6870. cd ..
  6871. $RM -r conftest
  6872. $RM conftest*
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6875. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6876. hard_links="nottested"
  6877. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6878. # do not overwrite the value of need_locks provided by the user
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6880. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6881. hard_links=yes
  6882. $RM conftest*
  6883. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6884. touch conftest.a
  6885. ln conftest.a conftest.b 2>&5 || hard_links=no
  6886. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6888. $as_echo "$hard_links" >&6; }
  6889. if test "$hard_links" = no; then
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6891. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6892. need_locks=warn
  6893. fi
  6894. else
  6895. need_locks=no
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6898. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6899. runpath_var=
  6900. allow_undefined_flag=
  6901. always_export_symbols=no
  6902. archive_cmds=
  6903. archive_expsym_cmds=
  6904. compiler_needs_object=no
  6905. enable_shared_with_static_runtimes=no
  6906. export_dynamic_flag_spec=
  6907. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6908. hardcode_automatic=no
  6909. hardcode_direct=no
  6910. hardcode_direct_absolute=no
  6911. hardcode_libdir_flag_spec=
  6912. hardcode_libdir_separator=
  6913. hardcode_minus_L=no
  6914. hardcode_shlibpath_var=unsupported
  6915. inherit_rpath=no
  6916. link_all_deplibs=unknown
  6917. module_cmds=
  6918. module_expsym_cmds=
  6919. old_archive_from_new_cmds=
  6920. old_archive_from_expsyms_cmds=
  6921. thread_safe_flag_spec=
  6922. whole_archive_flag_spec=
  6923. # include_expsyms should be a list of space-separated symbols to be *always*
  6924. # included in the symbol list
  6925. include_expsyms=
  6926. # exclude_expsyms can be an extended regexp of symbols to exclude
  6927. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6928. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6929. # as well as any symbol that contains `d'.
  6930. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6931. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6932. # platforms (ab)use it in PIC code, but their linkers get confused if
  6933. # the symbol is explicitly referenced. Since portable code cannot
  6934. # rely on this symbol name, it's probably fine to never include it in
  6935. # preloaded symbol tables.
  6936. # Exclude shared library initialization/finalization symbols.
  6937. extract_expsyms_cmds=
  6938. case $host_os in
  6939. cygwin* | mingw* | pw32* | cegcc*)
  6940. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6941. # When not using gcc, we currently assume that we are using
  6942. # Microsoft Visual C++.
  6943. if test "$GCC" != yes; then
  6944. with_gnu_ld=no
  6945. fi
  6946. ;;
  6947. interix*)
  6948. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6949. with_gnu_ld=yes
  6950. ;;
  6951. openbsd*)
  6952. with_gnu_ld=no
  6953. ;;
  6954. esac
  6955. ld_shlibs=yes
  6956. # On some targets, GNU ld is compatible enough with the native linker
  6957. # that we're better off using the native interface for both.
  6958. lt_use_gnu_ld_interface=no
  6959. if test "$with_gnu_ld" = yes; then
  6960. case $host_os in
  6961. aix*)
  6962. # The AIX port of GNU ld has always aspired to compatibility
  6963. # with the native linker. However, as the warning in the GNU ld
  6964. # block says, versions before 2.19.5* couldn't really create working
  6965. # shared libraries, regardless of the interface used.
  6966. case `$LD -v 2>&1` in
  6967. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  6968. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  6969. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  6970. *)
  6971. lt_use_gnu_ld_interface=yes
  6972. ;;
  6973. esac
  6974. ;;
  6975. *)
  6976. lt_use_gnu_ld_interface=yes
  6977. ;;
  6978. esac
  6979. fi
  6980. if test "$lt_use_gnu_ld_interface" = yes; then
  6981. # If archive_cmds runs LD, not CC, wlarc should be empty
  6982. wlarc='${wl}'
  6983. # Set some defaults for GNU ld with shared library support. These
  6984. # are reset later if shared libraries are not supported. Putting them
  6985. # here allows them to be overridden if necessary.
  6986. runpath_var=LD_RUN_PATH
  6987. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6988. export_dynamic_flag_spec='${wl}--export-dynamic'
  6989. # ancient GNU ld didn't support --whole-archive et. al.
  6990. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6991. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6992. else
  6993. whole_archive_flag_spec=
  6994. fi
  6995. supports_anon_versioning=no
  6996. case `$LD -v 2>&1` in
  6997. *GNU\ gold*) supports_anon_versioning=yes ;;
  6998. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6999. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7000. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7001. *\ 2.11.*) ;; # other 2.11 versions
  7002. *) supports_anon_versioning=yes ;;
  7003. esac
  7004. # See if GNU ld supports shared libraries.
  7005. case $host_os in
  7006. aix[3-9]*)
  7007. # On AIX/PPC, the GNU linker is very broken
  7008. if test "$host_cpu" != ia64; then
  7009. ld_shlibs=no
  7010. cat <<_LT_EOF 1>&2
  7011. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7012. *** to be unable to reliably create shared libraries on AIX.
  7013. *** Therefore, libtool is disabling shared libraries support. If you
  7014. *** really care for shared libraries, you may want to install binutils
  7015. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7016. *** You will then need to restart the configuration process.
  7017. _LT_EOF
  7018. fi
  7019. ;;
  7020. amigaos*)
  7021. case $host_cpu in
  7022. powerpc)
  7023. # see comment about AmigaOS4 .so support
  7024. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7025. archive_expsym_cmds=''
  7026. ;;
  7027. m68k)
  7028. 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)'
  7029. hardcode_libdir_flag_spec='-L$libdir'
  7030. hardcode_minus_L=yes
  7031. ;;
  7032. esac
  7033. ;;
  7034. beos*)
  7035. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7036. allow_undefined_flag=unsupported
  7037. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7038. # support --undefined. This deserves some investigation. FIXME
  7039. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7040. else
  7041. ld_shlibs=no
  7042. fi
  7043. ;;
  7044. cygwin* | mingw* | pw32* | cegcc*)
  7045. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7046. # as there is no search path for DLLs.
  7047. hardcode_libdir_flag_spec='-L$libdir'
  7048. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7049. allow_undefined_flag=unsupported
  7050. always_export_symbols=no
  7051. enable_shared_with_static_runtimes=yes
  7052. 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'
  7053. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7054. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7055. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7056. # If the export-symbols file already is a .def file (1st line
  7057. # is EXPORTS), use it as is; otherwise, prepend...
  7058. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7059. cp $export_symbols $output_objdir/$soname.def;
  7060. else
  7061. echo EXPORTS > $output_objdir/$soname.def;
  7062. cat $export_symbols >> $output_objdir/$soname.def;
  7063. fi~
  7064. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7065. else
  7066. ld_shlibs=no
  7067. fi
  7068. ;;
  7069. haiku*)
  7070. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7071. link_all_deplibs=yes
  7072. ;;
  7073. interix[3-9]*)
  7074. hardcode_direct=no
  7075. hardcode_shlibpath_var=no
  7076. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7077. export_dynamic_flag_spec='${wl}-E'
  7078. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7079. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7080. # default) and relocated if they conflict, which is a slow very memory
  7081. # consuming and fragmenting process. To avoid this, we pick a random,
  7082. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7083. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7084. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7085. 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'
  7086. ;;
  7087. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7088. tmp_diet=no
  7089. if test "$host_os" = linux-dietlibc; then
  7090. case $cc_basename in
  7091. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7092. esac
  7093. fi
  7094. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7095. && test "$tmp_diet" = no
  7096. then
  7097. tmp_addflag=' $pic_flag'
  7098. tmp_sharedflag='-shared'
  7099. case $cc_basename,$host_cpu in
  7100. pgcc*) # Portland Group C compiler
  7101. 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'
  7102. tmp_addflag=' $pic_flag'
  7103. ;;
  7104. pgf77* | pgf90* | pgf95* | pgfortran*)
  7105. # Portland Group f77 and f90 compilers
  7106. 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'
  7107. tmp_addflag=' $pic_flag -Mnomain' ;;
  7108. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7109. tmp_addflag=' -i_dynamic' ;;
  7110. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7111. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7112. ifc* | ifort*) # Intel Fortran compiler
  7113. tmp_addflag=' -nofor_main' ;;
  7114. lf95*) # Lahey Fortran 8.1
  7115. whole_archive_flag_spec=
  7116. tmp_sharedflag='--shared' ;;
  7117. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7118. tmp_sharedflag='-qmkshrobj'
  7119. tmp_addflag= ;;
  7120. nvcc*) # Cuda Compiler Driver 2.2
  7121. 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'
  7122. compiler_needs_object=yes
  7123. ;;
  7124. esac
  7125. case `$CC -V 2>&1 | sed 5q` in
  7126. *Sun\ C*) # Sun C 5.9
  7127. 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'
  7128. compiler_needs_object=yes
  7129. tmp_sharedflag='-G' ;;
  7130. *Sun\ F*) # Sun Fortran 8.3
  7131. tmp_sharedflag='-G' ;;
  7132. esac
  7133. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7134. if test "x$supports_anon_versioning" = xyes; then
  7135. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7136. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7137. echo "local: *; };" >> $output_objdir/$libname.ver~
  7138. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7139. fi
  7140. case $cc_basename in
  7141. xlf* | bgf* | bgxlf* | mpixlf*)
  7142. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7143. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7144. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7145. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7146. if test "x$supports_anon_versioning" = xyes; then
  7147. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7148. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7149. echo "local: *; };" >> $output_objdir/$libname.ver~
  7150. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7151. fi
  7152. ;;
  7153. esac
  7154. else
  7155. ld_shlibs=no
  7156. fi
  7157. ;;
  7158. netbsd*)
  7159. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7160. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7161. wlarc=
  7162. else
  7163. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7164. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7165. fi
  7166. ;;
  7167. solaris*)
  7168. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7169. ld_shlibs=no
  7170. cat <<_LT_EOF 1>&2
  7171. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7172. *** create shared libraries on Solaris systems. Therefore, libtool
  7173. *** is disabling shared libraries support. We urge you to upgrade GNU
  7174. *** binutils to release 2.9.1 or newer. Another option is to modify
  7175. *** your PATH or compiler configuration so that the native linker is
  7176. *** used, and then restart.
  7177. _LT_EOF
  7178. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7179. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7180. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7181. else
  7182. ld_shlibs=no
  7183. fi
  7184. ;;
  7185. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7186. case `$LD -v 2>&1` in
  7187. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7188. ld_shlibs=no
  7189. cat <<_LT_EOF 1>&2
  7190. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7191. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7192. *** is disabling shared libraries support. We urge you to upgrade GNU
  7193. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7194. *** your PATH or compiler configuration so that the native linker is
  7195. *** used, and then restart.
  7196. _LT_EOF
  7197. ;;
  7198. *)
  7199. # For security reasons, it is highly recommended that you always
  7200. # use absolute paths for naming shared libraries, and exclude the
  7201. # DT_RUNPATH tag from executables and libraries. But doing so
  7202. # requires that you compile everything twice, which is a pain.
  7203. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7204. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7205. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7206. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7207. else
  7208. ld_shlibs=no
  7209. fi
  7210. ;;
  7211. esac
  7212. ;;
  7213. sunos4*)
  7214. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7215. wlarc=
  7216. hardcode_direct=yes
  7217. hardcode_shlibpath_var=no
  7218. ;;
  7219. *)
  7220. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7221. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7222. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7223. else
  7224. ld_shlibs=no
  7225. fi
  7226. ;;
  7227. esac
  7228. if test "$ld_shlibs" = no; then
  7229. runpath_var=
  7230. hardcode_libdir_flag_spec=
  7231. export_dynamic_flag_spec=
  7232. whole_archive_flag_spec=
  7233. fi
  7234. else
  7235. # PORTME fill in a description of your system's linker (not GNU ld)
  7236. case $host_os in
  7237. aix3*)
  7238. allow_undefined_flag=unsupported
  7239. always_export_symbols=yes
  7240. 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'
  7241. # Note: this linker hardcodes the directories in LIBPATH if there
  7242. # are no directories specified by -L.
  7243. hardcode_minus_L=yes
  7244. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7245. # Neither direct hardcoding nor static linking is supported with a
  7246. # broken collect2.
  7247. hardcode_direct=unsupported
  7248. fi
  7249. ;;
  7250. aix[4-9]*)
  7251. if test "$host_cpu" = ia64; then
  7252. # On IA64, the linker does run time linking by default, so we don't
  7253. # have to do anything special.
  7254. aix_use_runtimelinking=no
  7255. exp_sym_flag='-Bexport'
  7256. no_entry_flag=""
  7257. else
  7258. # If we're using GNU nm, then we don't want the "-C" option.
  7259. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7260. # Also, AIX nm treats weak defined symbols like other global
  7261. # defined symbols, whereas GNU nm marks them as "W".
  7262. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7263. 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'
  7264. else
  7265. 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'
  7266. fi
  7267. aix_use_runtimelinking=no
  7268. # Test if we are trying to use run time linking or normal
  7269. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7270. # need to do runtime linking.
  7271. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7272. for ld_flag in $LDFLAGS; do
  7273. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7274. aix_use_runtimelinking=yes
  7275. break
  7276. fi
  7277. done
  7278. ;;
  7279. esac
  7280. exp_sym_flag='-bexport'
  7281. no_entry_flag='-bnoentry'
  7282. fi
  7283. # When large executables or shared objects are built, AIX ld can
  7284. # have problems creating the table of contents. If linking a library
  7285. # or program results in "error TOC overflow" add -mminimal-toc to
  7286. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7287. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7288. archive_cmds=''
  7289. hardcode_direct=yes
  7290. hardcode_direct_absolute=yes
  7291. hardcode_libdir_separator=':'
  7292. link_all_deplibs=yes
  7293. file_list_spec='${wl}-f,'
  7294. if test "$GCC" = yes; then
  7295. case $host_os in aix4.[012]|aix4.[012].*)
  7296. # We only want to do this on AIX 4.2 and lower, the check
  7297. # below for broken collect2 doesn't work under 4.3+
  7298. collect2name=`${CC} -print-prog-name=collect2`
  7299. if test -f "$collect2name" &&
  7300. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7301. then
  7302. # We have reworked collect2
  7303. :
  7304. else
  7305. # We have old collect2
  7306. hardcode_direct=unsupported
  7307. # It fails to find uninstalled libraries when the uninstalled
  7308. # path is not listed in the libpath. Setting hardcode_minus_L
  7309. # to unsupported forces relinking
  7310. hardcode_minus_L=yes
  7311. hardcode_libdir_flag_spec='-L$libdir'
  7312. hardcode_libdir_separator=
  7313. fi
  7314. ;;
  7315. esac
  7316. shared_flag='-shared'
  7317. if test "$aix_use_runtimelinking" = yes; then
  7318. shared_flag="$shared_flag "'${wl}-G'
  7319. fi
  7320. else
  7321. # not using gcc
  7322. if test "$host_cpu" = ia64; then
  7323. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7324. # chokes on -Wl,-G. The following line is correct:
  7325. shared_flag='-G'
  7326. else
  7327. if test "$aix_use_runtimelinking" = yes; then
  7328. shared_flag='${wl}-G'
  7329. else
  7330. shared_flag='${wl}-bM:SRE'
  7331. fi
  7332. fi
  7333. fi
  7334. export_dynamic_flag_spec='${wl}-bexpall'
  7335. # It seems that -bexpall does not export symbols beginning with
  7336. # underscore (_), so it is better to generate a list of symbols to export.
  7337. always_export_symbols=yes
  7338. if test "$aix_use_runtimelinking" = yes; then
  7339. # Warning - without using the other runtime loading flags (-brtl),
  7340. # -berok will link without error, but may produce a broken library.
  7341. allow_undefined_flag='-berok'
  7342. # Determine the default libpath from the value encoded in an
  7343. # empty executable.
  7344. if test "${lt_cv_aix_libpath+set}" = set; then
  7345. aix_libpath=$lt_cv_aix_libpath
  7346. else
  7347. if ${lt_cv_aix_libpath_+:} false; then :
  7348. $as_echo_n "(cached) " >&6
  7349. else
  7350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7351. /* end confdefs.h. */
  7352. int
  7353. main ()
  7354. {
  7355. ;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. if ac_fn_c_try_link "$LINENO"; then :
  7360. lt_aix_libpath_sed='
  7361. /Import File Strings/,/^$/ {
  7362. /^0/ {
  7363. s/^0 *\([^ ]*\) *$/\1/
  7364. p
  7365. }
  7366. }'
  7367. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7368. # Check for a 64-bit object if we didn't find anything.
  7369. if test -z "$lt_cv_aix_libpath_"; then
  7370. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7371. fi
  7372. fi
  7373. rm -f core conftest.err conftest.$ac_objext \
  7374. conftest$ac_exeext conftest.$ac_ext
  7375. if test -z "$lt_cv_aix_libpath_"; then
  7376. lt_cv_aix_libpath_="/usr/lib:/lib"
  7377. fi
  7378. fi
  7379. aix_libpath=$lt_cv_aix_libpath_
  7380. fi
  7381. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7382. 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"
  7383. else
  7384. if test "$host_cpu" = ia64; then
  7385. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7386. allow_undefined_flag="-z nodefs"
  7387. 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"
  7388. else
  7389. # Determine the default libpath from the value encoded in an
  7390. # empty executable.
  7391. if test "${lt_cv_aix_libpath+set}" = set; then
  7392. aix_libpath=$lt_cv_aix_libpath
  7393. else
  7394. if ${lt_cv_aix_libpath_+:} false; then :
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7398. /* end confdefs.h. */
  7399. int
  7400. main ()
  7401. {
  7402. ;
  7403. return 0;
  7404. }
  7405. _ACEOF
  7406. if ac_fn_c_try_link "$LINENO"; then :
  7407. lt_aix_libpath_sed='
  7408. /Import File Strings/,/^$/ {
  7409. /^0/ {
  7410. s/^0 *\([^ ]*\) *$/\1/
  7411. p
  7412. }
  7413. }'
  7414. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7415. # Check for a 64-bit object if we didn't find anything.
  7416. if test -z "$lt_cv_aix_libpath_"; then
  7417. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7418. fi
  7419. fi
  7420. rm -f core conftest.err conftest.$ac_objext \
  7421. conftest$ac_exeext conftest.$ac_ext
  7422. if test -z "$lt_cv_aix_libpath_"; then
  7423. lt_cv_aix_libpath_="/usr/lib:/lib"
  7424. fi
  7425. fi
  7426. aix_libpath=$lt_cv_aix_libpath_
  7427. fi
  7428. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7429. # Warning - without using the other run time loading flags,
  7430. # -berok will link without error, but may produce a broken library.
  7431. no_undefined_flag=' ${wl}-bernotok'
  7432. allow_undefined_flag=' ${wl}-berok'
  7433. if test "$with_gnu_ld" = yes; then
  7434. # We only use this code for GNU lds that support --whole-archive.
  7435. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7436. else
  7437. # Exported symbols can be pulled into shared objects from archives
  7438. whole_archive_flag_spec='$convenience'
  7439. fi
  7440. archive_cmds_need_lc=yes
  7441. # This is similar to how AIX traditionally builds its shared libraries.
  7442. 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'
  7443. fi
  7444. fi
  7445. ;;
  7446. amigaos*)
  7447. case $host_cpu in
  7448. powerpc)
  7449. # see comment about AmigaOS4 .so support
  7450. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7451. archive_expsym_cmds=''
  7452. ;;
  7453. m68k)
  7454. 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)'
  7455. hardcode_libdir_flag_spec='-L$libdir'
  7456. hardcode_minus_L=yes
  7457. ;;
  7458. esac
  7459. ;;
  7460. bsdi[45]*)
  7461. export_dynamic_flag_spec=-rdynamic
  7462. ;;
  7463. cygwin* | mingw* | pw32* | cegcc*)
  7464. # When not using gcc, we currently assume that we are using
  7465. # Microsoft Visual C++.
  7466. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7467. # no search path for DLLs.
  7468. case $cc_basename in
  7469. cl*)
  7470. # Native MSVC
  7471. hardcode_libdir_flag_spec=' '
  7472. allow_undefined_flag=unsupported
  7473. always_export_symbols=yes
  7474. file_list_spec='@'
  7475. # Tell ltmain to make .lib files, not .a files.
  7476. libext=lib
  7477. # Tell ltmain to make .dll files, not .so files.
  7478. shrext_cmds=".dll"
  7479. # FIXME: Setting linknames here is a bad hack.
  7480. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7481. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7482. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7483. else
  7484. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7485. fi~
  7486. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7487. linknames='
  7488. # The linker will not automatically build a static lib if we build a DLL.
  7489. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7490. enable_shared_with_static_runtimes=yes
  7491. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7492. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7493. # Don't use ranlib
  7494. old_postinstall_cmds='chmod 644 $oldlib'
  7495. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7496. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7497. case $lt_outputfile in
  7498. *.exe|*.EXE) ;;
  7499. *)
  7500. lt_outputfile="$lt_outputfile.exe"
  7501. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7502. ;;
  7503. esac~
  7504. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7505. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7506. $RM "$lt_outputfile.manifest";
  7507. fi'
  7508. ;;
  7509. *)
  7510. # Assume MSVC wrapper
  7511. hardcode_libdir_flag_spec=' '
  7512. allow_undefined_flag=unsupported
  7513. # Tell ltmain to make .lib files, not .a files.
  7514. libext=lib
  7515. # Tell ltmain to make .dll files, not .so files.
  7516. shrext_cmds=".dll"
  7517. # FIXME: Setting linknames here is a bad hack.
  7518. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7519. # The linker will automatically build a .lib file if we build a DLL.
  7520. old_archive_from_new_cmds='true'
  7521. # FIXME: Should let the user specify the lib program.
  7522. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7523. enable_shared_with_static_runtimes=yes
  7524. ;;
  7525. esac
  7526. ;;
  7527. darwin* | rhapsody*)
  7528. archive_cmds_need_lc=no
  7529. hardcode_direct=no
  7530. hardcode_automatic=yes
  7531. hardcode_shlibpath_var=unsupported
  7532. if test "$lt_cv_ld_force_load" = "yes"; then
  7533. 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\"`'
  7534. else
  7535. whole_archive_flag_spec=''
  7536. fi
  7537. link_all_deplibs=yes
  7538. allow_undefined_flag="$_lt_dar_allow_undefined"
  7539. case $cc_basename in
  7540. ifort*) _lt_dar_can_shared=yes ;;
  7541. *) _lt_dar_can_shared=$GCC ;;
  7542. esac
  7543. if test "$_lt_dar_can_shared" = "yes"; then
  7544. output_verbose_link_cmd=func_echo_all
  7545. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7546. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7547. 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}"
  7548. 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}"
  7549. else
  7550. ld_shlibs=no
  7551. fi
  7552. ;;
  7553. dgux*)
  7554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7555. hardcode_libdir_flag_spec='-L$libdir'
  7556. hardcode_shlibpath_var=no
  7557. ;;
  7558. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7559. # support. Future versions do this automatically, but an explicit c++rt0.o
  7560. # does not break anything, and helps significantly (at the cost of a little
  7561. # extra space).
  7562. freebsd2.2*)
  7563. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7564. hardcode_libdir_flag_spec='-R$libdir'
  7565. hardcode_direct=yes
  7566. hardcode_shlibpath_var=no
  7567. ;;
  7568. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7569. freebsd2.*)
  7570. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7571. hardcode_direct=yes
  7572. hardcode_minus_L=yes
  7573. hardcode_shlibpath_var=no
  7574. ;;
  7575. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7576. freebsd* | dragonfly*)
  7577. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7578. hardcode_libdir_flag_spec='-R$libdir'
  7579. hardcode_direct=yes
  7580. hardcode_shlibpath_var=no
  7581. ;;
  7582. hpux9*)
  7583. if test "$GCC" = yes; then
  7584. 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'
  7585. else
  7586. 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'
  7587. fi
  7588. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7589. hardcode_libdir_separator=:
  7590. hardcode_direct=yes
  7591. # hardcode_minus_L: Not really in the search PATH,
  7592. # but as the default location of the library.
  7593. hardcode_minus_L=yes
  7594. export_dynamic_flag_spec='${wl}-E'
  7595. ;;
  7596. hpux10*)
  7597. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7598. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7599. else
  7600. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7601. fi
  7602. if test "$with_gnu_ld" = no; then
  7603. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7604. hardcode_libdir_separator=:
  7605. hardcode_direct=yes
  7606. hardcode_direct_absolute=yes
  7607. export_dynamic_flag_spec='${wl}-E'
  7608. # hardcode_minus_L: Not really in the search PATH,
  7609. # but as the default location of the library.
  7610. hardcode_minus_L=yes
  7611. fi
  7612. ;;
  7613. hpux11*)
  7614. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7615. case $host_cpu in
  7616. hppa*64*)
  7617. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7618. ;;
  7619. ia64*)
  7620. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7621. ;;
  7622. *)
  7623. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7624. ;;
  7625. esac
  7626. else
  7627. case $host_cpu in
  7628. hppa*64*)
  7629. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7630. ;;
  7631. ia64*)
  7632. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7633. ;;
  7634. *)
  7635. # Older versions of the 11.00 compiler do not understand -b yet
  7636. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7638. $as_echo_n "checking if $CC understands -b... " >&6; }
  7639. if ${lt_cv_prog_compiler__b+:} false; then :
  7640. $as_echo_n "(cached) " >&6
  7641. else
  7642. lt_cv_prog_compiler__b=no
  7643. save_LDFLAGS="$LDFLAGS"
  7644. LDFLAGS="$LDFLAGS -b"
  7645. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7646. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7647. # The linker can only warn and ignore the option if not recognized
  7648. # So say no if there are warnings
  7649. if test -s conftest.err; then
  7650. # Append any errors to the config.log.
  7651. cat conftest.err 1>&5
  7652. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7654. if diff conftest.exp conftest.er2 >/dev/null; then
  7655. lt_cv_prog_compiler__b=yes
  7656. fi
  7657. else
  7658. lt_cv_prog_compiler__b=yes
  7659. fi
  7660. fi
  7661. $RM -r conftest*
  7662. LDFLAGS="$save_LDFLAGS"
  7663. fi
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7665. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7666. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7667. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7668. else
  7669. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7670. fi
  7671. ;;
  7672. esac
  7673. fi
  7674. if test "$with_gnu_ld" = no; then
  7675. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7676. hardcode_libdir_separator=:
  7677. case $host_cpu in
  7678. hppa*64*|ia64*)
  7679. hardcode_direct=no
  7680. hardcode_shlibpath_var=no
  7681. ;;
  7682. *)
  7683. hardcode_direct=yes
  7684. hardcode_direct_absolute=yes
  7685. export_dynamic_flag_spec='${wl}-E'
  7686. # hardcode_minus_L: Not really in the search PATH,
  7687. # but as the default location of the library.
  7688. hardcode_minus_L=yes
  7689. ;;
  7690. esac
  7691. fi
  7692. ;;
  7693. irix5* | irix6* | nonstopux*)
  7694. if test "$GCC" = yes; then
  7695. 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'
  7696. # Try to use the -exported_symbol ld option, if it does not
  7697. # work, assume that -exports_file does not work either and
  7698. # implicitly export all symbols.
  7699. # This should be the same for all languages, so no per-tag cache variable.
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  7701. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  7702. if ${lt_cv_irix_exported_symbol+:} false; then :
  7703. $as_echo_n "(cached) " >&6
  7704. else
  7705. save_LDFLAGS="$LDFLAGS"
  7706. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7708. /* end confdefs.h. */
  7709. int foo (void) { return 0; }
  7710. _ACEOF
  7711. if ac_fn_c_try_link "$LINENO"; then :
  7712. lt_cv_irix_exported_symbol=yes
  7713. else
  7714. lt_cv_irix_exported_symbol=no
  7715. fi
  7716. rm -f core conftest.err conftest.$ac_objext \
  7717. conftest$ac_exeext conftest.$ac_ext
  7718. LDFLAGS="$save_LDFLAGS"
  7719. fi
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  7721. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  7722. if test "$lt_cv_irix_exported_symbol" = yes; then
  7723. 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'
  7724. fi
  7725. else
  7726. 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'
  7727. 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'
  7728. fi
  7729. archive_cmds_need_lc='no'
  7730. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7731. hardcode_libdir_separator=:
  7732. inherit_rpath=yes
  7733. link_all_deplibs=yes
  7734. ;;
  7735. netbsd*)
  7736. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7737. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7738. else
  7739. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7740. fi
  7741. hardcode_libdir_flag_spec='-R$libdir'
  7742. hardcode_direct=yes
  7743. hardcode_shlibpath_var=no
  7744. ;;
  7745. newsos6)
  7746. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7747. hardcode_direct=yes
  7748. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7749. hardcode_libdir_separator=:
  7750. hardcode_shlibpath_var=no
  7751. ;;
  7752. *nto* | *qnx*)
  7753. ;;
  7754. openbsd*)
  7755. if test -f /usr/libexec/ld.so; then
  7756. hardcode_direct=yes
  7757. hardcode_shlibpath_var=no
  7758. hardcode_direct_absolute=yes
  7759. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7760. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7761. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7762. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7763. export_dynamic_flag_spec='${wl}-E'
  7764. else
  7765. case $host_os in
  7766. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7767. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7768. hardcode_libdir_flag_spec='-R$libdir'
  7769. ;;
  7770. *)
  7771. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7772. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7773. ;;
  7774. esac
  7775. fi
  7776. else
  7777. ld_shlibs=no
  7778. fi
  7779. ;;
  7780. os2*)
  7781. hardcode_libdir_flag_spec='-L$libdir'
  7782. hardcode_minus_L=yes
  7783. allow_undefined_flag=unsupported
  7784. 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'
  7785. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7786. ;;
  7787. osf3*)
  7788. if test "$GCC" = yes; then
  7789. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7790. 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'
  7791. else
  7792. allow_undefined_flag=' -expect_unresolved \*'
  7793. 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'
  7794. fi
  7795. archive_cmds_need_lc='no'
  7796. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7797. hardcode_libdir_separator=:
  7798. ;;
  7799. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7800. if test "$GCC" = yes; then
  7801. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7802. 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'
  7803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7804. else
  7805. allow_undefined_flag=' -expect_unresolved \*'
  7806. 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'
  7807. 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~
  7808. $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'
  7809. # Both c and cxx compiler support -rpath directly
  7810. hardcode_libdir_flag_spec='-rpath $libdir'
  7811. fi
  7812. archive_cmds_need_lc='no'
  7813. hardcode_libdir_separator=:
  7814. ;;
  7815. solaris*)
  7816. no_undefined_flag=' -z defs'
  7817. if test "$GCC" = yes; then
  7818. wlarc='${wl}'
  7819. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7820. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7821. $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'
  7822. else
  7823. case `$CC -V 2>&1` in
  7824. *"Compilers 5.0"*)
  7825. wlarc=''
  7826. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7828. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7829. ;;
  7830. *)
  7831. wlarc='${wl}'
  7832. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7833. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7834. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7835. ;;
  7836. esac
  7837. fi
  7838. hardcode_libdir_flag_spec='-R$libdir'
  7839. hardcode_shlibpath_var=no
  7840. case $host_os in
  7841. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7842. *)
  7843. # The compiler driver will combine and reorder linker options,
  7844. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7845. # but is careful enough not to reorder.
  7846. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7847. if test "$GCC" = yes; then
  7848. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7849. else
  7850. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7851. fi
  7852. ;;
  7853. esac
  7854. link_all_deplibs=yes
  7855. ;;
  7856. sunos4*)
  7857. if test "x$host_vendor" = xsequent; then
  7858. # Use $CC to link under sequent, because it throws in some extra .o
  7859. # files that make .init and .fini sections work.
  7860. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7861. else
  7862. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7863. fi
  7864. hardcode_libdir_flag_spec='-L$libdir'
  7865. hardcode_direct=yes
  7866. hardcode_minus_L=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. sysv4)
  7870. case $host_vendor in
  7871. sni)
  7872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7873. hardcode_direct=yes # is this really true???
  7874. ;;
  7875. siemens)
  7876. ## LD is ld it makes a PLAMLIB
  7877. ## CC just makes a GrossModule.
  7878. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7879. reload_cmds='$CC -r -o $output$reload_objs'
  7880. hardcode_direct=no
  7881. ;;
  7882. motorola)
  7883. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7884. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7885. ;;
  7886. esac
  7887. runpath_var='LD_RUN_PATH'
  7888. hardcode_shlibpath_var=no
  7889. ;;
  7890. sysv4.3*)
  7891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7892. hardcode_shlibpath_var=no
  7893. export_dynamic_flag_spec='-Bexport'
  7894. ;;
  7895. sysv4*MP*)
  7896. if test -d /usr/nec; then
  7897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7898. hardcode_shlibpath_var=no
  7899. runpath_var=LD_RUN_PATH
  7900. hardcode_runpath_var=yes
  7901. ld_shlibs=yes
  7902. fi
  7903. ;;
  7904. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7905. no_undefined_flag='${wl}-z,text'
  7906. archive_cmds_need_lc=no
  7907. hardcode_shlibpath_var=no
  7908. runpath_var='LD_RUN_PATH'
  7909. if test "$GCC" = yes; then
  7910. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7911. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7912. else
  7913. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7914. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7915. fi
  7916. ;;
  7917. sysv5* | sco3.2v5* | sco5v6*)
  7918. # Note: We can NOT use -z defs as we might desire, because we do not
  7919. # link with -lc, and that would cause any symbols used from libc to
  7920. # always be unresolved, which means just about no library would
  7921. # ever link correctly. If we're not using GNU ld we use -z text
  7922. # though, which does catch some bad symbols but isn't as heavy-handed
  7923. # as -z defs.
  7924. no_undefined_flag='${wl}-z,text'
  7925. allow_undefined_flag='${wl}-z,nodefs'
  7926. archive_cmds_need_lc=no
  7927. hardcode_shlibpath_var=no
  7928. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7929. hardcode_libdir_separator=':'
  7930. link_all_deplibs=yes
  7931. export_dynamic_flag_spec='${wl}-Bexport'
  7932. runpath_var='LD_RUN_PATH'
  7933. if test "$GCC" = yes; then
  7934. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7935. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7936. else
  7937. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7938. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7939. fi
  7940. ;;
  7941. uts4*)
  7942. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7943. hardcode_libdir_flag_spec='-L$libdir'
  7944. hardcode_shlibpath_var=no
  7945. ;;
  7946. *)
  7947. ld_shlibs=no
  7948. ;;
  7949. esac
  7950. if test x$host_vendor = xsni; then
  7951. case $host in
  7952. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7953. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7954. ;;
  7955. esac
  7956. fi
  7957. fi
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7959. $as_echo "$ld_shlibs" >&6; }
  7960. test "$ld_shlibs" = no && can_build_shared=no
  7961. with_gnu_ld=$with_gnu_ld
  7962. #
  7963. # Do we need to explicitly link libc?
  7964. #
  7965. case "x$archive_cmds_need_lc" in
  7966. x|xyes)
  7967. # Assume -lc should be added
  7968. archive_cmds_need_lc=yes
  7969. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7970. case $archive_cmds in
  7971. *'~'*)
  7972. # FIXME: we may have to deal with multi-command sequences.
  7973. ;;
  7974. '$CC '*)
  7975. # Test whether the compiler implicitly links with -lc since on some
  7976. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7977. # to ld, don't add -lc before -lgcc.
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7979. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7980. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  7981. $as_echo_n "(cached) " >&6
  7982. else
  7983. $RM conftest*
  7984. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7985. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7986. (eval $ac_compile) 2>&5
  7987. ac_status=$?
  7988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7989. test $ac_status = 0; } 2>conftest.err; then
  7990. soname=conftest
  7991. lib=conftest
  7992. libobjs=conftest.$ac_objext
  7993. deplibs=
  7994. wl=$lt_prog_compiler_wl
  7995. pic_flag=$lt_prog_compiler_pic
  7996. compiler_flags=-v
  7997. linker_flags=-v
  7998. verstring=
  7999. output_objdir=.
  8000. libname=conftest
  8001. lt_save_allow_undefined_flag=$allow_undefined_flag
  8002. allow_undefined_flag=
  8003. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8004. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8005. ac_status=$?
  8006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8007. test $ac_status = 0; }
  8008. then
  8009. lt_cv_archive_cmds_need_lc=no
  8010. else
  8011. lt_cv_archive_cmds_need_lc=yes
  8012. fi
  8013. allow_undefined_flag=$lt_save_allow_undefined_flag
  8014. else
  8015. cat conftest.err 1>&5
  8016. fi
  8017. $RM conftest*
  8018. fi
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8020. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8021. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8022. ;;
  8023. esac
  8024. fi
  8025. ;;
  8026. esac
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8028. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8029. if test "$GCC" = yes; then
  8030. case $host_os in
  8031. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8032. *) lt_awk_arg="/^libraries:/" ;;
  8033. esac
  8034. case $host_os in
  8035. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8036. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8037. esac
  8038. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8039. case $lt_search_path_spec in
  8040. *\;*)
  8041. # if the path contains ";" then we assume it to be the separator
  8042. # otherwise default to the standard path separator (i.e. ":") - it is
  8043. # assumed that no part of a normal pathname contains ";" but that should
  8044. # okay in the real world where ";" in dirpaths is itself problematic.
  8045. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8046. ;;
  8047. *)
  8048. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8049. ;;
  8050. esac
  8051. # Ok, now we have the path, separated by spaces, we can step through it
  8052. # and add multilib dir if necessary.
  8053. lt_tmp_lt_search_path_spec=
  8054. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8055. for lt_sys_path in $lt_search_path_spec; do
  8056. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8057. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8058. else
  8059. test -d "$lt_sys_path" && \
  8060. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8061. fi
  8062. done
  8063. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8064. BEGIN {RS=" "; FS="/|\n";} {
  8065. lt_foo="";
  8066. lt_count=0;
  8067. for (lt_i = NF; lt_i > 0; lt_i--) {
  8068. if ($lt_i != "" && $lt_i != ".") {
  8069. if ($lt_i == "..") {
  8070. lt_count++;
  8071. } else {
  8072. if (lt_count == 0) {
  8073. lt_foo="/" $lt_i lt_foo;
  8074. } else {
  8075. lt_count--;
  8076. }
  8077. }
  8078. }
  8079. }
  8080. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8081. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8082. }'`
  8083. # AWK program above erroneously prepends '/' to C:/dos/paths
  8084. # for these hosts.
  8085. case $host_os in
  8086. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8087. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8088. esac
  8089. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8090. else
  8091. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8092. fi
  8093. library_names_spec=
  8094. libname_spec='lib$name'
  8095. soname_spec=
  8096. shrext_cmds=".so"
  8097. postinstall_cmds=
  8098. postuninstall_cmds=
  8099. finish_cmds=
  8100. finish_eval=
  8101. shlibpath_var=
  8102. shlibpath_overrides_runpath=unknown
  8103. version_type=none
  8104. dynamic_linker="$host_os ld.so"
  8105. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8106. need_lib_prefix=unknown
  8107. hardcode_into_libs=no
  8108. # when you set need_version to no, make sure it does not cause -set_version
  8109. # flags to be left without arguments
  8110. need_version=unknown
  8111. case $host_os in
  8112. aix3*)
  8113. version_type=linux # correct to gnu/linux during the next big refactor
  8114. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8115. shlibpath_var=LIBPATH
  8116. # AIX 3 has no versioning support, so we append a major version to the name.
  8117. soname_spec='${libname}${release}${shared_ext}$major'
  8118. ;;
  8119. aix[4-9]*)
  8120. version_type=linux # correct to gnu/linux during the next big refactor
  8121. need_lib_prefix=no
  8122. need_version=no
  8123. hardcode_into_libs=yes
  8124. if test "$host_cpu" = ia64; then
  8125. # AIX 5 supports IA64
  8126. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8127. shlibpath_var=LD_LIBRARY_PATH
  8128. else
  8129. # With GCC up to 2.95.x, collect2 would create an import file
  8130. # for dependence libraries. The import file would start with
  8131. # the line `#! .'. This would cause the generated library to
  8132. # depend on `.', always an invalid library. This was fixed in
  8133. # development snapshots of GCC prior to 3.0.
  8134. case $host_os in
  8135. aix4 | aix4.[01] | aix4.[01].*)
  8136. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8137. echo ' yes '
  8138. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8139. :
  8140. else
  8141. can_build_shared=no
  8142. fi
  8143. ;;
  8144. esac
  8145. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8146. # soname into executable. Probably we can add versioning support to
  8147. # collect2, so additional links can be useful in future.
  8148. if test "$aix_use_runtimelinking" = yes; then
  8149. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8150. # instead of lib<name>.a to let people know that these are not
  8151. # typical AIX shared libraries.
  8152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8153. else
  8154. # We preserve .a as extension for shared libraries through AIX4.2
  8155. # and later when we are not doing run time linking.
  8156. library_names_spec='${libname}${release}.a $libname.a'
  8157. soname_spec='${libname}${release}${shared_ext}$major'
  8158. fi
  8159. shlibpath_var=LIBPATH
  8160. fi
  8161. ;;
  8162. amigaos*)
  8163. case $host_cpu in
  8164. powerpc)
  8165. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8166. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8168. ;;
  8169. m68k)
  8170. library_names_spec='$libname.ixlibrary $libname.a'
  8171. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8172. 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'
  8173. ;;
  8174. esac
  8175. ;;
  8176. beos*)
  8177. library_names_spec='${libname}${shared_ext}'
  8178. dynamic_linker="$host_os ld.so"
  8179. shlibpath_var=LIBRARY_PATH
  8180. ;;
  8181. bsdi[45]*)
  8182. version_type=linux # correct to gnu/linux during the next big refactor
  8183. need_version=no
  8184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8185. soname_spec='${libname}${release}${shared_ext}$major'
  8186. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8187. shlibpath_var=LD_LIBRARY_PATH
  8188. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8189. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8190. # the default ld.so.conf also contains /usr/contrib/lib and
  8191. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8192. # libtool to hard-code these into programs
  8193. ;;
  8194. cygwin* | mingw* | pw32* | cegcc*)
  8195. version_type=windows
  8196. shrext_cmds=".dll"
  8197. need_version=no
  8198. need_lib_prefix=no
  8199. case $GCC,$cc_basename in
  8200. yes,*)
  8201. # gcc
  8202. library_names_spec='$libname.dll.a'
  8203. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8204. postinstall_cmds='base_file=`basename \${file}`~
  8205. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8206. dldir=$destdir/`dirname \$dlpath`~
  8207. test -d \$dldir || mkdir -p \$dldir~
  8208. $install_prog $dir/$dlname \$dldir/$dlname~
  8209. chmod a+x \$dldir/$dlname~
  8210. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8211. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8212. fi'
  8213. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8214. dlpath=$dir/\$dldll~
  8215. $RM \$dlpath'
  8216. shlibpath_overrides_runpath=yes
  8217. case $host_os in
  8218. cygwin*)
  8219. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8220. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8221. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8222. ;;
  8223. mingw* | cegcc*)
  8224. # MinGW DLLs use traditional 'lib' prefix
  8225. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8226. ;;
  8227. pw32*)
  8228. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8229. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8230. ;;
  8231. esac
  8232. dynamic_linker='Win32 ld.exe'
  8233. ;;
  8234. *,cl*)
  8235. # Native MSVC
  8236. libname_spec='$name'
  8237. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8238. library_names_spec='${libname}.dll.lib'
  8239. case $build_os in
  8240. mingw*)
  8241. sys_lib_search_path_spec=
  8242. lt_save_ifs=$IFS
  8243. IFS=';'
  8244. for lt_path in $LIB
  8245. do
  8246. IFS=$lt_save_ifs
  8247. # Let DOS variable expansion print the short 8.3 style file name.
  8248. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8249. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8250. done
  8251. IFS=$lt_save_ifs
  8252. # Convert to MSYS style.
  8253. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8254. ;;
  8255. cygwin*)
  8256. # Convert to unix form, then to dos form, then back to unix form
  8257. # but this time dos style (no spaces!) so that the unix form looks
  8258. # like /cygdrive/c/PROGRA~1:/cygdr...
  8259. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8260. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8261. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8262. ;;
  8263. *)
  8264. sys_lib_search_path_spec="$LIB"
  8265. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8266. # It is most probably a Windows format PATH.
  8267. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8268. else
  8269. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8270. fi
  8271. # FIXME: find the short name or the path components, as spaces are
  8272. # common. (e.g. "Program Files" -> "PROGRA~1")
  8273. ;;
  8274. esac
  8275. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8276. postinstall_cmds='base_file=`basename \${file}`~
  8277. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8278. dldir=$destdir/`dirname \$dlpath`~
  8279. test -d \$dldir || mkdir -p \$dldir~
  8280. $install_prog $dir/$dlname \$dldir/$dlname'
  8281. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8282. dlpath=$dir/\$dldll~
  8283. $RM \$dlpath'
  8284. shlibpath_overrides_runpath=yes
  8285. dynamic_linker='Win32 link.exe'
  8286. ;;
  8287. *)
  8288. # Assume MSVC wrapper
  8289. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8290. dynamic_linker='Win32 ld.exe'
  8291. ;;
  8292. esac
  8293. # FIXME: first we should search . and the directory the executable is in
  8294. shlibpath_var=PATH
  8295. ;;
  8296. darwin* | rhapsody*)
  8297. dynamic_linker="$host_os dyld"
  8298. version_type=darwin
  8299. need_lib_prefix=no
  8300. need_version=no
  8301. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8302. soname_spec='${libname}${release}${major}$shared_ext'
  8303. shlibpath_overrides_runpath=yes
  8304. shlibpath_var=DYLD_LIBRARY_PATH
  8305. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8306. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8307. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8308. ;;
  8309. dgux*)
  8310. version_type=linux # correct to gnu/linux during the next big refactor
  8311. need_lib_prefix=no
  8312. need_version=no
  8313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8314. soname_spec='${libname}${release}${shared_ext}$major'
  8315. shlibpath_var=LD_LIBRARY_PATH
  8316. ;;
  8317. freebsd* | dragonfly*)
  8318. # DragonFly does not have aout. When/if they implement a new
  8319. # versioning mechanism, adjust this.
  8320. if test -x /usr/bin/objformat; then
  8321. objformat=`/usr/bin/objformat`
  8322. else
  8323. case $host_os in
  8324. freebsd[23].*) objformat=aout ;;
  8325. *) objformat=elf ;;
  8326. esac
  8327. fi
  8328. version_type=freebsd-$objformat
  8329. case $version_type in
  8330. freebsd-elf*)
  8331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8332. need_version=no
  8333. need_lib_prefix=no
  8334. ;;
  8335. freebsd-*)
  8336. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8337. need_version=yes
  8338. ;;
  8339. esac
  8340. shlibpath_var=LD_LIBRARY_PATH
  8341. case $host_os in
  8342. freebsd2.*)
  8343. shlibpath_overrides_runpath=yes
  8344. ;;
  8345. freebsd3.[01]* | freebsdelf3.[01]*)
  8346. shlibpath_overrides_runpath=yes
  8347. hardcode_into_libs=yes
  8348. ;;
  8349. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8350. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8351. shlibpath_overrides_runpath=no
  8352. hardcode_into_libs=yes
  8353. ;;
  8354. *) # from 4.6 on, and DragonFly
  8355. shlibpath_overrides_runpath=yes
  8356. hardcode_into_libs=yes
  8357. ;;
  8358. esac
  8359. ;;
  8360. gnu*)
  8361. version_type=linux # correct to gnu/linux during the next big refactor
  8362. need_lib_prefix=no
  8363. need_version=no
  8364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8365. soname_spec='${libname}${release}${shared_ext}$major'
  8366. shlibpath_var=LD_LIBRARY_PATH
  8367. shlibpath_overrides_runpath=no
  8368. hardcode_into_libs=yes
  8369. ;;
  8370. haiku*)
  8371. version_type=linux # correct to gnu/linux during the next big refactor
  8372. need_lib_prefix=no
  8373. need_version=no
  8374. dynamic_linker="$host_os runtime_loader"
  8375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8376. soname_spec='${libname}${release}${shared_ext}$major'
  8377. shlibpath_var=LIBRARY_PATH
  8378. shlibpath_overrides_runpath=yes
  8379. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8380. hardcode_into_libs=yes
  8381. ;;
  8382. hpux9* | hpux10* | hpux11*)
  8383. # Give a soname corresponding to the major version so that dld.sl refuses to
  8384. # link against other versions.
  8385. version_type=sunos
  8386. need_lib_prefix=no
  8387. need_version=no
  8388. case $host_cpu in
  8389. ia64*)
  8390. shrext_cmds='.so'
  8391. hardcode_into_libs=yes
  8392. dynamic_linker="$host_os dld.so"
  8393. shlibpath_var=LD_LIBRARY_PATH
  8394. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8396. soname_spec='${libname}${release}${shared_ext}$major'
  8397. if test "X$HPUX_IA64_MODE" = X32; then
  8398. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8399. else
  8400. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8401. fi
  8402. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8403. ;;
  8404. hppa*64*)
  8405. shrext_cmds='.sl'
  8406. hardcode_into_libs=yes
  8407. dynamic_linker="$host_os dld.sl"
  8408. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8409. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8411. soname_spec='${libname}${release}${shared_ext}$major'
  8412. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8413. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8414. ;;
  8415. *)
  8416. shrext_cmds='.sl'
  8417. dynamic_linker="$host_os dld.sl"
  8418. shlibpath_var=SHLIB_PATH
  8419. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8421. soname_spec='${libname}${release}${shared_ext}$major'
  8422. ;;
  8423. esac
  8424. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8425. postinstall_cmds='chmod 555 $lib'
  8426. # or fails outright, so override atomically:
  8427. install_override_mode=555
  8428. ;;
  8429. interix[3-9]*)
  8430. version_type=linux # correct to gnu/linux during the next big refactor
  8431. need_lib_prefix=no
  8432. need_version=no
  8433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8434. soname_spec='${libname}${release}${shared_ext}$major'
  8435. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8436. shlibpath_var=LD_LIBRARY_PATH
  8437. shlibpath_overrides_runpath=no
  8438. hardcode_into_libs=yes
  8439. ;;
  8440. irix5* | irix6* | nonstopux*)
  8441. case $host_os in
  8442. nonstopux*) version_type=nonstopux ;;
  8443. *)
  8444. if test "$lt_cv_prog_gnu_ld" = yes; then
  8445. version_type=linux # correct to gnu/linux during the next big refactor
  8446. else
  8447. version_type=irix
  8448. fi ;;
  8449. esac
  8450. need_lib_prefix=no
  8451. need_version=no
  8452. soname_spec='${libname}${release}${shared_ext}$major'
  8453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8454. case $host_os in
  8455. irix5* | nonstopux*)
  8456. libsuff= shlibsuff=
  8457. ;;
  8458. *)
  8459. case $LD in # libtool.m4 will add one of these switches to LD
  8460. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8461. libsuff= shlibsuff= libmagic=32-bit;;
  8462. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8463. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8464. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8465. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8466. *) libsuff= shlibsuff= libmagic=never-match;;
  8467. esac
  8468. ;;
  8469. esac
  8470. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8471. shlibpath_overrides_runpath=no
  8472. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8473. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8474. hardcode_into_libs=yes
  8475. ;;
  8476. # No shared lib support for Linux oldld, aout, or coff.
  8477. linux*oldld* | linux*aout* | linux*coff*)
  8478. dynamic_linker=no
  8479. ;;
  8480. # This must be glibc/ELF.
  8481. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8482. version_type=linux # correct to gnu/linux during the next big refactor
  8483. need_lib_prefix=no
  8484. need_version=no
  8485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8486. soname_spec='${libname}${release}${shared_ext}$major'
  8487. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8488. shlibpath_var=LD_LIBRARY_PATH
  8489. shlibpath_overrides_runpath=no
  8490. # Some binutils ld are patched to set DT_RUNPATH
  8491. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8492. $as_echo_n "(cached) " >&6
  8493. else
  8494. lt_cv_shlibpath_overrides_runpath=no
  8495. save_LDFLAGS=$LDFLAGS
  8496. save_libdir=$libdir
  8497. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8498. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8500. /* end confdefs.h. */
  8501. int
  8502. main ()
  8503. {
  8504. ;
  8505. return 0;
  8506. }
  8507. _ACEOF
  8508. if ac_fn_c_try_link "$LINENO"; then :
  8509. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8510. lt_cv_shlibpath_overrides_runpath=yes
  8511. fi
  8512. fi
  8513. rm -f core conftest.err conftest.$ac_objext \
  8514. conftest$ac_exeext conftest.$ac_ext
  8515. LDFLAGS=$save_LDFLAGS
  8516. libdir=$save_libdir
  8517. fi
  8518. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8519. # This implies no fast_install, which is unacceptable.
  8520. # Some rework will be needed to allow for fast_install
  8521. # before this can be enabled.
  8522. hardcode_into_libs=yes
  8523. # Append ld.so.conf contents to the search path
  8524. if test -f /etc/ld.so.conf; then
  8525. 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' ' '`
  8526. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8527. fi
  8528. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8529. # powerpc, because MkLinux only supported shared libraries with the
  8530. # GNU dynamic linker. Since this was broken with cross compilers,
  8531. # most powerpc-linux boxes support dynamic linking these days and
  8532. # people can always --disable-shared, the test was removed, and we
  8533. # assume the GNU/Linux dynamic linker is in use.
  8534. dynamic_linker='GNU/Linux ld.so'
  8535. ;;
  8536. netbsd*)
  8537. version_type=sunos
  8538. need_lib_prefix=no
  8539. need_version=no
  8540. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8542. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8543. dynamic_linker='NetBSD (a.out) ld.so'
  8544. else
  8545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8546. soname_spec='${libname}${release}${shared_ext}$major'
  8547. dynamic_linker='NetBSD ld.elf_so'
  8548. fi
  8549. shlibpath_var=LD_LIBRARY_PATH
  8550. shlibpath_overrides_runpath=yes
  8551. hardcode_into_libs=yes
  8552. ;;
  8553. newsos6)
  8554. version_type=linux # correct to gnu/linux during the next big refactor
  8555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8556. shlibpath_var=LD_LIBRARY_PATH
  8557. shlibpath_overrides_runpath=yes
  8558. ;;
  8559. *nto* | *qnx*)
  8560. version_type=qnx
  8561. need_lib_prefix=no
  8562. need_version=no
  8563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8564. soname_spec='${libname}${release}${shared_ext}$major'
  8565. shlibpath_var=LD_LIBRARY_PATH
  8566. shlibpath_overrides_runpath=no
  8567. hardcode_into_libs=yes
  8568. dynamic_linker='ldqnx.so'
  8569. ;;
  8570. openbsd*)
  8571. version_type=sunos
  8572. sys_lib_dlsearch_path_spec="/usr/lib"
  8573. need_lib_prefix=no
  8574. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8575. case $host_os in
  8576. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8577. *) need_version=no ;;
  8578. esac
  8579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8580. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8581. shlibpath_var=LD_LIBRARY_PATH
  8582. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8583. case $host_os in
  8584. openbsd2.[89] | openbsd2.[89].*)
  8585. shlibpath_overrides_runpath=no
  8586. ;;
  8587. *)
  8588. shlibpath_overrides_runpath=yes
  8589. ;;
  8590. esac
  8591. else
  8592. shlibpath_overrides_runpath=yes
  8593. fi
  8594. ;;
  8595. os2*)
  8596. libname_spec='$name'
  8597. shrext_cmds=".dll"
  8598. need_lib_prefix=no
  8599. library_names_spec='$libname${shared_ext} $libname.a'
  8600. dynamic_linker='OS/2 ld.exe'
  8601. shlibpath_var=LIBPATH
  8602. ;;
  8603. osf3* | osf4* | osf5*)
  8604. version_type=osf
  8605. need_lib_prefix=no
  8606. need_version=no
  8607. soname_spec='${libname}${release}${shared_ext}$major'
  8608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8609. shlibpath_var=LD_LIBRARY_PATH
  8610. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8611. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8612. ;;
  8613. rdos*)
  8614. dynamic_linker=no
  8615. ;;
  8616. solaris*)
  8617. version_type=linux # correct to gnu/linux during the next big refactor
  8618. need_lib_prefix=no
  8619. need_version=no
  8620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8621. soname_spec='${libname}${release}${shared_ext}$major'
  8622. shlibpath_var=LD_LIBRARY_PATH
  8623. shlibpath_overrides_runpath=yes
  8624. hardcode_into_libs=yes
  8625. # ldd complains unless libraries are executable
  8626. postinstall_cmds='chmod +x $lib'
  8627. ;;
  8628. sunos4*)
  8629. version_type=sunos
  8630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8631. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8632. shlibpath_var=LD_LIBRARY_PATH
  8633. shlibpath_overrides_runpath=yes
  8634. if test "$with_gnu_ld" = yes; then
  8635. need_lib_prefix=no
  8636. fi
  8637. need_version=yes
  8638. ;;
  8639. sysv4 | sysv4.3*)
  8640. version_type=linux # correct to gnu/linux during the next big refactor
  8641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8642. soname_spec='${libname}${release}${shared_ext}$major'
  8643. shlibpath_var=LD_LIBRARY_PATH
  8644. case $host_vendor in
  8645. sni)
  8646. shlibpath_overrides_runpath=no
  8647. need_lib_prefix=no
  8648. runpath_var=LD_RUN_PATH
  8649. ;;
  8650. siemens)
  8651. need_lib_prefix=no
  8652. ;;
  8653. motorola)
  8654. need_lib_prefix=no
  8655. need_version=no
  8656. shlibpath_overrides_runpath=no
  8657. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8658. ;;
  8659. esac
  8660. ;;
  8661. sysv4*MP*)
  8662. if test -d /usr/nec ;then
  8663. version_type=linux # correct to gnu/linux during the next big refactor
  8664. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8665. soname_spec='$libname${shared_ext}.$major'
  8666. shlibpath_var=LD_LIBRARY_PATH
  8667. fi
  8668. ;;
  8669. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8670. version_type=freebsd-elf
  8671. need_lib_prefix=no
  8672. need_version=no
  8673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8674. soname_spec='${libname}${release}${shared_ext}$major'
  8675. shlibpath_var=LD_LIBRARY_PATH
  8676. shlibpath_overrides_runpath=yes
  8677. hardcode_into_libs=yes
  8678. if test "$with_gnu_ld" = yes; then
  8679. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8680. else
  8681. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8682. case $host_os in
  8683. sco3.2v5*)
  8684. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8685. ;;
  8686. esac
  8687. fi
  8688. sys_lib_dlsearch_path_spec='/usr/lib'
  8689. ;;
  8690. tpf*)
  8691. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8692. version_type=linux # correct to gnu/linux during the next big refactor
  8693. need_lib_prefix=no
  8694. need_version=no
  8695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8696. shlibpath_var=LD_LIBRARY_PATH
  8697. shlibpath_overrides_runpath=no
  8698. hardcode_into_libs=yes
  8699. ;;
  8700. uts4*)
  8701. version_type=linux # correct to gnu/linux during the next big refactor
  8702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8703. soname_spec='${libname}${release}${shared_ext}$major'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. ;;
  8706. *)
  8707. dynamic_linker=no
  8708. ;;
  8709. esac
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8711. $as_echo "$dynamic_linker" >&6; }
  8712. test "$dynamic_linker" = no && can_build_shared=no
  8713. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8714. if test "$GCC" = yes; then
  8715. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8716. fi
  8717. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8718. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8719. fi
  8720. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8721. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8722. fi
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8724. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8725. hardcode_action=
  8726. if test -n "$hardcode_libdir_flag_spec" ||
  8727. test -n "$runpath_var" ||
  8728. test "X$hardcode_automatic" = "Xyes" ; then
  8729. # We can hardcode non-existent directories.
  8730. if test "$hardcode_direct" != no &&
  8731. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8732. # have to relink, otherwise we might link with an installed library
  8733. # when we should be linking with a yet-to-be-installed one
  8734. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8735. test "$hardcode_minus_L" != no; then
  8736. # Linking always hardcodes the temporary library directory.
  8737. hardcode_action=relink
  8738. else
  8739. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8740. hardcode_action=immediate
  8741. fi
  8742. else
  8743. # We cannot hardcode anything, or else we can only hardcode existing
  8744. # directories.
  8745. hardcode_action=unsupported
  8746. fi
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8748. $as_echo "$hardcode_action" >&6; }
  8749. if test "$hardcode_action" = relink ||
  8750. test "$inherit_rpath" = yes; then
  8751. # Fast installation is not supported
  8752. enable_fast_install=no
  8753. elif test "$shlibpath_overrides_runpath" = yes ||
  8754. test "$enable_shared" = no; then
  8755. # Fast installation is not necessary
  8756. enable_fast_install=needless
  8757. fi
  8758. if test "x$enable_dlopen" != xyes; then
  8759. enable_dlopen=unknown
  8760. enable_dlopen_self=unknown
  8761. enable_dlopen_self_static=unknown
  8762. else
  8763. lt_cv_dlopen=no
  8764. lt_cv_dlopen_libs=
  8765. case $host_os in
  8766. beos*)
  8767. lt_cv_dlopen="load_add_on"
  8768. lt_cv_dlopen_libs=
  8769. lt_cv_dlopen_self=yes
  8770. ;;
  8771. mingw* | pw32* | cegcc*)
  8772. lt_cv_dlopen="LoadLibrary"
  8773. lt_cv_dlopen_libs=
  8774. ;;
  8775. cygwin*)
  8776. lt_cv_dlopen="dlopen"
  8777. lt_cv_dlopen_libs=
  8778. ;;
  8779. darwin*)
  8780. # if libdl is installed we need to link against it
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8782. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8783. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8784. $as_echo_n "(cached) " >&6
  8785. else
  8786. ac_check_lib_save_LIBS=$LIBS
  8787. LIBS="-ldl $LIBS"
  8788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8789. /* end confdefs.h. */
  8790. /* Override any GCC internal prototype to avoid an error.
  8791. Use char because int might match the return type of a GCC
  8792. builtin and then its argument prototype would still apply. */
  8793. #ifdef __cplusplus
  8794. extern "C"
  8795. #endif
  8796. char dlopen ();
  8797. int
  8798. main ()
  8799. {
  8800. return dlopen ();
  8801. ;
  8802. return 0;
  8803. }
  8804. _ACEOF
  8805. if ac_fn_c_try_link "$LINENO"; then :
  8806. ac_cv_lib_dl_dlopen=yes
  8807. else
  8808. ac_cv_lib_dl_dlopen=no
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext \
  8811. conftest$ac_exeext conftest.$ac_ext
  8812. LIBS=$ac_check_lib_save_LIBS
  8813. fi
  8814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8815. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8816. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8817. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8818. else
  8819. lt_cv_dlopen="dyld"
  8820. lt_cv_dlopen_libs=
  8821. lt_cv_dlopen_self=yes
  8822. fi
  8823. ;;
  8824. *)
  8825. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8826. if test "x$ac_cv_func_shl_load" = xyes; then :
  8827. lt_cv_dlopen="shl_load"
  8828. else
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8830. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8831. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8832. $as_echo_n "(cached) " >&6
  8833. else
  8834. ac_check_lib_save_LIBS=$LIBS
  8835. LIBS="-ldld $LIBS"
  8836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8837. /* end confdefs.h. */
  8838. /* Override any GCC internal prototype to avoid an error.
  8839. Use char because int might match the return type of a GCC
  8840. builtin and then its argument prototype would still apply. */
  8841. #ifdef __cplusplus
  8842. extern "C"
  8843. #endif
  8844. char shl_load ();
  8845. int
  8846. main ()
  8847. {
  8848. return shl_load ();
  8849. ;
  8850. return 0;
  8851. }
  8852. _ACEOF
  8853. if ac_fn_c_try_link "$LINENO"; then :
  8854. ac_cv_lib_dld_shl_load=yes
  8855. else
  8856. ac_cv_lib_dld_shl_load=no
  8857. fi
  8858. rm -f core conftest.err conftest.$ac_objext \
  8859. conftest$ac_exeext conftest.$ac_ext
  8860. LIBS=$ac_check_lib_save_LIBS
  8861. fi
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8863. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8864. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8865. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8866. else
  8867. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8868. if test "x$ac_cv_func_dlopen" = xyes; then :
  8869. lt_cv_dlopen="dlopen"
  8870. else
  8871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8872. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8873. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8874. $as_echo_n "(cached) " >&6
  8875. else
  8876. ac_check_lib_save_LIBS=$LIBS
  8877. LIBS="-ldl $LIBS"
  8878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8879. /* end confdefs.h. */
  8880. /* Override any GCC internal prototype to avoid an error.
  8881. Use char because int might match the return type of a GCC
  8882. builtin and then its argument prototype would still apply. */
  8883. #ifdef __cplusplus
  8884. extern "C"
  8885. #endif
  8886. char dlopen ();
  8887. int
  8888. main ()
  8889. {
  8890. return dlopen ();
  8891. ;
  8892. return 0;
  8893. }
  8894. _ACEOF
  8895. if ac_fn_c_try_link "$LINENO"; then :
  8896. ac_cv_lib_dl_dlopen=yes
  8897. else
  8898. ac_cv_lib_dl_dlopen=no
  8899. fi
  8900. rm -f core conftest.err conftest.$ac_objext \
  8901. conftest$ac_exeext conftest.$ac_ext
  8902. LIBS=$ac_check_lib_save_LIBS
  8903. fi
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8905. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8906. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8907. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8908. else
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8910. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8911. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8912. $as_echo_n "(cached) " >&6
  8913. else
  8914. ac_check_lib_save_LIBS=$LIBS
  8915. LIBS="-lsvld $LIBS"
  8916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8917. /* end confdefs.h. */
  8918. /* Override any GCC internal prototype to avoid an error.
  8919. Use char because int might match the return type of a GCC
  8920. builtin and then its argument prototype would still apply. */
  8921. #ifdef __cplusplus
  8922. extern "C"
  8923. #endif
  8924. char dlopen ();
  8925. int
  8926. main ()
  8927. {
  8928. return dlopen ();
  8929. ;
  8930. return 0;
  8931. }
  8932. _ACEOF
  8933. if ac_fn_c_try_link "$LINENO"; then :
  8934. ac_cv_lib_svld_dlopen=yes
  8935. else
  8936. ac_cv_lib_svld_dlopen=no
  8937. fi
  8938. rm -f core conftest.err conftest.$ac_objext \
  8939. conftest$ac_exeext conftest.$ac_ext
  8940. LIBS=$ac_check_lib_save_LIBS
  8941. fi
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8943. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8944. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  8945. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8946. else
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8948. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8949. if ${ac_cv_lib_dld_dld_link+:} false; then :
  8950. $as_echo_n "(cached) " >&6
  8951. else
  8952. ac_check_lib_save_LIBS=$LIBS
  8953. LIBS="-ldld $LIBS"
  8954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8955. /* end confdefs.h. */
  8956. /* Override any GCC internal prototype to avoid an error.
  8957. Use char because int might match the return type of a GCC
  8958. builtin and then its argument prototype would still apply. */
  8959. #ifdef __cplusplus
  8960. extern "C"
  8961. #endif
  8962. char dld_link ();
  8963. int
  8964. main ()
  8965. {
  8966. return dld_link ();
  8967. ;
  8968. return 0;
  8969. }
  8970. _ACEOF
  8971. if ac_fn_c_try_link "$LINENO"; then :
  8972. ac_cv_lib_dld_dld_link=yes
  8973. else
  8974. ac_cv_lib_dld_dld_link=no
  8975. fi
  8976. rm -f core conftest.err conftest.$ac_objext \
  8977. conftest$ac_exeext conftest.$ac_ext
  8978. LIBS=$ac_check_lib_save_LIBS
  8979. fi
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8981. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8982. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  8983. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8984. fi
  8985. fi
  8986. fi
  8987. fi
  8988. fi
  8989. fi
  8990. ;;
  8991. esac
  8992. if test "x$lt_cv_dlopen" != xno; then
  8993. enable_dlopen=yes
  8994. else
  8995. enable_dlopen=no
  8996. fi
  8997. case $lt_cv_dlopen in
  8998. dlopen)
  8999. save_CPPFLAGS="$CPPFLAGS"
  9000. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9001. save_LDFLAGS="$LDFLAGS"
  9002. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9003. save_LIBS="$LIBS"
  9004. LIBS="$lt_cv_dlopen_libs $LIBS"
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9006. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9007. if ${lt_cv_dlopen_self+:} false; then :
  9008. $as_echo_n "(cached) " >&6
  9009. else
  9010. if test "$cross_compiling" = yes; then :
  9011. lt_cv_dlopen_self=cross
  9012. else
  9013. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9014. lt_status=$lt_dlunknown
  9015. cat > conftest.$ac_ext <<_LT_EOF
  9016. #line $LINENO "configure"
  9017. #include "confdefs.h"
  9018. #if HAVE_DLFCN_H
  9019. #include <dlfcn.h>
  9020. #endif
  9021. #include <stdio.h>
  9022. #ifdef RTLD_GLOBAL
  9023. # define LT_DLGLOBAL RTLD_GLOBAL
  9024. #else
  9025. # ifdef DL_GLOBAL
  9026. # define LT_DLGLOBAL DL_GLOBAL
  9027. # else
  9028. # define LT_DLGLOBAL 0
  9029. # endif
  9030. #endif
  9031. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9032. find out it does not work in some platform. */
  9033. #ifndef LT_DLLAZY_OR_NOW
  9034. # ifdef RTLD_LAZY
  9035. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9036. # else
  9037. # ifdef DL_LAZY
  9038. # define LT_DLLAZY_OR_NOW DL_LAZY
  9039. # else
  9040. # ifdef RTLD_NOW
  9041. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9042. # else
  9043. # ifdef DL_NOW
  9044. # define LT_DLLAZY_OR_NOW DL_NOW
  9045. # else
  9046. # define LT_DLLAZY_OR_NOW 0
  9047. # endif
  9048. # endif
  9049. # endif
  9050. # endif
  9051. #endif
  9052. /* When -fvisbility=hidden is used, assume the code has been annotated
  9053. correspondingly for the symbols needed. */
  9054. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9055. int fnord () __attribute__((visibility("default")));
  9056. #endif
  9057. int fnord () { return 42; }
  9058. int main ()
  9059. {
  9060. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9061. int status = $lt_dlunknown;
  9062. if (self)
  9063. {
  9064. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9065. else
  9066. {
  9067. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9068. else puts (dlerror ());
  9069. }
  9070. /* dlclose (self); */
  9071. }
  9072. else
  9073. puts (dlerror ());
  9074. return status;
  9075. }
  9076. _LT_EOF
  9077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9078. (eval $ac_link) 2>&5
  9079. ac_status=$?
  9080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9081. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9082. (./conftest; exit; ) >&5 2>/dev/null
  9083. lt_status=$?
  9084. case x$lt_status in
  9085. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9086. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9087. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9088. esac
  9089. else :
  9090. # compilation failed
  9091. lt_cv_dlopen_self=no
  9092. fi
  9093. fi
  9094. rm -fr conftest*
  9095. fi
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9097. $as_echo "$lt_cv_dlopen_self" >&6; }
  9098. if test "x$lt_cv_dlopen_self" = xyes; then
  9099. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9101. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9102. if ${lt_cv_dlopen_self_static+:} false; then :
  9103. $as_echo_n "(cached) " >&6
  9104. else
  9105. if test "$cross_compiling" = yes; then :
  9106. lt_cv_dlopen_self_static=cross
  9107. else
  9108. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9109. lt_status=$lt_dlunknown
  9110. cat > conftest.$ac_ext <<_LT_EOF
  9111. #line $LINENO "configure"
  9112. #include "confdefs.h"
  9113. #if HAVE_DLFCN_H
  9114. #include <dlfcn.h>
  9115. #endif
  9116. #include <stdio.h>
  9117. #ifdef RTLD_GLOBAL
  9118. # define LT_DLGLOBAL RTLD_GLOBAL
  9119. #else
  9120. # ifdef DL_GLOBAL
  9121. # define LT_DLGLOBAL DL_GLOBAL
  9122. # else
  9123. # define LT_DLGLOBAL 0
  9124. # endif
  9125. #endif
  9126. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9127. find out it does not work in some platform. */
  9128. #ifndef LT_DLLAZY_OR_NOW
  9129. # ifdef RTLD_LAZY
  9130. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9131. # else
  9132. # ifdef DL_LAZY
  9133. # define LT_DLLAZY_OR_NOW DL_LAZY
  9134. # else
  9135. # ifdef RTLD_NOW
  9136. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9137. # else
  9138. # ifdef DL_NOW
  9139. # define LT_DLLAZY_OR_NOW DL_NOW
  9140. # else
  9141. # define LT_DLLAZY_OR_NOW 0
  9142. # endif
  9143. # endif
  9144. # endif
  9145. # endif
  9146. #endif
  9147. /* When -fvisbility=hidden is used, assume the code has been annotated
  9148. correspondingly for the symbols needed. */
  9149. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9150. int fnord () __attribute__((visibility("default")));
  9151. #endif
  9152. int fnord () { return 42; }
  9153. int main ()
  9154. {
  9155. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9156. int status = $lt_dlunknown;
  9157. if (self)
  9158. {
  9159. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9160. else
  9161. {
  9162. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9163. else puts (dlerror ());
  9164. }
  9165. /* dlclose (self); */
  9166. }
  9167. else
  9168. puts (dlerror ());
  9169. return status;
  9170. }
  9171. _LT_EOF
  9172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9173. (eval $ac_link) 2>&5
  9174. ac_status=$?
  9175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9176. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9177. (./conftest; exit; ) >&5 2>/dev/null
  9178. lt_status=$?
  9179. case x$lt_status in
  9180. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9181. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9182. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9183. esac
  9184. else :
  9185. # compilation failed
  9186. lt_cv_dlopen_self_static=no
  9187. fi
  9188. fi
  9189. rm -fr conftest*
  9190. fi
  9191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9192. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9193. fi
  9194. CPPFLAGS="$save_CPPFLAGS"
  9195. LDFLAGS="$save_LDFLAGS"
  9196. LIBS="$save_LIBS"
  9197. ;;
  9198. esac
  9199. case $lt_cv_dlopen_self in
  9200. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9201. *) enable_dlopen_self=unknown ;;
  9202. esac
  9203. case $lt_cv_dlopen_self_static in
  9204. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9205. *) enable_dlopen_self_static=unknown ;;
  9206. esac
  9207. fi
  9208. striplib=
  9209. old_striplib=
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9211. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9212. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9213. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9214. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9216. $as_echo "yes" >&6; }
  9217. else
  9218. # FIXME - insert some real tests, host_os isn't really good enough
  9219. case $host_os in
  9220. darwin*)
  9221. if test -n "$STRIP" ; then
  9222. striplib="$STRIP -x"
  9223. old_striplib="$STRIP -S"
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9225. $as_echo "yes" >&6; }
  9226. else
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9228. $as_echo "no" >&6; }
  9229. fi
  9230. ;;
  9231. *)
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9233. $as_echo "no" >&6; }
  9234. ;;
  9235. esac
  9236. fi
  9237. # Report which library types will actually be built
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9239. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9241. $as_echo "$can_build_shared" >&6; }
  9242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9243. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9244. test "$can_build_shared" = "no" && enable_shared=no
  9245. # On AIX, shared libraries and static libraries use the same namespace, and
  9246. # are all built from PIC.
  9247. case $host_os in
  9248. aix3*)
  9249. test "$enable_shared" = yes && enable_static=no
  9250. if test -n "$RANLIB"; then
  9251. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9252. postinstall_cmds='$RANLIB $lib'
  9253. fi
  9254. ;;
  9255. aix[4-9]*)
  9256. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9257. test "$enable_shared" = yes && enable_static=no
  9258. fi
  9259. ;;
  9260. esac
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9262. $as_echo "$enable_shared" >&6; }
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9264. $as_echo_n "checking whether to build static libraries... " >&6; }
  9265. # Make sure either enable_shared or enable_static is yes.
  9266. test "$enable_shared" = yes || enable_static=yes
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9268. $as_echo "$enable_static" >&6; }
  9269. fi
  9270. ac_ext=c
  9271. ac_cpp='$CPP $CPPFLAGS'
  9272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9275. CC="$lt_save_CC"
  9276. ac_config_commands="$ac_config_commands libtool"
  9277. # Only expand once:
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9279. $as_echo_n "checking for ANSI C header files... " >&6; }
  9280. if ${ac_cv_header_stdc+:} false; then :
  9281. $as_echo_n "(cached) " >&6
  9282. else
  9283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9284. /* end confdefs.h. */
  9285. #include <stdlib.h>
  9286. #include <stdarg.h>
  9287. #include <string.h>
  9288. #include <float.h>
  9289. int
  9290. main ()
  9291. {
  9292. ;
  9293. return 0;
  9294. }
  9295. _ACEOF
  9296. if ac_fn_c_try_compile "$LINENO"; then :
  9297. ac_cv_header_stdc=yes
  9298. else
  9299. ac_cv_header_stdc=no
  9300. fi
  9301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9302. if test $ac_cv_header_stdc = yes; then
  9303. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9305. /* end confdefs.h. */
  9306. #include <string.h>
  9307. _ACEOF
  9308. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9309. $EGREP "memchr" >/dev/null 2>&1; then :
  9310. else
  9311. ac_cv_header_stdc=no
  9312. fi
  9313. rm -f conftest*
  9314. fi
  9315. if test $ac_cv_header_stdc = yes; then
  9316. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9318. /* end confdefs.h. */
  9319. #include <stdlib.h>
  9320. _ACEOF
  9321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9322. $EGREP "free" >/dev/null 2>&1; then :
  9323. else
  9324. ac_cv_header_stdc=no
  9325. fi
  9326. rm -f conftest*
  9327. fi
  9328. if test $ac_cv_header_stdc = yes; then
  9329. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9330. if test "$cross_compiling" = yes; then :
  9331. :
  9332. else
  9333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h. */
  9335. #include <ctype.h>
  9336. #include <stdlib.h>
  9337. #if ((' ' & 0x0FF) == 0x020)
  9338. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9339. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9340. #else
  9341. # define ISLOWER(c) \
  9342. (('a' <= (c) && (c) <= 'i') \
  9343. || ('j' <= (c) && (c) <= 'r') \
  9344. || ('s' <= (c) && (c) <= 'z'))
  9345. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9346. #endif
  9347. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9348. int
  9349. main ()
  9350. {
  9351. int i;
  9352. for (i = 0; i < 256; i++)
  9353. if (XOR (islower (i), ISLOWER (i))
  9354. || toupper (i) != TOUPPER (i))
  9355. return 2;
  9356. return 0;
  9357. }
  9358. _ACEOF
  9359. if ac_fn_c_try_run "$LINENO"; then :
  9360. else
  9361. ac_cv_header_stdc=no
  9362. fi
  9363. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9364. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9365. fi
  9366. fi
  9367. fi
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9369. $as_echo "$ac_cv_header_stdc" >&6; }
  9370. if test $ac_cv_header_stdc = yes; then
  9371. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9372. fi
  9373. for ac_header in stdlib.h string.h strings.h time.h sys/types.h
  9374. do :
  9375. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9376. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9377. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9378. cat >>confdefs.h <<_ACEOF
  9379. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9380. _ACEOF
  9381. fi
  9382. done
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  9384. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  9385. if ${ac_cv_c_const+:} false; then :
  9386. $as_echo_n "(cached) " >&6
  9387. else
  9388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9389. /* end confdefs.h. */
  9390. int
  9391. main ()
  9392. {
  9393. /* FIXME: Include the comments suggested by Paul. */
  9394. #ifndef __cplusplus
  9395. /* Ultrix mips cc rejects this. */
  9396. typedef int charset[2];
  9397. const charset cs;
  9398. /* SunOS 4.1.1 cc rejects this. */
  9399. char const *const *pcpcc;
  9400. char **ppc;
  9401. /* NEC SVR4.0.2 mips cc rejects this. */
  9402. struct point {int x, y;};
  9403. static struct point const zero = {0,0};
  9404. /* AIX XL C 1.02.0.0 rejects this.
  9405. It does not let you subtract one const X* pointer from another in
  9406. an arm of an if-expression whose if-part is not a constant
  9407. expression */
  9408. const char *g = "string";
  9409. pcpcc = &g + (g ? g-g : 0);
  9410. /* HPUX 7.0 cc rejects these. */
  9411. ++pcpcc;
  9412. ppc = (char**) pcpcc;
  9413. pcpcc = (char const *const *) ppc;
  9414. { /* SCO 3.2v4 cc rejects this. */
  9415. char *t;
  9416. char const *s = 0 ? (char *) 0 : (char const *) 0;
  9417. *t++ = 0;
  9418. if (s) return 0;
  9419. }
  9420. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  9421. int x[] = {25, 17};
  9422. const int *foo = &x[0];
  9423. ++foo;
  9424. }
  9425. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  9426. typedef const int *iptr;
  9427. iptr p = 0;
  9428. ++p;
  9429. }
  9430. { /* AIX XL C 1.02.0.0 rejects this saying
  9431. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  9432. struct s { int j; const int *ap[3]; };
  9433. struct s *b; b->j = 5;
  9434. }
  9435. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  9436. const int foo = 10;
  9437. if (!foo) return 0;
  9438. }
  9439. return !cs[0] && !zero.x;
  9440. #endif
  9441. ;
  9442. return 0;
  9443. }
  9444. _ACEOF
  9445. if ac_fn_c_try_compile "$LINENO"; then :
  9446. ac_cv_c_const=yes
  9447. else
  9448. ac_cv_c_const=no
  9449. fi
  9450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9451. fi
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  9453. $as_echo "$ac_cv_c_const" >&6; }
  9454. if test $ac_cv_c_const = no; then
  9455. $as_echo "#define const /**/" >>confdefs.h
  9456. fi
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  9458. $as_echo_n "checking for inline... " >&6; }
  9459. if ${ac_cv_c_inline+:} false; then :
  9460. $as_echo_n "(cached) " >&6
  9461. else
  9462. ac_cv_c_inline=no
  9463. for ac_kw in inline __inline__ __inline; do
  9464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9465. /* end confdefs.h. */
  9466. #ifndef __cplusplus
  9467. typedef int foo_t;
  9468. static $ac_kw foo_t static_foo () {return 0; }
  9469. $ac_kw foo_t foo () {return 0; }
  9470. #endif
  9471. _ACEOF
  9472. if ac_fn_c_try_compile "$LINENO"; then :
  9473. ac_cv_c_inline=$ac_kw
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9476. test "$ac_cv_c_inline" != no && break
  9477. done
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  9480. $as_echo "$ac_cv_c_inline" >&6; }
  9481. case $ac_cv_c_inline in
  9482. inline | yes) ;;
  9483. *)
  9484. case $ac_cv_c_inline in
  9485. no) ac_val=;;
  9486. *) ac_val=$ac_cv_c_inline;;
  9487. esac
  9488. cat >>confdefs.h <<_ACEOF
  9489. #ifndef __cplusplus
  9490. #define inline $ac_val
  9491. #endif
  9492. _ACEOF
  9493. ;;
  9494. esac
  9495. # The cast to long int works around a bug in the HP C Compiler
  9496. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9497. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9498. # This bug is HP SR number 8606223364.
  9499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  9500. $as_echo_n "checking size of long... " >&6; }
  9501. if ${ac_cv_sizeof_long+:} false; then :
  9502. $as_echo_n "(cached) " >&6
  9503. else
  9504. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  9505. else
  9506. if test "$ac_cv_type_long" = yes; then
  9507. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9509. as_fn_error 77 "cannot compute sizeof (long)
  9510. See \`config.log' for more details" "$LINENO" 5; }
  9511. else
  9512. ac_cv_sizeof_long=0
  9513. fi
  9514. fi
  9515. fi
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  9517. $as_echo "$ac_cv_sizeof_long" >&6; }
  9518. cat >>confdefs.h <<_ACEOF
  9519. #define SIZEOF_LONG $ac_cv_sizeof_long
  9520. _ACEOF
  9521. # Check whether --with-mysql was given.
  9522. if test "${with_mysql+set}" = set; then :
  9523. withval=$with_mysql;
  9524. fi
  9525. # Check whether --with-mysql_config was given.
  9526. if test "${with_mysql_config+set}" = set; then :
  9527. withval=$with_mysql_config;
  9528. fi
  9529. # Check whether --with-mysql-includes was given.
  9530. if test "${with_mysql_includes+set}" = set; then :
  9531. withval=$with_mysql_includes;
  9532. fi
  9533. MYSQL_INCLUDES=
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql headers" >&5
  9535. $as_echo_n "checking for mysql headers... " >&6; }
  9536. for i in "$with_mysql_includes" "`$with_mysql_config --include 2>&1|$SED -e's/-I//'`" "$with_mysql/include" /usr/include/mysql; do
  9537. if test -f "$i/mysql.h"; then
  9538. MYSQL_INCLUDES=$i
  9539. break
  9540. fi
  9541. done
  9542. if test -z "$MYSQL_INCLUDES"; then
  9543. as_fn_error $? "could not find mysql headers" "$LINENO" 5
  9544. else
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDES" >&5
  9546. $as_echo "$MYSQL_INCLUDES" >&6; }
  9547. fi
  9548. INCLUDES="-I$MYSQL_INCLUDES $INCLUDES"
  9549. ac_config_files="$ac_config_files Makefile"
  9550. ac_config_headers="$ac_config_headers lib/mysqludf_config.h"
  9551. am__api_version='1.11'
  9552. # Find a good install program. We prefer a C program (faster),
  9553. # so one script is as good as another. But avoid the broken or
  9554. # incompatible versions:
  9555. # SysV /etc/install, /usr/sbin/install
  9556. # SunOS /usr/etc/install
  9557. # IRIX /sbin/install
  9558. # AIX /bin/install
  9559. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9560. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9561. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9562. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9563. # OS/2's system install, which has a completely different semantic
  9564. # ./install, which can be erroneously created by make from ./install.sh.
  9565. # Reject install programs that cannot install multiple files.
  9566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9567. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  9568. if test -z "$INSTALL"; then
  9569. if ${ac_cv_path_install+:} false; then :
  9570. $as_echo_n "(cached) " >&6
  9571. else
  9572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9573. for as_dir in $PATH
  9574. do
  9575. IFS=$as_save_IFS
  9576. test -z "$as_dir" && as_dir=.
  9577. # Account for people who put trailing slashes in PATH elements.
  9578. case $as_dir/ in #((
  9579. ./ | .// | /[cC]/* | \
  9580. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9581. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9582. /usr/ucb/* ) ;;
  9583. *)
  9584. # OSF1 and SCO ODT 3.0 have their own names for install.
  9585. # Don't use installbsd from OSF since it installs stuff as root
  9586. # by default.
  9587. for ac_prog in ginstall scoinst install; do
  9588. for ac_exec_ext in '' $ac_executable_extensions; do
  9589. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  9590. if test $ac_prog = install &&
  9591. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9592. # AIX install. It has an incompatible calling convention.
  9593. :
  9594. elif test $ac_prog = install &&
  9595. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9596. # program-specific install script used by HP pwplus--don't use.
  9597. :
  9598. else
  9599. rm -rf conftest.one conftest.two conftest.dir
  9600. echo one > conftest.one
  9601. echo two > conftest.two
  9602. mkdir conftest.dir
  9603. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  9604. test -s conftest.one && test -s conftest.two &&
  9605. test -s conftest.dir/conftest.one &&
  9606. test -s conftest.dir/conftest.two
  9607. then
  9608. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9609. break 3
  9610. fi
  9611. fi
  9612. fi
  9613. done
  9614. done
  9615. ;;
  9616. esac
  9617. done
  9618. IFS=$as_save_IFS
  9619. rm -rf conftest.one conftest.two conftest.dir
  9620. fi
  9621. if test "${ac_cv_path_install+set}" = set; then
  9622. INSTALL=$ac_cv_path_install
  9623. else
  9624. # As a last resort, use the slow shell script. Don't cache a
  9625. # value for INSTALL within a source directory, because that will
  9626. # break other packages using the cache if that directory is
  9627. # removed, or if the value is a relative name.
  9628. INSTALL=$ac_install_sh
  9629. fi
  9630. fi
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9632. $as_echo "$INSTALL" >&6; }
  9633. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9634. # It thinks the first close brace ends the variable substitution.
  9635. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9636. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9637. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  9639. $as_echo_n "checking whether build environment is sane... " >&6; }
  9640. # Just in case
  9641. sleep 1
  9642. echo timestamp > conftest.file
  9643. # Reject unsafe characters in $srcdir or the absolute working directory
  9644. # name. Accept space and tab only in the latter.
  9645. am_lf='
  9646. '
  9647. case `pwd` in
  9648. *[\\\"\#\$\&\'\`$am_lf]*)
  9649. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  9650. esac
  9651. case $srcdir in
  9652. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  9653. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  9654. esac
  9655. # Do `set' in a subshell so we don't clobber the current shell's
  9656. # arguments. Must try -L first in case configure is actually a
  9657. # symlink; some systems play weird games with the mod time of symlinks
  9658. # (eg FreeBSD returns the mod time of the symlink's containing
  9659. # directory).
  9660. if (
  9661. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9662. if test "$*" = "X"; then
  9663. # -L didn't work.
  9664. set X `ls -t "$srcdir/configure" conftest.file`
  9665. fi
  9666. rm -f conftest.file
  9667. if test "$*" != "X $srcdir/configure conftest.file" \
  9668. && test "$*" != "X conftest.file $srcdir/configure"; then
  9669. # If neither matched, then we have a broken ls. This can happen
  9670. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9671. # broken ls alias from the environment. This has actually
  9672. # happened. Such a system could not be considered "sane".
  9673. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  9674. alias in your environment" "$LINENO" 5
  9675. fi
  9676. test "$2" = conftest.file
  9677. )
  9678. then
  9679. # Ok.
  9680. :
  9681. else
  9682. as_fn_error $? "newly created file is older than distributed files!
  9683. Check your system clock" "$LINENO" 5
  9684. fi
  9685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9686. $as_echo "yes" >&6; }
  9687. test "$program_prefix" != NONE &&
  9688. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  9689. # Use a double $ so make ignores it.
  9690. test "$program_suffix" != NONE &&
  9691. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  9692. # Double any \ or $.
  9693. # By default was `s,x,x', remove it if useless.
  9694. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  9695. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  9696. # expand $ac_aux_dir to an absolute path
  9697. am_aux_dir=`cd $ac_aux_dir && pwd`
  9698. if test x"${MISSING+set}" != xset; then
  9699. case $am_aux_dir in
  9700. *\ * | *\ *)
  9701. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  9702. *)
  9703. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  9704. esac
  9705. fi
  9706. # Use eval to expand $SHELL
  9707. if eval "$MISSING --run true"; then
  9708. am_missing_run="$MISSING --run "
  9709. else
  9710. am_missing_run=
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  9712. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  9713. fi
  9714. if test x"${install_sh}" != xset; then
  9715. case $am_aux_dir in
  9716. *\ * | *\ *)
  9717. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  9718. *)
  9719. install_sh="\${SHELL} $am_aux_dir/install-sh"
  9720. esac
  9721. fi
  9722. # Installed binaries are usually stripped using `strip' when the user
  9723. # run `make install-strip'. However `strip' might not be the right
  9724. # tool to use in cross-compilation environments, therefore Automake
  9725. # will honor the `STRIP' environment variable to overrule this program.
  9726. if test "$cross_compiling" != no; then
  9727. if test -n "$ac_tool_prefix"; then
  9728. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  9729. set dummy ${ac_tool_prefix}strip; ac_word=$2
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9731. $as_echo_n "checking for $ac_word... " >&6; }
  9732. if ${ac_cv_prog_STRIP+:} false; then :
  9733. $as_echo_n "(cached) " >&6
  9734. else
  9735. if test -n "$STRIP"; then
  9736. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9737. else
  9738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9739. for as_dir in $PATH
  9740. do
  9741. IFS=$as_save_IFS
  9742. test -z "$as_dir" && as_dir=.
  9743. for ac_exec_ext in '' $ac_executable_extensions; do
  9744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9745. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  9746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9747. break 2
  9748. fi
  9749. done
  9750. done
  9751. IFS=$as_save_IFS
  9752. fi
  9753. fi
  9754. STRIP=$ac_cv_prog_STRIP
  9755. if test -n "$STRIP"; then
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  9757. $as_echo "$STRIP" >&6; }
  9758. else
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. fi
  9762. fi
  9763. if test -z "$ac_cv_prog_STRIP"; then
  9764. ac_ct_STRIP=$STRIP
  9765. # Extract the first word of "strip", so it can be a program name with args.
  9766. set dummy strip; ac_word=$2
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9768. $as_echo_n "checking for $ac_word... " >&6; }
  9769. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  9770. $as_echo_n "(cached) " >&6
  9771. else
  9772. if test -n "$ac_ct_STRIP"; then
  9773. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  9774. else
  9775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9776. for as_dir in $PATH
  9777. do
  9778. IFS=$as_save_IFS
  9779. test -z "$as_dir" && as_dir=.
  9780. for ac_exec_ext in '' $ac_executable_extensions; do
  9781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9782. ac_cv_prog_ac_ct_STRIP="strip"
  9783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9784. break 2
  9785. fi
  9786. done
  9787. done
  9788. IFS=$as_save_IFS
  9789. fi
  9790. fi
  9791. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  9792. if test -n "$ac_ct_STRIP"; then
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  9794. $as_echo "$ac_ct_STRIP" >&6; }
  9795. else
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9797. $as_echo "no" >&6; }
  9798. fi
  9799. if test "x$ac_ct_STRIP" = x; then
  9800. STRIP=":"
  9801. else
  9802. case $cross_compiling:$ac_tool_warned in
  9803. yes:)
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9806. ac_tool_warned=yes ;;
  9807. esac
  9808. STRIP=$ac_ct_STRIP
  9809. fi
  9810. else
  9811. STRIP="$ac_cv_prog_STRIP"
  9812. fi
  9813. fi
  9814. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  9816. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  9817. if test -z "$MKDIR_P"; then
  9818. if ${ac_cv_path_mkdir+:} false; then :
  9819. $as_echo_n "(cached) " >&6
  9820. else
  9821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9822. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  9823. do
  9824. IFS=$as_save_IFS
  9825. test -z "$as_dir" && as_dir=.
  9826. for ac_prog in mkdir gmkdir; do
  9827. for ac_exec_ext in '' $ac_executable_extensions; do
  9828. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  9829. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  9830. 'mkdir (GNU coreutils) '* | \
  9831. 'mkdir (coreutils) '* | \
  9832. 'mkdir (fileutils) '4.1*)
  9833. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  9834. break 3;;
  9835. esac
  9836. done
  9837. done
  9838. done
  9839. IFS=$as_save_IFS
  9840. fi
  9841. test -d ./--version && rmdir ./--version
  9842. if test "${ac_cv_path_mkdir+set}" = set; then
  9843. MKDIR_P="$ac_cv_path_mkdir -p"
  9844. else
  9845. # As a last resort, use the slow shell script. Don't cache a
  9846. # value for MKDIR_P within a source directory, because that will
  9847. # break other packages using the cache if that directory is
  9848. # removed, or if the value is a relative name.
  9849. MKDIR_P="$ac_install_sh -d"
  9850. fi
  9851. fi
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  9853. $as_echo "$MKDIR_P" >&6; }
  9854. mkdir_p="$MKDIR_P"
  9855. case $mkdir_p in
  9856. [\\/$]* | ?:[\\/]*) ;;
  9857. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  9858. esac
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9860. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9861. set x ${MAKE-make}
  9862. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9863. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  9864. $as_echo_n "(cached) " >&6
  9865. else
  9866. cat >conftest.make <<\_ACEOF
  9867. SHELL = /bin/sh
  9868. all:
  9869. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9870. _ACEOF
  9871. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  9872. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9873. *@@@%%%=?*=@@@%%%*)
  9874. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9875. *)
  9876. eval ac_cv_prog_make_${ac_make}_set=no;;
  9877. esac
  9878. rm -f conftest.make
  9879. fi
  9880. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9882. $as_echo "yes" >&6; }
  9883. SET_MAKE=
  9884. else
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. $as_echo "no" >&6; }
  9887. SET_MAKE="MAKE=${MAKE-make}"
  9888. fi
  9889. rm -rf .tst 2>/dev/null
  9890. mkdir .tst 2>/dev/null
  9891. if test -d .tst; then
  9892. am__leading_dot=.
  9893. else
  9894. am__leading_dot=_
  9895. fi
  9896. rmdir .tst 2>/dev/null
  9897. DEPDIR="${am__leading_dot}deps"
  9898. ac_config_commands="$ac_config_commands depfiles"
  9899. am_make=${MAKE-make}
  9900. cat > confinc << 'END'
  9901. am__doit:
  9902. @echo this is the am__doit target
  9903. .PHONY: am__doit
  9904. END
  9905. # If we don't find an include directive, just comment out the code.
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  9907. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  9908. am__include="#"
  9909. am__quote=
  9910. _am_result=none
  9911. # First try GNU make style include.
  9912. echo "include confinc" > confmf
  9913. # Ignore all kinds of additional output from `make'.
  9914. case `$am_make -s -f confmf 2> /dev/null` in #(
  9915. *the\ am__doit\ target*)
  9916. am__include=include
  9917. am__quote=
  9918. _am_result=GNU
  9919. ;;
  9920. esac
  9921. # Now try BSD make style include.
  9922. if test "$am__include" = "#"; then
  9923. echo '.include "confinc"' > confmf
  9924. case `$am_make -s -f confmf 2> /dev/null` in #(
  9925. *the\ am__doit\ target*)
  9926. am__include=.include
  9927. am__quote="\""
  9928. _am_result=BSD
  9929. ;;
  9930. esac
  9931. fi
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  9933. $as_echo "$_am_result" >&6; }
  9934. rm -f confinc confmf
  9935. # Check whether --enable-dependency-tracking was given.
  9936. if test "${enable_dependency_tracking+set}" = set; then :
  9937. enableval=$enable_dependency_tracking;
  9938. fi
  9939. if test "x$enable_dependency_tracking" != xno; then
  9940. am_depcomp="$ac_aux_dir/depcomp"
  9941. AMDEPBACKSLASH='\'
  9942. am__nodep='_no'
  9943. fi
  9944. if test "x$enable_dependency_tracking" != xno; then
  9945. AMDEP_TRUE=
  9946. AMDEP_FALSE='#'
  9947. else
  9948. AMDEP_TRUE='#'
  9949. AMDEP_FALSE=
  9950. fi
  9951. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  9952. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  9953. # is not polluted with repeated "-I."
  9954. am__isrc=' -I$(srcdir)'
  9955. # test to see if srcdir already configured
  9956. if test -f $srcdir/config.status; then
  9957. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  9958. fi
  9959. fi
  9960. # test whether we have cygpath
  9961. if test -z "$CYGPATH_W"; then
  9962. if (cygpath --version) >/dev/null 2>/dev/null; then
  9963. CYGPATH_W='cygpath -w'
  9964. else
  9965. CYGPATH_W=echo
  9966. fi
  9967. fi
  9968. # Define the identity of the package.
  9969. PACKAGE='libmysqludf'
  9970. VERSION='0.3'
  9971. cat >>confdefs.h <<_ACEOF
  9972. #define PACKAGE "$PACKAGE"
  9973. _ACEOF
  9974. cat >>confdefs.h <<_ACEOF
  9975. #define VERSION "$VERSION"
  9976. _ACEOF
  9977. # Some tools Automake needs.
  9978. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  9979. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  9980. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  9981. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  9982. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  9983. # We need awk for the "check" target. The system "awk" is bad on
  9984. # some platforms.
  9985. # Always define AMTAR for backward compatibility.
  9986. AMTAR=${AMTAR-"${am_missing_run}tar"}
  9987. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  9988. depcc="$CC" am_compiler_list=
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9990. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9991. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  9992. $as_echo_n "(cached) " >&6
  9993. else
  9994. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9995. # We make a subdir and do the tests there. Otherwise we can end up
  9996. # making bogus files that we don't know about and never remove. For
  9997. # instance it was reported that on HP-UX the gcc test will end up
  9998. # making a dummy file named `D' -- because `-MD' means `put the output
  9999. # in D'.
  10000. rm -rf conftest.dir
  10001. mkdir conftest.dir
  10002. # Copy depcomp to subdir because otherwise we won't find it if we're
  10003. # using a relative directory.
  10004. cp "$am_depcomp" conftest.dir
  10005. cd conftest.dir
  10006. # We will build objects and dependencies in a subdirectory because
  10007. # it helps to detect inapplicable dependency modes. For instance
  10008. # both Tru64's cc and ICC support -MD to output dependencies as a
  10009. # side effect of compilation, but ICC will put the dependencies in
  10010. # the current directory while Tru64 will put them in the object
  10011. # directory.
  10012. mkdir sub
  10013. am_cv_CC_dependencies_compiler_type=none
  10014. if test "$am_compiler_list" = ""; then
  10015. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10016. fi
  10017. am__universal=false
  10018. case " $depcc " in #(
  10019. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10020. esac
  10021. for depmode in $am_compiler_list; do
  10022. # Setup a source with many dependencies, because some compilers
  10023. # like to wrap large dependency lists on column 80 (with \), and
  10024. # we should not choose a depcomp mode which is confused by this.
  10025. #
  10026. # We need to recreate these files for each test, as the compiler may
  10027. # overwrite some of them when testing with obscure command lines.
  10028. # This happens at least with the AIX C compiler.
  10029. : > sub/conftest.c
  10030. for i in 1 2 3 4 5 6; do
  10031. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10032. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10033. # Solaris 8's {/usr,}/bin/sh.
  10034. touch sub/conftst$i.h
  10035. done
  10036. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10037. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10038. # mode. It turns out that the SunPro C++ compiler does not properly
  10039. # handle `-M -o', and we need to detect this. Also, some Intel
  10040. # versions had trouble with output in subdirs
  10041. am__obj=sub/conftest.${OBJEXT-o}
  10042. am__minus_obj="-o $am__obj"
  10043. case $depmode in
  10044. gcc)
  10045. # This depmode causes a compiler race in universal mode.
  10046. test "$am__universal" = false || continue
  10047. ;;
  10048. nosideeffect)
  10049. # after this tag, mechanisms are not by side-effect, so they'll
  10050. # only be used when explicitly requested
  10051. if test "x$enable_dependency_tracking" = xyes; then
  10052. continue
  10053. else
  10054. break
  10055. fi
  10056. ;;
  10057. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10058. # This compiler won't grok `-c -o', but also, the minuso test has
  10059. # not run yet. These depmodes are late enough in the game, and
  10060. # so weak that their functioning should not be impacted.
  10061. am__obj=conftest.${OBJEXT-o}
  10062. am__minus_obj=
  10063. ;;
  10064. none) break ;;
  10065. esac
  10066. if depmode=$depmode \
  10067. source=sub/conftest.c object=$am__obj \
  10068. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10069. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10070. >/dev/null 2>conftest.err &&
  10071. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10072. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10073. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10074. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10075. # icc doesn't choke on unknown options, it will just issue warnings
  10076. # or remarks (even with -Werror). So we grep stderr for any message
  10077. # that says an option was ignored or not supported.
  10078. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10079. # icc: Command line warning: ignoring option '-M'; no argument required
  10080. # The diagnosis changed in icc 8.0:
  10081. # icc: Command line remark: option '-MP' not supported
  10082. if (grep 'ignoring option' conftest.err ||
  10083. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10084. am_cv_CC_dependencies_compiler_type=$depmode
  10085. break
  10086. fi
  10087. fi
  10088. done
  10089. cd ..
  10090. rm -rf conftest.dir
  10091. else
  10092. am_cv_CC_dependencies_compiler_type=none
  10093. fi
  10094. fi
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10096. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10097. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10098. if
  10099. test "x$enable_dependency_tracking" != xno \
  10100. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10101. am__fastdepCC_TRUE=
  10102. am__fastdepCC_FALSE='#'
  10103. else
  10104. am__fastdepCC_TRUE='#'
  10105. am__fastdepCC_FALSE=
  10106. fi
  10107. cat >confcache <<\_ACEOF
  10108. # This file is a shell script that caches the results of configure
  10109. # tests run on this system so they can be shared between configure
  10110. # scripts and configure runs, see configure's option --config-cache.
  10111. # It is not useful on other systems. If it contains results you don't
  10112. # want to keep, you may remove or edit it.
  10113. #
  10114. # config.status only pays attention to the cache file if you give it
  10115. # the --recheck option to rerun configure.
  10116. #
  10117. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10118. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10119. # following values.
  10120. _ACEOF
  10121. # The following way of writing the cache mishandles newlines in values,
  10122. # but we know of no workaround that is simple, portable, and efficient.
  10123. # So, we kill variables containing newlines.
  10124. # Ultrix sh set writes to stderr and can't be redirected directly,
  10125. # and sets the high bit in the cache file unless we assign to the vars.
  10126. (
  10127. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10128. eval ac_val=\$$ac_var
  10129. case $ac_val in #(
  10130. *${as_nl}*)
  10131. case $ac_var in #(
  10132. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10133. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10134. esac
  10135. case $ac_var in #(
  10136. _ | IFS | as_nl) ;; #(
  10137. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10138. *) { eval $ac_var=; unset $ac_var;} ;;
  10139. esac ;;
  10140. esac
  10141. done
  10142. (set) 2>&1 |
  10143. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10144. *${as_nl}ac_space=\ *)
  10145. # `set' does not quote correctly, so add quotes: double-quote
  10146. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10147. sed -n \
  10148. "s/'/'\\\\''/g;
  10149. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10150. ;; #(
  10151. *)
  10152. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10153. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10154. ;;
  10155. esac |
  10156. sort
  10157. ) |
  10158. sed '
  10159. /^ac_cv_env_/b end
  10160. t clear
  10161. :clear
  10162. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10163. t end
  10164. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10165. :end' >>confcache
  10166. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10167. if test -w "$cache_file"; then
  10168. if test "x$cache_file" != "x/dev/null"; then
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10170. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10171. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10172. cat confcache >"$cache_file"
  10173. else
  10174. case $cache_file in #(
  10175. */* | ?:*)
  10176. mv -f confcache "$cache_file"$$ &&
  10177. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10178. *)
  10179. mv -f confcache "$cache_file" ;;
  10180. esac
  10181. fi
  10182. fi
  10183. else
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10185. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10186. fi
  10187. fi
  10188. rm -f confcache
  10189. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10190. # Let make expand exec_prefix.
  10191. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10192. DEFS=-DHAVE_CONFIG_H
  10193. ac_libobjs=
  10194. ac_ltlibobjs=
  10195. U=
  10196. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10197. # 1. Remove the extension, and $U if already installed.
  10198. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10199. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10200. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10201. # will be set to the directory where LIBOBJS objects are built.
  10202. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10203. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10204. done
  10205. LIBOBJS=$ac_libobjs
  10206. LTLIBOBJS=$ac_ltlibobjs
  10207. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10208. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10209. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10210. fi
  10211. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10212. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10213. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10214. fi
  10215. if test -n "$EXEEXT"; then
  10216. am__EXEEXT_TRUE=
  10217. am__EXEEXT_FALSE='#'
  10218. else
  10219. am__EXEEXT_TRUE='#'
  10220. am__EXEEXT_FALSE=
  10221. fi
  10222. : "${CONFIG_STATUS=./config.status}"
  10223. ac_write_fail=0
  10224. ac_clean_files_save=$ac_clean_files
  10225. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10227. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10228. as_write_fail=0
  10229. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10230. #! $SHELL
  10231. # Generated by $as_me.
  10232. # Run this file to recreate the current configuration.
  10233. # Compiler output produced by configure, useful for debugging
  10234. # configure, is in config.log if it exists.
  10235. debug=false
  10236. ac_cs_recheck=false
  10237. ac_cs_silent=false
  10238. SHELL=\${CONFIG_SHELL-$SHELL}
  10239. export SHELL
  10240. _ASEOF
  10241. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10242. ## -------------------- ##
  10243. ## M4sh Initialization. ##
  10244. ## -------------------- ##
  10245. # Be more Bourne compatible
  10246. DUALCASE=1; export DUALCASE # for MKS sh
  10247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10248. emulate sh
  10249. NULLCMD=:
  10250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10251. # is contrary to our usage. Disable this feature.
  10252. alias -g '${1+"$@"}'='"$@"'
  10253. setopt NO_GLOB_SUBST
  10254. else
  10255. case `(set -o) 2>/dev/null` in #(
  10256. *posix*) :
  10257. set -o posix ;; #(
  10258. *) :
  10259. ;;
  10260. esac
  10261. fi
  10262. as_nl='
  10263. '
  10264. export as_nl
  10265. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10266. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10267. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10268. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10269. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10270. # but without wasting forks for bash or zsh.
  10271. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10272. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10273. as_echo='print -r --'
  10274. as_echo_n='print -rn --'
  10275. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10276. as_echo='printf %s\n'
  10277. as_echo_n='printf %s'
  10278. else
  10279. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10280. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10281. as_echo_n='/usr/ucb/echo -n'
  10282. else
  10283. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10284. as_echo_n_body='eval
  10285. arg=$1;
  10286. case $arg in #(
  10287. *"$as_nl"*)
  10288. expr "X$arg" : "X\\(.*\\)$as_nl";
  10289. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10290. esac;
  10291. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10292. '
  10293. export as_echo_n_body
  10294. as_echo_n='sh -c $as_echo_n_body as_echo'
  10295. fi
  10296. export as_echo_body
  10297. as_echo='sh -c $as_echo_body as_echo'
  10298. fi
  10299. # The user is always right.
  10300. if test "${PATH_SEPARATOR+set}" != set; then
  10301. PATH_SEPARATOR=:
  10302. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10303. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10304. PATH_SEPARATOR=';'
  10305. }
  10306. fi
  10307. # IFS
  10308. # We need space, tab and new line, in precisely that order. Quoting is
  10309. # there to prevent editors from complaining about space-tab.
  10310. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10311. # splitting by setting IFS to empty value.)
  10312. IFS=" "" $as_nl"
  10313. # Find who we are. Look in the path if we contain no directory separator.
  10314. as_myself=
  10315. case $0 in #((
  10316. *[\\/]* ) as_myself=$0 ;;
  10317. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10318. for as_dir in $PATH
  10319. do
  10320. IFS=$as_save_IFS
  10321. test -z "$as_dir" && as_dir=.
  10322. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10323. done
  10324. IFS=$as_save_IFS
  10325. ;;
  10326. esac
  10327. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10328. # in which case we are not to be found in the path.
  10329. if test "x$as_myself" = x; then
  10330. as_myself=$0
  10331. fi
  10332. if test ! -f "$as_myself"; then
  10333. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10334. exit 1
  10335. fi
  10336. # Unset variables that we do not need and which cause bugs (e.g. in
  10337. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10338. # suppresses any "Segmentation fault" message there. '((' could
  10339. # trigger a bug in pdksh 5.2.14.
  10340. for as_var in BASH_ENV ENV MAIL MAILPATH
  10341. do eval test x\${$as_var+set} = xset \
  10342. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10343. done
  10344. PS1='$ '
  10345. PS2='> '
  10346. PS4='+ '
  10347. # NLS nuisances.
  10348. LC_ALL=C
  10349. export LC_ALL
  10350. LANGUAGE=C
  10351. export LANGUAGE
  10352. # CDPATH.
  10353. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10354. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10355. # ----------------------------------------
  10356. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10357. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10358. # script with STATUS, using 1 if that was 0.
  10359. as_fn_error ()
  10360. {
  10361. as_status=$1; test $as_status -eq 0 && as_status=1
  10362. if test "$4"; then
  10363. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10364. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10365. fi
  10366. $as_echo "$as_me: error: $2" >&2
  10367. as_fn_exit $as_status
  10368. } # as_fn_error
  10369. # as_fn_set_status STATUS
  10370. # -----------------------
  10371. # Set $? to STATUS, without forking.
  10372. as_fn_set_status ()
  10373. {
  10374. return $1
  10375. } # as_fn_set_status
  10376. # as_fn_exit STATUS
  10377. # -----------------
  10378. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10379. as_fn_exit ()
  10380. {
  10381. set +e
  10382. as_fn_set_status $1
  10383. exit $1
  10384. } # as_fn_exit
  10385. # as_fn_unset VAR
  10386. # ---------------
  10387. # Portably unset VAR.
  10388. as_fn_unset ()
  10389. {
  10390. { eval $1=; unset $1;}
  10391. }
  10392. as_unset=as_fn_unset
  10393. # as_fn_append VAR VALUE
  10394. # ----------------------
  10395. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10396. # advantage of any shell optimizations that allow amortized linear growth over
  10397. # repeated appends, instead of the typical quadratic growth present in naive
  10398. # implementations.
  10399. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10400. eval 'as_fn_append ()
  10401. {
  10402. eval $1+=\$2
  10403. }'
  10404. else
  10405. as_fn_append ()
  10406. {
  10407. eval $1=\$$1\$2
  10408. }
  10409. fi # as_fn_append
  10410. # as_fn_arith ARG...
  10411. # ------------------
  10412. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10413. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10414. # must be portable across $(()) and expr.
  10415. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10416. eval 'as_fn_arith ()
  10417. {
  10418. as_val=$(( $* ))
  10419. }'
  10420. else
  10421. as_fn_arith ()
  10422. {
  10423. as_val=`expr "$@" || test $? -eq 1`
  10424. }
  10425. fi # as_fn_arith
  10426. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10427. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10428. as_expr=expr
  10429. else
  10430. as_expr=false
  10431. fi
  10432. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10433. as_basename=basename
  10434. else
  10435. as_basename=false
  10436. fi
  10437. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10438. as_dirname=dirname
  10439. else
  10440. as_dirname=false
  10441. fi
  10442. as_me=`$as_basename -- "$0" ||
  10443. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10444. X"$0" : 'X\(//\)$' \| \
  10445. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10446. $as_echo X/"$0" |
  10447. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10448. s//\1/
  10449. q
  10450. }
  10451. /^X\/\(\/\/\)$/{
  10452. s//\1/
  10453. q
  10454. }
  10455. /^X\/\(\/\).*/{
  10456. s//\1/
  10457. q
  10458. }
  10459. s/.*/./; q'`
  10460. # Avoid depending upon Character Ranges.
  10461. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10462. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10463. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10464. as_cr_digits='0123456789'
  10465. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10466. ECHO_C= ECHO_N= ECHO_T=
  10467. case `echo -n x` in #(((((
  10468. -n*)
  10469. case `echo 'xy\c'` in
  10470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10471. xy) ECHO_C='\c';;
  10472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10473. ECHO_T=' ';;
  10474. esac;;
  10475. *)
  10476. ECHO_N='-n';;
  10477. esac
  10478. rm -f conf$$ conf$$.exe conf$$.file
  10479. if test -d conf$$.dir; then
  10480. rm -f conf$$.dir/conf$$.file
  10481. else
  10482. rm -f conf$$.dir
  10483. mkdir conf$$.dir 2>/dev/null
  10484. fi
  10485. if (echo >conf$$.file) 2>/dev/null; then
  10486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10487. as_ln_s='ln -s'
  10488. # ... but there are two gotchas:
  10489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10491. # In both cases, we have to default to `cp -p'.
  10492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10493. as_ln_s='cp -p'
  10494. elif ln conf$$.file conf$$ 2>/dev/null; then
  10495. as_ln_s=ln
  10496. else
  10497. as_ln_s='cp -p'
  10498. fi
  10499. else
  10500. as_ln_s='cp -p'
  10501. fi
  10502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10503. rmdir conf$$.dir 2>/dev/null
  10504. # as_fn_mkdir_p
  10505. # -------------
  10506. # Create "$as_dir" as a directory, including parents if necessary.
  10507. as_fn_mkdir_p ()
  10508. {
  10509. case $as_dir in #(
  10510. -*) as_dir=./$as_dir;;
  10511. esac
  10512. test -d "$as_dir" || eval $as_mkdir_p || {
  10513. as_dirs=
  10514. while :; do
  10515. case $as_dir in #(
  10516. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10517. *) as_qdir=$as_dir;;
  10518. esac
  10519. as_dirs="'$as_qdir' $as_dirs"
  10520. as_dir=`$as_dirname -- "$as_dir" ||
  10521. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10522. X"$as_dir" : 'X\(//\)[^/]' \| \
  10523. X"$as_dir" : 'X\(//\)$' \| \
  10524. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10525. $as_echo X"$as_dir" |
  10526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10527. s//\1/
  10528. q
  10529. }
  10530. /^X\(\/\/\)[^/].*/{
  10531. s//\1/
  10532. q
  10533. }
  10534. /^X\(\/\/\)$/{
  10535. s//\1/
  10536. q
  10537. }
  10538. /^X\(\/\).*/{
  10539. s//\1/
  10540. q
  10541. }
  10542. s/.*/./; q'`
  10543. test -d "$as_dir" && break
  10544. done
  10545. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10546. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10547. } # as_fn_mkdir_p
  10548. if mkdir -p . 2>/dev/null; then
  10549. as_mkdir_p='mkdir -p "$as_dir"'
  10550. else
  10551. test -d ./-p && rmdir ./-p
  10552. as_mkdir_p=false
  10553. fi
  10554. if test -x / >/dev/null 2>&1; then
  10555. as_test_x='test -x'
  10556. else
  10557. if ls -dL / >/dev/null 2>&1; then
  10558. as_ls_L_option=L
  10559. else
  10560. as_ls_L_option=
  10561. fi
  10562. as_test_x='
  10563. eval sh -c '\''
  10564. if test -d "$1"; then
  10565. test -d "$1/.";
  10566. else
  10567. case $1 in #(
  10568. -*)set "./$1";;
  10569. esac;
  10570. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10571. ???[sx]*):;;*)false;;esac;fi
  10572. '\'' sh
  10573. '
  10574. fi
  10575. as_executable_p=$as_test_x
  10576. # Sed expression to map a string onto a valid CPP name.
  10577. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10578. # Sed expression to map a string onto a valid variable name.
  10579. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10580. exec 6>&1
  10581. ## ----------------------------------- ##
  10582. ## Main body of $CONFIG_STATUS script. ##
  10583. ## ----------------------------------- ##
  10584. _ASEOF
  10585. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10587. # Save the log message, to keep $0 and so on meaningful, and to
  10588. # report actual input values of CONFIG_FILES etc. instead of their
  10589. # values after options handling.
  10590. ac_log="
  10591. This file was extended by libmysqludf $as_me 0.3, which was
  10592. generated by GNU Autoconf 2.68. Invocation command line was
  10593. CONFIG_FILES = $CONFIG_FILES
  10594. CONFIG_HEADERS = $CONFIG_HEADERS
  10595. CONFIG_LINKS = $CONFIG_LINKS
  10596. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10597. $ $0 $@
  10598. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10599. "
  10600. _ACEOF
  10601. case $ac_config_files in *"
  10602. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10603. esac
  10604. case $ac_config_headers in *"
  10605. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10606. esac
  10607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10608. # Files that config.status was made for.
  10609. config_files="$ac_config_files"
  10610. config_headers="$ac_config_headers"
  10611. config_commands="$ac_config_commands"
  10612. _ACEOF
  10613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10614. ac_cs_usage="\
  10615. \`$as_me' instantiates files and other configuration actions
  10616. from templates according to the current configuration. Unless the files
  10617. and actions are specified as TAGs, all are instantiated by default.
  10618. Usage: $0 [OPTION]... [TAG]...
  10619. -h, --help print this help, then exit
  10620. -V, --version print version number and configuration settings, then exit
  10621. --config print configuration, then exit
  10622. -q, --quiet, --silent
  10623. do not print progress messages
  10624. -d, --debug don't remove temporary files
  10625. --recheck update $as_me by reconfiguring in the same conditions
  10626. --file=FILE[:TEMPLATE]
  10627. instantiate the configuration file FILE
  10628. --header=FILE[:TEMPLATE]
  10629. instantiate the configuration header FILE
  10630. Configuration files:
  10631. $config_files
  10632. Configuration headers:
  10633. $config_headers
  10634. Configuration commands:
  10635. $config_commands
  10636. Report bugs to <mike@iworks.at>."
  10637. _ACEOF
  10638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10639. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10640. ac_cs_version="\\
  10641. libmysqludf config.status 0.3
  10642. configured by $0, generated by GNU Autoconf 2.68,
  10643. with options \\"\$ac_cs_config\\"
  10644. Copyright (C) 2010 Free Software Foundation, Inc.
  10645. This config.status script is free software; the Free Software Foundation
  10646. gives unlimited permission to copy, distribute and modify it."
  10647. ac_pwd='$ac_pwd'
  10648. srcdir='$srcdir'
  10649. INSTALL='$INSTALL'
  10650. MKDIR_P='$MKDIR_P'
  10651. AWK='$AWK'
  10652. test -n "\$AWK" || AWK=awk
  10653. _ACEOF
  10654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10655. # The default lists apply if the user does not specify any file.
  10656. ac_need_defaults=:
  10657. while test $# != 0
  10658. do
  10659. case $1 in
  10660. --*=?*)
  10661. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10662. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10663. ac_shift=:
  10664. ;;
  10665. --*=)
  10666. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10667. ac_optarg=
  10668. ac_shift=:
  10669. ;;
  10670. *)
  10671. ac_option=$1
  10672. ac_optarg=$2
  10673. ac_shift=shift
  10674. ;;
  10675. esac
  10676. case $ac_option in
  10677. # Handling of the options.
  10678. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10679. ac_cs_recheck=: ;;
  10680. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10681. $as_echo "$ac_cs_version"; exit ;;
  10682. --config | --confi | --conf | --con | --co | --c )
  10683. $as_echo "$ac_cs_config"; exit ;;
  10684. --debug | --debu | --deb | --de | --d | -d )
  10685. debug=: ;;
  10686. --file | --fil | --fi | --f )
  10687. $ac_shift
  10688. case $ac_optarg in
  10689. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10690. '') as_fn_error $? "missing file argument" ;;
  10691. esac
  10692. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10693. ac_need_defaults=false;;
  10694. --header | --heade | --head | --hea )
  10695. $ac_shift
  10696. case $ac_optarg in
  10697. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10698. esac
  10699. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10700. ac_need_defaults=false;;
  10701. --he | --h)
  10702. # Conflict between --help and --header
  10703. as_fn_error $? "ambiguous option: \`$1'
  10704. Try \`$0 --help' for more information.";;
  10705. --help | --hel | -h )
  10706. $as_echo "$ac_cs_usage"; exit ;;
  10707. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10708. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10709. ac_cs_silent=: ;;
  10710. # This is an error.
  10711. -*) as_fn_error $? "unrecognized option: \`$1'
  10712. Try \`$0 --help' for more information." ;;
  10713. *) as_fn_append ac_config_targets " $1"
  10714. ac_need_defaults=false ;;
  10715. esac
  10716. shift
  10717. done
  10718. ac_configure_extra_args=
  10719. if $ac_cs_silent; then
  10720. exec 6>/dev/null
  10721. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10722. fi
  10723. _ACEOF
  10724. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10725. if \$ac_cs_recheck; then
  10726. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10727. shift
  10728. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10729. CONFIG_SHELL='$SHELL'
  10730. export CONFIG_SHELL
  10731. exec "\$@"
  10732. fi
  10733. _ACEOF
  10734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10735. exec 5>>config.log
  10736. {
  10737. echo
  10738. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10739. ## Running $as_me. ##
  10740. _ASBOX
  10741. $as_echo "$ac_log"
  10742. } >&5
  10743. _ACEOF
  10744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10745. #
  10746. # INIT-COMMANDS
  10747. #
  10748. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10749. # if CDPATH is set.
  10750. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10751. sed_quote_subst='$sed_quote_subst'
  10752. double_quote_subst='$double_quote_subst'
  10753. delay_variable_subst='$delay_variable_subst'
  10754. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10755. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10756. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10757. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10758. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10759. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10760. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10761. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10762. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10763. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10764. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10765. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10766. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10767. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10768. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10769. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10770. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10771. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10772. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10773. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10774. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10775. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10776. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10777. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10778. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10779. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10780. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10781. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10782. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10783. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10784. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10785. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10786. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10787. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10788. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10789. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10790. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10791. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10792. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10793. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10794. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10795. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10796. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10797. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10798. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10799. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10800. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10801. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10802. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10803. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10804. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10805. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10806. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10807. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10808. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10809. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10810. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10811. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10812. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10813. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10814. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10815. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10816. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10817. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10818. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10819. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10820. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10821. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10822. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10823. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10824. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10825. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10826. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10827. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10828. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10829. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10830. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10831. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10832. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10833. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10834. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10835. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10836. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10837. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10838. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10839. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10840. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10841. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10842. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10843. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10844. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10845. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10846. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10847. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10848. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10849. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10850. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10851. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10852. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10853. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10854. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10855. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10856. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10857. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10858. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10859. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10860. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10861. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10862. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10863. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10864. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10865. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10866. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10867. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10868. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10869. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10870. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10871. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10872. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10873. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10874. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10875. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10876. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10877. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10878. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10879. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10880. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10881. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10882. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10883. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10884. LTCC='$LTCC'
  10885. LTCFLAGS='$LTCFLAGS'
  10886. compiler='$compiler_DEFAULT'
  10887. # A function that is used when there is no print builtin or printf.
  10888. func_fallback_echo ()
  10889. {
  10890. eval 'cat <<_LTECHO_EOF
  10891. \$1
  10892. _LTECHO_EOF'
  10893. }
  10894. # Quote evaled strings.
  10895. for var in SHELL \
  10896. ECHO \
  10897. PATH_SEPARATOR \
  10898. SED \
  10899. GREP \
  10900. EGREP \
  10901. FGREP \
  10902. LD \
  10903. NM \
  10904. LN_S \
  10905. lt_SP2NL \
  10906. lt_NL2SP \
  10907. reload_flag \
  10908. OBJDUMP \
  10909. deplibs_check_method \
  10910. file_magic_cmd \
  10911. file_magic_glob \
  10912. want_nocaseglob \
  10913. DLLTOOL \
  10914. sharedlib_from_linklib_cmd \
  10915. AR \
  10916. AR_FLAGS \
  10917. archiver_list_spec \
  10918. STRIP \
  10919. RANLIB \
  10920. CC \
  10921. CFLAGS \
  10922. compiler \
  10923. lt_cv_sys_global_symbol_pipe \
  10924. lt_cv_sys_global_symbol_to_cdecl \
  10925. lt_cv_sys_global_symbol_to_c_name_address \
  10926. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10927. nm_file_list_spec \
  10928. lt_prog_compiler_no_builtin_flag \
  10929. lt_prog_compiler_pic \
  10930. lt_prog_compiler_wl \
  10931. lt_prog_compiler_static \
  10932. lt_cv_prog_compiler_c_o \
  10933. need_locks \
  10934. MANIFEST_TOOL \
  10935. DSYMUTIL \
  10936. NMEDIT \
  10937. LIPO \
  10938. OTOOL \
  10939. OTOOL64 \
  10940. shrext_cmds \
  10941. export_dynamic_flag_spec \
  10942. whole_archive_flag_spec \
  10943. compiler_needs_object \
  10944. with_gnu_ld \
  10945. allow_undefined_flag \
  10946. no_undefined_flag \
  10947. hardcode_libdir_flag_spec \
  10948. hardcode_libdir_separator \
  10949. exclude_expsyms \
  10950. include_expsyms \
  10951. file_list_spec \
  10952. variables_saved_for_relink \
  10953. libname_spec \
  10954. library_names_spec \
  10955. soname_spec \
  10956. install_override_mode \
  10957. finish_eval \
  10958. old_striplib \
  10959. striplib; do
  10960. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10961. *[\\\\\\\`\\"\\\$]*)
  10962. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10963. ;;
  10964. *)
  10965. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10966. ;;
  10967. esac
  10968. done
  10969. # Double-quote double-evaled strings.
  10970. for var in reload_cmds \
  10971. old_postinstall_cmds \
  10972. old_postuninstall_cmds \
  10973. old_archive_cmds \
  10974. extract_expsyms_cmds \
  10975. old_archive_from_new_cmds \
  10976. old_archive_from_expsyms_cmds \
  10977. archive_cmds \
  10978. archive_expsym_cmds \
  10979. module_cmds \
  10980. module_expsym_cmds \
  10981. export_symbols_cmds \
  10982. prelink_cmds \
  10983. postlink_cmds \
  10984. postinstall_cmds \
  10985. postuninstall_cmds \
  10986. finish_cmds \
  10987. sys_lib_search_path_spec \
  10988. sys_lib_dlsearch_path_spec; do
  10989. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10990. *[\\\\\\\`\\"\\\$]*)
  10991. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10992. ;;
  10993. *)
  10994. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10995. ;;
  10996. esac
  10997. done
  10998. ac_aux_dir='$ac_aux_dir'
  10999. xsi_shell='$xsi_shell'
  11000. lt_shell_append='$lt_shell_append'
  11001. # See if we are running on zsh, and set the options which allow our
  11002. # commands through without removal of \ escapes INIT.
  11003. if test -n "\${ZSH_VERSION+set}" ; then
  11004. setopt NO_GLOB_SUBST
  11005. fi
  11006. PACKAGE='$PACKAGE'
  11007. VERSION='$VERSION'
  11008. TIMESTAMP='$TIMESTAMP'
  11009. RM='$RM'
  11010. ofile='$ofile'
  11011. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11012. _ACEOF
  11013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11014. # Handling of arguments.
  11015. for ac_config_target in $ac_config_targets
  11016. do
  11017. case $ac_config_target in
  11018. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11019. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11020. "lib/mysqludf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/mysqludf_config.h" ;;
  11021. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11022. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11023. esac
  11024. done
  11025. # If the user did not use the arguments to specify the items to instantiate,
  11026. # then the envvar interface is used. Set only those that are not.
  11027. # We use the long form for the default assignment because of an extremely
  11028. # bizarre bug on SunOS 4.1.3.
  11029. if $ac_need_defaults; then
  11030. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11031. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11032. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11033. fi
  11034. # Have a temporary directory for convenience. Make it in the build tree
  11035. # simply because there is no reason against having it here, and in addition,
  11036. # creating and moving files from /tmp can sometimes cause problems.
  11037. # Hook for its removal unless debugging.
  11038. # Note that there is a small window in which the directory will not be cleaned:
  11039. # after its creation but before its name has been assigned to `$tmp'.
  11040. $debug ||
  11041. {
  11042. tmp= ac_tmp=
  11043. trap 'exit_status=$?
  11044. : "${ac_tmp:=$tmp}"
  11045. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11046. ' 0
  11047. trap 'as_fn_exit 1' 1 2 13 15
  11048. }
  11049. # Create a (secure) tmp directory for tmp files.
  11050. {
  11051. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11052. test -d "$tmp"
  11053. } ||
  11054. {
  11055. tmp=./conf$$-$RANDOM
  11056. (umask 077 && mkdir "$tmp")
  11057. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11058. ac_tmp=$tmp
  11059. # Set up the scripts for CONFIG_FILES section.
  11060. # No need to generate them if there are no CONFIG_FILES.
  11061. # This happens for instance with `./config.status config.h'.
  11062. if test -n "$CONFIG_FILES"; then
  11063. ac_cr=`echo X | tr X '\015'`
  11064. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11065. # But we know of no other shell where ac_cr would be empty at this
  11066. # point, so we can use a bashism as a fallback.
  11067. if test "x$ac_cr" = x; then
  11068. eval ac_cr=\$\'\\r\'
  11069. fi
  11070. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11071. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11072. ac_cs_awk_cr='\\r'
  11073. else
  11074. ac_cs_awk_cr=$ac_cr
  11075. fi
  11076. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11077. _ACEOF
  11078. {
  11079. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11080. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11081. echo "_ACEOF"
  11082. } >conf$$subs.sh ||
  11083. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11084. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11085. ac_delim='%!_!# '
  11086. for ac_last_try in false false false false false :; do
  11087. . ./conf$$subs.sh ||
  11088. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11089. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11090. if test $ac_delim_n = $ac_delim_num; then
  11091. break
  11092. elif $ac_last_try; then
  11093. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11094. else
  11095. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11096. fi
  11097. done
  11098. rm -f conf$$subs.sh
  11099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11100. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11101. _ACEOF
  11102. sed -n '
  11103. h
  11104. s/^/S["/; s/!.*/"]=/
  11105. p
  11106. g
  11107. s/^[^!]*!//
  11108. :repl
  11109. t repl
  11110. s/'"$ac_delim"'$//
  11111. t delim
  11112. :nl
  11113. h
  11114. s/\(.\{148\}\)..*/\1/
  11115. t more1
  11116. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11117. p
  11118. n
  11119. b repl
  11120. :more1
  11121. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11122. p
  11123. g
  11124. s/.\{148\}//
  11125. t nl
  11126. :delim
  11127. h
  11128. s/\(.\{148\}\)..*/\1/
  11129. t more2
  11130. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11131. p
  11132. b
  11133. :more2
  11134. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11135. p
  11136. g
  11137. s/.\{148\}//
  11138. t delim
  11139. ' <conf$$subs.awk | sed '
  11140. /^[^""]/{
  11141. N
  11142. s/\n//
  11143. }
  11144. ' >>$CONFIG_STATUS || ac_write_fail=1
  11145. rm -f conf$$subs.awk
  11146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11147. _ACAWK
  11148. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11149. for (key in S) S_is_set[key] = 1
  11150. FS = ""
  11151. }
  11152. {
  11153. line = $ 0
  11154. nfields = split(line, field, "@")
  11155. substed = 0
  11156. len = length(field[1])
  11157. for (i = 2; i < nfields; i++) {
  11158. key = field[i]
  11159. keylen = length(key)
  11160. if (S_is_set[key]) {
  11161. value = S[key]
  11162. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11163. len += length(value) + length(field[++i])
  11164. substed = 1
  11165. } else
  11166. len += 1 + keylen
  11167. }
  11168. print line
  11169. }
  11170. _ACAWK
  11171. _ACEOF
  11172. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11173. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11174. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11175. else
  11176. cat
  11177. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11178. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11179. _ACEOF
  11180. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11181. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11182. # trailing colons and then remove the whole line if VPATH becomes empty
  11183. # (actually we leave an empty line to preserve line numbers).
  11184. if test "x$srcdir" = x.; then
  11185. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11186. h
  11187. s///
  11188. s/^/:/
  11189. s/[ ]*$/:/
  11190. s/:\$(srcdir):/:/g
  11191. s/:\${srcdir}:/:/g
  11192. s/:@srcdir@:/:/g
  11193. s/^:*//
  11194. s/:*$//
  11195. x
  11196. s/\(=[ ]*\).*/\1/
  11197. G
  11198. s/\n//
  11199. s/^[^=]*=[ ]*$//
  11200. }'
  11201. fi
  11202. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11203. fi # test -n "$CONFIG_FILES"
  11204. # Set up the scripts for CONFIG_HEADERS section.
  11205. # No need to generate them if there are no CONFIG_HEADERS.
  11206. # This happens for instance with `./config.status Makefile'.
  11207. if test -n "$CONFIG_HEADERS"; then
  11208. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11209. BEGIN {
  11210. _ACEOF
  11211. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11212. # here-document in config.status, that substitutes the proper values into
  11213. # config.h.in to produce config.h.
  11214. # Create a delimiter string that does not exist in confdefs.h, to ease
  11215. # handling of long lines.
  11216. ac_delim='%!_!# '
  11217. for ac_last_try in false false :; do
  11218. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11219. if test -z "$ac_tt"; then
  11220. break
  11221. elif $ac_last_try; then
  11222. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11223. else
  11224. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11225. fi
  11226. done
  11227. # For the awk script, D is an array of macro values keyed by name,
  11228. # likewise P contains macro parameters if any. Preserve backslash
  11229. # newline sequences.
  11230. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11231. sed -n '
  11232. s/.\{148\}/&'"$ac_delim"'/g
  11233. t rset
  11234. :rset
  11235. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11236. t def
  11237. d
  11238. :def
  11239. s/\\$//
  11240. t bsnl
  11241. s/["\\]/\\&/g
  11242. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11243. D["\1"]=" \3"/p
  11244. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11245. d
  11246. :bsnl
  11247. s/["\\]/\\&/g
  11248. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11249. D["\1"]=" \3\\\\\\n"\\/p
  11250. t cont
  11251. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11252. t cont
  11253. d
  11254. :cont
  11255. n
  11256. s/.\{148\}/&'"$ac_delim"'/g
  11257. t clear
  11258. :clear
  11259. s/\\$//
  11260. t bsnlc
  11261. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11262. d
  11263. :bsnlc
  11264. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11265. b cont
  11266. ' <confdefs.h | sed '
  11267. s/'"$ac_delim"'/"\\\
  11268. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11270. for (key in D) D_is_set[key] = 1
  11271. FS = ""
  11272. }
  11273. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11274. line = \$ 0
  11275. split(line, arg, " ")
  11276. if (arg[1] == "#") {
  11277. defundef = arg[2]
  11278. mac1 = arg[3]
  11279. } else {
  11280. defundef = substr(arg[1], 2)
  11281. mac1 = arg[2]
  11282. }
  11283. split(mac1, mac2, "(") #)
  11284. macro = mac2[1]
  11285. prefix = substr(line, 1, index(line, defundef) - 1)
  11286. if (D_is_set[macro]) {
  11287. # Preserve the white space surrounding the "#".
  11288. print prefix "define", macro P[macro] D[macro]
  11289. next
  11290. } else {
  11291. # Replace #undef with comments. This is necessary, for example,
  11292. # in the case of _POSIX_SOURCE, which is predefined and required
  11293. # on some systems where configure will not decide to define it.
  11294. if (defundef == "undef") {
  11295. print "/*", prefix defundef, macro, "*/"
  11296. next
  11297. }
  11298. }
  11299. }
  11300. { print }
  11301. _ACAWK
  11302. _ACEOF
  11303. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11304. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11305. fi # test -n "$CONFIG_HEADERS"
  11306. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11307. shift
  11308. for ac_tag
  11309. do
  11310. case $ac_tag in
  11311. :[FHLC]) ac_mode=$ac_tag; continue;;
  11312. esac
  11313. case $ac_mode$ac_tag in
  11314. :[FHL]*:*);;
  11315. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11316. :[FH]-) ac_tag=-:-;;
  11317. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11318. esac
  11319. ac_save_IFS=$IFS
  11320. IFS=:
  11321. set x $ac_tag
  11322. IFS=$ac_save_IFS
  11323. shift
  11324. ac_file=$1
  11325. shift
  11326. case $ac_mode in
  11327. :L) ac_source=$1;;
  11328. :[FH])
  11329. ac_file_inputs=
  11330. for ac_f
  11331. do
  11332. case $ac_f in
  11333. -) ac_f="$ac_tmp/stdin";;
  11334. *) # Look for the file first in the build tree, then in the source tree
  11335. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11336. # because $ac_f cannot contain `:'.
  11337. test -f "$ac_f" ||
  11338. case $ac_f in
  11339. [\\/$]*) false;;
  11340. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11341. esac ||
  11342. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11343. esac
  11344. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11345. as_fn_append ac_file_inputs " '$ac_f'"
  11346. done
  11347. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11348. # use $as_me), people would be surprised to read:
  11349. # /* config.h. Generated by config.status. */
  11350. configure_input='Generated from '`
  11351. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11352. `' by configure.'
  11353. if test x"$ac_file" != x-; then
  11354. configure_input="$ac_file. $configure_input"
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11356. $as_echo "$as_me: creating $ac_file" >&6;}
  11357. fi
  11358. # Neutralize special characters interpreted by sed in replacement strings.
  11359. case $configure_input in #(
  11360. *\&* | *\|* | *\\* )
  11361. ac_sed_conf_input=`$as_echo "$configure_input" |
  11362. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11363. *) ac_sed_conf_input=$configure_input;;
  11364. esac
  11365. case $ac_tag in
  11366. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11367. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11368. esac
  11369. ;;
  11370. esac
  11371. ac_dir=`$as_dirname -- "$ac_file" ||
  11372. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11373. X"$ac_file" : 'X\(//\)[^/]' \| \
  11374. X"$ac_file" : 'X\(//\)$' \| \
  11375. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11376. $as_echo X"$ac_file" |
  11377. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11378. s//\1/
  11379. q
  11380. }
  11381. /^X\(\/\/\)[^/].*/{
  11382. s//\1/
  11383. q
  11384. }
  11385. /^X\(\/\/\)$/{
  11386. s//\1/
  11387. q
  11388. }
  11389. /^X\(\/\).*/{
  11390. s//\1/
  11391. q
  11392. }
  11393. s/.*/./; q'`
  11394. as_dir="$ac_dir"; as_fn_mkdir_p
  11395. ac_builddir=.
  11396. case "$ac_dir" in
  11397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11398. *)
  11399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11400. # A ".." for each directory in $ac_dir_suffix.
  11401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11402. case $ac_top_builddir_sub in
  11403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11405. esac ;;
  11406. esac
  11407. ac_abs_top_builddir=$ac_pwd
  11408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11409. # for backward compatibility:
  11410. ac_top_builddir=$ac_top_build_prefix
  11411. case $srcdir in
  11412. .) # We are building in place.
  11413. ac_srcdir=.
  11414. ac_top_srcdir=$ac_top_builddir_sub
  11415. ac_abs_top_srcdir=$ac_pwd ;;
  11416. [\\/]* | ?:[\\/]* ) # Absolute name.
  11417. ac_srcdir=$srcdir$ac_dir_suffix;
  11418. ac_top_srcdir=$srcdir
  11419. ac_abs_top_srcdir=$srcdir ;;
  11420. *) # Relative name.
  11421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11424. esac
  11425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11426. case $ac_mode in
  11427. :F)
  11428. #
  11429. # CONFIG_FILE
  11430. #
  11431. case $INSTALL in
  11432. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11433. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11434. esac
  11435. ac_MKDIR_P=$MKDIR_P
  11436. case $MKDIR_P in
  11437. [\\/$]* | ?:[\\/]* ) ;;
  11438. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11439. esac
  11440. _ACEOF
  11441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11442. # If the template does not know about datarootdir, expand it.
  11443. # FIXME: This hack should be removed a few years after 2.60.
  11444. ac_datarootdir_hack=; ac_datarootdir_seen=
  11445. ac_sed_dataroot='
  11446. /datarootdir/ {
  11447. p
  11448. q
  11449. }
  11450. /@datadir@/p
  11451. /@docdir@/p
  11452. /@infodir@/p
  11453. /@localedir@/p
  11454. /@mandir@/p'
  11455. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11456. *datarootdir*) ac_datarootdir_seen=yes;;
  11457. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11459. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11460. _ACEOF
  11461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11462. ac_datarootdir_hack='
  11463. s&@datadir@&$datadir&g
  11464. s&@docdir@&$docdir&g
  11465. s&@infodir@&$infodir&g
  11466. s&@localedir@&$localedir&g
  11467. s&@mandir@&$mandir&g
  11468. s&\\\${datarootdir}&$datarootdir&g' ;;
  11469. esac
  11470. _ACEOF
  11471. # Neutralize VPATH when `$srcdir' = `.'.
  11472. # Shell code in configure.ac might set extrasub.
  11473. # FIXME: do we really want to maintain this feature?
  11474. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11475. ac_sed_extra="$ac_vpsub
  11476. $extrasub
  11477. _ACEOF
  11478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11479. :t
  11480. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11481. s|@configure_input@|$ac_sed_conf_input|;t t
  11482. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11483. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11484. s&@srcdir@&$ac_srcdir&;t t
  11485. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11486. s&@top_srcdir@&$ac_top_srcdir&;t t
  11487. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11488. s&@builddir@&$ac_builddir&;t t
  11489. s&@abs_builddir@&$ac_abs_builddir&;t t
  11490. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11491. s&@INSTALL@&$ac_INSTALL&;t t
  11492. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11493. $ac_datarootdir_hack
  11494. "
  11495. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11496. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11497. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11498. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11499. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11500. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11502. which seems to be undefined. Please make sure it is defined" >&5
  11503. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11504. which seems to be undefined. Please make sure it is defined" >&2;}
  11505. rm -f "$ac_tmp/stdin"
  11506. case $ac_file in
  11507. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11508. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11509. esac \
  11510. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11511. ;;
  11512. :H)
  11513. #
  11514. # CONFIG_HEADER
  11515. #
  11516. if test x"$ac_file" != x-; then
  11517. {
  11518. $as_echo "/* $configure_input */" \
  11519. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11520. } >"$ac_tmp/config.h" \
  11521. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11522. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11524. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11525. else
  11526. rm -f "$ac_file"
  11527. mv "$ac_tmp/config.h" "$ac_file" \
  11528. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11529. fi
  11530. else
  11531. $as_echo "/* $configure_input */" \
  11532. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11533. || as_fn_error $? "could not create -" "$LINENO" 5
  11534. fi
  11535. # Compute "$ac_file"'s index in $config_headers.
  11536. _am_arg="$ac_file"
  11537. _am_stamp_count=1
  11538. for _am_header in $config_headers :; do
  11539. case $_am_header in
  11540. $_am_arg | $_am_arg:* )
  11541. break ;;
  11542. * )
  11543. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11544. esac
  11545. done
  11546. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11547. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11548. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11549. X"$_am_arg" : 'X\(//\)$' \| \
  11550. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11551. $as_echo X"$_am_arg" |
  11552. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11553. s//\1/
  11554. q
  11555. }
  11556. /^X\(\/\/\)[^/].*/{
  11557. s//\1/
  11558. q
  11559. }
  11560. /^X\(\/\/\)$/{
  11561. s//\1/
  11562. q
  11563. }
  11564. /^X\(\/\).*/{
  11565. s//\1/
  11566. q
  11567. }
  11568. s/.*/./; q'`/stamp-h$_am_stamp_count
  11569. ;;
  11570. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11571. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11572. ;;
  11573. esac
  11574. case $ac_file$ac_mode in
  11575. "libtool":C)
  11576. # See if we are running on zsh, and set the options which allow our
  11577. # commands through without removal of \ escapes.
  11578. if test -n "${ZSH_VERSION+set}" ; then
  11579. setopt NO_GLOB_SUBST
  11580. fi
  11581. cfgfile="${ofile}T"
  11582. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11583. $RM "$cfgfile"
  11584. cat <<_LT_EOF >> "$cfgfile"
  11585. #! $SHELL
  11586. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11587. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11588. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11589. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11590. #
  11591. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11592. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11593. # Foundation, Inc.
  11594. # Written by Gordon Matzigkeit, 1996
  11595. #
  11596. # This file is part of GNU Libtool.
  11597. #
  11598. # GNU Libtool is free software; you can redistribute it and/or
  11599. # modify it under the terms of the GNU General Public License as
  11600. # published by the Free Software Foundation; either version 2 of
  11601. # the License, or (at your option) any later version.
  11602. #
  11603. # As a special exception to the GNU General Public License,
  11604. # if you distribute this file as part of a program or library that
  11605. # is built using GNU Libtool, you may include this file under the
  11606. # same distribution terms that you use for the rest of that program.
  11607. #
  11608. # GNU Libtool is distributed in the hope that it will be useful,
  11609. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11610. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11611. # GNU General Public License for more details.
  11612. #
  11613. # You should have received a copy of the GNU General Public License
  11614. # along with GNU Libtool; see the file COPYING. If not, a copy
  11615. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11616. # obtained by writing to the Free Software Foundation, Inc.,
  11617. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11618. # The names of the tagged configurations supported by this script.
  11619. available_tags=""
  11620. # ### BEGIN LIBTOOL CONFIG
  11621. # Which release of libtool.m4 was used?
  11622. macro_version=$macro_version
  11623. macro_revision=$macro_revision
  11624. # Whether or not to build shared libraries.
  11625. build_libtool_libs=$enable_shared
  11626. # Whether or not to build static libraries.
  11627. build_old_libs=$enable_static
  11628. # What type of objects to build.
  11629. pic_mode=$pic_mode
  11630. # Whether or not to optimize for fast installation.
  11631. fast_install=$enable_fast_install
  11632. # Shell to use when invoking shell scripts.
  11633. SHELL=$lt_SHELL
  11634. # An echo program that protects backslashes.
  11635. ECHO=$lt_ECHO
  11636. # The PATH separator for the build system.
  11637. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11638. # The host system.
  11639. host_alias=$host_alias
  11640. host=$host
  11641. host_os=$host_os
  11642. # The build system.
  11643. build_alias=$build_alias
  11644. build=$build
  11645. build_os=$build_os
  11646. # A sed program that does not truncate output.
  11647. SED=$lt_SED
  11648. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11649. Xsed="\$SED -e 1s/^X//"
  11650. # A grep program that handles long lines.
  11651. GREP=$lt_GREP
  11652. # An ERE matcher.
  11653. EGREP=$lt_EGREP
  11654. # A literal string matcher.
  11655. FGREP=$lt_FGREP
  11656. # A BSD- or MS-compatible name lister.
  11657. NM=$lt_NM
  11658. # Whether we need soft or hard links.
  11659. LN_S=$lt_LN_S
  11660. # What is the maximum length of a command?
  11661. max_cmd_len=$max_cmd_len
  11662. # Object file suffix (normally "o").
  11663. objext=$ac_objext
  11664. # Executable file suffix (normally "").
  11665. exeext=$exeext
  11666. # whether the shell understands "unset".
  11667. lt_unset=$lt_unset
  11668. # turn spaces into newlines.
  11669. SP2NL=$lt_lt_SP2NL
  11670. # turn newlines into spaces.
  11671. NL2SP=$lt_lt_NL2SP
  11672. # convert \$build file names to \$host format.
  11673. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11674. # convert \$build files to toolchain format.
  11675. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11676. # An object symbol dumper.
  11677. OBJDUMP=$lt_OBJDUMP
  11678. # Method to check whether dependent libraries are shared objects.
  11679. deplibs_check_method=$lt_deplibs_check_method
  11680. # Command to use when deplibs_check_method = "file_magic".
  11681. file_magic_cmd=$lt_file_magic_cmd
  11682. # How to find potential files when deplibs_check_method = "file_magic".
  11683. file_magic_glob=$lt_file_magic_glob
  11684. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11685. want_nocaseglob=$lt_want_nocaseglob
  11686. # DLL creation program.
  11687. DLLTOOL=$lt_DLLTOOL
  11688. # Command to associate shared and link libraries.
  11689. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11690. # The archiver.
  11691. AR=$lt_AR
  11692. # Flags to create an archive.
  11693. AR_FLAGS=$lt_AR_FLAGS
  11694. # How to feed a file listing to the archiver.
  11695. archiver_list_spec=$lt_archiver_list_spec
  11696. # A symbol stripping program.
  11697. STRIP=$lt_STRIP
  11698. # Commands used to install an old-style archive.
  11699. RANLIB=$lt_RANLIB
  11700. old_postinstall_cmds=$lt_old_postinstall_cmds
  11701. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11702. # Whether to use a lock for old archive extraction.
  11703. lock_old_archive_extraction=$lock_old_archive_extraction
  11704. # A C compiler.
  11705. LTCC=$lt_CC
  11706. # LTCC compiler flags.
  11707. LTCFLAGS=$lt_CFLAGS
  11708. # Take the output of nm and produce a listing of raw symbols and C names.
  11709. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11710. # Transform the output of nm in a proper C declaration.
  11711. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11712. # Transform the output of nm in a C name address pair.
  11713. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11714. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11715. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11716. # Specify filename containing input files for \$NM.
  11717. nm_file_list_spec=$lt_nm_file_list_spec
  11718. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11719. lt_sysroot=$lt_sysroot
  11720. # The name of the directory that contains temporary libtool files.
  11721. objdir=$objdir
  11722. # Used to examine libraries when file_magic_cmd begins with "file".
  11723. MAGIC_CMD=$MAGIC_CMD
  11724. # Must we lock files when doing compilation?
  11725. need_locks=$lt_need_locks
  11726. # Manifest tool.
  11727. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11728. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11729. DSYMUTIL=$lt_DSYMUTIL
  11730. # Tool to change global to local symbols on Mac OS X.
  11731. NMEDIT=$lt_NMEDIT
  11732. # Tool to manipulate fat objects and archives on Mac OS X.
  11733. LIPO=$lt_LIPO
  11734. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11735. OTOOL=$lt_OTOOL
  11736. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11737. OTOOL64=$lt_OTOOL64
  11738. # Old archive suffix (normally "a").
  11739. libext=$libext
  11740. # Shared library suffix (normally ".so").
  11741. shrext_cmds=$lt_shrext_cmds
  11742. # The commands to extract the exported symbol list from a shared archive.
  11743. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11744. # Variables whose values should be saved in libtool wrapper scripts and
  11745. # restored at link time.
  11746. variables_saved_for_relink=$lt_variables_saved_for_relink
  11747. # Do we need the "lib" prefix for modules?
  11748. need_lib_prefix=$need_lib_prefix
  11749. # Do we need a version for libraries?
  11750. need_version=$need_version
  11751. # Library versioning type.
  11752. version_type=$version_type
  11753. # Shared library runtime path variable.
  11754. runpath_var=$runpath_var
  11755. # Shared library path variable.
  11756. shlibpath_var=$shlibpath_var
  11757. # Is shlibpath searched before the hard-coded library search path?
  11758. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11759. # Format of library name prefix.
  11760. libname_spec=$lt_libname_spec
  11761. # List of archive names. First name is the real one, the rest are links.
  11762. # The last name is the one that the linker finds with -lNAME
  11763. library_names_spec=$lt_library_names_spec
  11764. # The coded name of the library, if different from the real name.
  11765. soname_spec=$lt_soname_spec
  11766. # Permission mode override for installation of shared libraries.
  11767. install_override_mode=$lt_install_override_mode
  11768. # Command to use after installation of a shared archive.
  11769. postinstall_cmds=$lt_postinstall_cmds
  11770. # Command to use after uninstallation of a shared archive.
  11771. postuninstall_cmds=$lt_postuninstall_cmds
  11772. # Commands used to finish a libtool library installation in a directory.
  11773. finish_cmds=$lt_finish_cmds
  11774. # As "finish_cmds", except a single script fragment to be evaled but
  11775. # not shown.
  11776. finish_eval=$lt_finish_eval
  11777. # Whether we should hardcode library paths into libraries.
  11778. hardcode_into_libs=$hardcode_into_libs
  11779. # Compile-time system search path for libraries.
  11780. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11781. # Run-time system search path for libraries.
  11782. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11783. # Whether dlopen is supported.
  11784. dlopen_support=$enable_dlopen
  11785. # Whether dlopen of programs is supported.
  11786. dlopen_self=$enable_dlopen_self
  11787. # Whether dlopen of statically linked programs is supported.
  11788. dlopen_self_static=$enable_dlopen_self_static
  11789. # Commands to strip libraries.
  11790. old_striplib=$lt_old_striplib
  11791. striplib=$lt_striplib
  11792. # The linker used to build libraries.
  11793. LD=$lt_LD
  11794. # How to create reloadable object files.
  11795. reload_flag=$lt_reload_flag
  11796. reload_cmds=$lt_reload_cmds
  11797. # Commands used to build an old-style archive.
  11798. old_archive_cmds=$lt_old_archive_cmds
  11799. # A language specific compiler.
  11800. CC=$lt_compiler
  11801. # Is the compiler the GNU compiler?
  11802. with_gcc=$GCC
  11803. # Compiler flag to turn off builtin functions.
  11804. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11805. # Additional compiler flags for building library objects.
  11806. pic_flag=$lt_lt_prog_compiler_pic
  11807. # How to pass a linker flag through the compiler.
  11808. wl=$lt_lt_prog_compiler_wl
  11809. # Compiler flag to prevent dynamic linking.
  11810. link_static_flag=$lt_lt_prog_compiler_static
  11811. # Does compiler simultaneously support -c and -o options?
  11812. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11813. # Whether or not to add -lc for building shared libraries.
  11814. build_libtool_need_lc=$archive_cmds_need_lc
  11815. # Whether or not to disallow shared libs when runtime libs are static.
  11816. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11817. # Compiler flag to allow reflexive dlopens.
  11818. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11819. # Compiler flag to generate shared objects directly from archives.
  11820. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11821. # Whether the compiler copes with passing no objects directly.
  11822. compiler_needs_object=$lt_compiler_needs_object
  11823. # Create an old-style archive from a shared archive.
  11824. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11825. # Create a temporary old-style archive to link instead of a shared archive.
  11826. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11827. # Commands used to build a shared archive.
  11828. archive_cmds=$lt_archive_cmds
  11829. archive_expsym_cmds=$lt_archive_expsym_cmds
  11830. # Commands used to build a loadable module if different from building
  11831. # a shared archive.
  11832. module_cmds=$lt_module_cmds
  11833. module_expsym_cmds=$lt_module_expsym_cmds
  11834. # Whether we are building with GNU ld or not.
  11835. with_gnu_ld=$lt_with_gnu_ld
  11836. # Flag that allows shared libraries with undefined symbols to be built.
  11837. allow_undefined_flag=$lt_allow_undefined_flag
  11838. # Flag that enforces no undefined symbols.
  11839. no_undefined_flag=$lt_no_undefined_flag
  11840. # Flag to hardcode \$libdir into a binary during linking.
  11841. # This must work even if \$libdir does not exist
  11842. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11843. # Whether we need a single "-rpath" flag with a separated argument.
  11844. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11845. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11846. # DIR into the resulting binary.
  11847. hardcode_direct=$hardcode_direct
  11848. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11849. # DIR into the resulting binary and the resulting library dependency is
  11850. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11851. # library is relocated.
  11852. hardcode_direct_absolute=$hardcode_direct_absolute
  11853. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11854. # into the resulting binary.
  11855. hardcode_minus_L=$hardcode_minus_L
  11856. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11857. # into the resulting binary.
  11858. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11859. # Set to "yes" if building a shared library automatically hardcodes DIR
  11860. # into the library and all subsequent libraries and executables linked
  11861. # against it.
  11862. hardcode_automatic=$hardcode_automatic
  11863. # Set to yes if linker adds runtime paths of dependent libraries
  11864. # to runtime path list.
  11865. inherit_rpath=$inherit_rpath
  11866. # Whether libtool must link a program against all its dependency libraries.
  11867. link_all_deplibs=$link_all_deplibs
  11868. # Set to "yes" if exported symbols are required.
  11869. always_export_symbols=$always_export_symbols
  11870. # The commands to list exported symbols.
  11871. export_symbols_cmds=$lt_export_symbols_cmds
  11872. # Symbols that should not be listed in the preloaded symbols.
  11873. exclude_expsyms=$lt_exclude_expsyms
  11874. # Symbols that must always be exported.
  11875. include_expsyms=$lt_include_expsyms
  11876. # Commands necessary for linking programs (against libraries) with templates.
  11877. prelink_cmds=$lt_prelink_cmds
  11878. # Commands necessary for finishing linking programs.
  11879. postlink_cmds=$lt_postlink_cmds
  11880. # Specify filename containing input files.
  11881. file_list_spec=$lt_file_list_spec
  11882. # How to hardcode a shared library path into an executable.
  11883. hardcode_action=$hardcode_action
  11884. # ### END LIBTOOL CONFIG
  11885. _LT_EOF
  11886. case $host_os in
  11887. aix3*)
  11888. cat <<\_LT_EOF >> "$cfgfile"
  11889. # AIX sometimes has problems with the GCC collect2 program. For some
  11890. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11891. # vanish in a puff of smoke.
  11892. if test "X${COLLECT_NAMES+set}" != Xset; then
  11893. COLLECT_NAMES=
  11894. export COLLECT_NAMES
  11895. fi
  11896. _LT_EOF
  11897. ;;
  11898. esac
  11899. ltmain="$ac_aux_dir/ltmain.sh"
  11900. # We use sed instead of cat because bash on DJGPP gets confused if
  11901. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11902. # text mode, it properly converts lines to CR/LF. This bash problem
  11903. # is reportedly fixed, but why not run on old versions too?
  11904. sed '$q' "$ltmain" >> "$cfgfile" \
  11905. || (rm -f "$cfgfile"; exit 1)
  11906. if test x"$xsi_shell" = xyes; then
  11907. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11908. func_dirname ()\
  11909. {\
  11910. \ case ${1} in\
  11911. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11912. \ * ) func_dirname_result="${3}" ;;\
  11913. \ esac\
  11914. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11917. test 0 -eq $? || _lt_function_replace_fail=:
  11918. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11919. func_basename ()\
  11920. {\
  11921. \ func_basename_result="${1##*/}"\
  11922. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11923. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11924. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11925. test 0 -eq $? || _lt_function_replace_fail=:
  11926. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11927. func_dirname_and_basename ()\
  11928. {\
  11929. \ case ${1} in\
  11930. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11931. \ * ) func_dirname_result="${3}" ;;\
  11932. \ esac\
  11933. \ func_basename_result="${1##*/}"\
  11934. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11935. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11936. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11937. test 0 -eq $? || _lt_function_replace_fail=:
  11938. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11939. func_stripname ()\
  11940. {\
  11941. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11942. \ # positional parameters, so assign one to ordinary parameter first.\
  11943. \ func_stripname_result=${3}\
  11944. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11945. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11946. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11947. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11948. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11949. test 0 -eq $? || _lt_function_replace_fail=:
  11950. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11951. func_split_long_opt ()\
  11952. {\
  11953. \ func_split_long_opt_name=${1%%=*}\
  11954. \ func_split_long_opt_arg=${1#*=}\
  11955. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11956. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11957. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11958. test 0 -eq $? || _lt_function_replace_fail=:
  11959. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11960. func_split_short_opt ()\
  11961. {\
  11962. \ func_split_short_opt_arg=${1#??}\
  11963. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11964. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11965. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11966. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11967. test 0 -eq $? || _lt_function_replace_fail=:
  11968. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11969. func_lo2o ()\
  11970. {\
  11971. \ case ${1} in\
  11972. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11973. \ *) func_lo2o_result=${1} ;;\
  11974. \ esac\
  11975. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11978. test 0 -eq $? || _lt_function_replace_fail=:
  11979. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11980. func_xform ()\
  11981. {\
  11982. func_xform_result=${1%.*}.lo\
  11983. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11984. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11985. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11986. test 0 -eq $? || _lt_function_replace_fail=:
  11987. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11988. func_arith ()\
  11989. {\
  11990. func_arith_result=$(( $* ))\
  11991. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11992. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11993. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11994. test 0 -eq $? || _lt_function_replace_fail=:
  11995. sed -e '/^func_len ()$/,/^} # func_len /c\
  11996. func_len ()\
  11997. {\
  11998. func_len_result=${#1}\
  11999. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12000. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12001. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12002. test 0 -eq $? || _lt_function_replace_fail=:
  12003. fi
  12004. if test x"$lt_shell_append" = xyes; then
  12005. sed -e '/^func_append ()$/,/^} # func_append /c\
  12006. func_append ()\
  12007. {\
  12008. eval "${1}+=\\${2}"\
  12009. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12010. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12011. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12012. test 0 -eq $? || _lt_function_replace_fail=:
  12013. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12014. func_append_quoted ()\
  12015. {\
  12016. \ func_quote_for_eval "${2}"\
  12017. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12018. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12019. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12020. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12021. test 0 -eq $? || _lt_function_replace_fail=:
  12022. # Save a `func_append' function call where possible by direct use of '+='
  12023. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12024. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12025. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12026. test 0 -eq $? || _lt_function_replace_fail=:
  12027. else
  12028. # Save a `func_append' function call even when '+=' is not available
  12029. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12030. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12031. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12032. test 0 -eq $? || _lt_function_replace_fail=:
  12033. fi
  12034. if test x"$_lt_function_replace_fail" = x":"; then
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12036. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12037. fi
  12038. mv -f "$cfgfile" "$ofile" ||
  12039. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12040. chmod +x "$ofile"
  12041. ;;
  12042. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12043. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12044. # are listed without --file. Let's play safe and only enable the eval
  12045. # if we detect the quoting.
  12046. case $CONFIG_FILES in
  12047. *\'*) eval set x "$CONFIG_FILES" ;;
  12048. *) set x $CONFIG_FILES ;;
  12049. esac
  12050. shift
  12051. for mf
  12052. do
  12053. # Strip MF so we end up with the name of the file.
  12054. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12055. # Check whether this is an Automake generated Makefile or not.
  12056. # We used to match only the files named `Makefile.in', but
  12057. # some people rename them; so instead we look at the file content.
  12058. # Grep'ing the first line is not enough: some people post-process
  12059. # each Makefile.in and add a new line on top of each file to say so.
  12060. # Grep'ing the whole file is not good either: AIX grep has a line
  12061. # limit of 2048, but all sed's we know have understand at least 4000.
  12062. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12063. dirpart=`$as_dirname -- "$mf" ||
  12064. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12065. X"$mf" : 'X\(//\)[^/]' \| \
  12066. X"$mf" : 'X\(//\)$' \| \
  12067. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12068. $as_echo X"$mf" |
  12069. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12070. s//\1/
  12071. q
  12072. }
  12073. /^X\(\/\/\)[^/].*/{
  12074. s//\1/
  12075. q
  12076. }
  12077. /^X\(\/\/\)$/{
  12078. s//\1/
  12079. q
  12080. }
  12081. /^X\(\/\).*/{
  12082. s//\1/
  12083. q
  12084. }
  12085. s/.*/./; q'`
  12086. else
  12087. continue
  12088. fi
  12089. # Extract the definition of DEPDIR, am__include, and am__quote
  12090. # from the Makefile without running `make'.
  12091. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12092. test -z "$DEPDIR" && continue
  12093. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12094. test -z "am__include" && continue
  12095. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12096. # When using ansi2knr, U may be empty or an underscore; expand it
  12097. U=`sed -n 's/^U = //p' < "$mf"`
  12098. # Find all dependency output files, they are included files with
  12099. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12100. # simplest approach to changing $(DEPDIR) to its actual value in the
  12101. # expansion.
  12102. for file in `sed -n "
  12103. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12104. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12105. # Make sure the directory exists.
  12106. test -f "$dirpart/$file" && continue
  12107. fdir=`$as_dirname -- "$file" ||
  12108. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12109. X"$file" : 'X\(//\)[^/]' \| \
  12110. X"$file" : 'X\(//\)$' \| \
  12111. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12112. $as_echo X"$file" |
  12113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12114. s//\1/
  12115. q
  12116. }
  12117. /^X\(\/\/\)[^/].*/{
  12118. s//\1/
  12119. q
  12120. }
  12121. /^X\(\/\/\)$/{
  12122. s//\1/
  12123. q
  12124. }
  12125. /^X\(\/\).*/{
  12126. s//\1/
  12127. q
  12128. }
  12129. s/.*/./; q'`
  12130. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12131. # echo "creating $dirpart/$file"
  12132. echo '# dummy' > "$dirpart/$file"
  12133. done
  12134. done
  12135. }
  12136. ;;
  12137. esac
  12138. done # for ac_tag
  12139. as_fn_exit 0
  12140. _ACEOF
  12141. ac_clean_files=$ac_clean_files_save
  12142. test $ac_write_fail = 0 ||
  12143. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12144. # configure is writing to config.log, and then calls config.status.
  12145. # config.status does its own redirection, appending to config.log.
  12146. # Unfortunately, on DOS this fails, as config.log is still kept open
  12147. # by configure, so config.status won't be able to write to it; its
  12148. # output is simply discarded. So we exec the FD to /dev/null,
  12149. # effectively closing config.log, so it can be properly (re)opened and
  12150. # appended to by config.status. When coming back to configure, we
  12151. # need to make the FD available again.
  12152. if test "$no_create" != yes; then
  12153. ac_cs_success=:
  12154. ac_config_status_args=
  12155. test "$silent" = yes &&
  12156. ac_config_status_args="$ac_config_status_args --quiet"
  12157. exec 5>/dev/null
  12158. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12159. exec 5>>config.log
  12160. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12161. # would make configure fail if this is the last instruction.
  12162. $ac_cs_success || as_fn_exit 1
  12163. fi
  12164. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12166. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12167. fi
  12168. $ECHO
  12169. $ECHO "WARNING: remember to set the prefix to the mysql installation directory,"
  12170. $ECHO " respectively to set the libdir to the one mysql uses for UDFs"
  12171. $ECHO