PageRenderTime 133ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/enca/configure

http://github.com/xbmc/xbmc
Shell | 16515 lines | 16059 code | 187 blank | 269 comment | 205 complexity | ee10976966f0c2511a1f667c44509521 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for Enca 1.12.
  4. #
  5. # Report bugs to <Michal Cihar <michal@cihar.com>>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and Michal Cihar
  214. $0: <michal@cihar.com> about your system, including any
  215. $0: error possibly output before this message. Then install
  216. $0: a modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$lt_ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. ECHO=${lt_ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $ECHO works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<_LT_EOF
  512. $*
  513. _LT_EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$lt_ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  525. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. ECHO="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$ECHO" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. ECHO='print -r'
  560. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. ECHO='printf %s\n'
  571. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. ECHO=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. lt_ECHO=$ECHO
  616. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. exec 7<&0 </dev/null 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='Enca'
  637. PACKAGE_TARNAME='enca'
  638. PACKAGE_VERSION='1.12'
  639. PACKAGE_STRING='Enca 1.12'
  640. PACKAGE_BUGREPORT='Michal Cihar <michal@cihar.com>'
  641. PACKAGE_URL=''
  642. ac_unique_file="src/enca.c"
  643. # Factoring default headers for most tests.
  644. ac_includes_default="\
  645. #include <stdio.h>
  646. #ifdef HAVE_SYS_TYPES_H
  647. # include <sys/types.h>
  648. #endif
  649. #ifdef HAVE_SYS_STAT_H
  650. # include <sys/stat.h>
  651. #endif
  652. #ifdef STDC_HEADERS
  653. # include <stdlib.h>
  654. # include <stddef.h>
  655. #else
  656. # ifdef HAVE_STDLIB_H
  657. # include <stdlib.h>
  658. # endif
  659. #endif
  660. #ifdef HAVE_STRING_H
  661. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  662. # include <memory.h>
  663. # endif
  664. # include <string.h>
  665. #endif
  666. #ifdef HAVE_STRINGS_H
  667. # include <strings.h>
  668. #endif
  669. #ifdef HAVE_INTTYPES_H
  670. # include <inttypes.h>
  671. #endif
  672. #ifdef HAVE_STDINT_H
  673. # include <stdint.h>
  674. #endif
  675. #ifdef HAVE_UNISTD_H
  676. # include <unistd.h>
  677. #endif"
  678. ac_subst_vars='am__EXEEXT_FALSE
  679. am__EXEEXT_TRUE
  680. LTLIBOBJS
  681. SHELL_RANDOM_FILENAME
  682. DEFAULT_CONVERTER_LIST
  683. DEFAULT_EXTERNAL_CONVERTER
  684. CONVERTER_LIBS
  685. RELEASE
  686. LTLIBICONV
  687. LIBICONV
  688. LIBOBJS
  689. LIBM
  690. ENABLE_GTK_DOC_FALSE
  691. ENABLE_GTK_DOC_TRUE
  692. GTKDOC
  693. HTML_DIR
  694. MAP_PROG
  695. PICONV_PROG
  696. UMAP_PROG
  697. RECODE_PROG
  698. CSTOCS_PROG
  699. MKTEMP_PROG
  700. OTOOL64
  701. OTOOL
  702. LIPO
  703. NMEDIT
  704. DSYMUTIL
  705. lt_ECHO
  706. RANLIB
  707. AR
  708. OBJDUMP
  709. LN_S
  710. NM
  711. ac_ct_DUMPBIN
  712. DUMPBIN
  713. LD
  714. FGREP
  715. SED
  716. host_os
  717. host_vendor
  718. host_cpu
  719. host
  720. build_os
  721. build_vendor
  722. build_cpu
  723. build
  724. LIBTOOL
  725. EGREP
  726. GREP
  727. CPP
  728. am__fastdepCC_FALSE
  729. am__fastdepCC_TRUE
  730. CCDEPMODE
  731. AMDEPBACKSLASH
  732. AMDEP_FALSE
  733. AMDEP_TRUE
  734. am__quote
  735. am__include
  736. DEPDIR
  737. OBJEXT
  738. EXEEXT
  739. ac_ct_CC
  740. CPPFLAGS
  741. LDFLAGS
  742. CFLAGS
  743. CC
  744. MAINT
  745. MAINTAINER_MODE_FALSE
  746. MAINTAINER_MODE_TRUE
  747. am__untar
  748. am__tar
  749. AMTAR
  750. am__leading_dot
  751. SET_MAKE
  752. AWK
  753. mkdir_p
  754. MKDIR_P
  755. INSTALL_STRIP_PROGRAM
  756. STRIP
  757. install_sh
  758. MAKEINFO
  759. AUTOHEADER
  760. AUTOMAKE
  761. AUTOCONF
  762. ACLOCAL
  763. VERSION
  764. PACKAGE
  765. CYGPATH_W
  766. am__isrc
  767. INSTALL_DATA
  768. INSTALL_SCRIPT
  769. INSTALL_PROGRAM
  770. target_alias
  771. host_alias
  772. build_alias
  773. LIBS
  774. ECHO_T
  775. ECHO_N
  776. ECHO_C
  777. DEFS
  778. mandir
  779. localedir
  780. libdir
  781. psdir
  782. pdfdir
  783. dvidir
  784. htmldir
  785. infodir
  786. docdir
  787. oldincludedir
  788. includedir
  789. localstatedir
  790. sharedstatedir
  791. sysconfdir
  792. datadir
  793. datarootdir
  794. libexecdir
  795. sbindir
  796. bindir
  797. program_transform_name
  798. prefix
  799. exec_prefix
  800. PACKAGE_URL
  801. PACKAGE_BUGREPORT
  802. PACKAGE_STRING
  803. PACKAGE_VERSION
  804. PACKAGE_TARNAME
  805. PACKAGE_NAME
  806. PATH_SEPARATOR
  807. SHELL'
  808. ac_subst_files=''
  809. ac_user_opts='
  810. enable_option_checking
  811. enable_maintainer_mode
  812. enable_dependency_tracking
  813. enable_shared
  814. enable_static
  815. with_pic
  816. enable_fast_install
  817. with_gnu_ld
  818. enable_libtool_lock
  819. enable_external
  820. with_html_dir
  821. enable_gtk_doc
  822. enable_rpath
  823. with_libiconv_prefix
  824. with_librecode
  825. '
  826. ac_precious_vars='build_alias
  827. host_alias
  828. target_alias
  829. CC
  830. CFLAGS
  831. LDFLAGS
  832. LIBS
  833. CPPFLAGS
  834. CPP'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *) ac_optarg=yes ;;
  894. esac
  895. # Accept the important Cygnus configure options, so we can diagnose typos.
  896. case $ac_dashdash$ac_option in
  897. --)
  898. ac_dashdash=yes ;;
  899. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  900. ac_prev=bindir ;;
  901. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  902. bindir=$ac_optarg ;;
  903. -build | --build | --buil | --bui | --bu)
  904. ac_prev=build_alias ;;
  905. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  906. build_alias=$ac_optarg ;;
  907. -cache-file | --cache-file | --cache-fil | --cache-fi \
  908. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  909. ac_prev=cache_file ;;
  910. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  911. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  912. cache_file=$ac_optarg ;;
  913. --config-cache | -C)
  914. cache_file=config.cache ;;
  915. -datadir | --datadir | --datadi | --datad)
  916. ac_prev=datadir ;;
  917. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  918. datadir=$ac_optarg ;;
  919. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  920. | --dataroo | --dataro | --datar)
  921. ac_prev=datarootdir ;;
  922. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  923. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  924. datarootdir=$ac_optarg ;;
  925. -disable-* | --disable-*)
  926. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  927. # Reject names that are not valid shell variable names.
  928. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  929. as_fn_error "invalid feature name: $ac_useropt"
  930. ac_useropt_orig=$ac_useropt
  931. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  932. case $ac_user_opts in
  933. *"
  934. "enable_$ac_useropt"
  935. "*) ;;
  936. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  937. ac_unrecognized_sep=', ';;
  938. esac
  939. eval enable_$ac_useropt=no ;;
  940. -docdir | --docdir | --docdi | --doc | --do)
  941. ac_prev=docdir ;;
  942. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  943. docdir=$ac_optarg ;;
  944. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  945. ac_prev=dvidir ;;
  946. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  947. dvidir=$ac_optarg ;;
  948. -enable-* | --enable-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. as_fn_error "invalid feature name: $ac_useropt"
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "enable_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval enable_$ac_useropt=\$ac_optarg ;;
  963. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  964. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  965. | --exec | --exe | --ex)
  966. ac_prev=exec_prefix ;;
  967. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  968. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  969. | --exec=* | --exe=* | --ex=*)
  970. exec_prefix=$ac_optarg ;;
  971. -gas | --gas | --ga | --g)
  972. # Obsolete; use --with-gas.
  973. with_gas=yes ;;
  974. -help | --help | --hel | --he | -h)
  975. ac_init_help=long ;;
  976. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  977. ac_init_help=recursive ;;
  978. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  979. ac_init_help=short ;;
  980. -host | --host | --hos | --ho)
  981. ac_prev=host_alias ;;
  982. -host=* | --host=* | --hos=* | --ho=*)
  983. host_alias=$ac_optarg ;;
  984. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  985. ac_prev=htmldir ;;
  986. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  987. | --ht=*)
  988. htmldir=$ac_optarg ;;
  989. -includedir | --includedir | --includedi | --included | --include \
  990. | --includ | --inclu | --incl | --inc)
  991. ac_prev=includedir ;;
  992. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  993. | --includ=* | --inclu=* | --incl=* | --inc=*)
  994. includedir=$ac_optarg ;;
  995. -infodir | --infodir | --infodi | --infod | --info | --inf)
  996. ac_prev=infodir ;;
  997. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  998. infodir=$ac_optarg ;;
  999. -libdir | --libdir | --libdi | --libd)
  1000. ac_prev=libdir ;;
  1001. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1002. libdir=$ac_optarg ;;
  1003. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1004. | --libexe | --libex | --libe)
  1005. ac_prev=libexecdir ;;
  1006. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1007. | --libexe=* | --libex=* | --libe=*)
  1008. libexecdir=$ac_optarg ;;
  1009. -localedir | --localedir | --localedi | --localed | --locale)
  1010. ac_prev=localedir ;;
  1011. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1012. localedir=$ac_optarg ;;
  1013. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1014. | --localstate | --localstat | --localsta | --localst | --locals)
  1015. ac_prev=localstatedir ;;
  1016. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1017. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1018. localstatedir=$ac_optarg ;;
  1019. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1020. ac_prev=mandir ;;
  1021. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1022. mandir=$ac_optarg ;;
  1023. -nfp | --nfp | --nf)
  1024. # Obsolete; use --without-fp.
  1025. with_fp=no ;;
  1026. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1027. | --no-cr | --no-c | -n)
  1028. no_create=yes ;;
  1029. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1030. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1031. no_recursion=yes ;;
  1032. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1033. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1034. | --oldin | --oldi | --old | --ol | --o)
  1035. ac_prev=oldincludedir ;;
  1036. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1037. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1038. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1039. oldincludedir=$ac_optarg ;;
  1040. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1041. ac_prev=prefix ;;
  1042. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1043. prefix=$ac_optarg ;;
  1044. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1045. | --program-pre | --program-pr | --program-p)
  1046. ac_prev=program_prefix ;;
  1047. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1048. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1049. program_prefix=$ac_optarg ;;
  1050. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1051. | --program-suf | --program-su | --program-s)
  1052. ac_prev=program_suffix ;;
  1053. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1054. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1055. program_suffix=$ac_optarg ;;
  1056. -program-transform-name | --program-transform-name \
  1057. | --program-transform-nam | --program-transform-na \
  1058. | --program-transform-n | --program-transform- \
  1059. | --program-transform | --program-transfor \
  1060. | --program-transfo | --program-transf \
  1061. | --program-trans | --program-tran \
  1062. | --progr-tra | --program-tr | --program-t)
  1063. ac_prev=program_transform_name ;;
  1064. -program-transform-name=* | --program-transform-name=* \
  1065. | --program-transform-nam=* | --program-transform-na=* \
  1066. | --program-transform-n=* | --program-transform-=* \
  1067. | --program-transform=* | --program-transfor=* \
  1068. | --program-transfo=* | --program-transf=* \
  1069. | --program-trans=* | --program-tran=* \
  1070. | --progr-tra=* | --program-tr=* | --program-t=*)
  1071. program_transform_name=$ac_optarg ;;
  1072. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1073. ac_prev=pdfdir ;;
  1074. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1075. pdfdir=$ac_optarg ;;
  1076. -psdir | --psdir | --psdi | --psd | --ps)
  1077. ac_prev=psdir ;;
  1078. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1079. psdir=$ac_optarg ;;
  1080. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1081. | -silent | --silent | --silen | --sile | --sil)
  1082. silent=yes ;;
  1083. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1084. ac_prev=sbindir ;;
  1085. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1086. | --sbi=* | --sb=*)
  1087. sbindir=$ac_optarg ;;
  1088. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1089. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1090. | --sharedst | --shareds | --shared | --share | --shar \
  1091. | --sha | --sh)
  1092. ac_prev=sharedstatedir ;;
  1093. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1094. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1095. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1096. | --sha=* | --sh=*)
  1097. sharedstatedir=$ac_optarg ;;
  1098. -site | --site | --sit)
  1099. ac_prev=site ;;
  1100. -site=* | --site=* | --sit=*)
  1101. site=$ac_optarg ;;
  1102. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1103. ac_prev=srcdir ;;
  1104. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1105. srcdir=$ac_optarg ;;
  1106. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1107. | --syscon | --sysco | --sysc | --sys | --sy)
  1108. ac_prev=sysconfdir ;;
  1109. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1110. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1111. sysconfdir=$ac_optarg ;;
  1112. -target | --target | --targe | --targ | --tar | --ta | --t)
  1113. ac_prev=target_alias ;;
  1114. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1115. target_alias=$ac_optarg ;;
  1116. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1117. verbose=yes ;;
  1118. -version | --version | --versio | --versi | --vers | -V)
  1119. ac_init_version=: ;;
  1120. -with-* | --with-*)
  1121. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1124. as_fn_error "invalid package name: $ac_useropt"
  1125. ac_useropt_orig=$ac_useropt
  1126. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1127. case $ac_user_opts in
  1128. *"
  1129. "with_$ac_useropt"
  1130. "*) ;;
  1131. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1132. ac_unrecognized_sep=', ';;
  1133. esac
  1134. eval with_$ac_useropt=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1139. as_fn_error "invalid package name: $ac_useropt"
  1140. ac_useropt_orig=$ac_useropt
  1141. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. case $ac_user_opts in
  1143. *"
  1144. "with_$ac_useropt"
  1145. "*) ;;
  1146. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1147. ac_unrecognized_sep=', ';;
  1148. esac
  1149. eval with_$ac_useropt=no ;;
  1150. --x)
  1151. # Obsolete; use --with-x.
  1152. with_x=yes ;;
  1153. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1154. | --x-incl | --x-inc | --x-in | --x-i)
  1155. ac_prev=x_includes ;;
  1156. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1157. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1158. x_includes=$ac_optarg ;;
  1159. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1160. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1161. ac_prev=x_libraries ;;
  1162. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1163. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1164. x_libraries=$ac_optarg ;;
  1165. -*) as_fn_error "unrecognized option: \`$ac_option'
  1166. Try \`$0 --help' for more information."
  1167. ;;
  1168. *=*)
  1169. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1170. # Reject names that are not valid shell variable names.
  1171. case $ac_envvar in #(
  1172. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1173. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1174. esac
  1175. eval $ac_envvar=\$ac_optarg
  1176. export $ac_envvar ;;
  1177. *)
  1178. # FIXME: should be removed in autoconf 3.0.
  1179. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1180. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1181. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1182. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1183. ;;
  1184. esac
  1185. done
  1186. if test -n "$ac_prev"; then
  1187. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1188. as_fn_error "missing argument to $ac_option"
  1189. fi
  1190. if test -n "$ac_unrecognized_opts"; then
  1191. case $enable_option_checking in
  1192. no) ;;
  1193. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1194. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1195. esac
  1196. fi
  1197. # Check all directory arguments for consistency.
  1198. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1199. datadir sysconfdir sharedstatedir localstatedir includedir \
  1200. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1201. libdir localedir mandir
  1202. do
  1203. eval ac_val=\$$ac_var
  1204. # Remove trailing slashes.
  1205. case $ac_val in
  1206. */ )
  1207. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1208. eval $ac_var=\$ac_val;;
  1209. esac
  1210. # Be sure to have absolute directory names.
  1211. case $ac_val in
  1212. [\\/$]* | ?:[\\/]* ) continue;;
  1213. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1214. esac
  1215. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1216. done
  1217. # There might be people who depend on the old broken behavior: `$host'
  1218. # used to hold the argument of --host etc.
  1219. # FIXME: To remove some day.
  1220. build=$build_alias
  1221. host=$host_alias
  1222. target=$target_alias
  1223. # FIXME: To remove some day.
  1224. if test "x$host_alias" != x; then
  1225. if test "x$build_alias" = x; then
  1226. cross_compiling=maybe
  1227. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1228. If a cross compiler is detected then cross compile mode will be used." >&2
  1229. elif test "x$build_alias" != "x$host_alias"; then
  1230. cross_compiling=yes
  1231. fi
  1232. fi
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235. test "$silent" = yes && exec 6>/dev/null
  1236. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1237. ac_ls_di=`ls -di .` &&
  1238. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1239. as_fn_error "working directory cannot be determined"
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. as_fn_error "pwd does not report name of working directory"
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. $as_echo X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1283. pwd)`
  1284. # When building in place, set srcdir=.
  1285. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1286. srcdir=.
  1287. fi
  1288. # Remove unnecessary trailing slashes from srcdir.
  1289. # Double slashes in file names in object file debugging info
  1290. # mess up M-x gdb in Emacs.
  1291. case $srcdir in
  1292. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1293. esac
  1294. for ac_var in $ac_precious_vars; do
  1295. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_env_${ac_var}_value=\$${ac_var}
  1297. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1299. done
  1300. #
  1301. # Report the --help message.
  1302. #
  1303. if test "$ac_init_help" = "long"; then
  1304. # Omit some internal or obsolete options to make the list less imposing.
  1305. # This message is too long to be a string in the A/UX 3.1 sh.
  1306. cat <<_ACEOF
  1307. \`configure' configures Enca 1.12 to adapt to many kinds of systems.
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1310. VAR=VALUE. See below for descriptions of some of the useful variables.
  1311. Defaults for the options are specified in brackets.
  1312. Configuration:
  1313. -h, --help display this help and exit
  1314. --help=short display options specific to this package
  1315. --help=recursive display the short help of all the included packages
  1316. -V, --version display version information and exit
  1317. -q, --quiet, --silent do not print \`checking...' messages
  1318. --cache-file=FILE cache test results in FILE [disabled]
  1319. -C, --config-cache alias for \`--cache-file=config.cache'
  1320. -n, --no-create do not create output files
  1321. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1322. Installation directories:
  1323. --prefix=PREFIX install architecture-independent files in PREFIX
  1324. [$ac_default_prefix]
  1325. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1326. [PREFIX]
  1327. By default, \`make install' will install all the files in
  1328. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1329. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1330. for instance \`--prefix=\$HOME'.
  1331. For better control, use the options below.
  1332. Fine tuning of the installation directories:
  1333. --bindir=DIR user executables [EPREFIX/bin]
  1334. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1335. --libexecdir=DIR program executables [EPREFIX/libexec]
  1336. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1337. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1338. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1339. --libdir=DIR object code libraries [EPREFIX/lib]
  1340. --includedir=DIR C header files [PREFIX/include]
  1341. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1342. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1343. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1344. --infodir=DIR info documentation [DATAROOTDIR/info]
  1345. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1346. --mandir=DIR man documentation [DATAROOTDIR/man]
  1347. --docdir=DIR documentation root [DATAROOTDIR/doc/enca]
  1348. --htmldir=DIR html documentation [DOCDIR]
  1349. --dvidir=DIR dvi documentation [DOCDIR]
  1350. --pdfdir=DIR pdf documentation [DOCDIR]
  1351. --psdir=DIR ps documentation [DOCDIR]
  1352. _ACEOF
  1353. cat <<\_ACEOF
  1354. Program names:
  1355. --program-prefix=PREFIX prepend PREFIX to installed program names
  1356. --program-suffix=SUFFIX append SUFFIX to installed program names
  1357. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1358. System types:
  1359. --build=BUILD configure for building on BUILD [guessed]
  1360. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. case $ac_init_help in
  1365. short | recursive ) echo "Configuration of Enca 1.12:";;
  1366. esac
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --enable-maintainer-mode enable make rules and dependencies not useful
  1373. (and sometimes confusing) to the casual installer
  1374. --disable-dependency-tracking speeds up one-time build
  1375. --enable-dependency-tracking do not reject slow dependency extractors
  1376. --enable-shared[=PKGS] build shared libraries [default=yes]
  1377. --enable-static[=PKGS] build static libraries [default=yes]
  1378. --enable-fast-install[=PKGS]
  1379. optimize for fast installation [default=yes]
  1380. --disable-libtool-lock avoid locking (might break parallel builds)
  1381. --enable-external enable conversion using external programs [yes]
  1382. --enable-gtk-doc use gtk-doc to build documentation [auto]
  1383. --disable-rpath do not hardcode runtime library paths
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-pic try to use only PIC/non-PIC objects [default=use
  1388. both]
  1389. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1390. --with-html-dir=PATH path to installed docs [DATADIR/gtk-doc/html]
  1391. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1392. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1393. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1394. --with-librecode[=DIR] look for librecode in DIR/lib and DIR/include [auto]
  1395. Some influential environment variables:
  1396. CC C compiler command
  1397. CFLAGS C compiler flags
  1398. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1399. nonstandard directory <lib dir>
  1400. LIBS libraries to pass to the linker, e.g. -l<library>
  1401. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1402. you have headers in a nonstandard directory <include dir>
  1403. CPP C preprocessor
  1404. Use these variables to override the choices made by `configure' or to help
  1405. it to find libraries and programs with nonstandard names/locations.
  1406. Report bugs to <Michal Cihar <michal@cihar.com>>.
  1407. _ACEOF
  1408. ac_status=$?
  1409. fi
  1410. if test "$ac_init_help" = "recursive"; then
  1411. # If there are subdirs, report their specific --help.
  1412. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1413. test -d "$ac_dir" ||
  1414. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1415. continue
  1416. ac_builddir=.
  1417. case "$ac_dir" in
  1418. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1419. *)
  1420. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1421. # A ".." for each directory in $ac_dir_suffix.
  1422. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1423. case $ac_top_builddir_sub in
  1424. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1425. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1426. esac ;;
  1427. esac
  1428. ac_abs_top_builddir=$ac_pwd
  1429. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1430. # for backward compatibility:
  1431. ac_top_builddir=$ac_top_build_prefix
  1432. case $srcdir in
  1433. .) # We are building in place.
  1434. ac_srcdir=.
  1435. ac_top_srcdir=$ac_top_builddir_sub
  1436. ac_abs_top_srcdir=$ac_pwd ;;
  1437. [\\/]* | ?:[\\/]* ) # Absolute name.
  1438. ac_srcdir=$srcdir$ac_dir_suffix;
  1439. ac_top_srcdir=$srcdir
  1440. ac_abs_top_srcdir=$srcdir ;;
  1441. *) # Relative name.
  1442. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1443. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1444. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1445. esac
  1446. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1447. cd "$ac_dir" || { ac_status=$?; continue; }
  1448. # Check for guested configure.
  1449. if test -f "$ac_srcdir/configure.gnu"; then
  1450. echo &&
  1451. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1452. elif test -f "$ac_srcdir/configure"; then
  1453. echo &&
  1454. $SHELL "$ac_srcdir/configure" --help=recursive
  1455. else
  1456. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1457. fi || ac_status=$?
  1458. cd "$ac_pwd" || { ac_status=$?; break; }
  1459. done
  1460. fi
  1461. test -n "$ac_init_help" && exit $ac_status
  1462. if $ac_init_version; then
  1463. cat <<\_ACEOF
  1464. Enca configure 1.12
  1465. generated by GNU Autoconf 2.64
  1466. Copyright (C) 2009 Free Software Foundation, Inc.
  1467. This configure script is free software; the Free Software Foundation
  1468. gives unlimited permission to copy, distribute and modify it.
  1469. _ACEOF
  1470. exit
  1471. fi
  1472. ## ------------------------ ##
  1473. ## Autoconf initialization. ##
  1474. ## ------------------------ ##
  1475. # ac_fn_c_try_compile LINENO
  1476. # --------------------------
  1477. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_compile ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext
  1482. if { { ac_try="$ac_compile"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_compile") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest.$ac_objext; then :
  1501. ac_retval=0
  1502. else
  1503. $as_echo "$as_me: failed program was:" >&5
  1504. sed 's/^/| /' conftest.$ac_ext >&5
  1505. ac_retval=1
  1506. fi
  1507. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1508. return $ac_retval
  1509. } # ac_fn_c_try_compile
  1510. # ac_fn_c_try_cpp LINENO
  1511. # ----------------------
  1512. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1513. ac_fn_c_try_cpp ()
  1514. {
  1515. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1516. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1517. case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1524. ac_status=$?
  1525. if test -s conftest.err; then
  1526. grep -v '^ *+' conftest.err >conftest.er1
  1527. cat conftest.er1 >&5
  1528. mv -f conftest.er1 conftest.err
  1529. fi
  1530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1531. test $ac_status = 0; } >/dev/null && {
  1532. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1533. test ! -s conftest.err
  1534. }; then :
  1535. ac_retval=0
  1536. else
  1537. $as_echo "$as_me: failed program was:" >&5
  1538. sed 's/^/| /' conftest.$ac_ext >&5
  1539. ac_retval=1
  1540. fi
  1541. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. return $ac_retval
  1543. } # ac_fn_c_try_cpp
  1544. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1545. # -------------------------------------------------------
  1546. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1547. # the include files in INCLUDES and setting the cache variable VAR
  1548. # accordingly.
  1549. ac_fn_c_check_header_mongrel ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1554. $as_echo_n "checking for $2... " >&6; }
  1555. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1556. $as_echo_n "(cached) " >&6
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. else
  1562. # Is the header compilable?
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1564. $as_echo_n "checking $2 usability... " >&6; }
  1565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1566. /* end confdefs.h. */
  1567. $4
  1568. #include <$2>
  1569. _ACEOF
  1570. if ac_fn_c_try_compile "$LINENO"; then :
  1571. ac_header_compiler=yes
  1572. else
  1573. ac_header_compiler=no
  1574. fi
  1575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1577. $as_echo "$ac_header_compiler" >&6; }
  1578. # Is the header present?
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1580. $as_echo_n "checking $2 presence... " >&6; }
  1581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1582. /* end confdefs.h. */
  1583. #include <$2>
  1584. _ACEOF
  1585. if ac_fn_c_try_cpp "$LINENO"; then :
  1586. ac_header_preproc=yes
  1587. else
  1588. ac_header_preproc=no
  1589. fi
  1590. rm -f conftest.err conftest.$ac_ext
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1592. $as_echo "$ac_header_preproc" >&6; }
  1593. # So? What about this header?
  1594. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1595. yes:no: )
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1597. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1599. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1600. ;;
  1601. no:yes:* )
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1603. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1605. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1607. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1609. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1611. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1612. ( cat <<\_ASBOX
  1613. ## ---------------------------------------------- ##
  1614. ## Report this to Michal Cihar <michal@cihar.com> ##
  1615. ## ---------------------------------------------- ##
  1616. _ASBOX
  1617. ) | sed "s/^/$as_me: WARNING: /" >&2
  1618. ;;
  1619. esac
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1621. $as_echo_n "checking for $2... " >&6; }
  1622. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. eval "$3=\$ac_header_compiler"
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. fi
  1631. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1632. } # ac_fn_c_check_header_mongrel
  1633. # ac_fn_c_try_run LINENO
  1634. # ----------------------
  1635. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1636. # that executables *can* be run.
  1637. ac_fn_c_try_run ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. if { { ac_try="$ac_link"
  1641. case "(($ac_try" in
  1642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1643. *) ac_try_echo=$ac_try;;
  1644. esac
  1645. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1646. $as_echo "$ac_try_echo"; } >&5
  1647. (eval "$ac_link") 2>&5
  1648. ac_status=$?
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1651. { { case "(($ac_try" in
  1652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1653. *) ac_try_echo=$ac_try;;
  1654. esac
  1655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1656. $as_echo "$ac_try_echo"; } >&5
  1657. (eval "$ac_try") 2>&5
  1658. ac_status=$?
  1659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1660. test $ac_status = 0; }; }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: program exited with status $ac_status" >&5
  1664. $as_echo "$as_me: failed program was:" >&5
  1665. sed 's/^/| /' conftest.$ac_ext >&5
  1666. ac_retval=$ac_status
  1667. fi
  1668. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1669. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1670. return $ac_retval
  1671. } # ac_fn_c_try_run
  1672. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1673. # -------------------------------------------------------
  1674. # Tests whether HEADER exists and can be compiled using the include files in
  1675. # INCLUDES, setting the cache variable VAR accordingly.
  1676. ac_fn_c_check_header_compile ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1680. $as_echo_n "checking for $2... " >&6; }
  1681. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1682. $as_echo_n "(cached) " >&6
  1683. else
  1684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1685. /* end confdefs.h. */
  1686. $4
  1687. #include <$2>
  1688. _ACEOF
  1689. if ac_fn_c_try_compile "$LINENO"; then :
  1690. eval "$3=yes"
  1691. else
  1692. eval "$3=no"
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1695. fi
  1696. eval ac_res=\$$3
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1698. $as_echo "$ac_res" >&6; }
  1699. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1700. } # ac_fn_c_check_header_compile
  1701. # ac_fn_c_try_link LINENO
  1702. # -----------------------
  1703. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1704. ac_fn_c_try_link ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. rm -f conftest.$ac_objext conftest$ac_exeext
  1708. if { { ac_try="$ac_link"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_link") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } && {
  1724. test -z "$ac_c_werror_flag" ||
  1725. test ! -s conftest.err
  1726. } && test -s conftest$ac_exeext && {
  1727. test "$cross_compiling" = yes ||
  1728. $as_test_x conftest$ac_exeext
  1729. }; then :
  1730. ac_retval=0
  1731. else
  1732. $as_echo "$as_me: failed program was:" >&5
  1733. sed 's/^/| /' conftest.$ac_ext >&5
  1734. ac_retval=1
  1735. fi
  1736. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1737. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1738. # interfere with the next link command; also delete a directory that is
  1739. # left behind by Apple's compiler. We do this before executing the actions.
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1742. return $ac_retval
  1743. } # ac_fn_c_try_link
  1744. # ac_fn_c_check_func LINENO FUNC VAR
  1745. # ----------------------------------
  1746. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1747. ac_fn_c_check_func ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1759. #define $2 innocuous_$2
  1760. /* System header to define __stub macros and hopefully few prototypes,
  1761. which can conflict with char $2 (); below.
  1762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1763. <limits.h> exists even on freestanding compilers. */
  1764. #ifdef __STDC__
  1765. # include <limits.h>
  1766. #else
  1767. # include <assert.h>
  1768. #endif
  1769. #undef $2
  1770. /* Override any GCC internal prototype to avoid an error.
  1771. Use char because int might match the return type of a GCC
  1772. builtin and then its argument prototype would still apply. */
  1773. #ifdef __cplusplus
  1774. extern "C"
  1775. #endif
  1776. char $2 ();
  1777. /* The GNU C library defines this for functions which it implements
  1778. to always fail with ENOSYS. Some functions are actually named
  1779. something starting with __ and the normal name is an alias. */
  1780. #if defined __stub_$2 || defined __stub___$2
  1781. choke me
  1782. #endif
  1783. int
  1784. main ()
  1785. {
  1786. return $2 ();
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_link "$LINENO"; then :
  1792. eval "$3=yes"
  1793. else
  1794. eval "$3=no"
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext \
  1797. conftest$ac_exeext conftest.$ac_ext
  1798. fi
  1799. eval ac_res=\$$3
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1801. $as_echo "$ac_res" >&6; }
  1802. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1803. } # ac_fn_c_check_func
  1804. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1805. # -------------------------------------------
  1806. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1807. # variable VAR accordingly.
  1808. ac_fn_c_check_type ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1812. $as_echo_n "checking for $2... " >&6; }
  1813. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1814. $as_echo_n "(cached) " >&6
  1815. else
  1816. eval "$3=no"
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. $4
  1820. int
  1821. main ()
  1822. {
  1823. if (sizeof ($2))
  1824. return 0;
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. if (sizeof (($2)))
  1837. return 0;
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. else
  1844. eval "$3=yes"
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. fi
  1850. eval ac_res=\$$3
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1852. $as_echo "$ac_res" >&6; }
  1853. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1854. } # ac_fn_c_check_type
  1855. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1856. # ------------------------------------
  1857. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1858. ac_fn_c_check_decl ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  1862. $as_echo_n "checking whether $2 is declared... " >&6; }
  1863. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $4
  1869. int
  1870. main ()
  1871. {
  1872. #ifndef $2
  1873. (void) $2;
  1874. #endif
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. eval "$3=yes"
  1881. else
  1882. eval "$3=no"
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1885. fi
  1886. eval ac_res=\$$3
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1888. $as_echo "$ac_res" >&6; }
  1889. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1890. } # ac_fn_c_check_decl
  1891. cat >config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by Enca $as_me 1.12, which was
  1895. generated by GNU Autoconf 2.64. Invocation command line was
  1896. $ $0 $@
  1897. _ACEOF
  1898. exec 5>>config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. $as_echo "PATH: $as_dir"
  1925. done
  1926. IFS=$as_save_IFS
  1927. } >&5
  1928. cat >&5 <<_ACEOF
  1929. ## ----------- ##
  1930. ## Core tests. ##
  1931. ## ----------- ##
  1932. _ACEOF
  1933. # Keep a trace of the command line.
  1934. # Strip out --no-create and --no-recursion so they do not pile up.
  1935. # Strip out --silent because we don't want to record it for future runs.
  1936. # Also quote any args containing shell meta-characters.
  1937. # Make two passes to allow for proper duplicate-argument suppression.
  1938. ac_configure_args=
  1939. ac_configure_args0=
  1940. ac_configure_args1=
  1941. ac_must_keep_next=false
  1942. for ac_pass in 1 2
  1943. do
  1944. for ac_arg
  1945. do
  1946. case $ac_arg in
  1947. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1949. | -silent | --silent | --silen | --sile | --sil)
  1950. continue ;;
  1951. *\'*)
  1952. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. esac
  1954. case $ac_pass in
  1955. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1956. 2)
  1957. as_fn_append ac_configure_args1 " '$ac_arg'"
  1958. if test $ac_must_keep_next = true; then
  1959. ac_must_keep_next=false # Got value, back to normal.
  1960. else
  1961. case $ac_arg in
  1962. *=* | --config-cache | -C | -disable-* | --disable-* \
  1963. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1964. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1965. | -with-* | --with-* | -without-* | --without-* | --x)
  1966. case "$ac_configure_args0 " in
  1967. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1968. esac
  1969. ;;
  1970. -* ) ac_must_keep_next=true ;;
  1971. esac
  1972. fi
  1973. as_fn_append ac_configure_args " '$ac_arg'"
  1974. ;;
  1975. esac
  1976. done
  1977. done
  1978. { ac_configure_args0=; unset ac_configure_args0;}
  1979. { ac_configure_args1=; unset ac_configure_args1;}
  1980. # When interrupted or exit'd, cleanup temporary files, and complete
  1981. # config.log. We remove comments because anyway the quotes in there
  1982. # would cause problems or look ugly.
  1983. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1984. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1985. trap 'exit_status=$?
  1986. # Save into config.log some information that might help in debugging.
  1987. {
  1988. echo
  1989. cat <<\_ASBOX
  1990. ## ---------------- ##
  1991. ## Cache variables. ##
  1992. ## ---------------- ##
  1993. _ASBOX
  1994. echo
  1995. # The following way of writing the cache mishandles newlines in values,
  1996. (
  1997. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1998. eval ac_val=\$$ac_var
  1999. case $ac_val in #(
  2000. *${as_nl}*)
  2001. case $ac_var in #(
  2002. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2003. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2004. esac
  2005. case $ac_var in #(
  2006. _ | IFS | as_nl) ;; #(
  2007. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2008. *) { eval $ac_var=; unset $ac_var;} ;;
  2009. esac ;;
  2010. esac
  2011. done
  2012. (set) 2>&1 |
  2013. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2014. *${as_nl}ac_space=\ *)
  2015. sed -n \
  2016. "s/'\''/'\''\\\\'\'''\''/g;
  2017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2018. ;; #(
  2019. *)
  2020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2021. ;;
  2022. esac |
  2023. sort
  2024. )
  2025. echo
  2026. cat <<\_ASBOX
  2027. ## ----------------- ##
  2028. ## Output variables. ##
  2029. ## ----------------- ##
  2030. _ASBOX
  2031. echo
  2032. for ac_var in $ac_subst_vars
  2033. do
  2034. eval ac_val=\$$ac_var
  2035. case $ac_val in
  2036. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2037. esac
  2038. $as_echo "$ac_var='\''$ac_val'\''"
  2039. done | sort
  2040. echo
  2041. if test -n "$ac_subst_files"; then
  2042. cat <<\_ASBOX
  2043. ## ------------------- ##
  2044. ## File substitutions. ##
  2045. ## ------------------- ##
  2046. _ASBOX
  2047. echo
  2048. for ac_var in $ac_subst_files
  2049. do
  2050. eval ac_val=\$$ac_var
  2051. case $ac_val in
  2052. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2053. esac
  2054. $as_echo "$ac_var='\''$ac_val'\''"
  2055. done | sort
  2056. echo
  2057. fi
  2058. if test -s confdefs.h; then
  2059. cat <<\_ASBOX
  2060. ## ----------- ##
  2061. ## confdefs.h. ##
  2062. ## ----------- ##
  2063. _ASBOX
  2064. echo
  2065. cat confdefs.h
  2066. echo
  2067. fi
  2068. test "$ac_signal" != 0 &&
  2069. $as_echo "$as_me: caught signal $ac_signal"
  2070. $as_echo "$as_me: exit $exit_status"
  2071. } >&5
  2072. rm -f core *.core core.conftest.* &&
  2073. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2074. exit $exit_status
  2075. ' 0
  2076. for ac_signal in 1 2 13 15; do
  2077. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2078. done
  2079. ac_signal=0
  2080. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2081. rm -f -r conftest* confdefs.h
  2082. $as_echo "/* confdefs.h */" > confdefs.h
  2083. # Predefined preprocessor variables.
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_NAME "$PACKAGE_NAME"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2089. _ACEOF
  2090. cat >>confdefs.h <<_ACEOF
  2091. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2092. _ACEOF
  2093. cat >>confdefs.h <<_ACEOF
  2094. #define PACKAGE_STRING "$PACKAGE_STRING"
  2095. _ACEOF
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2098. _ACEOF
  2099. cat >>confdefs.h <<_ACEOF
  2100. #define PACKAGE_URL "$PACKAGE_URL"
  2101. _ACEOF
  2102. # Let the site file select an alternate cache file if it wants to.
  2103. # Prefer an explicitly selected file to automatically selected ones.
  2104. ac_site_file1=NONE
  2105. ac_site_file2=NONE
  2106. if test -n "$CONFIG_SITE"; then
  2107. ac_site_file1=$CONFIG_SITE
  2108. elif test "x$prefix" != xNONE; then
  2109. ac_site_file1=$prefix/share/config.site
  2110. ac_site_file2=$prefix/etc/config.site
  2111. else
  2112. ac_site_file1=$ac_default_prefix/share/config.site
  2113. ac_site_file2=$ac_default_prefix/etc/config.site
  2114. fi
  2115. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2116. do
  2117. test "x$ac_site_file" = xNONE && continue
  2118. if test -r "$ac_site_file"; then
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2120. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2121. sed 's/^/| /' "$ac_site_file" >&5
  2122. . "$ac_site_file"
  2123. fi
  2124. done
  2125. if test -r "$cache_file"; then
  2126. # Some versions of bash will fail to source /dev/null (special
  2127. # files actually), so we avoid doing that.
  2128. if test -f "$cache_file"; then
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2130. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2131. case $cache_file in
  2132. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2133. *) . "./$cache_file";;
  2134. esac
  2135. fi
  2136. else
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2138. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2139. >$cache_file
  2140. fi
  2141. # Check that the precious variables saved in the cache have kept the same
  2142. # value.
  2143. ac_cache_corrupted=false
  2144. for ac_var in $ac_precious_vars; do
  2145. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2146. eval ac_new_set=\$ac_env_${ac_var}_set
  2147. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2148. eval ac_new_val=\$ac_env_${ac_var}_value
  2149. case $ac_old_set,$ac_new_set in
  2150. set,)
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2152. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2153. ac_cache_corrupted=: ;;
  2154. ,set)
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2156. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2157. ac_cache_corrupted=: ;;
  2158. ,);;
  2159. *)
  2160. if test "x$ac_old_val" != "x$ac_new_val"; then
  2161. # differences in whitespace do not lead to failure.
  2162. ac_old_val_w=`echo x $ac_old_val`
  2163. ac_new_val_w=`echo x $ac_new_val`
  2164. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2166. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2167. ac_cache_corrupted=:
  2168. else
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2170. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2171. eval $ac_var=\$ac_old_val
  2172. fi
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2174. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2176. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2177. fi;;
  2178. esac
  2179. # Pass precious variables to config.status.
  2180. if test "$ac_new_set" = set; then
  2181. case $ac_new_val in
  2182. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2183. *) ac_arg=$ac_var=$ac_new_val ;;
  2184. esac
  2185. case " $ac_configure_args " in
  2186. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2187. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2188. esac
  2189. fi
  2190. done
  2191. if $ac_cache_corrupted; then
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2195. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2196. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2197. fi
  2198. ## -------------------- ##
  2199. ## Main body of script. ##
  2200. ## -------------------- ##
  2201. ac_ext=c
  2202. ac_cpp='$CPP $CPPFLAGS'
  2203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2206. ac_config_files="$ac_config_files Makefile enca.spec enca.pc devel-docs/Makefile data/Makefile lib/Makefile script/Makefile script/b-cstocs script/b-map script/b-piconv script/b-umap src/Makefile src/HELP test/Makefile tools/Makefile"
  2207. ac_config_headers="$ac_config_headers config.h"
  2208. am__api_version='1.11'
  2209. ac_aux_dir=
  2210. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2211. for ac_t in install-sh install.sh shtool; do
  2212. if test -f "$ac_dir/$ac_t"; then
  2213. ac_aux_dir=$ac_dir
  2214. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2215. break 2
  2216. fi
  2217. done
  2218. done
  2219. if test -z "$ac_aux_dir"; then
  2220. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2221. fi
  2222. # These three variables are undocumented and unsupported,
  2223. # and are intended to be withdrawn in a future Autoconf release.
  2224. # They can cause serious problems if a builder's source tree is in a directory
  2225. # whose full name contains unusual characters.
  2226. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2227. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2228. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2229. # Find a good install program. We prefer a C program (faster),
  2230. # so one script is as good as another. But avoid the broken or
  2231. # incompatible versions:
  2232. # SysV /etc/install, /usr/sbin/install
  2233. # SunOS /usr/etc/install
  2234. # IRIX /sbin/install
  2235. # AIX /bin/install
  2236. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2237. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2238. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2239. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2240. # OS/2's system install, which has a completely different semantic
  2241. # ./install, which can be erroneously created by make from ./install.sh.
  2242. # Reject install programs that cannot install multiple files.
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2244. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2245. if test -z "$INSTALL"; then
  2246. if test "${ac_cv_path_install+set}" = set; then :
  2247. $as_echo_n "(cached) " >&6
  2248. else
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. # Account for people who put trailing slashes in PATH elements.
  2255. case $as_dir/ in #((
  2256. ./ | .// | /[cC]/* | \
  2257. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2258. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2259. /usr/ucb/* ) ;;
  2260. *)
  2261. # OSF1 and SCO ODT 3.0 have their own names for install.
  2262. # Don't use installbsd from OSF since it installs stuff as root
  2263. # by default.
  2264. for ac_prog in ginstall scoinst install; do
  2265. for ac_exec_ext in '' $ac_executable_extensions; do
  2266. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2267. if test $ac_prog = install &&
  2268. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2269. # AIX install. It has an incompatible calling convention.
  2270. :
  2271. elif test $ac_prog = install &&
  2272. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2273. # program-specific install script used by HP pwplus--don't use.
  2274. :
  2275. else
  2276. rm -rf conftest.one conftest.two conftest.dir
  2277. echo one > conftest.one
  2278. echo two > conftest.two
  2279. mkdir conftest.dir
  2280. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2281. test -s conftest.one && test -s conftest.two &&
  2282. test -s conftest.dir/conftest.one &&
  2283. test -s conftest.dir/conftest.two
  2284. then
  2285. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2286. break 3
  2287. fi
  2288. fi
  2289. fi
  2290. done
  2291. done
  2292. ;;
  2293. esac
  2294. done
  2295. IFS=$as_save_IFS
  2296. rm -rf conftest.one conftest.two conftest.dir
  2297. fi
  2298. if test "${ac_cv_path_install+set}" = set; then
  2299. INSTALL=$ac_cv_path_install
  2300. else
  2301. # As a last resort, use the slow shell script. Don't cache a
  2302. # value for INSTALL within a source directory, because that will
  2303. # break other packages using the cache if that directory is
  2304. # removed, or if the value is a relative name.
  2305. INSTALL=$ac_install_sh
  2306. fi
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2309. $as_echo "$INSTALL" >&6; }
  2310. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2311. # It thinks the first close brace ends the variable substitution.
  2312. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2313. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2314. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2316. $as_echo_n "checking whether build environment is sane... " >&6; }
  2317. # Just in case
  2318. sleep 1
  2319. echo timestamp > conftest.file
  2320. # Reject unsafe characters in $srcdir or the absolute working directory
  2321. # name. Accept space and tab only in the latter.
  2322. am_lf='
  2323. '
  2324. case `pwd` in
  2325. *[\\\"\#\$\&\'\`$am_lf]*)
  2326. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2327. esac
  2328. case $srcdir in
  2329. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2330. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2331. esac
  2332. # Do `set' in a subshell so we don't clobber the current shell's
  2333. # arguments. Must try -L first in case configure is actually a
  2334. # symlink; some systems play weird games with the mod time of symlinks
  2335. # (eg FreeBSD returns the mod time of the symlink's containing
  2336. # directory).
  2337. if (
  2338. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2339. if test "$*" = "X"; then
  2340. # -L didn't work.
  2341. set X `ls -t "$srcdir/configure" conftest.file`
  2342. fi
  2343. rm -f conftest.file
  2344. if test "$*" != "X $srcdir/configure conftest.file" \
  2345. && test "$*" != "X conftest.file $srcdir/configure"; then
  2346. # If neither matched, then we have a broken ls. This can happen
  2347. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2348. # broken ls alias from the environment. This has actually
  2349. # happened. Such a system could not be considered "sane".
  2350. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2351. alias in your environment" "$LINENO" 5
  2352. fi
  2353. test "$2" = conftest.file
  2354. )
  2355. then
  2356. # Ok.
  2357. :
  2358. else
  2359. as_fn_error "newly created file is older than distributed files!
  2360. Check your system clock" "$LINENO" 5
  2361. fi
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2363. $as_echo "yes" >&6; }
  2364. test "$program_prefix" != NONE &&
  2365. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2366. # Use a double $ so make ignores it.
  2367. test "$program_suffix" != NONE &&
  2368. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2369. # Double any \ or $.
  2370. # By default was `s,x,x', remove it if useless.
  2371. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2372. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2373. # expand $ac_aux_dir to an absolute path
  2374. am_aux_dir=`cd $ac_aux_dir && pwd`
  2375. if test x"${MISSING+set}" != xset; then
  2376. case $am_aux_dir in
  2377. *\ * | *\ *)
  2378. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2379. *)
  2380. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2381. esac
  2382. fi
  2383. # Use eval to expand $SHELL
  2384. if eval "$MISSING --run true"; then
  2385. am_missing_run="$MISSING --run "
  2386. else
  2387. am_missing_run=
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2389. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2390. fi
  2391. if test x"${install_sh}" != xset; then
  2392. case $am_aux_dir in
  2393. *\ * | *\ *)
  2394. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2395. *)
  2396. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2397. esac
  2398. fi
  2399. # Installed binaries are usually stripped using `strip' when the user
  2400. # run `make install-strip'. However `strip' might not be the right
  2401. # tool to use in cross-compilation environments, therefore Automake
  2402. # will honor the `STRIP' environment variable to overrule this program.
  2403. if test "$cross_compiling" != no; then
  2404. if test -n "$ac_tool_prefix"; then
  2405. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2406. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2408. $as_echo_n "checking for $ac_word... " >&6; }
  2409. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2410. $as_echo_n "(cached) " >&6
  2411. else
  2412. if test -n "$STRIP"; then
  2413. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2414. else
  2415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2416. for as_dir in $PATH
  2417. do
  2418. IFS=$as_save_IFS
  2419. test -z "$as_dir" && as_dir=.
  2420. for ac_exec_ext in '' $ac_executable_extensions; do
  2421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2422. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2424. break 2
  2425. fi
  2426. done
  2427. done
  2428. IFS=$as_save_IFS
  2429. fi
  2430. fi
  2431. STRIP=$ac_cv_prog_STRIP
  2432. if test -n "$STRIP"; then
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2434. $as_echo "$STRIP" >&6; }
  2435. else
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2437. $as_echo "no" >&6; }
  2438. fi
  2439. fi
  2440. if test -z "$ac_cv_prog_STRIP"; then
  2441. ac_ct_STRIP=$STRIP
  2442. # Extract the first word of "strip", so it can be a program name with args.
  2443. set dummy strip; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. if test -n "$ac_ct_STRIP"; then
  2450. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
  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_STRIP=$ac_cv_prog_ac_ct_STRIP
  2469. if test -n "$ac_ct_STRIP"; then
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2471. $as_echo "$ac_ct_STRIP" >&6; }
  2472. else
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. fi
  2476. if test "x$ac_ct_STRIP" = x; then
  2477. STRIP=":"
  2478. else
  2479. case $cross_compiling:$ac_tool_warned in
  2480. yes:)
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2483. ac_tool_warned=yes ;;
  2484. esac
  2485. STRIP=$ac_ct_STRIP
  2486. fi
  2487. else
  2488. STRIP="$ac_cv_prog_STRIP"
  2489. fi
  2490. fi
  2491. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2493. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2494. if test -z "$MKDIR_P"; then
  2495. if test "${ac_cv_path_mkdir+set}" = set; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2500. do
  2501. IFS=$as_save_IFS
  2502. test -z "$as_dir" && as_dir=.
  2503. for ac_prog in mkdir gmkdir; do
  2504. for ac_exec_ext in '' $ac_executable_extensions; do
  2505. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2506. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2507. 'mkdir (GNU coreutils) '* | \
  2508. 'mkdir (coreutils) '* | \
  2509. 'mkdir (fileutils) '4.1*)
  2510. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2511. break 3;;
  2512. esac
  2513. done
  2514. done
  2515. done
  2516. IFS=$as_save_IFS
  2517. fi
  2518. if test "${ac_cv_path_mkdir+set}" = set; then
  2519. MKDIR_P="$ac_cv_path_mkdir -p"
  2520. else
  2521. # As a last resort, use the slow shell script. Don't cache a
  2522. # value for MKDIR_P within a source directory, because that will
  2523. # break other packages using the cache if that directory is
  2524. # removed, or if the value is a relative name.
  2525. test -d ./--version && rmdir ./--version
  2526. MKDIR_P="$ac_install_sh -d"
  2527. fi
  2528. fi
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2530. $as_echo "$MKDIR_P" >&6; }
  2531. mkdir_p="$MKDIR_P"
  2532. case $mkdir_p in
  2533. [\\/$]* | ?:[\\/]*) ;;
  2534. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2535. esac
  2536. for ac_prog in gawk mawk nawk awk
  2537. do
  2538. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2539. set dummy $ac_prog; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if test "${ac_cv_prog_AWK+set}" = set; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$AWK"; then
  2546. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2555. ac_cv_prog_AWK="$ac_prog"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. AWK=$ac_cv_prog_AWK
  2565. if test -n "$AWK"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2567. $as_echo "$AWK" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. test -n "$AWK" && break
  2573. done
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2575. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2576. set x ${MAKE-make}
  2577. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2578. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2579. $as_echo_n "(cached) " >&6
  2580. else
  2581. cat >conftest.make <<\_ACEOF
  2582. SHELL = /bin/sh
  2583. all:
  2584. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2585. _ACEOF
  2586. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2587. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2588. *@@@%%%=?*=@@@%%%*)
  2589. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2590. *)
  2591. eval ac_cv_prog_make_${ac_make}_set=no;;
  2592. esac
  2593. rm -f conftest.make
  2594. fi
  2595. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2597. $as_echo "yes" >&6; }
  2598. SET_MAKE=
  2599. else
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2601. $as_echo "no" >&6; }
  2602. SET_MAKE="MAKE=${MAKE-make}"
  2603. fi
  2604. rm -rf .tst 2>/dev/null
  2605. mkdir .tst 2>/dev/null
  2606. if test -d .tst; then
  2607. am__leading_dot=.
  2608. else
  2609. am__leading_dot=_
  2610. fi
  2611. rmdir .tst 2>/dev/null
  2612. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2613. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2614. # is not polluted with repeated "-I."
  2615. am__isrc=' -I$(srcdir)'
  2616. # test to see if srcdir already configured
  2617. if test -f $srcdir/config.status; then
  2618. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2619. fi
  2620. fi
  2621. # test whether we have cygpath
  2622. if test -z "$CYGPATH_W"; then
  2623. if (cygpath --version) >/dev/null 2>/dev/null; then
  2624. CYGPATH_W='cygpath -w'
  2625. else
  2626. CYGPATH_W=echo
  2627. fi
  2628. fi
  2629. # Define the identity of the package.
  2630. PACKAGE='enca'
  2631. VERSION='1.12'
  2632. cat >>confdefs.h <<_ACEOF
  2633. #define PACKAGE "$PACKAGE"
  2634. _ACEOF
  2635. cat >>confdefs.h <<_ACEOF
  2636. #define VERSION "$VERSION"
  2637. _ACEOF
  2638. # Some tools Automake needs.
  2639. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2640. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2641. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2642. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2643. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2644. # We need awk for the "check" target. The system "awk" is bad on
  2645. # some platforms.
  2646. # Always define AMTAR for backward compatibility.
  2647. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2648. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2649. test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  2650. for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2652. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2653. # Check whether --enable-maintainer-mode was given.
  2654. if test "${enable_maintainer_mode+set}" = set; then :
  2655. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2656. else
  2657. USE_MAINTAINER_MODE=no
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2660. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2661. if test $USE_MAINTAINER_MODE = yes; then
  2662. MAINTAINER_MODE_TRUE=
  2663. MAINTAINER_MODE_FALSE='#'
  2664. else
  2665. MAINTAINER_MODE_TRUE='#'
  2666. MAINTAINER_MODE_FALSE=
  2667. fi
  2668. MAINT=$MAINTAINER_MODE_TRUE
  2669. RELEASE=1
  2670. for ac_prog in gawk mawk nawk awk
  2671. do
  2672. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2673. set dummy $ac_prog; ac_word=$2
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2675. $as_echo_n "checking for $ac_word... " >&6; }
  2676. if test "${ac_cv_prog_AWK+set}" = set; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. if test -n "$AWK"; then
  2680. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2681. else
  2682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2683. for as_dir in $PATH
  2684. do
  2685. IFS=$as_save_IFS
  2686. test -z "$as_dir" && as_dir=.
  2687. for ac_exec_ext in '' $ac_executable_extensions; do
  2688. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2689. ac_cv_prog_AWK="$ac_prog"
  2690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2691. break 2
  2692. fi
  2693. done
  2694. done
  2695. IFS=$as_save_IFS
  2696. fi
  2697. fi
  2698. AWK=$ac_cv_prog_AWK
  2699. if test -n "$AWK"; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2701. $as_echo "$AWK" >&6; }
  2702. else
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2704. $as_echo "no" >&6; }
  2705. fi
  2706. test -n "$AWK" && break
  2707. done
  2708. ac_ext=c
  2709. ac_cpp='$CPP $CPPFLAGS'
  2710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2713. if test -n "$ac_tool_prefix"; then
  2714. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2715. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2717. $as_echo_n "checking for $ac_word... " >&6; }
  2718. if test "${ac_cv_prog_CC+set}" = set; then :
  2719. $as_echo_n "(cached) " >&6
  2720. else
  2721. if test -n "$CC"; then
  2722. ac_cv_prog_CC="$CC" # Let the user override the test.
  2723. else
  2724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2725. for as_dir in $PATH
  2726. do
  2727. IFS=$as_save_IFS
  2728. test -z "$as_dir" && as_dir=.
  2729. for ac_exec_ext in '' $ac_executable_extensions; do
  2730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2731. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2733. break 2
  2734. fi
  2735. done
  2736. done
  2737. IFS=$as_save_IFS
  2738. fi
  2739. fi
  2740. CC=$ac_cv_prog_CC
  2741. if test -n "$CC"; then
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2743. $as_echo "$CC" >&6; }
  2744. else
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. fi
  2748. fi
  2749. if test -z "$ac_cv_prog_CC"; then
  2750. ac_ct_CC=$CC
  2751. # Extract the first word of "gcc", so it can be a program name with args.
  2752. set dummy gcc; ac_word=$2
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2754. $as_echo_n "checking for $ac_word... " >&6; }
  2755. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test -n "$ac_ct_CC"; then
  2759. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2760. else
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2768. ac_cv_prog_ac_ct_CC="gcc"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. fi
  2776. fi
  2777. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2778. if test -n "$ac_ct_CC"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2780. $as_echo "$ac_ct_CC" >&6; }
  2781. else
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. $as_echo "no" >&6; }
  2784. fi
  2785. if test "x$ac_ct_CC" = x; then
  2786. CC=""
  2787. else
  2788. case $cross_compiling:$ac_tool_warned in
  2789. yes:)
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2792. ac_tool_warned=yes ;;
  2793. esac
  2794. CC=$ac_ct_CC
  2795. fi
  2796. else
  2797. CC="$ac_cv_prog_CC"
  2798. fi
  2799. if test -z "$CC"; then
  2800. if test -n "$ac_tool_prefix"; then
  2801. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2802. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2804. $as_echo_n "checking for $ac_word... " >&6; }
  2805. if test "${ac_cv_prog_CC+set}" = set; then :
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. if test -n "$CC"; then
  2809. ac_cv_prog_CC="$CC" # Let the user override the test.
  2810. else
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2818. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2820. break 2
  2821. fi
  2822. done
  2823. done
  2824. IFS=$as_save_IFS
  2825. fi
  2826. fi
  2827. CC=$ac_cv_prog_CC
  2828. if test -n "$CC"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2830. $as_echo "$CC" >&6; }
  2831. else
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2833. $as_echo "no" >&6; }
  2834. fi
  2835. fi
  2836. fi
  2837. if test -z "$CC"; then
  2838. # Extract the first word of "cc", so it can be a program name with args.
  2839. set dummy cc; ac_word=$2
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2841. $as_echo_n "checking for $ac_word... " >&6; }
  2842. if test "${ac_cv_prog_CC+set}" = set; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test -n "$CC"; then
  2846. ac_cv_prog_CC="$CC" # Let the user override the test.
  2847. else
  2848. ac_prog_rejected=no
  2849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2850. for as_dir in $PATH
  2851. do
  2852. IFS=$as_save_IFS
  2853. test -z "$as_dir" && as_dir=.
  2854. for ac_exec_ext in '' $ac_executable_extensions; do
  2855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2856. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2857. ac_prog_rejected=yes
  2858. continue
  2859. fi
  2860. ac_cv_prog_CC="cc"
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2862. break 2
  2863. fi
  2864. done
  2865. done
  2866. IFS=$as_save_IFS
  2867. if test $ac_prog_rejected = yes; then
  2868. # We found a bogon in the path, so make sure we never use it.
  2869. set dummy $ac_cv_prog_CC
  2870. shift
  2871. if test $# != 0; then
  2872. # We chose a different compiler from the bogus one.
  2873. # However, it has the same basename, so the bogon will be chosen
  2874. # first if we set CC to just the basename; use the full file name.
  2875. shift
  2876. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2877. fi
  2878. fi
  2879. fi
  2880. fi
  2881. CC=$ac_cv_prog_CC
  2882. if test -n "$CC"; then
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2884. $as_echo "$CC" >&6; }
  2885. else
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2887. $as_echo "no" >&6; }
  2888. fi
  2889. fi
  2890. if test -z "$CC"; then
  2891. if test -n "$ac_tool_prefix"; then
  2892. for ac_prog in cl.exe
  2893. do
  2894. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2895. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. $as_echo_n "checking for $ac_word... " >&6; }
  2898. if test "${ac_cv_prog_CC+set}" = set; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. if test -n "$CC"; then
  2902. ac_cv_prog_CC="$CC" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. test -z "$as_dir" && as_dir=.
  2909. for ac_exec_ext in '' $ac_executable_extensions; do
  2910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2911. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. fi
  2920. CC=$ac_cv_prog_CC
  2921. if test -n "$CC"; then
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2923. $as_echo "$CC" >&6; }
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927. fi
  2928. test -n "$CC" && break
  2929. done
  2930. fi
  2931. if test -z "$CC"; then
  2932. ac_ct_CC=$CC
  2933. for ac_prog in cl.exe
  2934. do
  2935. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2936. set dummy $ac_prog; ac_word=$2
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2938. $as_echo_n "checking for $ac_word... " >&6; }
  2939. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if test -n "$ac_ct_CC"; then
  2943. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2952. ac_cv_prog_ac_ct_CC="$ac_prog"
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. fi
  2960. fi
  2961. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2962. if test -n "$ac_ct_CC"; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2964. $as_echo "$ac_ct_CC" >&6; }
  2965. else
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. fi
  2969. test -n "$ac_ct_CC" && break
  2970. done
  2971. if test "x$ac_ct_CC" = x; then
  2972. CC=""
  2973. else
  2974. case $cross_compiling:$ac_tool_warned in
  2975. yes:)
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2978. ac_tool_warned=yes ;;
  2979. esac
  2980. CC=$ac_ct_CC
  2981. fi
  2982. fi
  2983. fi
  2984. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2986. as_fn_error "no acceptable C compiler found in \$PATH
  2987. See \`config.log' for more details." "$LINENO" 5; }
  2988. # Provide some information about the compiler.
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2990. set X $ac_compile
  2991. ac_compiler=$2
  2992. for ac_option in --version -v -V -qversion; do
  2993. { { ac_try="$ac_compiler $ac_option >&5"
  2994. case "(($ac_try" in
  2995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2996. *) ac_try_echo=$ac_try;;
  2997. esac
  2998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2999. $as_echo "$ac_try_echo"; } >&5
  3000. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3001. ac_status=$?
  3002. if test -s conftest.err; then
  3003. sed '10a\
  3004. ... rest of stderr output deleted ...
  3005. 10q' conftest.err >conftest.er1
  3006. cat conftest.er1 >&5
  3007. rm -f conftest.er1 conftest.err
  3008. fi
  3009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3010. test $ac_status = 0; }
  3011. done
  3012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3013. /* end confdefs.h. */
  3014. #include <stdio.h>
  3015. int
  3016. main ()
  3017. {
  3018. FILE *f = fopen ("conftest.out", "w");
  3019. return ferror (f) || fclose (f) != 0;
  3020. ;
  3021. return 0;
  3022. }
  3023. _ACEOF
  3024. ac_clean_files_save=$ac_clean_files
  3025. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3026. # Try to create an executable without -o first, disregard a.out.
  3027. # It will help us diagnose broken compilers, and finding out an intuition
  3028. # of exeext.
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3030. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3031. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3032. # The possible output files:
  3033. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3034. ac_rmfiles=
  3035. for ac_file in $ac_files
  3036. do
  3037. case $ac_file in
  3038. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3039. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3040. esac
  3041. done
  3042. rm -f $ac_rmfiles
  3043. if { { ac_try="$ac_link_default"
  3044. case "(($ac_try" in
  3045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3046. *) ac_try_echo=$ac_try;;
  3047. esac
  3048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3049. $as_echo "$ac_try_echo"; } >&5
  3050. (eval "$ac_link_default") 2>&5
  3051. ac_status=$?
  3052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3053. test $ac_status = 0; }; then :
  3054. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3055. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3056. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3057. # so that the user can short-circuit this test for compilers unknown to
  3058. # Autoconf.
  3059. for ac_file in $ac_files ''
  3060. do
  3061. test -f "$ac_file" || continue
  3062. case $ac_file in
  3063. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3064. ;;
  3065. [ab].out )
  3066. # We found the default executable, but exeext='' is most
  3067. # certainly right.
  3068. break;;
  3069. *.* )
  3070. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3071. then :; else
  3072. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3073. fi
  3074. # We set ac_cv_exeext here because the later test for it is not
  3075. # safe: cross compilers may not add the suffix if given an `-o'
  3076. # argument, so we may need to know it at that point already.
  3077. # Even if this section looks crufty: it has the advantage of
  3078. # actually working.
  3079. break;;
  3080. * )
  3081. break;;
  3082. esac
  3083. done
  3084. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3085. else
  3086. ac_file=''
  3087. fi
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3089. $as_echo "$ac_file" >&6; }
  3090. if test -z "$ac_file"; then :
  3091. $as_echo "$as_me: failed program was:" >&5
  3092. sed 's/^/| /' conftest.$ac_ext >&5
  3093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3095. { as_fn_set_status 77
  3096. as_fn_error "C compiler cannot create executables
  3097. See \`config.log' for more details." "$LINENO" 5; }; }
  3098. fi
  3099. ac_exeext=$ac_cv_exeext
  3100. # Check that the compiler produces executables we can run. If not, either
  3101. # the compiler is broken, or we cross compile.
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3103. $as_echo_n "checking whether the C compiler works... " >&6; }
  3104. # If not cross compiling, check that we can run a simple program.
  3105. if test "$cross_compiling" != yes; then
  3106. if { ac_try='./$ac_file'
  3107. { { case "(($ac_try" in
  3108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3109. *) ac_try_echo=$ac_try;;
  3110. esac
  3111. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3112. $as_echo "$ac_try_echo"; } >&5
  3113. (eval "$ac_try") 2>&5
  3114. ac_status=$?
  3115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3116. test $ac_status = 0; }; }; then
  3117. cross_compiling=no
  3118. else
  3119. if test "$cross_compiling" = maybe; then
  3120. cross_compiling=yes
  3121. else
  3122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3124. as_fn_error "cannot run C compiled programs.
  3125. If you meant to cross compile, use \`--host'.
  3126. See \`config.log' for more details." "$LINENO" 5; }
  3127. fi
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3131. $as_echo "yes" >&6; }
  3132. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3133. ac_clean_files=$ac_clean_files_save
  3134. # Check that the compiler produces executables we can run. If not, either
  3135. # the compiler is broken, or we cross compile.
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3137. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3139. $as_echo "$cross_compiling" >&6; }
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3141. $as_echo_n "checking for suffix of executables... " >&6; }
  3142. if { { ac_try="$ac_link"
  3143. case "(($ac_try" in
  3144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145. *) ac_try_echo=$ac_try;;
  3146. esac
  3147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3148. $as_echo "$ac_try_echo"; } >&5
  3149. (eval "$ac_link") 2>&5
  3150. ac_status=$?
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3152. test $ac_status = 0; }; then :
  3153. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3154. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3155. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3156. # `rm'.
  3157. for ac_file in conftest.exe conftest conftest.*; do
  3158. test -f "$ac_file" || continue
  3159. case $ac_file in
  3160. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3161. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3162. break;;
  3163. * ) break;;
  3164. esac
  3165. done
  3166. else
  3167. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3169. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3170. See \`config.log' for more details." "$LINENO" 5; }
  3171. fi
  3172. rm -f conftest$ac_cv_exeext
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3174. $as_echo "$ac_cv_exeext" >&6; }
  3175. rm -f conftest.$ac_ext
  3176. EXEEXT=$ac_cv_exeext
  3177. ac_exeext=$EXEEXT
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3179. $as_echo_n "checking for suffix of object files... " >&6; }
  3180. if test "${ac_cv_objext+set}" = set; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3184. /* end confdefs.h. */
  3185. int
  3186. main ()
  3187. {
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. rm -f conftest.o conftest.obj
  3193. if { { ac_try="$ac_compile"
  3194. case "(($ac_try" in
  3195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3196. *) ac_try_echo=$ac_try;;
  3197. esac
  3198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3199. $as_echo "$ac_try_echo"; } >&5
  3200. (eval "$ac_compile") 2>&5
  3201. ac_status=$?
  3202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3203. test $ac_status = 0; }; then :
  3204. for ac_file in conftest.o conftest.obj conftest.*; do
  3205. test -f "$ac_file" || continue;
  3206. case $ac_file in
  3207. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3208. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3209. break;;
  3210. esac
  3211. done
  3212. else
  3213. $as_echo "$as_me: failed program was:" >&5
  3214. sed 's/^/| /' conftest.$ac_ext >&5
  3215. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3217. as_fn_error "cannot compute suffix of object files: cannot compile
  3218. See \`config.log' for more details." "$LINENO" 5; }
  3219. fi
  3220. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3221. fi
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3223. $as_echo "$ac_cv_objext" >&6; }
  3224. OBJEXT=$ac_cv_objext
  3225. ac_objext=$OBJEXT
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3227. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3228. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3232. /* end confdefs.h. */
  3233. int
  3234. main ()
  3235. {
  3236. #ifndef __GNUC__
  3237. choke me
  3238. #endif
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. if ac_fn_c_try_compile "$LINENO"; then :
  3244. ac_compiler_gnu=yes
  3245. else
  3246. ac_compiler_gnu=no
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3252. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3253. if test $ac_compiler_gnu = yes; then
  3254. GCC=yes
  3255. else
  3256. GCC=
  3257. fi
  3258. ac_test_CFLAGS=${CFLAGS+set}
  3259. ac_save_CFLAGS=$CFLAGS
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3261. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3262. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3263. $as_echo_n "(cached) " >&6
  3264. else
  3265. ac_save_c_werror_flag=$ac_c_werror_flag
  3266. ac_c_werror_flag=yes
  3267. ac_cv_prog_cc_g=no
  3268. CFLAGS="-g"
  3269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3270. /* end confdefs.h. */
  3271. int
  3272. main ()
  3273. {
  3274. ;
  3275. return 0;
  3276. }
  3277. _ACEOF
  3278. if ac_fn_c_try_compile "$LINENO"; then :
  3279. ac_cv_prog_cc_g=yes
  3280. else
  3281. CFLAGS=""
  3282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3283. /* end confdefs.h. */
  3284. int
  3285. main ()
  3286. {
  3287. ;
  3288. return 0;
  3289. }
  3290. _ACEOF
  3291. if ac_fn_c_try_compile "$LINENO"; then :
  3292. else
  3293. ac_c_werror_flag=$ac_save_c_werror_flag
  3294. CFLAGS="-g"
  3295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3296. /* end confdefs.h. */
  3297. int
  3298. main ()
  3299. {
  3300. ;
  3301. return 0;
  3302. }
  3303. _ACEOF
  3304. if ac_fn_c_try_compile "$LINENO"; then :
  3305. ac_cv_prog_cc_g=yes
  3306. fi
  3307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3310. fi
  3311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3312. ac_c_werror_flag=$ac_save_c_werror_flag
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3315. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3316. if test "$ac_test_CFLAGS" = set; then
  3317. CFLAGS=$ac_save_CFLAGS
  3318. elif test $ac_cv_prog_cc_g = yes; then
  3319. if test "$GCC" = yes; then
  3320. CFLAGS="-g -O2"
  3321. else
  3322. CFLAGS="-g"
  3323. fi
  3324. else
  3325. if test "$GCC" = yes; then
  3326. CFLAGS="-O2"
  3327. else
  3328. CFLAGS=
  3329. fi
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3332. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3333. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_cv_prog_cc_c89=no
  3337. ac_save_CC=$CC
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. #include <stdarg.h>
  3341. #include <stdio.h>
  3342. #include <sys/types.h>
  3343. #include <sys/stat.h>
  3344. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3345. struct buf { int x; };
  3346. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3347. static char *e (p, i)
  3348. char **p;
  3349. int i;
  3350. {
  3351. return p[i];
  3352. }
  3353. static char *f (char * (*g) (char **, int), char **p, ...)
  3354. {
  3355. char *s;
  3356. va_list v;
  3357. va_start (v,p);
  3358. s = g (p, va_arg (v,int));
  3359. va_end (v);
  3360. return s;
  3361. }
  3362. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3363. function prototypes and stuff, but not '\xHH' hex character constants.
  3364. These don't provoke an error unfortunately, instead are silently treated
  3365. as 'x'. The following induces an error, until -std is added to get
  3366. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3367. array size at least. It's necessary to write '\x00'==0 to get something
  3368. that's true only with -std. */
  3369. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3370. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3371. inside strings and character constants. */
  3372. #define FOO(x) 'x'
  3373. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3374. int test (int i, double x);
  3375. struct s1 {int (*f) (int a);};
  3376. struct s2 {int (*f) (double a);};
  3377. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3378. int argc;
  3379. char **argv;
  3380. int
  3381. main ()
  3382. {
  3383. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3389. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3390. do
  3391. CC="$ac_save_CC $ac_arg"
  3392. if ac_fn_c_try_compile "$LINENO"; then :
  3393. ac_cv_prog_cc_c89=$ac_arg
  3394. fi
  3395. rm -f core conftest.err conftest.$ac_objext
  3396. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3397. done
  3398. rm -f conftest.$ac_ext
  3399. CC=$ac_save_CC
  3400. fi
  3401. # AC_CACHE_VAL
  3402. case "x$ac_cv_prog_cc_c89" in
  3403. x)
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3405. $as_echo "none needed" >&6; } ;;
  3406. xno)
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3408. $as_echo "unsupported" >&6; } ;;
  3409. *)
  3410. CC="$CC $ac_cv_prog_cc_c89"
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3412. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3413. esac
  3414. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3415. fi
  3416. ac_ext=c
  3417. ac_cpp='$CPP $CPPFLAGS'
  3418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3421. DEPDIR="${am__leading_dot}deps"
  3422. ac_config_commands="$ac_config_commands depfiles"
  3423. am_make=${MAKE-make}
  3424. cat > confinc << 'END'
  3425. am__doit:
  3426. @echo this is the am__doit target
  3427. .PHONY: am__doit
  3428. END
  3429. # If we don't find an include directive, just comment out the code.
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3431. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3432. am__include="#"
  3433. am__quote=
  3434. _am_result=none
  3435. # First try GNU make style include.
  3436. echo "include confinc" > confmf
  3437. # Ignore all kinds of additional output from `make'.
  3438. case `$am_make -s -f confmf 2> /dev/null` in #(
  3439. *the\ am__doit\ target*)
  3440. am__include=include
  3441. am__quote=
  3442. _am_result=GNU
  3443. ;;
  3444. esac
  3445. # Now try BSD make style include.
  3446. if test "$am__include" = "#"; then
  3447. echo '.include "confinc"' > confmf
  3448. case `$am_make -s -f confmf 2> /dev/null` in #(
  3449. *the\ am__doit\ target*)
  3450. am__include=.include
  3451. am__quote="\""
  3452. _am_result=BSD
  3453. ;;
  3454. esac
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3457. $as_echo "$_am_result" >&6; }
  3458. rm -f confinc confmf
  3459. # Check whether --enable-dependency-tracking was given.
  3460. if test "${enable_dependency_tracking+set}" = set; then :
  3461. enableval=$enable_dependency_tracking;
  3462. fi
  3463. if test "x$enable_dependency_tracking" != xno; then
  3464. am_depcomp="$ac_aux_dir/depcomp"
  3465. AMDEPBACKSLASH='\'
  3466. fi
  3467. if test "x$enable_dependency_tracking" != xno; then
  3468. AMDEP_TRUE=
  3469. AMDEP_FALSE='#'
  3470. else
  3471. AMDEP_TRUE='#'
  3472. AMDEP_FALSE=
  3473. fi
  3474. depcc="$CC" am_compiler_list=
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3476. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3477. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3481. # We make a subdir and do the tests there. Otherwise we can end up
  3482. # making bogus files that we don't know about and never remove. For
  3483. # instance it was reported that on HP-UX the gcc test will end up
  3484. # making a dummy file named `D' -- because `-MD' means `put the output
  3485. # in D'.
  3486. mkdir conftest.dir
  3487. # Copy depcomp to subdir because otherwise we won't find it if we're
  3488. # using a relative directory.
  3489. cp "$am_depcomp" conftest.dir
  3490. cd conftest.dir
  3491. # We will build objects and dependencies in a subdirectory because
  3492. # it helps to detect inapplicable dependency modes. For instance
  3493. # both Tru64's cc and ICC support -MD to output dependencies as a
  3494. # side effect of compilation, but ICC will put the dependencies in
  3495. # the current directory while Tru64 will put them in the object
  3496. # directory.
  3497. mkdir sub
  3498. am_cv_CC_dependencies_compiler_type=none
  3499. if test "$am_compiler_list" = ""; then
  3500. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3501. fi
  3502. am__universal=false
  3503. case " $depcc " in #(
  3504. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3505. esac
  3506. for depmode in $am_compiler_list; do
  3507. # Setup a source with many dependencies, because some compilers
  3508. # like to wrap large dependency lists on column 80 (with \), and
  3509. # we should not choose a depcomp mode which is confused by this.
  3510. #
  3511. # We need to recreate these files for each test, as the compiler may
  3512. # overwrite some of them when testing with obscure command lines.
  3513. # This happens at least with the AIX C compiler.
  3514. : > sub/conftest.c
  3515. for i in 1 2 3 4 5 6; do
  3516. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3517. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3518. # Solaris 8's {/usr,}/bin/sh.
  3519. touch sub/conftst$i.h
  3520. done
  3521. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3522. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3523. # mode. It turns out that the SunPro C++ compiler does not properly
  3524. # handle `-M -o', and we need to detect this. Also, some Intel
  3525. # versions had trouble with output in subdirs
  3526. am__obj=sub/conftest.${OBJEXT-o}
  3527. am__minus_obj="-o $am__obj"
  3528. case $depmode in
  3529. gcc)
  3530. # This depmode causes a compiler race in universal mode.
  3531. test "$am__universal" = false || continue
  3532. ;;
  3533. nosideeffect)
  3534. # after this tag, mechanisms are not by side-effect, so they'll
  3535. # only be used when explicitly requested
  3536. if test "x$enable_dependency_tracking" = xyes; then
  3537. continue
  3538. else
  3539. break
  3540. fi
  3541. ;;
  3542. msvisualcpp | msvcmsys)
  3543. # This compiler won't grok `-c -o', but also, the minuso test has
  3544. # not run yet. These depmodes are late enough in the game, and
  3545. # so weak that their functioning should not be impacted.
  3546. am__obj=conftest.${OBJEXT-o}
  3547. am__minus_obj=
  3548. ;;
  3549. none) break ;;
  3550. esac
  3551. if depmode=$depmode \
  3552. source=sub/conftest.c object=$am__obj \
  3553. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3554. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3555. >/dev/null 2>conftest.err &&
  3556. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3557. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3558. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3559. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3560. # icc doesn't choke on unknown options, it will just issue warnings
  3561. # or remarks (even with -Werror). So we grep stderr for any message
  3562. # that says an option was ignored or not supported.
  3563. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3564. # icc: Command line warning: ignoring option '-M'; no argument required
  3565. # The diagnosis changed in icc 8.0:
  3566. # icc: Command line remark: option '-MP' not supported
  3567. if (grep 'ignoring option' conftest.err ||
  3568. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3569. am_cv_CC_dependencies_compiler_type=$depmode
  3570. break
  3571. fi
  3572. fi
  3573. done
  3574. cd ..
  3575. rm -rf conftest.dir
  3576. else
  3577. am_cv_CC_dependencies_compiler_type=none
  3578. fi
  3579. fi
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3581. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3582. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3583. if
  3584. test "x$enable_dependency_tracking" != xno \
  3585. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3586. am__fastdepCC_TRUE=
  3587. am__fastdepCC_FALSE='#'
  3588. else
  3589. am__fastdepCC_TRUE='#'
  3590. am__fastdepCC_FALSE=
  3591. fi
  3592. ac_ext=c
  3593. ac_cpp='$CPP $CPPFLAGS'
  3594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3598. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3599. # On Suns, sometimes $CPP names a directory.
  3600. if test -n "$CPP" && test -d "$CPP"; then
  3601. CPP=
  3602. fi
  3603. if test -z "$CPP"; then
  3604. if test "${ac_cv_prog_CPP+set}" = set; then :
  3605. $as_echo_n "(cached) " >&6
  3606. else
  3607. # Double quotes because CPP needs to be expanded
  3608. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3609. do
  3610. ac_preproc_ok=false
  3611. for ac_c_preproc_warn_flag in '' yes
  3612. do
  3613. # Use a header file that comes with gcc, so configuring glibc
  3614. # with a fresh cross-compiler works.
  3615. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3616. # <limits.h> exists even on freestanding compilers.
  3617. # On the NeXT, cc -E runs the code through the compiler's parser,
  3618. # not just through cpp. "Syntax error" is here to catch this case.
  3619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3620. /* end confdefs.h. */
  3621. #ifdef __STDC__
  3622. # include <limits.h>
  3623. #else
  3624. # include <assert.h>
  3625. #endif
  3626. Syntax error
  3627. _ACEOF
  3628. if ac_fn_c_try_cpp "$LINENO"; then :
  3629. else
  3630. # Broken: fails on valid input.
  3631. continue
  3632. fi
  3633. rm -f conftest.err conftest.$ac_ext
  3634. # OK, works on sane cases. Now check whether nonexistent headers
  3635. # can be detected and how.
  3636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3637. /* end confdefs.h. */
  3638. #include <ac_nonexistent.h>
  3639. _ACEOF
  3640. if ac_fn_c_try_cpp "$LINENO"; then :
  3641. # Broken: success on invalid input.
  3642. continue
  3643. else
  3644. # Passes both tests.
  3645. ac_preproc_ok=:
  3646. break
  3647. fi
  3648. rm -f conftest.err conftest.$ac_ext
  3649. done
  3650. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3651. rm -f conftest.err conftest.$ac_ext
  3652. if $ac_preproc_ok; then :
  3653. break
  3654. fi
  3655. done
  3656. ac_cv_prog_CPP=$CPP
  3657. fi
  3658. CPP=$ac_cv_prog_CPP
  3659. else
  3660. ac_cv_prog_CPP=$CPP
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3663. $as_echo "$CPP" >&6; }
  3664. ac_preproc_ok=false
  3665. for ac_c_preproc_warn_flag in '' yes
  3666. do
  3667. # Use a header file that comes with gcc, so configuring glibc
  3668. # with a fresh cross-compiler works.
  3669. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3670. # <limits.h> exists even on freestanding compilers.
  3671. # On the NeXT, cc -E runs the code through the compiler's parser,
  3672. # not just through cpp. "Syntax error" is here to catch this case.
  3673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3674. /* end confdefs.h. */
  3675. #ifdef __STDC__
  3676. # include <limits.h>
  3677. #else
  3678. # include <assert.h>
  3679. #endif
  3680. Syntax error
  3681. _ACEOF
  3682. if ac_fn_c_try_cpp "$LINENO"; then :
  3683. else
  3684. # Broken: fails on valid input.
  3685. continue
  3686. fi
  3687. rm -f conftest.err conftest.$ac_ext
  3688. # OK, works on sane cases. Now check whether nonexistent headers
  3689. # can be detected and how.
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. #include <ac_nonexistent.h>
  3693. _ACEOF
  3694. if ac_fn_c_try_cpp "$LINENO"; then :
  3695. # Broken: success on invalid input.
  3696. continue
  3697. else
  3698. # Passes both tests.
  3699. ac_preproc_ok=:
  3700. break
  3701. fi
  3702. rm -f conftest.err conftest.$ac_ext
  3703. done
  3704. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3705. rm -f conftest.err conftest.$ac_ext
  3706. if $ac_preproc_ok; then :
  3707. else
  3708. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3709. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3710. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3711. See \`config.log' for more details." "$LINENO" 5; }
  3712. fi
  3713. ac_ext=c
  3714. ac_cpp='$CPP $CPPFLAGS'
  3715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3719. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3720. if test "${ac_cv_path_GREP+set}" = set; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. if test -z "$GREP"; then
  3724. ac_path_GREP_found=false
  3725. # Loop through the user's path and test for each of PROGNAME-LIST
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_prog in grep ggrep; do
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3734. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3735. # Check for GNU ac_path_GREP and select it if it is found.
  3736. # Check for GNU $ac_path_GREP
  3737. case `"$ac_path_GREP" --version 2>&1` in
  3738. *GNU*)
  3739. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3740. *)
  3741. ac_count=0
  3742. $as_echo_n 0123456789 >"conftest.in"
  3743. while :
  3744. do
  3745. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3746. mv "conftest.tmp" "conftest.in"
  3747. cp "conftest.in" "conftest.nl"
  3748. $as_echo 'GREP' >> "conftest.nl"
  3749. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3750. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3751. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3752. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3753. # Best one so far, save it but keep looking for a better one
  3754. ac_cv_path_GREP="$ac_path_GREP"
  3755. ac_path_GREP_max=$ac_count
  3756. fi
  3757. # 10*(2^10) chars as input seems more than enough
  3758. test $ac_count -gt 10 && break
  3759. done
  3760. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3761. esac
  3762. $ac_path_GREP_found && break 3
  3763. done
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. if test -z "$ac_cv_path_GREP"; then
  3768. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3769. fi
  3770. else
  3771. ac_cv_path_GREP=$GREP
  3772. fi
  3773. fi
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3775. $as_echo "$ac_cv_path_GREP" >&6; }
  3776. GREP="$ac_cv_path_GREP"
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3778. $as_echo_n "checking for egrep... " >&6; }
  3779. if test "${ac_cv_path_EGREP+set}" = set; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3783. then ac_cv_path_EGREP="$GREP -E"
  3784. else
  3785. if test -z "$EGREP"; then
  3786. ac_path_EGREP_found=false
  3787. # Loop through the user's path and test for each of PROGNAME-LIST
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_prog in egrep; do
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3796. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3797. # Check for GNU ac_path_EGREP and select it if it is found.
  3798. # Check for GNU $ac_path_EGREP
  3799. case `"$ac_path_EGREP" --version 2>&1` in
  3800. *GNU*)
  3801. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3802. *)
  3803. ac_count=0
  3804. $as_echo_n 0123456789 >"conftest.in"
  3805. while :
  3806. do
  3807. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3808. mv "conftest.tmp" "conftest.in"
  3809. cp "conftest.in" "conftest.nl"
  3810. $as_echo 'EGREP' >> "conftest.nl"
  3811. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3812. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3813. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3814. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3815. # Best one so far, save it but keep looking for a better one
  3816. ac_cv_path_EGREP="$ac_path_EGREP"
  3817. ac_path_EGREP_max=$ac_count
  3818. fi
  3819. # 10*(2^10) chars as input seems more than enough
  3820. test $ac_count -gt 10 && break
  3821. done
  3822. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3823. esac
  3824. $ac_path_EGREP_found && break 3
  3825. done
  3826. done
  3827. done
  3828. IFS=$as_save_IFS
  3829. if test -z "$ac_cv_path_EGREP"; then
  3830. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3831. fi
  3832. else
  3833. ac_cv_path_EGREP=$EGREP
  3834. fi
  3835. fi
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3838. $as_echo "$ac_cv_path_EGREP" >&6; }
  3839. EGREP="$ac_cv_path_EGREP"
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3841. $as_echo_n "checking for ANSI C header files... " >&6; }
  3842. if test "${ac_cv_header_stdc+set}" = set; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <stdlib.h>
  3848. #include <stdarg.h>
  3849. #include <string.h>
  3850. #include <float.h>
  3851. int
  3852. main ()
  3853. {
  3854. ;
  3855. return 0;
  3856. }
  3857. _ACEOF
  3858. if ac_fn_c_try_compile "$LINENO"; then :
  3859. ac_cv_header_stdc=yes
  3860. else
  3861. ac_cv_header_stdc=no
  3862. fi
  3863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3864. if test $ac_cv_header_stdc = yes; then
  3865. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end confdefs.h. */
  3868. #include <string.h>
  3869. _ACEOF
  3870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3871. $EGREP "memchr" >/dev/null 2>&1; then :
  3872. else
  3873. ac_cv_header_stdc=no
  3874. fi
  3875. rm -f conftest*
  3876. fi
  3877. if test $ac_cv_header_stdc = yes; then
  3878. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end confdefs.h. */
  3881. #include <stdlib.h>
  3882. _ACEOF
  3883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3884. $EGREP "free" >/dev/null 2>&1; then :
  3885. else
  3886. ac_cv_header_stdc=no
  3887. fi
  3888. rm -f conftest*
  3889. fi
  3890. if test $ac_cv_header_stdc = yes; then
  3891. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3892. if test "$cross_compiling" = yes; then :
  3893. :
  3894. else
  3895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3896. /* end confdefs.h. */
  3897. #include <ctype.h>
  3898. #include <stdlib.h>
  3899. #if ((' ' & 0x0FF) == 0x020)
  3900. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3901. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3902. #else
  3903. # define ISLOWER(c) \
  3904. (('a' <= (c) && (c) <= 'i') \
  3905. || ('j' <= (c) && (c) <= 'r') \
  3906. || ('s' <= (c) && (c) <= 'z'))
  3907. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3908. #endif
  3909. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3910. int
  3911. main ()
  3912. {
  3913. int i;
  3914. for (i = 0; i < 256; i++)
  3915. if (XOR (islower (i), ISLOWER (i))
  3916. || toupper (i) != TOUPPER (i))
  3917. return 2;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_c_try_run "$LINENO"; then :
  3922. else
  3923. ac_cv_header_stdc=no
  3924. fi
  3925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3926. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3927. fi
  3928. fi
  3929. fi
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3931. $as_echo "$ac_cv_header_stdc" >&6; }
  3932. if test $ac_cv_header_stdc = yes; then
  3933. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3934. fi
  3935. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3936. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3937. inttypes.h stdint.h unistd.h
  3938. do :
  3939. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3940. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3941. "
  3942. eval as_val=\$$as_ac_Header
  3943. if test "x$as_val" = x""yes; then :
  3944. cat >>confdefs.h <<_ACEOF
  3945. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3946. _ACEOF
  3947. fi
  3948. done
  3949. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3950. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3951. MINIX=yes
  3952. else
  3953. MINIX=
  3954. fi
  3955. if test "$MINIX" = yes; then
  3956. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3957. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3958. $as_echo "#define _MINIX 1" >>confdefs.h
  3959. fi
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3961. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3962. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3966. /* end confdefs.h. */
  3967. # define __EXTENSIONS__ 1
  3968. $ac_includes_default
  3969. int
  3970. main ()
  3971. {
  3972. ;
  3973. return 0;
  3974. }
  3975. _ACEOF
  3976. if ac_fn_c_try_compile "$LINENO"; then :
  3977. ac_cv_safe_to_define___extensions__=yes
  3978. else
  3979. ac_cv_safe_to_define___extensions__=no
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3982. fi
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3984. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3985. test $ac_cv_safe_to_define___extensions__ = yes &&
  3986. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3987. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3988. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3989. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3990. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3992. $as_echo_n "checking for library containing strerror... " >&6; }
  3993. if test "${ac_cv_search_strerror+set}" = set; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. ac_func_search_save_LIBS=$LIBS
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. /* Override any GCC internal prototype to avoid an error.
  4000. Use char because int might match the return type of a GCC
  4001. builtin and then its argument prototype would still apply. */
  4002. #ifdef __cplusplus
  4003. extern "C"
  4004. #endif
  4005. char strerror ();
  4006. int
  4007. main ()
  4008. {
  4009. return strerror ();
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. for ac_lib in '' cposix; do
  4015. if test -z "$ac_lib"; then
  4016. ac_res="none required"
  4017. else
  4018. ac_res=-l$ac_lib
  4019. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4020. fi
  4021. if ac_fn_c_try_link "$LINENO"; then :
  4022. ac_cv_search_strerror=$ac_res
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext \
  4025. conftest$ac_exeext
  4026. if test "${ac_cv_search_strerror+set}" = set; then :
  4027. break
  4028. fi
  4029. done
  4030. if test "${ac_cv_search_strerror+set}" = set; then :
  4031. else
  4032. ac_cv_search_strerror=no
  4033. fi
  4034. rm conftest.$ac_ext
  4035. LIBS=$ac_func_search_save_LIBS
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  4038. $as_echo "$ac_cv_search_strerror" >&6; }
  4039. ac_res=$ac_cv_search_strerror
  4040. if test "$ac_res" != no; then :
  4041. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4042. fi
  4043. case `pwd` in
  4044. *\ * | *\ *)
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4046. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4047. esac
  4048. macro_version='2.2.6'
  4049. macro_revision='1.3012'
  4050. ltmain="$ac_aux_dir/ltmain.sh"
  4051. # Make sure we can run config.sub.
  4052. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4053. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4055. $as_echo_n "checking build system type... " >&6; }
  4056. if test "${ac_cv_build+set}" = set; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. ac_build_alias=$build_alias
  4060. test "x$ac_build_alias" = x &&
  4061. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4062. test "x$ac_build_alias" = x &&
  4063. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4064. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4065. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4066. fi
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4068. $as_echo "$ac_cv_build" >&6; }
  4069. case $ac_cv_build in
  4070. *-*-*) ;;
  4071. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4072. esac
  4073. build=$ac_cv_build
  4074. ac_save_IFS=$IFS; IFS='-'
  4075. set x $ac_cv_build
  4076. shift
  4077. build_cpu=$1
  4078. build_vendor=$2
  4079. shift; shift
  4080. # Remember, the first character of IFS is used to create $*,
  4081. # except with old shells:
  4082. build_os=$*
  4083. IFS=$ac_save_IFS
  4084. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4086. $as_echo_n "checking host system type... " >&6; }
  4087. if test "${ac_cv_host+set}" = set; then :
  4088. $as_echo_n "(cached) " >&6
  4089. else
  4090. if test "x$host_alias" = x; then
  4091. ac_cv_host=$ac_cv_build
  4092. else
  4093. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4094. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4095. fi
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4098. $as_echo "$ac_cv_host" >&6; }
  4099. case $ac_cv_host in
  4100. *-*-*) ;;
  4101. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4102. esac
  4103. host=$ac_cv_host
  4104. ac_save_IFS=$IFS; IFS='-'
  4105. set x $ac_cv_host
  4106. shift
  4107. host_cpu=$1
  4108. host_vendor=$2
  4109. shift; shift
  4110. # Remember, the first character of IFS is used to create $*,
  4111. # except with old shells:
  4112. host_os=$*
  4113. IFS=$ac_save_IFS
  4114. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4116. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4117. if test "${ac_cv_path_SED+set}" = set; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4121. for ac_i in 1 2 3 4 5 6 7; do
  4122. ac_script="$ac_script$as_nl$ac_script"
  4123. done
  4124. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4125. { ac_script=; unset ac_script;}
  4126. if test -z "$SED"; then
  4127. ac_path_SED_found=false
  4128. # Loop through the user's path and test for each of PROGNAME-LIST
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH
  4131. do
  4132. IFS=$as_save_IFS
  4133. test -z "$as_dir" && as_dir=.
  4134. for ac_prog in sed gsed; do
  4135. for ac_exec_ext in '' $ac_executable_extensions; do
  4136. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4137. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4138. # Check for GNU ac_path_SED and select it if it is found.
  4139. # Check for GNU $ac_path_SED
  4140. case `"$ac_path_SED" --version 2>&1` in
  4141. *GNU*)
  4142. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4143. *)
  4144. ac_count=0
  4145. $as_echo_n 0123456789 >"conftest.in"
  4146. while :
  4147. do
  4148. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4149. mv "conftest.tmp" "conftest.in"
  4150. cp "conftest.in" "conftest.nl"
  4151. $as_echo '' >> "conftest.nl"
  4152. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4153. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4154. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4155. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4156. # Best one so far, save it but keep looking for a better one
  4157. ac_cv_path_SED="$ac_path_SED"
  4158. ac_path_SED_max=$ac_count
  4159. fi
  4160. # 10*(2^10) chars as input seems more than enough
  4161. test $ac_count -gt 10 && break
  4162. done
  4163. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4164. esac
  4165. $ac_path_SED_found && break 3
  4166. done
  4167. done
  4168. done
  4169. IFS=$as_save_IFS
  4170. if test -z "$ac_cv_path_SED"; then
  4171. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4172. fi
  4173. else
  4174. ac_cv_path_SED=$SED
  4175. fi
  4176. fi
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4178. $as_echo "$ac_cv_path_SED" >&6; }
  4179. SED="$ac_cv_path_SED"
  4180. rm -f conftest.sed
  4181. test -z "$SED" && SED=sed
  4182. Xsed="$SED -e 1s/^X//"
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4184. $as_echo_n "checking for fgrep... " >&6; }
  4185. if test "${ac_cv_path_FGREP+set}" = set; then :
  4186. $as_echo_n "(cached) " >&6
  4187. else
  4188. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4189. then ac_cv_path_FGREP="$GREP -F"
  4190. else
  4191. if test -z "$FGREP"; then
  4192. ac_path_FGREP_found=false
  4193. # Loop through the user's path and test for each of PROGNAME-LIST
  4194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4195. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4196. do
  4197. IFS=$as_save_IFS
  4198. test -z "$as_dir" && as_dir=.
  4199. for ac_prog in fgrep; do
  4200. for ac_exec_ext in '' $ac_executable_extensions; do
  4201. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4202. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4203. # Check for GNU ac_path_FGREP and select it if it is found.
  4204. # Check for GNU $ac_path_FGREP
  4205. case `"$ac_path_FGREP" --version 2>&1` in
  4206. *GNU*)
  4207. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4208. *)
  4209. ac_count=0
  4210. $as_echo_n 0123456789 >"conftest.in"
  4211. while :
  4212. do
  4213. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4214. mv "conftest.tmp" "conftest.in"
  4215. cp "conftest.in" "conftest.nl"
  4216. $as_echo 'FGREP' >> "conftest.nl"
  4217. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4218. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4219. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4220. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4221. # Best one so far, save it but keep looking for a better one
  4222. ac_cv_path_FGREP="$ac_path_FGREP"
  4223. ac_path_FGREP_max=$ac_count
  4224. fi
  4225. # 10*(2^10) chars as input seems more than enough
  4226. test $ac_count -gt 10 && break
  4227. done
  4228. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4229. esac
  4230. $ac_path_FGREP_found && break 3
  4231. done
  4232. done
  4233. done
  4234. IFS=$as_save_IFS
  4235. if test -z "$ac_cv_path_FGREP"; then
  4236. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4237. fi
  4238. else
  4239. ac_cv_path_FGREP=$FGREP
  4240. fi
  4241. fi
  4242. fi
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4244. $as_echo "$ac_cv_path_FGREP" >&6; }
  4245. FGREP="$ac_cv_path_FGREP"
  4246. test -z "$GREP" && GREP=grep
  4247. # Check whether --with-gnu-ld was given.
  4248. if test "${with_gnu_ld+set}" = set; then :
  4249. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4250. else
  4251. with_gnu_ld=no
  4252. fi
  4253. ac_prog=ld
  4254. if test "$GCC" = yes; then
  4255. # Check if gcc -print-prog-name=ld gives a path.
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4257. $as_echo_n "checking for ld used by $CC... " >&6; }
  4258. case $host in
  4259. *-*-mingw*)
  4260. # gcc leaves a trailing carriage return which upsets mingw
  4261. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4262. *)
  4263. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4264. esac
  4265. case $ac_prog in
  4266. # Accept absolute paths.
  4267. [\\/]* | ?:[\\/]*)
  4268. re_direlt='/[^/][^/]*/\.\./'
  4269. # Canonicalize the pathname of ld
  4270. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4271. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4272. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4273. done
  4274. test -z "$LD" && LD="$ac_prog"
  4275. ;;
  4276. "")
  4277. # If it fails, then pretend we aren't using GCC.
  4278. ac_prog=ld
  4279. ;;
  4280. *)
  4281. # If it is relative, then search for the first ld in PATH.
  4282. with_gnu_ld=unknown
  4283. ;;
  4284. esac
  4285. elif test "$with_gnu_ld" = yes; then
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4287. $as_echo_n "checking for GNU ld... " >&6; }
  4288. else
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4290. $as_echo_n "checking for non-GNU ld... " >&6; }
  4291. fi
  4292. if test "${lt_cv_path_LD+set}" = set; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. if test -z "$LD"; then
  4296. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4297. for ac_dir in $PATH; do
  4298. IFS="$lt_save_ifs"
  4299. test -z "$ac_dir" && ac_dir=.
  4300. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4301. lt_cv_path_LD="$ac_dir/$ac_prog"
  4302. # Check to see if the program is GNU ld. I'd rather use --version,
  4303. # but apparently some variants of GNU ld only accept -v.
  4304. # Break only if it was the GNU/non-GNU ld that we prefer.
  4305. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4306. *GNU* | *'with BFD'*)
  4307. test "$with_gnu_ld" != no && break
  4308. ;;
  4309. *)
  4310. test "$with_gnu_ld" != yes && break
  4311. ;;
  4312. esac
  4313. fi
  4314. done
  4315. IFS="$lt_save_ifs"
  4316. else
  4317. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4318. fi
  4319. fi
  4320. LD="$lt_cv_path_LD"
  4321. if test -n "$LD"; then
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4323. $as_echo "$LD" >&6; }
  4324. else
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4326. $as_echo "no" >&6; }
  4327. fi
  4328. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4330. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4331. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4335. case `$LD -v 2>&1 </dev/null` in
  4336. *GNU* | *'with BFD'*)
  4337. lt_cv_prog_gnu_ld=yes
  4338. ;;
  4339. *)
  4340. lt_cv_prog_gnu_ld=no
  4341. ;;
  4342. esac
  4343. fi
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4345. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4346. with_gnu_ld=$lt_cv_prog_gnu_ld
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4348. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4349. if test "${lt_cv_path_NM+set}" = set; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. if test -n "$NM"; then
  4353. # Let the user override the test.
  4354. lt_cv_path_NM="$NM"
  4355. else
  4356. lt_nm_to_check="${ac_tool_prefix}nm"
  4357. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4358. lt_nm_to_check="$lt_nm_to_check nm"
  4359. fi
  4360. for lt_tmp_nm in $lt_nm_to_check; do
  4361. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4362. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4363. IFS="$lt_save_ifs"
  4364. test -z "$ac_dir" && ac_dir=.
  4365. tmp_nm="$ac_dir/$lt_tmp_nm"
  4366. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4367. # Check to see if the nm accepts a BSD-compat flag.
  4368. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4369. # nm: unknown option "B" ignored
  4370. # Tru64's nm complains that /dev/null is an invalid object file
  4371. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4372. */dev/null* | *'Invalid file or object type'*)
  4373. lt_cv_path_NM="$tmp_nm -B"
  4374. break
  4375. ;;
  4376. *)
  4377. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4378. */dev/null*)
  4379. lt_cv_path_NM="$tmp_nm -p"
  4380. break
  4381. ;;
  4382. *)
  4383. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4384. continue # so that we can try to find one that supports BSD flags
  4385. ;;
  4386. esac
  4387. ;;
  4388. esac
  4389. fi
  4390. done
  4391. IFS="$lt_save_ifs"
  4392. done
  4393. : ${lt_cv_path_NM=no}
  4394. fi
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4397. $as_echo "$lt_cv_path_NM" >&6; }
  4398. if test "$lt_cv_path_NM" != "no"; then
  4399. NM="$lt_cv_path_NM"
  4400. else
  4401. # Didn't find any BSD compatible name lister, look for dumpbin.
  4402. if test -n "$ac_tool_prefix"; then
  4403. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4404. do
  4405. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4406. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4408. $as_echo_n "checking for $ac_word... " >&6; }
  4409. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -n "$DUMPBIN"; then
  4413. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4414. else
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4422. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4424. break 2
  4425. fi
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. fi
  4430. fi
  4431. DUMPBIN=$ac_cv_prog_DUMPBIN
  4432. if test -n "$DUMPBIN"; then
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4434. $as_echo "$DUMPBIN" >&6; }
  4435. else
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4437. $as_echo "no" >&6; }
  4438. fi
  4439. test -n "$DUMPBIN" && break
  4440. done
  4441. fi
  4442. if test -z "$DUMPBIN"; then
  4443. ac_ct_DUMPBIN=$DUMPBIN
  4444. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4445. do
  4446. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4447. set dummy $ac_prog; ac_word=$2
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4449. $as_echo_n "checking for $ac_word... " >&6; }
  4450. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4451. $as_echo_n "(cached) " >&6
  4452. else
  4453. if test -n "$ac_ct_DUMPBIN"; then
  4454. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4455. else
  4456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4457. for as_dir in $PATH
  4458. do
  4459. IFS=$as_save_IFS
  4460. test -z "$as_dir" && as_dir=.
  4461. for ac_exec_ext in '' $ac_executable_extensions; do
  4462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4463. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4465. break 2
  4466. fi
  4467. done
  4468. done
  4469. IFS=$as_save_IFS
  4470. fi
  4471. fi
  4472. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4473. if test -n "$ac_ct_DUMPBIN"; then
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4475. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4476. else
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4478. $as_echo "no" >&6; }
  4479. fi
  4480. test -n "$ac_ct_DUMPBIN" && break
  4481. done
  4482. if test "x$ac_ct_DUMPBIN" = x; then
  4483. DUMPBIN=":"
  4484. else
  4485. case $cross_compiling:$ac_tool_warned in
  4486. yes:)
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4489. ac_tool_warned=yes ;;
  4490. esac
  4491. DUMPBIN=$ac_ct_DUMPBIN
  4492. fi
  4493. fi
  4494. if test "$DUMPBIN" != ":"; then
  4495. NM="$DUMPBIN"
  4496. fi
  4497. fi
  4498. test -z "$NM" && NM=nm
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4500. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4501. if test "${lt_cv_nm_interface+set}" = set; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. lt_cv_nm_interface="BSD nm"
  4505. echo "int some_variable = 0;" > conftest.$ac_ext
  4506. (eval echo "\"\$as_me:5035: $ac_compile\"" >&5)
  4507. (eval "$ac_compile" 2>conftest.err)
  4508. cat conftest.err >&5
  4509. (eval echo "\"\$as_me:5038: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4510. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4511. cat conftest.err >&5
  4512. (eval echo "\"\$as_me:5041: output\"" >&5)
  4513. cat conftest.out >&5
  4514. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4515. lt_cv_nm_interface="MS dumpbin"
  4516. fi
  4517. rm -f conftest*
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4520. $as_echo "$lt_cv_nm_interface" >&6; }
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4522. $as_echo_n "checking whether ln -s works... " >&6; }
  4523. LN_S=$as_ln_s
  4524. if test "$LN_S" = "ln -s"; then
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4526. $as_echo "yes" >&6; }
  4527. else
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4529. $as_echo "no, using $LN_S" >&6; }
  4530. fi
  4531. # find the maximum length of command line arguments
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4533. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4534. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4535. $as_echo_n "(cached) " >&6
  4536. else
  4537. i=0
  4538. teststring="ABCD"
  4539. case $build_os in
  4540. msdosdjgpp*)
  4541. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4542. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4543. # during glob expansion). Even if it were fixed, the result of this
  4544. # check would be larger than it should be.
  4545. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4546. ;;
  4547. gnu*)
  4548. # Under GNU Hurd, this test is not required because there is
  4549. # no limit to the length of command line arguments.
  4550. # Libtool will interpret -1 as no limit whatsoever
  4551. lt_cv_sys_max_cmd_len=-1;
  4552. ;;
  4553. cygwin* | mingw* | cegcc*)
  4554. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4555. # about 5 minutes as the teststring grows exponentially.
  4556. # Worse, since 9x/ME are not pre-emptively multitasking,
  4557. # you end up with a "frozen" computer, even though with patience
  4558. # the test eventually succeeds (with a max line length of 256k).
  4559. # Instead, let's just punt: use the minimum linelength reported by
  4560. # all of the supported platforms: 8192 (on NT/2K/XP).
  4561. lt_cv_sys_max_cmd_len=8192;
  4562. ;;
  4563. amigaos*)
  4564. # On AmigaOS with pdksh, this test takes hours, literally.
  4565. # So we just punt and use a minimum line length of 8192.
  4566. lt_cv_sys_max_cmd_len=8192;
  4567. ;;
  4568. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4569. # This has been around since 386BSD, at least. Likely further.
  4570. if test -x /sbin/sysctl; then
  4571. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4572. elif test -x /usr/sbin/sysctl; then
  4573. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4574. else
  4575. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4576. fi
  4577. # And add a safety zone
  4578. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4579. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4580. ;;
  4581. interix*)
  4582. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4583. lt_cv_sys_max_cmd_len=196608
  4584. ;;
  4585. osf*)
  4586. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4587. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4588. # nice to cause kernel panics so lets avoid the loop below.
  4589. # First set a reasonable default.
  4590. lt_cv_sys_max_cmd_len=16384
  4591. #
  4592. if test -x /sbin/sysconfig; then
  4593. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4594. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4595. esac
  4596. fi
  4597. ;;
  4598. sco3.2v5*)
  4599. lt_cv_sys_max_cmd_len=102400
  4600. ;;
  4601. sysv5* | sco5v6* | sysv4.2uw2*)
  4602. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4603. if test -n "$kargmax"; then
  4604. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4605. else
  4606. lt_cv_sys_max_cmd_len=32768
  4607. fi
  4608. ;;
  4609. *)
  4610. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4611. if test -n "$lt_cv_sys_max_cmd_len"; then
  4612. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4613. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4614. else
  4615. # Make teststring a little bigger before we do anything with it.
  4616. # a 1K string should be a reasonable start.
  4617. for i in 1 2 3 4 5 6 7 8 ; do
  4618. teststring=$teststring$teststring
  4619. done
  4620. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4621. # If test is not a shell built-in, we'll probably end up computing a
  4622. # maximum length that is only half of the actual maximum length, but
  4623. # we can't tell.
  4624. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4625. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4626. test $i != 17 # 1/2 MB should be enough
  4627. do
  4628. i=`expr $i + 1`
  4629. teststring=$teststring$teststring
  4630. done
  4631. # Only check the string length outside the loop.
  4632. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4633. teststring=
  4634. # Add a significant safety factor because C++ compilers can tack on
  4635. # massive amounts of additional arguments before passing them to the
  4636. # linker. It appears as though 1/2 is a usable value.
  4637. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4638. fi
  4639. ;;
  4640. esac
  4641. fi
  4642. if test -n $lt_cv_sys_max_cmd_len ; then
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4644. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4645. else
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4647. $as_echo "none" >&6; }
  4648. fi
  4649. max_cmd_len=$lt_cv_sys_max_cmd_len
  4650. : ${CP="cp -f"}
  4651. : ${MV="mv -f"}
  4652. : ${RM="rm -f"}
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4654. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4655. # Try some XSI features
  4656. xsi_shell=no
  4657. ( _lt_dummy="a/b/c"
  4658. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4659. = c,a/b,, \
  4660. && eval 'test $(( 1 + 1 )) -eq 2 \
  4661. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4662. && xsi_shell=yes
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4664. $as_echo "$xsi_shell" >&6; }
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4666. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4667. lt_shell_append=no
  4668. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4669. >/dev/null 2>&1 \
  4670. && lt_shell_append=yes
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4672. $as_echo "$lt_shell_append" >&6; }
  4673. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4674. lt_unset=unset
  4675. else
  4676. lt_unset=false
  4677. fi
  4678. # test EBCDIC or ASCII
  4679. case `echo X|tr X '\101'` in
  4680. A) # ASCII based system
  4681. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4682. lt_SP2NL='tr \040 \012'
  4683. lt_NL2SP='tr \015\012 \040\040'
  4684. ;;
  4685. *) # EBCDIC based system
  4686. lt_SP2NL='tr \100 \n'
  4687. lt_NL2SP='tr \r\n \100\100'
  4688. ;;
  4689. esac
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4691. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4692. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. lt_cv_ld_reload_flag='-r'
  4696. fi
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4698. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4699. reload_flag=$lt_cv_ld_reload_flag
  4700. case $reload_flag in
  4701. "" | " "*) ;;
  4702. *) reload_flag=" $reload_flag" ;;
  4703. esac
  4704. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4705. case $host_os in
  4706. darwin*)
  4707. if test "$GCC" = yes; then
  4708. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4709. else
  4710. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4711. fi
  4712. ;;
  4713. esac
  4714. if test -n "$ac_tool_prefix"; then
  4715. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4716. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. $as_echo_n "checking for $ac_word... " >&6; }
  4719. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. if test -n "$OBJDUMP"; then
  4723. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4724. else
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_exec_ext in '' $ac_executable_extensions; do
  4731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4732. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4734. break 2
  4735. fi
  4736. done
  4737. done
  4738. IFS=$as_save_IFS
  4739. fi
  4740. fi
  4741. OBJDUMP=$ac_cv_prog_OBJDUMP
  4742. if test -n "$OBJDUMP"; then
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4744. $as_echo "$OBJDUMP" >&6; }
  4745. else
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4747. $as_echo "no" >&6; }
  4748. fi
  4749. fi
  4750. if test -z "$ac_cv_prog_OBJDUMP"; then
  4751. ac_ct_OBJDUMP=$OBJDUMP
  4752. # Extract the first word of "objdump", so it can be a program name with args.
  4753. set dummy objdump; ac_word=$2
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4755. $as_echo_n "checking for $ac_word... " >&6; }
  4756. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. if test -n "$ac_ct_OBJDUMP"; then
  4760. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4761. else
  4762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4763. for as_dir in $PATH
  4764. do
  4765. IFS=$as_save_IFS
  4766. test -z "$as_dir" && as_dir=.
  4767. for ac_exec_ext in '' $ac_executable_extensions; do
  4768. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4769. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4771. break 2
  4772. fi
  4773. done
  4774. done
  4775. IFS=$as_save_IFS
  4776. fi
  4777. fi
  4778. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4779. if test -n "$ac_ct_OBJDUMP"; then
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4781. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4782. else
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4784. $as_echo "no" >&6; }
  4785. fi
  4786. if test "x$ac_ct_OBJDUMP" = x; then
  4787. OBJDUMP="false"
  4788. else
  4789. case $cross_compiling:$ac_tool_warned in
  4790. yes:)
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4793. ac_tool_warned=yes ;;
  4794. esac
  4795. OBJDUMP=$ac_ct_OBJDUMP
  4796. fi
  4797. else
  4798. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4799. fi
  4800. test -z "$OBJDUMP" && OBJDUMP=objdump
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4802. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4803. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4807. lt_cv_file_magic_test_file=
  4808. lt_cv_deplibs_check_method='unknown'
  4809. # Need to set the preceding variable on all platforms that support
  4810. # interlibrary dependencies.
  4811. # 'none' -- dependencies not supported.
  4812. # `unknown' -- same as none, but documents that we really don't know.
  4813. # 'pass_all' -- all dependencies passed with no checks.
  4814. # 'test_compile' -- check by making test program.
  4815. # 'file_magic [[regex]]' -- check by looking for files in library path
  4816. # which responds to the $file_magic_cmd with a given extended regex.
  4817. # If you have `file' or equivalent on your system and you're not sure
  4818. # whether `pass_all' will *always* work, you probably want this one.
  4819. case $host_os in
  4820. aix[4-9]*)
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. beos*)
  4824. lt_cv_deplibs_check_method=pass_all
  4825. ;;
  4826. bsdi[45]*)
  4827. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4828. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4829. lt_cv_file_magic_test_file=/shlib/libc.so
  4830. ;;
  4831. cygwin*)
  4832. # func_win32_libid is a shell function defined in ltmain.sh
  4833. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4834. lt_cv_file_magic_cmd='func_win32_libid'
  4835. ;;
  4836. mingw* | pw32*)
  4837. # Base MSYS/MinGW do not provide the 'file' command needed by
  4838. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4839. # unless we find 'file', for example because we are cross-compiling.
  4840. if ( file / ) >/dev/null 2>&1; then
  4841. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4842. lt_cv_file_magic_cmd='func_win32_libid'
  4843. else
  4844. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4845. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4846. fi
  4847. ;;
  4848. cegcc)
  4849. # use the weaker test based on 'objdump'. See mingw*.
  4850. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4851. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4852. ;;
  4853. darwin* | rhapsody*)
  4854. lt_cv_deplibs_check_method=pass_all
  4855. ;;
  4856. freebsd* | dragonfly*)
  4857. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4858. case $host_cpu in
  4859. i*86 )
  4860. # Not sure whether the presence of OpenBSD here was a mistake.
  4861. # Let's accept both of them until this is cleared up.
  4862. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4863. lt_cv_file_magic_cmd=/usr/bin/file
  4864. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4865. ;;
  4866. esac
  4867. else
  4868. lt_cv_deplibs_check_method=pass_all
  4869. fi
  4870. ;;
  4871. gnu*)
  4872. lt_cv_deplibs_check_method=pass_all
  4873. ;;
  4874. hpux10.20* | hpux11*)
  4875. lt_cv_file_magic_cmd=/usr/bin/file
  4876. case $host_cpu in
  4877. ia64*)
  4878. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4879. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4880. ;;
  4881. hppa*64*)
  4882. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4883. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4884. ;;
  4885. *)
  4886. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4887. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4888. ;;
  4889. esac
  4890. ;;
  4891. interix[3-9]*)
  4892. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4893. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4894. ;;
  4895. irix5* | irix6* | nonstopux*)
  4896. case $LD in
  4897. *-32|*"-32 ") libmagic=32-bit;;
  4898. *-n32|*"-n32 ") libmagic=N32;;
  4899. *-64|*"-64 ") libmagic=64-bit;;
  4900. *) libmagic=never-match;;
  4901. esac
  4902. lt_cv_deplibs_check_method=pass_all
  4903. ;;
  4904. # This must be Linux ELF.
  4905. linux* | k*bsd*-gnu)
  4906. lt_cv_deplibs_check_method=pass_all
  4907. ;;
  4908. netbsd* | netbsdelf*-gnu)
  4909. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4910. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4911. else
  4912. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4913. fi
  4914. ;;
  4915. newos6*)
  4916. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4917. lt_cv_file_magic_cmd=/usr/bin/file
  4918. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4919. ;;
  4920. *nto* | *qnx*)
  4921. lt_cv_deplibs_check_method=pass_all
  4922. ;;
  4923. openbsd*)
  4924. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4925. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4926. else
  4927. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4928. fi
  4929. ;;
  4930. osf3* | osf4* | osf5*)
  4931. lt_cv_deplibs_check_method=pass_all
  4932. ;;
  4933. rdos*)
  4934. lt_cv_deplibs_check_method=pass_all
  4935. ;;
  4936. solaris*)
  4937. lt_cv_deplibs_check_method=pass_all
  4938. ;;
  4939. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4940. lt_cv_deplibs_check_method=pass_all
  4941. ;;
  4942. sysv4 | sysv4.3*)
  4943. case $host_vendor in
  4944. motorola)
  4945. 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]'
  4946. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4947. ;;
  4948. ncr)
  4949. lt_cv_deplibs_check_method=pass_all
  4950. ;;
  4951. sequent)
  4952. lt_cv_file_magic_cmd='/bin/file'
  4953. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4954. ;;
  4955. sni)
  4956. lt_cv_file_magic_cmd='/bin/file'
  4957. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4958. lt_cv_file_magic_test_file=/lib/libc.so
  4959. ;;
  4960. siemens)
  4961. lt_cv_deplibs_check_method=pass_all
  4962. ;;
  4963. pc)
  4964. lt_cv_deplibs_check_method=pass_all
  4965. ;;
  4966. esac
  4967. ;;
  4968. tpf*)
  4969. lt_cv_deplibs_check_method=pass_all
  4970. ;;
  4971. esac
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4974. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4975. file_magic_cmd=$lt_cv_file_magic_cmd
  4976. deplibs_check_method=$lt_cv_deplibs_check_method
  4977. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4978. if test -n "$ac_tool_prefix"; then
  4979. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4980. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4982. $as_echo_n "checking for $ac_word... " >&6; }
  4983. if test "${ac_cv_prog_AR+set}" = set; then :
  4984. $as_echo_n "(cached) " >&6
  4985. else
  4986. if test -n "$AR"; then
  4987. ac_cv_prog_AR="$AR" # Let the user override the test.
  4988. else
  4989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4990. for as_dir in $PATH
  4991. do
  4992. IFS=$as_save_IFS
  4993. test -z "$as_dir" && as_dir=.
  4994. for ac_exec_ext in '' $ac_executable_extensions; do
  4995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4996. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4998. break 2
  4999. fi
  5000. done
  5001. done
  5002. IFS=$as_save_IFS
  5003. fi
  5004. fi
  5005. AR=$ac_cv_prog_AR
  5006. if test -n "$AR"; then
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5008. $as_echo "$AR" >&6; }
  5009. else
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5011. $as_echo "no" >&6; }
  5012. fi
  5013. fi
  5014. if test -z "$ac_cv_prog_AR"; then
  5015. ac_ct_AR=$AR
  5016. # Extract the first word of "ar", so it can be a program name with args.
  5017. set dummy ar; ac_word=$2
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5019. $as_echo_n "checking for $ac_word... " >&6; }
  5020. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -n "$ac_ct_AR"; then
  5024. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5025. else
  5026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5027. for as_dir in $PATH
  5028. do
  5029. IFS=$as_save_IFS
  5030. test -z "$as_dir" && as_dir=.
  5031. for ac_exec_ext in '' $ac_executable_extensions; do
  5032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5033. ac_cv_prog_ac_ct_AR="ar"
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5035. break 2
  5036. fi
  5037. done
  5038. done
  5039. IFS=$as_save_IFS
  5040. fi
  5041. fi
  5042. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5043. if test -n "$ac_ct_AR"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5045. $as_echo "$ac_ct_AR" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5048. $as_echo "no" >&6; }
  5049. fi
  5050. if test "x$ac_ct_AR" = x; then
  5051. AR="false"
  5052. else
  5053. case $cross_compiling:$ac_tool_warned in
  5054. yes:)
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5057. ac_tool_warned=yes ;;
  5058. esac
  5059. AR=$ac_ct_AR
  5060. fi
  5061. else
  5062. AR="$ac_cv_prog_AR"
  5063. fi
  5064. test -z "$AR" && AR=ar
  5065. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5066. if test -n "$ac_tool_prefix"; then
  5067. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5068. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5070. $as_echo_n "checking for $ac_word... " >&6; }
  5071. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. if test -n "$STRIP"; then
  5075. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5076. else
  5077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5078. for as_dir in $PATH
  5079. do
  5080. IFS=$as_save_IFS
  5081. test -z "$as_dir" && as_dir=.
  5082. for ac_exec_ext in '' $ac_executable_extensions; do
  5083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5084. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5086. break 2
  5087. fi
  5088. done
  5089. done
  5090. IFS=$as_save_IFS
  5091. fi
  5092. fi
  5093. STRIP=$ac_cv_prog_STRIP
  5094. if test -n "$STRIP"; then
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5096. $as_echo "$STRIP" >&6; }
  5097. else
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5099. $as_echo "no" >&6; }
  5100. fi
  5101. fi
  5102. if test -z "$ac_cv_prog_STRIP"; then
  5103. ac_ct_STRIP=$STRIP
  5104. # Extract the first word of "strip", so it can be a program name with args.
  5105. set dummy strip; ac_word=$2
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5107. $as_echo_n "checking for $ac_word... " >&6; }
  5108. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. if test -n "$ac_ct_STRIP"; then
  5112. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. test -z "$as_dir" && as_dir=.
  5119. for ac_exec_ext in '' $ac_executable_extensions; do
  5120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5121. ac_cv_prog_ac_ct_STRIP="strip"
  5122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5123. break 2
  5124. fi
  5125. done
  5126. done
  5127. IFS=$as_save_IFS
  5128. fi
  5129. fi
  5130. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5131. if test -n "$ac_ct_STRIP"; then
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5133. $as_echo "$ac_ct_STRIP" >&6; }
  5134. else
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5136. $as_echo "no" >&6; }
  5137. fi
  5138. if test "x$ac_ct_STRIP" = x; then
  5139. STRIP=":"
  5140. else
  5141. case $cross_compiling:$ac_tool_warned in
  5142. yes:)
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5145. ac_tool_warned=yes ;;
  5146. esac
  5147. STRIP=$ac_ct_STRIP
  5148. fi
  5149. else
  5150. STRIP="$ac_cv_prog_STRIP"
  5151. fi
  5152. test -z "$STRIP" && STRIP=:
  5153. if test -n "$ac_tool_prefix"; then
  5154. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5155. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5157. $as_echo_n "checking for $ac_word... " >&6; }
  5158. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. if test -n "$RANLIB"; then
  5162. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5163. else
  5164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5165. for as_dir in $PATH
  5166. do
  5167. IFS=$as_save_IFS
  5168. test -z "$as_dir" && as_dir=.
  5169. for ac_exec_ext in '' $ac_executable_extensions; do
  5170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5171. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5173. break 2
  5174. fi
  5175. done
  5176. done
  5177. IFS=$as_save_IFS
  5178. fi
  5179. fi
  5180. RANLIB=$ac_cv_prog_RANLIB
  5181. if test -n "$RANLIB"; then
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5183. $as_echo "$RANLIB" >&6; }
  5184. else
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5186. $as_echo "no" >&6; }
  5187. fi
  5188. fi
  5189. if test -z "$ac_cv_prog_RANLIB"; then
  5190. ac_ct_RANLIB=$RANLIB
  5191. # Extract the first word of "ranlib", so it can be a program name with args.
  5192. set dummy ranlib; ac_word=$2
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5194. $as_echo_n "checking for $ac_word... " >&6; }
  5195. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. if test -n "$ac_ct_RANLIB"; then
  5199. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5200. else
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5208. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5210. break 2
  5211. fi
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. fi
  5216. fi
  5217. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5218. if test -n "$ac_ct_RANLIB"; then
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5220. $as_echo "$ac_ct_RANLIB" >&6; }
  5221. else
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. fi
  5225. if test "x$ac_ct_RANLIB" = x; then
  5226. RANLIB=":"
  5227. else
  5228. case $cross_compiling:$ac_tool_warned in
  5229. yes:)
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5231. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5232. ac_tool_warned=yes ;;
  5233. esac
  5234. RANLIB=$ac_ct_RANLIB
  5235. fi
  5236. else
  5237. RANLIB="$ac_cv_prog_RANLIB"
  5238. fi
  5239. test -z "$RANLIB" && RANLIB=:
  5240. # Determine commands to create old-style static archives.
  5241. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5242. old_postinstall_cmds='chmod 644 $oldlib'
  5243. old_postuninstall_cmds=
  5244. if test -n "$RANLIB"; then
  5245. case $host_os in
  5246. openbsd*)
  5247. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5248. ;;
  5249. *)
  5250. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5251. ;;
  5252. esac
  5253. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5254. fi
  5255. # If no C compiler was specified, use CC.
  5256. LTCC=${LTCC-"$CC"}
  5257. # If no C compiler flags were specified, use CFLAGS.
  5258. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5259. # Allow CC to be a program name with arguments.
  5260. compiler=$CC
  5261. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5263. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5264. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. # These are sane defaults that work on at least a few old systems.
  5268. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5269. # Character class describing NM global symbol codes.
  5270. symcode='[BCDEGRST]'
  5271. # Regexp to match symbols that can be accessed directly from C.
  5272. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5273. # Define system-specific variables.
  5274. case $host_os in
  5275. aix*)
  5276. symcode='[BCDT]'
  5277. ;;
  5278. cygwin* | mingw* | pw32* | cegcc*)
  5279. symcode='[ABCDGISTW]'
  5280. ;;
  5281. hpux*)
  5282. if test "$host_cpu" = ia64; then
  5283. symcode='[ABCDEGRST]'
  5284. fi
  5285. ;;
  5286. irix* | nonstopux*)
  5287. symcode='[BCDEGRST]'
  5288. ;;
  5289. osf*)
  5290. symcode='[BCDEGQRST]'
  5291. ;;
  5292. solaris*)
  5293. symcode='[BDRT]'
  5294. ;;
  5295. sco3.2v5*)
  5296. symcode='[DT]'
  5297. ;;
  5298. sysv4.2uw2*)
  5299. symcode='[DT]'
  5300. ;;
  5301. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5302. symcode='[ABDT]'
  5303. ;;
  5304. sysv4)
  5305. symcode='[DFNSTU]'
  5306. ;;
  5307. esac
  5308. # If we're using GNU nm, then use its standard symbol codes.
  5309. case `$NM -V 2>&1` in
  5310. *GNU* | *'with BFD'*)
  5311. symcode='[ABCDGIRSTW]' ;;
  5312. esac
  5313. # Transform an extracted symbol line into a proper C declaration.
  5314. # Some systems (esp. on ia64) link data and code symbols differently,
  5315. # so use this general approach.
  5316. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5317. # Transform an extracted symbol line into symbol name and symbol address
  5318. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5319. 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'"
  5320. # Handle CRLF in mingw tool chain
  5321. opt_cr=
  5322. case $build_os in
  5323. mingw*)
  5324. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5325. ;;
  5326. esac
  5327. # Try without a prefix underscore, then with it.
  5328. for ac_symprfx in "" "_"; do
  5329. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5330. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5331. # Write the raw and C identifiers.
  5332. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5333. # Fake it for dumpbin and say T for any non-static function
  5334. # and D for any global variable.
  5335. # Also find C++ and __fastcall symbols from MSVC++,
  5336. # which start with @ or ?.
  5337. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5338. " {last_section=section; section=\$ 3};"\
  5339. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5340. " \$ 0!~/External *\|/{next};"\
  5341. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5342. " {if(hide[section]) next};"\
  5343. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5344. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5345. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5346. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5347. " ' prfx=^$ac_symprfx"
  5348. else
  5349. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5350. fi
  5351. # Check to see that the pipe works correctly.
  5352. pipe_works=no
  5353. rm -f conftest*
  5354. cat > conftest.$ac_ext <<_LT_EOF
  5355. #ifdef __cplusplus
  5356. extern "C" {
  5357. #endif
  5358. char nm_test_var;
  5359. void nm_test_func(void);
  5360. void nm_test_func(void){}
  5361. #ifdef __cplusplus
  5362. }
  5363. #endif
  5364. int main(){nm_test_var='a';nm_test_func();return(0);}
  5365. _LT_EOF
  5366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5367. (eval $ac_compile) 2>&5
  5368. ac_status=$?
  5369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5370. test $ac_status = 0; }; then
  5371. # Now try to grab the symbols.
  5372. nlist=conftest.nm
  5373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5374. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5375. ac_status=$?
  5376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5377. test $ac_status = 0; } && test -s "$nlist"; then
  5378. # Try sorting and uniquifying the output.
  5379. if sort "$nlist" | uniq > "$nlist"T; then
  5380. mv -f "$nlist"T "$nlist"
  5381. else
  5382. rm -f "$nlist"T
  5383. fi
  5384. # Make sure that we snagged all the symbols we need.
  5385. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5386. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5387. cat <<_LT_EOF > conftest.$ac_ext
  5388. #ifdef __cplusplus
  5389. extern "C" {
  5390. #endif
  5391. _LT_EOF
  5392. # Now generate the symbol file.
  5393. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5394. cat <<_LT_EOF >> conftest.$ac_ext
  5395. /* The mapping between symbol names and symbols. */
  5396. const struct {
  5397. const char *name;
  5398. void *address;
  5399. }
  5400. lt__PROGRAM__LTX_preloaded_symbols[] =
  5401. {
  5402. { "@PROGRAM@", (void *) 0 },
  5403. _LT_EOF
  5404. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5405. cat <<\_LT_EOF >> conftest.$ac_ext
  5406. {0, (void *) 0}
  5407. };
  5408. /* This works around a problem in FreeBSD linker */
  5409. #ifdef FREEBSD_WORKAROUND
  5410. static const void *lt_preloaded_setup() {
  5411. return lt__PROGRAM__LTX_preloaded_symbols;
  5412. }
  5413. #endif
  5414. #ifdef __cplusplus
  5415. }
  5416. #endif
  5417. _LT_EOF
  5418. # Now try linking the two files.
  5419. mv conftest.$ac_objext conftstm.$ac_objext
  5420. lt_save_LIBS="$LIBS"
  5421. lt_save_CFLAGS="$CFLAGS"
  5422. LIBS="conftstm.$ac_objext"
  5423. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5425. (eval $ac_link) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5429. pipe_works=yes
  5430. fi
  5431. LIBS="$lt_save_LIBS"
  5432. CFLAGS="$lt_save_CFLAGS"
  5433. else
  5434. echo "cannot find nm_test_func in $nlist" >&5
  5435. fi
  5436. else
  5437. echo "cannot find nm_test_var in $nlist" >&5
  5438. fi
  5439. else
  5440. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5441. fi
  5442. else
  5443. echo "$progname: failed program was:" >&5
  5444. cat conftest.$ac_ext >&5
  5445. fi
  5446. rm -rf conftest* conftst*
  5447. # Do not use the global_symbol_pipe unless it works.
  5448. if test "$pipe_works" = yes; then
  5449. break
  5450. else
  5451. lt_cv_sys_global_symbol_pipe=
  5452. fi
  5453. done
  5454. fi
  5455. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5456. lt_cv_sys_global_symbol_to_cdecl=
  5457. fi
  5458. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5460. $as_echo "failed" >&6; }
  5461. else
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5463. $as_echo "ok" >&6; }
  5464. fi
  5465. # Check whether --enable-libtool-lock was given.
  5466. if test "${enable_libtool_lock+set}" = set; then :
  5467. enableval=$enable_libtool_lock;
  5468. fi
  5469. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5470. # Some flags need to be propagated to the compiler or linker for good
  5471. # libtool support.
  5472. case $host in
  5473. ia64-*-hpux*)
  5474. # Find out which ABI we are using.
  5475. echo 'int i;' > conftest.$ac_ext
  5476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5477. (eval $ac_compile) 2>&5
  5478. ac_status=$?
  5479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5480. test $ac_status = 0; }; then
  5481. case `/usr/bin/file conftest.$ac_objext` in
  5482. *ELF-32*)
  5483. HPUX_IA64_MODE="32"
  5484. ;;
  5485. *ELF-64*)
  5486. HPUX_IA64_MODE="64"
  5487. ;;
  5488. esac
  5489. fi
  5490. rm -rf conftest*
  5491. ;;
  5492. *-*-irix6*)
  5493. # Find out which ABI we are using.
  5494. echo '#line 6246 "configure"' > conftest.$ac_ext
  5495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5496. (eval $ac_compile) 2>&5
  5497. ac_status=$?
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5499. test $ac_status = 0; }; then
  5500. if test "$lt_cv_prog_gnu_ld" = yes; then
  5501. case `/usr/bin/file conftest.$ac_objext` in
  5502. *32-bit*)
  5503. LD="${LD-ld} -melf32bsmip"
  5504. ;;
  5505. *N32*)
  5506. LD="${LD-ld} -melf32bmipn32"
  5507. ;;
  5508. *64-bit*)
  5509. LD="${LD-ld} -melf64bmip"
  5510. ;;
  5511. esac
  5512. else
  5513. case `/usr/bin/file conftest.$ac_objext` in
  5514. *32-bit*)
  5515. LD="${LD-ld} -32"
  5516. ;;
  5517. *N32*)
  5518. LD="${LD-ld} -n32"
  5519. ;;
  5520. *64-bit*)
  5521. LD="${LD-ld} -64"
  5522. ;;
  5523. esac
  5524. fi
  5525. fi
  5526. rm -rf conftest*
  5527. ;;
  5528. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5529. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5530. # Find out which ABI we are using.
  5531. echo 'int i;' > conftest.$ac_ext
  5532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5533. (eval $ac_compile) 2>&5
  5534. ac_status=$?
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5536. test $ac_status = 0; }; then
  5537. case `/usr/bin/file conftest.o` in
  5538. *32-bit*)
  5539. case $host in
  5540. x86_64-*kfreebsd*-gnu)
  5541. LD="${LD-ld} -m elf_i386_fbsd"
  5542. ;;
  5543. x86_64-*linux*)
  5544. LD="${LD-ld} -m elf_i386"
  5545. ;;
  5546. ppc64-*linux*|powerpc64-*linux*)
  5547. LD="${LD-ld} -m elf32ppclinux"
  5548. ;;
  5549. s390x-*linux*)
  5550. LD="${LD-ld} -m elf_s390"
  5551. ;;
  5552. sparc64-*linux*)
  5553. LD="${LD-ld} -m elf32_sparc"
  5554. ;;
  5555. esac
  5556. ;;
  5557. *64-bit*)
  5558. case $host in
  5559. x86_64-*kfreebsd*-gnu)
  5560. LD="${LD-ld} -m elf_x86_64_fbsd"
  5561. ;;
  5562. x86_64-*linux*)
  5563. LD="${LD-ld} -m elf_x86_64"
  5564. ;;
  5565. ppc*-*linux*|powerpc*-*linux*)
  5566. LD="${LD-ld} -m elf64ppc"
  5567. ;;
  5568. s390*-*linux*|s390*-*tpf*)
  5569. LD="${LD-ld} -m elf64_s390"
  5570. ;;
  5571. sparc*-*linux*)
  5572. LD="${LD-ld} -m elf64_sparc"
  5573. ;;
  5574. esac
  5575. ;;
  5576. esac
  5577. fi
  5578. rm -rf conftest*
  5579. ;;
  5580. *-*-sco3.2v5*)
  5581. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5582. SAVE_CFLAGS="$CFLAGS"
  5583. CFLAGS="$CFLAGS -belf"
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5585. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5586. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. ac_ext=c
  5590. ac_cpp='$CPP $CPPFLAGS'
  5591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5595. /* end confdefs.h. */
  5596. int
  5597. main ()
  5598. {
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. if ac_fn_c_try_link "$LINENO"; then :
  5604. lt_cv_cc_needs_belf=yes
  5605. else
  5606. lt_cv_cc_needs_belf=no
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext \
  5609. conftest$ac_exeext conftest.$ac_ext
  5610. ac_ext=c
  5611. ac_cpp='$CPP $CPPFLAGS'
  5612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5615. fi
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5617. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5618. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5619. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5620. CFLAGS="$SAVE_CFLAGS"
  5621. fi
  5622. ;;
  5623. sparc*-*solaris*)
  5624. # Find out which ABI we are using.
  5625. echo 'int i;' > conftest.$ac_ext
  5626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5627. (eval $ac_compile) 2>&5
  5628. ac_status=$?
  5629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5630. test $ac_status = 0; }; then
  5631. case `/usr/bin/file conftest.o` in
  5632. *64-bit*)
  5633. case $lt_cv_prog_gnu_ld in
  5634. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5635. *)
  5636. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5637. LD="${LD-ld} -64"
  5638. fi
  5639. ;;
  5640. esac
  5641. ;;
  5642. esac
  5643. fi
  5644. rm -rf conftest*
  5645. ;;
  5646. esac
  5647. need_locks="$enable_libtool_lock"
  5648. case $host_os in
  5649. rhapsody* | darwin*)
  5650. if test -n "$ac_tool_prefix"; then
  5651. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5652. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$DSYMUTIL"; then
  5659. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5668. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5678. if test -n "$DSYMUTIL"; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5680. $as_echo "$DSYMUTIL" >&6; }
  5681. else
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. fi
  5686. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5687. ac_ct_DSYMUTIL=$DSYMUTIL
  5688. # Extract the first word of "dsymutil", so it can be a program name with args.
  5689. set dummy dsymutil; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$ac_ct_DSYMUTIL"; then
  5696. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5705. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5715. if test -n "$ac_ct_DSYMUTIL"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5717. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. if test "x$ac_ct_DSYMUTIL" = x; then
  5723. DSYMUTIL=":"
  5724. else
  5725. case $cross_compiling:$ac_tool_warned in
  5726. yes:)
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5729. ac_tool_warned=yes ;;
  5730. esac
  5731. DSYMUTIL=$ac_ct_DSYMUTIL
  5732. fi
  5733. else
  5734. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5735. fi
  5736. if test -n "$ac_tool_prefix"; then
  5737. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5738. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$NMEDIT"; then
  5745. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5754. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. NMEDIT=$ac_cv_prog_NMEDIT
  5764. if test -n "$NMEDIT"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5766. $as_echo "$NMEDIT" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. fi
  5772. if test -z "$ac_cv_prog_NMEDIT"; then
  5773. ac_ct_NMEDIT=$NMEDIT
  5774. # Extract the first word of "nmedit", so it can be a program name with args.
  5775. set dummy nmedit; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$ac_ct_NMEDIT"; then
  5782. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5791. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5801. if test -n "$ac_ct_NMEDIT"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5803. $as_echo "$ac_ct_NMEDIT" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. if test "x$ac_ct_NMEDIT" = x; then
  5809. NMEDIT=":"
  5810. else
  5811. case $cross_compiling:$ac_tool_warned in
  5812. yes:)
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5815. ac_tool_warned=yes ;;
  5816. esac
  5817. NMEDIT=$ac_ct_NMEDIT
  5818. fi
  5819. else
  5820. NMEDIT="$ac_cv_prog_NMEDIT"
  5821. fi
  5822. if test -n "$ac_tool_prefix"; then
  5823. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5824. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. if test -n "$LIPO"; then
  5831. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5832. else
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5840. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. LIPO=$ac_cv_prog_LIPO
  5850. if test -n "$LIPO"; then
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5852. $as_echo "$LIPO" >&6; }
  5853. else
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. $as_echo "no" >&6; }
  5856. fi
  5857. fi
  5858. if test -z "$ac_cv_prog_LIPO"; then
  5859. ac_ct_LIPO=$LIPO
  5860. # Extract the first word of "lipo", so it can be a program name with args.
  5861. set dummy lipo; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$ac_ct_LIPO"; then
  5868. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5877. ac_cv_prog_ac_ct_LIPO="lipo"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5887. if test -n "$ac_ct_LIPO"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5889. $as_echo "$ac_ct_LIPO" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. if test "x$ac_ct_LIPO" = x; then
  5895. LIPO=":"
  5896. else
  5897. case $cross_compiling:$ac_tool_warned in
  5898. yes:)
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5901. ac_tool_warned=yes ;;
  5902. esac
  5903. LIPO=$ac_ct_LIPO
  5904. fi
  5905. else
  5906. LIPO="$ac_cv_prog_LIPO"
  5907. fi
  5908. if test -n "$ac_tool_prefix"; then
  5909. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5910. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5912. $as_echo_n "checking for $ac_word... " >&6; }
  5913. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. if test -n "$OTOOL"; then
  5917. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5918. else
  5919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5920. for as_dir in $PATH
  5921. do
  5922. IFS=$as_save_IFS
  5923. test -z "$as_dir" && as_dir=.
  5924. for ac_exec_ext in '' $ac_executable_extensions; do
  5925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5926. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5928. break 2
  5929. fi
  5930. done
  5931. done
  5932. IFS=$as_save_IFS
  5933. fi
  5934. fi
  5935. OTOOL=$ac_cv_prog_OTOOL
  5936. if test -n "$OTOOL"; then
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5938. $as_echo "$OTOOL" >&6; }
  5939. else
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5941. $as_echo "no" >&6; }
  5942. fi
  5943. fi
  5944. if test -z "$ac_cv_prog_OTOOL"; then
  5945. ac_ct_OTOOL=$OTOOL
  5946. # Extract the first word of "otool", so it can be a program name with args.
  5947. set dummy otool; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. if test -n "$ac_ct_OTOOL"; then
  5954. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5963. ac_cv_prog_ac_ct_OTOOL="otool"
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5973. if test -n "$ac_ct_OTOOL"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5975. $as_echo "$ac_ct_OTOOL" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. if test "x$ac_ct_OTOOL" = x; then
  5981. OTOOL=":"
  5982. else
  5983. case $cross_compiling:$ac_tool_warned in
  5984. yes:)
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5987. ac_tool_warned=yes ;;
  5988. esac
  5989. OTOOL=$ac_ct_OTOOL
  5990. fi
  5991. else
  5992. OTOOL="$ac_cv_prog_OTOOL"
  5993. fi
  5994. if test -n "$ac_tool_prefix"; then
  5995. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5996. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5998. $as_echo_n "checking for $ac_word... " >&6; }
  5999. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. if test -n "$OTOOL64"; then
  6003. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6004. else
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_exec_ext in '' $ac_executable_extensions; do
  6011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6012. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6014. break 2
  6015. fi
  6016. done
  6017. done
  6018. IFS=$as_save_IFS
  6019. fi
  6020. fi
  6021. OTOOL64=$ac_cv_prog_OTOOL64
  6022. if test -n "$OTOOL64"; then
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6024. $as_echo "$OTOOL64" >&6; }
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. fi
  6030. if test -z "$ac_cv_prog_OTOOL64"; then
  6031. ac_ct_OTOOL64=$OTOOL64
  6032. # Extract the first word of "otool64", so it can be a program name with args.
  6033. set dummy otool64; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. if test -n "$ac_ct_OTOOL64"; then
  6040. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6041. else
  6042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6043. for as_dir in $PATH
  6044. do
  6045. IFS=$as_save_IFS
  6046. test -z "$as_dir" && as_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6049. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6051. break 2
  6052. fi
  6053. done
  6054. done
  6055. IFS=$as_save_IFS
  6056. fi
  6057. fi
  6058. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6059. if test -n "$ac_ct_OTOOL64"; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6061. $as_echo "$ac_ct_OTOOL64" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. if test "x$ac_ct_OTOOL64" = x; then
  6067. OTOOL64=":"
  6068. else
  6069. case $cross_compiling:$ac_tool_warned in
  6070. yes:)
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6072. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6073. ac_tool_warned=yes ;;
  6074. esac
  6075. OTOOL64=$ac_ct_OTOOL64
  6076. fi
  6077. else
  6078. OTOOL64="$ac_cv_prog_OTOOL64"
  6079. fi
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6081. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6082. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. lt_cv_apple_cc_single_mod=no
  6086. if test -z "${LT_MULTI_MODULE}"; then
  6087. # By default we will add the -single_module flag. You can override
  6088. # by either setting the environment variable LT_MULTI_MODULE
  6089. # non-empty at configure time, or by adding -multi_module to the
  6090. # link flags.
  6091. rm -rf libconftest.dylib*
  6092. echo "int foo(void){return 1;}" > conftest.c
  6093. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6094. -dynamiclib -Wl,-single_module conftest.c" >&5
  6095. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6096. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6097. _lt_result=$?
  6098. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6099. lt_cv_apple_cc_single_mod=yes
  6100. else
  6101. cat conftest.err >&5
  6102. fi
  6103. rm -rf libconftest.dylib*
  6104. rm -f conftest.*
  6105. fi
  6106. fi
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6108. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6110. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6111. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. lt_cv_ld_exported_symbols_list=no
  6115. save_LDFLAGS=$LDFLAGS
  6116. echo "_main" > conftest.sym
  6117. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6119. /* end confdefs.h. */
  6120. int
  6121. main ()
  6122. {
  6123. ;
  6124. return 0;
  6125. }
  6126. _ACEOF
  6127. if ac_fn_c_try_link "$LINENO"; then :
  6128. lt_cv_ld_exported_symbols_list=yes
  6129. else
  6130. lt_cv_ld_exported_symbols_list=no
  6131. fi
  6132. rm -f core conftest.err conftest.$ac_objext \
  6133. conftest$ac_exeext conftest.$ac_ext
  6134. LDFLAGS="$save_LDFLAGS"
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6137. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6138. case $host_os in
  6139. rhapsody* | darwin1.[012])
  6140. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6141. darwin1.*)
  6142. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6143. darwin*) # darwin 5.x on
  6144. # if running on 10.5 or later, the deployment target defaults
  6145. # to the OS version, if on x86, and 10.4, the deployment
  6146. # target defaults to 10.4. Don't you love it?
  6147. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6148. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6149. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6150. 10.[012]*)
  6151. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6152. 10.*)
  6153. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6154. esac
  6155. ;;
  6156. esac
  6157. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6158. _lt_dar_single_mod='$single_module'
  6159. fi
  6160. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6161. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6162. else
  6163. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6164. fi
  6165. if test "$DSYMUTIL" != ":"; then
  6166. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6167. else
  6168. _lt_dsymutil=
  6169. fi
  6170. ;;
  6171. esac
  6172. for ac_header in dlfcn.h
  6173. do :
  6174. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6175. "
  6176. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6177. cat >>confdefs.h <<_ACEOF
  6178. #define HAVE_DLFCN_H 1
  6179. _ACEOF
  6180. fi
  6181. done
  6182. # Set options
  6183. enable_dlopen=no
  6184. enable_win32_dll=no
  6185. # Check whether --enable-shared was given.
  6186. if test "${enable_shared+set}" = set; then :
  6187. enableval=$enable_shared; p=${PACKAGE-default}
  6188. case $enableval in
  6189. yes) enable_shared=yes ;;
  6190. no) enable_shared=no ;;
  6191. *)
  6192. enable_shared=no
  6193. # Look at the argument we got. We use all the common list separators.
  6194. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6195. for pkg in $enableval; do
  6196. IFS="$lt_save_ifs"
  6197. if test "X$pkg" = "X$p"; then
  6198. enable_shared=yes
  6199. fi
  6200. done
  6201. IFS="$lt_save_ifs"
  6202. ;;
  6203. esac
  6204. else
  6205. enable_shared=yes
  6206. fi
  6207. # Check whether --enable-static was given.
  6208. if test "${enable_static+set}" = set; then :
  6209. enableval=$enable_static; p=${PACKAGE-default}
  6210. case $enableval in
  6211. yes) enable_static=yes ;;
  6212. no) enable_static=no ;;
  6213. *)
  6214. enable_static=no
  6215. # Look at the argument we got. We use all the common list separators.
  6216. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6217. for pkg in $enableval; do
  6218. IFS="$lt_save_ifs"
  6219. if test "X$pkg" = "X$p"; then
  6220. enable_static=yes
  6221. fi
  6222. done
  6223. IFS="$lt_save_ifs"
  6224. ;;
  6225. esac
  6226. else
  6227. enable_static=yes
  6228. fi
  6229. # Check whether --with-pic was given.
  6230. if test "${with_pic+set}" = set; then :
  6231. withval=$with_pic; pic_mode="$withval"
  6232. else
  6233. pic_mode=default
  6234. fi
  6235. test -z "$pic_mode" && pic_mode=default
  6236. # Check whether --enable-fast-install was given.
  6237. if test "${enable_fast_install+set}" = set; then :
  6238. enableval=$enable_fast_install; p=${PACKAGE-default}
  6239. case $enableval in
  6240. yes) enable_fast_install=yes ;;
  6241. no) enable_fast_install=no ;;
  6242. *)
  6243. enable_fast_install=no
  6244. # Look at the argument we got. We use all the common list separators.
  6245. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6246. for pkg in $enableval; do
  6247. IFS="$lt_save_ifs"
  6248. if test "X$pkg" = "X$p"; then
  6249. enable_fast_install=yes
  6250. fi
  6251. done
  6252. IFS="$lt_save_ifs"
  6253. ;;
  6254. esac
  6255. else
  6256. enable_fast_install=yes
  6257. fi
  6258. # This can be used to rebuild libtool when needed
  6259. LIBTOOL_DEPS="$ltmain"
  6260. # Always use our own libtool.
  6261. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6262. test -z "$LN_S" && LN_S="ln -s"
  6263. if test -n "${ZSH_VERSION+set}" ; then
  6264. setopt NO_GLOB_SUBST
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6267. $as_echo_n "checking for objdir... " >&6; }
  6268. if test "${lt_cv_objdir+set}" = set; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. rm -f .libs 2>/dev/null
  6272. mkdir .libs 2>/dev/null
  6273. if test -d .libs; then
  6274. lt_cv_objdir=.libs
  6275. else
  6276. # MS-DOS does not allow filenames that begin with a dot.
  6277. lt_cv_objdir=_libs
  6278. fi
  6279. rmdir .libs 2>/dev/null
  6280. fi
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6282. $as_echo "$lt_cv_objdir" >&6; }
  6283. objdir=$lt_cv_objdir
  6284. cat >>confdefs.h <<_ACEOF
  6285. #define LT_OBJDIR "$lt_cv_objdir/"
  6286. _ACEOF
  6287. case $host_os in
  6288. aix3*)
  6289. # AIX sometimes has problems with the GCC collect2 program. For some
  6290. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6291. # vanish in a puff of smoke.
  6292. if test "X${COLLECT_NAMES+set}" != Xset; then
  6293. COLLECT_NAMES=
  6294. export COLLECT_NAMES
  6295. fi
  6296. ;;
  6297. esac
  6298. # Sed substitution that helps us do robust quoting. It backslashifies
  6299. # metacharacters that are still active within double-quoted strings.
  6300. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6301. # Same as above, but do not quote variable references.
  6302. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6303. # Sed substitution to delay expansion of an escaped shell variable in a
  6304. # double_quote_subst'ed string.
  6305. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6306. # Sed substitution to delay expansion of an escaped single quote.
  6307. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6308. # Sed substitution to avoid accidental globbing in evaled expressions
  6309. no_glob_subst='s/\*/\\\*/g'
  6310. # Global variables:
  6311. ofile=libtool
  6312. can_build_shared=yes
  6313. # All known linkers require a `.a' archive for static linking (except MSVC,
  6314. # which needs '.lib').
  6315. libext=a
  6316. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6317. old_CC="$CC"
  6318. old_CFLAGS="$CFLAGS"
  6319. # Set sane defaults for various variables
  6320. test -z "$CC" && CC=cc
  6321. test -z "$LTCC" && LTCC=$CC
  6322. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6323. test -z "$LD" && LD=ld
  6324. test -z "$ac_objext" && ac_objext=o
  6325. for cc_temp in $compiler""; do
  6326. case $cc_temp in
  6327. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6328. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6329. \-*) ;;
  6330. *) break;;
  6331. esac
  6332. done
  6333. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6334. # Only perform the check for file, if the check method requires it
  6335. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6336. case $deplibs_check_method in
  6337. file_magic*)
  6338. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6340. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6341. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. case $MAGIC_CMD in
  6345. [\\/*] | ?:[\\/]*)
  6346. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6347. ;;
  6348. *)
  6349. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6350. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6351. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6352. for ac_dir in $ac_dummy; do
  6353. IFS="$lt_save_ifs"
  6354. test -z "$ac_dir" && ac_dir=.
  6355. if test -f $ac_dir/${ac_tool_prefix}file; then
  6356. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6357. if test -n "$file_magic_test_file"; then
  6358. case $deplibs_check_method in
  6359. "file_magic "*)
  6360. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6361. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6362. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6363. $EGREP "$file_magic_regex" > /dev/null; then
  6364. :
  6365. else
  6366. cat <<_LT_EOF 1>&2
  6367. *** Warning: the command libtool uses to detect shared libraries,
  6368. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6369. *** The result is that libtool may fail to recognize shared libraries
  6370. *** as such. This will affect the creation of libtool libraries that
  6371. *** depend on shared libraries, but programs linked with such libtool
  6372. *** libraries will work regardless of this problem. Nevertheless, you
  6373. *** may want to report the problem to your system manager and/or to
  6374. *** bug-libtool@gnu.org
  6375. _LT_EOF
  6376. fi ;;
  6377. esac
  6378. fi
  6379. break
  6380. fi
  6381. done
  6382. IFS="$lt_save_ifs"
  6383. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6384. ;;
  6385. esac
  6386. fi
  6387. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6388. if test -n "$MAGIC_CMD"; then
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6390. $as_echo "$MAGIC_CMD" >&6; }
  6391. else
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6393. $as_echo "no" >&6; }
  6394. fi
  6395. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6396. if test -n "$ac_tool_prefix"; then
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6398. $as_echo_n "checking for file... " >&6; }
  6399. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. case $MAGIC_CMD in
  6403. [\\/*] | ?:[\\/]*)
  6404. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6405. ;;
  6406. *)
  6407. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6408. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6409. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6410. for ac_dir in $ac_dummy; do
  6411. IFS="$lt_save_ifs"
  6412. test -z "$ac_dir" && ac_dir=.
  6413. if test -f $ac_dir/file; then
  6414. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6415. if test -n "$file_magic_test_file"; then
  6416. case $deplibs_check_method in
  6417. "file_magic "*)
  6418. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6419. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6420. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6421. $EGREP "$file_magic_regex" > /dev/null; then
  6422. :
  6423. else
  6424. cat <<_LT_EOF 1>&2
  6425. *** Warning: the command libtool uses to detect shared libraries,
  6426. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6427. *** The result is that libtool may fail to recognize shared libraries
  6428. *** as such. This will affect the creation of libtool libraries that
  6429. *** depend on shared libraries, but programs linked with such libtool
  6430. *** libraries will work regardless of this problem. Nevertheless, you
  6431. *** may want to report the problem to your system manager and/or to
  6432. *** bug-libtool@gnu.org
  6433. _LT_EOF
  6434. fi ;;
  6435. esac
  6436. fi
  6437. break
  6438. fi
  6439. done
  6440. IFS="$lt_save_ifs"
  6441. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6442. ;;
  6443. esac
  6444. fi
  6445. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6446. if test -n "$MAGIC_CMD"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6448. $as_echo "$MAGIC_CMD" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. else
  6454. MAGIC_CMD=:
  6455. fi
  6456. fi
  6457. fi
  6458. ;;
  6459. esac
  6460. # Use C for the default configuration in the libtool script
  6461. lt_save_CC="$CC"
  6462. ac_ext=c
  6463. ac_cpp='$CPP $CPPFLAGS'
  6464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6467. # Source file extension for C test sources.
  6468. ac_ext=c
  6469. # Object file extension for compiled C test sources.
  6470. objext=o
  6471. objext=$objext
  6472. # Code to be used in simple compile tests
  6473. lt_simple_compile_test_code="int some_variable = 0;"
  6474. # Code to be used in simple link tests
  6475. lt_simple_link_test_code='int main(){return(0);}'
  6476. # If no C compiler was specified, use CC.
  6477. LTCC=${LTCC-"$CC"}
  6478. # If no C compiler flags were specified, use CFLAGS.
  6479. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6480. # Allow CC to be a program name with arguments.
  6481. compiler=$CC
  6482. # Save the default compiler, since it gets overwritten when the other
  6483. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6484. compiler_DEFAULT=$CC
  6485. # save warnings/boilerplate of simple test code
  6486. ac_outfile=conftest.$ac_objext
  6487. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6488. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6489. _lt_compiler_boilerplate=`cat conftest.err`
  6490. $RM conftest*
  6491. ac_outfile=conftest.$ac_objext
  6492. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6493. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6494. _lt_linker_boilerplate=`cat conftest.err`
  6495. $RM -r conftest*
  6496. ## CAVEAT EMPTOR:
  6497. ## There is no encapsulation within the following macros, do not change
  6498. ## the running order or otherwise move them around unless you know exactly
  6499. ## what you are doing...
  6500. if test -n "$compiler"; then
  6501. lt_prog_compiler_no_builtin_flag=
  6502. if test "$GCC" = yes; then
  6503. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6505. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6506. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. lt_cv_prog_compiler_rtti_exceptions=no
  6510. ac_outfile=conftest.$ac_objext
  6511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6512. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6513. # Insert the option either (1) after the last *FLAGS variable, or
  6514. # (2) before a word containing "conftest.", or (3) at the end.
  6515. # Note that $ac_compile itself does not contain backslashes and begins
  6516. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6517. # The option is referenced via a variable to avoid confusing sed.
  6518. lt_compile=`echo "$ac_compile" | $SED \
  6519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6521. -e 's:$: $lt_compiler_flag:'`
  6522. (eval echo "\"\$as_me:7508: $lt_compile\"" >&5)
  6523. (eval "$lt_compile" 2>conftest.err)
  6524. ac_status=$?
  6525. cat conftest.err >&5
  6526. echo "$as_me:7512: \$? = $ac_status" >&5
  6527. if (exit $ac_status) && test -s "$ac_outfile"; then
  6528. # The compiler can only warn and ignore the option if not recognized
  6529. # So say no if there are warnings other than the usual output.
  6530. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6532. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6533. lt_cv_prog_compiler_rtti_exceptions=yes
  6534. fi
  6535. fi
  6536. $RM conftest*
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6539. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6540. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6541. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6542. else
  6543. :
  6544. fi
  6545. fi
  6546. lt_prog_compiler_wl=
  6547. lt_prog_compiler_pic=
  6548. lt_prog_compiler_static=
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6550. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6551. if test "$GCC" = yes; then
  6552. lt_prog_compiler_wl='-Wl,'
  6553. lt_prog_compiler_static='-static'
  6554. case $host_os in
  6555. aix*)
  6556. # All AIX code is PIC.
  6557. if test "$host_cpu" = ia64; then
  6558. # AIX 5 now supports IA64 processor
  6559. lt_prog_compiler_static='-Bstatic'
  6560. fi
  6561. ;;
  6562. amigaos*)
  6563. case $host_cpu in
  6564. powerpc)
  6565. # see comment about AmigaOS4 .so support
  6566. lt_prog_compiler_pic='-fPIC'
  6567. ;;
  6568. m68k)
  6569. # FIXME: we need at least 68020 code to build shared libraries, but
  6570. # adding the `-m68020' flag to GCC prevents building anything better,
  6571. # like `-m68040'.
  6572. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6573. ;;
  6574. esac
  6575. ;;
  6576. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6577. # PIC is the default for these OSes.
  6578. ;;
  6579. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6580. # This hack is so that the source file can tell whether it is being
  6581. # built for inclusion in a dll (and should export symbols for example).
  6582. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6583. # (--disable-auto-import) libraries
  6584. lt_prog_compiler_pic='-DDLL_EXPORT'
  6585. ;;
  6586. darwin* | rhapsody*)
  6587. # PIC is the default on this platform
  6588. # Common symbols not allowed in MH_DYLIB files
  6589. lt_prog_compiler_pic='-fno-common'
  6590. ;;
  6591. hpux*)
  6592. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6593. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6594. # sets the default TLS model and affects inlining.
  6595. case $host_cpu in
  6596. hppa*64*)
  6597. # +Z the default
  6598. ;;
  6599. *)
  6600. lt_prog_compiler_pic='-fPIC'
  6601. ;;
  6602. esac
  6603. ;;
  6604. interix[3-9]*)
  6605. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6606. # Instead, we relocate shared libraries at runtime.
  6607. ;;
  6608. msdosdjgpp*)
  6609. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6610. # on systems that don't support them.
  6611. lt_prog_compiler_can_build_shared=no
  6612. enable_shared=no
  6613. ;;
  6614. *nto* | *qnx*)
  6615. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6616. # it will coredump.
  6617. lt_prog_compiler_pic='-fPIC -shared'
  6618. ;;
  6619. sysv4*MP*)
  6620. if test -d /usr/nec; then
  6621. lt_prog_compiler_pic=-Kconform_pic
  6622. fi
  6623. ;;
  6624. *)
  6625. lt_prog_compiler_pic='-fPIC'
  6626. ;;
  6627. esac
  6628. else
  6629. # PORTME Check for flag to pass linker flags through the system compiler.
  6630. case $host_os in
  6631. aix*)
  6632. lt_prog_compiler_wl='-Wl,'
  6633. if test "$host_cpu" = ia64; then
  6634. # AIX 5 now supports IA64 processor
  6635. lt_prog_compiler_static='-Bstatic'
  6636. else
  6637. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6638. fi
  6639. ;;
  6640. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6641. # This hack is so that the source file can tell whether it is being
  6642. # built for inclusion in a dll (and should export symbols for example).
  6643. lt_prog_compiler_pic='-DDLL_EXPORT'
  6644. ;;
  6645. hpux9* | hpux10* | hpux11*)
  6646. lt_prog_compiler_wl='-Wl,'
  6647. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6648. # not for PA HP-UX.
  6649. case $host_cpu in
  6650. hppa*64*|ia64*)
  6651. # +Z the default
  6652. ;;
  6653. *)
  6654. lt_prog_compiler_pic='+Z'
  6655. ;;
  6656. esac
  6657. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6658. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6659. ;;
  6660. irix5* | irix6* | nonstopux*)
  6661. lt_prog_compiler_wl='-Wl,'
  6662. # PIC (with -KPIC) is the default.
  6663. lt_prog_compiler_static='-non_shared'
  6664. ;;
  6665. linux* | k*bsd*-gnu)
  6666. case $cc_basename in
  6667. # old Intel for x86_64 which still supported -KPIC.
  6668. ecc*)
  6669. lt_prog_compiler_wl='-Wl,'
  6670. lt_prog_compiler_pic='-KPIC'
  6671. lt_prog_compiler_static='-static'
  6672. ;;
  6673. # icc used to be incompatible with GCC.
  6674. # ICC 10 doesn't accept -KPIC any more.
  6675. icc* | ifort*)
  6676. lt_prog_compiler_wl='-Wl,'
  6677. lt_prog_compiler_pic='-fPIC'
  6678. lt_prog_compiler_static='-static'
  6679. ;;
  6680. # Lahey Fortran 8.1.
  6681. lf95*)
  6682. lt_prog_compiler_wl='-Wl,'
  6683. lt_prog_compiler_pic='--shared'
  6684. lt_prog_compiler_static='--static'
  6685. ;;
  6686. pgcc* | pgf77* | pgf90* | pgf95*)
  6687. # Portland Group compilers (*not* the Pentium gcc compiler,
  6688. # which looks to be a dead project)
  6689. lt_prog_compiler_wl='-Wl,'
  6690. lt_prog_compiler_pic='-fpic'
  6691. lt_prog_compiler_static='-Bstatic'
  6692. ;;
  6693. ccc*)
  6694. lt_prog_compiler_wl='-Wl,'
  6695. # All Alpha code is PIC.
  6696. lt_prog_compiler_static='-non_shared'
  6697. ;;
  6698. xl*)
  6699. # IBM XL C 8.0/Fortran 10.1 on PPC
  6700. lt_prog_compiler_wl='-Wl,'
  6701. lt_prog_compiler_pic='-qpic'
  6702. lt_prog_compiler_static='-qstaticlink'
  6703. ;;
  6704. *)
  6705. case `$CC -V 2>&1 | sed 5q` in
  6706. *Sun\ C*)
  6707. # Sun C 5.9
  6708. lt_prog_compiler_pic='-KPIC'
  6709. lt_prog_compiler_static='-Bstatic'
  6710. lt_prog_compiler_wl='-Wl,'
  6711. ;;
  6712. *Sun\ F*)
  6713. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6714. lt_prog_compiler_pic='-KPIC'
  6715. lt_prog_compiler_static='-Bstatic'
  6716. lt_prog_compiler_wl=''
  6717. ;;
  6718. esac
  6719. ;;
  6720. esac
  6721. ;;
  6722. newsos6)
  6723. lt_prog_compiler_pic='-KPIC'
  6724. lt_prog_compiler_static='-Bstatic'
  6725. ;;
  6726. *nto* | *qnx*)
  6727. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6728. # it will coredump.
  6729. lt_prog_compiler_pic='-fPIC -shared'
  6730. ;;
  6731. osf3* | osf4* | osf5*)
  6732. lt_prog_compiler_wl='-Wl,'
  6733. # All OSF/1 code is PIC.
  6734. lt_prog_compiler_static='-non_shared'
  6735. ;;
  6736. rdos*)
  6737. lt_prog_compiler_static='-non_shared'
  6738. ;;
  6739. solaris*)
  6740. lt_prog_compiler_pic='-KPIC'
  6741. lt_prog_compiler_static='-Bstatic'
  6742. case $cc_basename in
  6743. f77* | f90* | f95*)
  6744. lt_prog_compiler_wl='-Qoption ld ';;
  6745. *)
  6746. lt_prog_compiler_wl='-Wl,';;
  6747. esac
  6748. ;;
  6749. sunos4*)
  6750. lt_prog_compiler_wl='-Qoption ld '
  6751. lt_prog_compiler_pic='-PIC'
  6752. lt_prog_compiler_static='-Bstatic'
  6753. ;;
  6754. sysv4 | sysv4.2uw2* | sysv4.3*)
  6755. lt_prog_compiler_wl='-Wl,'
  6756. lt_prog_compiler_pic='-KPIC'
  6757. lt_prog_compiler_static='-Bstatic'
  6758. ;;
  6759. sysv4*MP*)
  6760. if test -d /usr/nec ;then
  6761. lt_prog_compiler_pic='-Kconform_pic'
  6762. lt_prog_compiler_static='-Bstatic'
  6763. fi
  6764. ;;
  6765. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6766. lt_prog_compiler_wl='-Wl,'
  6767. lt_prog_compiler_pic='-KPIC'
  6768. lt_prog_compiler_static='-Bstatic'
  6769. ;;
  6770. unicos*)
  6771. lt_prog_compiler_wl='-Wl,'
  6772. lt_prog_compiler_can_build_shared=no
  6773. ;;
  6774. uts4*)
  6775. lt_prog_compiler_pic='-pic'
  6776. lt_prog_compiler_static='-Bstatic'
  6777. ;;
  6778. *)
  6779. lt_prog_compiler_can_build_shared=no
  6780. ;;
  6781. esac
  6782. fi
  6783. case $host_os in
  6784. # For platforms which do not support PIC, -DPIC is meaningless:
  6785. *djgpp*)
  6786. lt_prog_compiler_pic=
  6787. ;;
  6788. *)
  6789. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6790. ;;
  6791. esac
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6793. $as_echo "$lt_prog_compiler_pic" >&6; }
  6794. #
  6795. # Check to make sure the PIC flag actually works.
  6796. #
  6797. if test -n "$lt_prog_compiler_pic"; then
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6799. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6800. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. lt_cv_prog_compiler_pic_works=no
  6804. ac_outfile=conftest.$ac_objext
  6805. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6806. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6807. # Insert the option either (1) after the last *FLAGS variable, or
  6808. # (2) before a word containing "conftest.", or (3) at the end.
  6809. # Note that $ac_compile itself does not contain backslashes and begins
  6810. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6811. # The option is referenced via a variable to avoid confusing sed.
  6812. lt_compile=`echo "$ac_compile" | $SED \
  6813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6815. -e 's:$: $lt_compiler_flag:'`
  6816. (eval echo "\"\$as_me:7847: $lt_compile\"" >&5)
  6817. (eval "$lt_compile" 2>conftest.err)
  6818. ac_status=$?
  6819. cat conftest.err >&5
  6820. echo "$as_me:7851: \$? = $ac_status" >&5
  6821. if (exit $ac_status) && test -s "$ac_outfile"; then
  6822. # The compiler can only warn and ignore the option if not recognized
  6823. # So say no if there are warnings other than the usual output.
  6824. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6825. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6826. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6827. lt_cv_prog_compiler_pic_works=yes
  6828. fi
  6829. fi
  6830. $RM conftest*
  6831. fi
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6833. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6834. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6835. case $lt_prog_compiler_pic in
  6836. "" | " "*) ;;
  6837. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6838. esac
  6839. else
  6840. lt_prog_compiler_pic=
  6841. lt_prog_compiler_can_build_shared=no
  6842. fi
  6843. fi
  6844. #
  6845. # Check to make sure the static flag actually works.
  6846. #
  6847. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6849. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6850. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. lt_cv_prog_compiler_static_works=no
  6854. save_LDFLAGS="$LDFLAGS"
  6855. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6856. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6857. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6858. # The linker can only warn and ignore the option if not recognized
  6859. # So say no if there are warnings
  6860. if test -s conftest.err; then
  6861. # Append any errors to the config.log.
  6862. cat conftest.err 1>&5
  6863. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6864. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6865. if diff conftest.exp conftest.er2 >/dev/null; then
  6866. lt_cv_prog_compiler_static_works=yes
  6867. fi
  6868. else
  6869. lt_cv_prog_compiler_static_works=yes
  6870. fi
  6871. fi
  6872. $RM -r conftest*
  6873. LDFLAGS="$save_LDFLAGS"
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6876. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6877. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6878. :
  6879. else
  6880. lt_prog_compiler_static=
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6883. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6884. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. lt_cv_prog_compiler_c_o=no
  6888. $RM -r conftest 2>/dev/null
  6889. mkdir conftest
  6890. cd conftest
  6891. mkdir out
  6892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6894. # Insert the option either (1) after the last *FLAGS variable, or
  6895. # (2) before a word containing "conftest.", or (3) at the end.
  6896. # Note that $ac_compile itself does not contain backslashes and begins
  6897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6898. lt_compile=`echo "$ac_compile" | $SED \
  6899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6901. -e 's:$: $lt_compiler_flag:'`
  6902. (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
  6903. (eval "$lt_compile" 2>out/conftest.err)
  6904. ac_status=$?
  6905. cat out/conftest.err >&5
  6906. echo "$as_me:7956: \$? = $ac_status" >&5
  6907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6908. then
  6909. # The compiler can only warn and ignore the option if not recognized
  6910. # So say no if there are warnings
  6911. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6912. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6913. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6914. lt_cv_prog_compiler_c_o=yes
  6915. fi
  6916. fi
  6917. chmod u+w . 2>&5
  6918. $RM conftest*
  6919. # SGI C++ compiler will create directory out/ii_files/ for
  6920. # template instantiation
  6921. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6922. $RM out/* && rmdir out
  6923. cd ..
  6924. $RM -r conftest
  6925. $RM conftest*
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6928. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6930. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6931. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. lt_cv_prog_compiler_c_o=no
  6935. $RM -r conftest 2>/dev/null
  6936. mkdir conftest
  6937. cd conftest
  6938. mkdir out
  6939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6940. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6941. # Insert the option either (1) after the last *FLAGS variable, or
  6942. # (2) before a word containing "conftest.", or (3) at the end.
  6943. # Note that $ac_compile itself does not contain backslashes and begins
  6944. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6945. lt_compile=`echo "$ac_compile" | $SED \
  6946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6948. -e 's:$: $lt_compiler_flag:'`
  6949. (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
  6950. (eval "$lt_compile" 2>out/conftest.err)
  6951. ac_status=$?
  6952. cat out/conftest.err >&5
  6953. echo "$as_me:8011: \$? = $ac_status" >&5
  6954. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6955. then
  6956. # The compiler can only warn and ignore the option if not recognized
  6957. # So say no if there are warnings
  6958. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6959. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6960. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6961. lt_cv_prog_compiler_c_o=yes
  6962. fi
  6963. fi
  6964. chmod u+w . 2>&5
  6965. $RM conftest*
  6966. # SGI C++ compiler will create directory out/ii_files/ for
  6967. # template instantiation
  6968. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6969. $RM out/* && rmdir out
  6970. cd ..
  6971. $RM -r conftest
  6972. $RM conftest*
  6973. fi
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6975. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6976. hard_links="nottested"
  6977. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6978. # do not overwrite the value of need_locks provided by the user
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6980. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6981. hard_links=yes
  6982. $RM conftest*
  6983. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6984. touch conftest.a
  6985. ln conftest.a conftest.b 2>&5 || hard_links=no
  6986. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6988. $as_echo "$hard_links" >&6; }
  6989. if test "$hard_links" = no; then
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6991. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6992. need_locks=warn
  6993. fi
  6994. else
  6995. need_locks=no
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6998. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6999. runpath_var=
  7000. allow_undefined_flag=
  7001. always_export_symbols=no
  7002. archive_cmds=
  7003. archive_expsym_cmds=
  7004. compiler_needs_object=no
  7005. enable_shared_with_static_runtimes=no
  7006. export_dynamic_flag_spec=
  7007. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7008. hardcode_automatic=no
  7009. hardcode_direct=no
  7010. hardcode_direct_absolute=no
  7011. hardcode_libdir_flag_spec=
  7012. hardcode_libdir_flag_spec_ld=
  7013. hardcode_libdir_separator=
  7014. hardcode_minus_L=no
  7015. hardcode_shlibpath_var=unsupported
  7016. inherit_rpath=no
  7017. link_all_deplibs=unknown
  7018. module_cmds=
  7019. module_expsym_cmds=
  7020. old_archive_from_new_cmds=
  7021. old_archive_from_expsyms_cmds=
  7022. thread_safe_flag_spec=
  7023. whole_archive_flag_spec=
  7024. # include_expsyms should be a list of space-separated symbols to be *always*
  7025. # included in the symbol list
  7026. include_expsyms=
  7027. # exclude_expsyms can be an extended regexp of symbols to exclude
  7028. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7029. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7030. # as well as any symbol that contains `d'.
  7031. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7032. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7033. # platforms (ab)use it in PIC code, but their linkers get confused if
  7034. # the symbol is explicitly referenced. Since portable code cannot
  7035. # rely on this symbol name, it's probably fine to never include it in
  7036. # preloaded symbol tables.
  7037. # Exclude shared library initialization/finalization symbols.
  7038. extract_expsyms_cmds=
  7039. case $host_os in
  7040. cygwin* | mingw* | pw32* | cegcc*)
  7041. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7042. # When not using gcc, we currently assume that we are using
  7043. # Microsoft Visual C++.
  7044. if test "$GCC" != yes; then
  7045. with_gnu_ld=no
  7046. fi
  7047. ;;
  7048. interix*)
  7049. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7050. with_gnu_ld=yes
  7051. ;;
  7052. openbsd*)
  7053. with_gnu_ld=no
  7054. ;;
  7055. linux* | k*bsd*-gnu)
  7056. link_all_deplibs=no
  7057. ;;
  7058. esac
  7059. ld_shlibs=yes
  7060. if test "$with_gnu_ld" = yes; then
  7061. # If archive_cmds runs LD, not CC, wlarc should be empty
  7062. wlarc='${wl}'
  7063. # Set some defaults for GNU ld with shared library support. These
  7064. # are reset later if shared libraries are not supported. Putting them
  7065. # here allows them to be overridden if necessary.
  7066. runpath_var=LD_RUN_PATH
  7067. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7068. export_dynamic_flag_spec='${wl}--export-dynamic'
  7069. # ancient GNU ld didn't support --whole-archive et. al.
  7070. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7071. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7072. else
  7073. whole_archive_flag_spec=
  7074. fi
  7075. supports_anon_versioning=no
  7076. case `$LD -v 2>&1` in
  7077. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7078. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7079. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7080. *\ 2.11.*) ;; # other 2.11 versions
  7081. *) supports_anon_versioning=yes ;;
  7082. esac
  7083. # See if GNU ld supports shared libraries.
  7084. case $host_os in
  7085. aix[3-9]*)
  7086. # On AIX/PPC, the GNU linker is very broken
  7087. if test "$host_cpu" != ia64; then
  7088. ld_shlibs=no
  7089. cat <<_LT_EOF 1>&2
  7090. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7091. *** to be unable to reliably create shared libraries on AIX.
  7092. *** Therefore, libtool is disabling shared libraries support. If you
  7093. *** really care for shared libraries, you may want to modify your PATH
  7094. *** so that a non-GNU linker is found, and then restart.
  7095. _LT_EOF
  7096. fi
  7097. ;;
  7098. amigaos*)
  7099. case $host_cpu in
  7100. powerpc)
  7101. # see comment about AmigaOS4 .so support
  7102. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7103. archive_expsym_cmds=''
  7104. ;;
  7105. m68k)
  7106. 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)'
  7107. hardcode_libdir_flag_spec='-L$libdir'
  7108. hardcode_minus_L=yes
  7109. ;;
  7110. esac
  7111. ;;
  7112. beos*)
  7113. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7114. allow_undefined_flag=unsupported
  7115. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7116. # support --undefined. This deserves some investigation. FIXME
  7117. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7118. else
  7119. ld_shlibs=no
  7120. fi
  7121. ;;
  7122. cygwin* | mingw* | pw32* | cegcc*)
  7123. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7124. # as there is no search path for DLLs.
  7125. hardcode_libdir_flag_spec='-L$libdir'
  7126. allow_undefined_flag=unsupported
  7127. always_export_symbols=no
  7128. enable_shared_with_static_runtimes=yes
  7129. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7130. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7131. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7132. # If the export-symbols file already is a .def file (1st line
  7133. # is EXPORTS), use it as is; otherwise, prepend...
  7134. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7135. cp $export_symbols $output_objdir/$soname.def;
  7136. else
  7137. echo EXPORTS > $output_objdir/$soname.def;
  7138. cat $export_symbols >> $output_objdir/$soname.def;
  7139. fi~
  7140. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7141. else
  7142. ld_shlibs=no
  7143. fi
  7144. ;;
  7145. interix[3-9]*)
  7146. hardcode_direct=no
  7147. hardcode_shlibpath_var=no
  7148. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7149. export_dynamic_flag_spec='${wl}-E'
  7150. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7151. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7152. # default) and relocated if they conflict, which is a slow very memory
  7153. # consuming and fragmenting process. To avoid this, we pick a random,
  7154. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7155. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7156. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7157. 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'
  7158. ;;
  7159. gnu* | linux* | tpf* | k*bsd*-gnu)
  7160. tmp_diet=no
  7161. if test "$host_os" = linux-dietlibc; then
  7162. case $cc_basename in
  7163. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7164. esac
  7165. fi
  7166. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7167. && test "$tmp_diet" = no
  7168. then
  7169. tmp_addflag=
  7170. tmp_sharedflag='-shared'
  7171. case $cc_basename,$host_cpu in
  7172. pgcc*) # Portland Group C compiler
  7173. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7174. tmp_addflag=' $pic_flag'
  7175. ;;
  7176. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7177. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7178. tmp_addflag=' $pic_flag -Mnomain' ;;
  7179. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7180. tmp_addflag=' -i_dynamic' ;;
  7181. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7182. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7183. ifc* | ifort*) # Intel Fortran compiler
  7184. tmp_addflag=' -nofor_main' ;;
  7185. lf95*) # Lahey Fortran 8.1
  7186. whole_archive_flag_spec=
  7187. tmp_sharedflag='--shared' ;;
  7188. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7189. tmp_sharedflag='-qmkshrobj'
  7190. tmp_addflag= ;;
  7191. esac
  7192. case `$CC -V 2>&1 | sed 5q` in
  7193. *Sun\ C*) # Sun C 5.9
  7194. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7195. compiler_needs_object=yes
  7196. tmp_sharedflag='-G' ;;
  7197. *Sun\ F*) # Sun Fortran 8.3
  7198. tmp_sharedflag='-G' ;;
  7199. esac
  7200. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7201. if test "x$supports_anon_versioning" = xyes; then
  7202. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7203. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7204. echo "local: *; };" >> $output_objdir/$libname.ver~
  7205. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7206. fi
  7207. case $cc_basename in
  7208. xlf*)
  7209. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7210. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7211. hardcode_libdir_flag_spec=
  7212. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7213. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7214. if test "x$supports_anon_versioning" = xyes; then
  7215. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7216. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7217. echo "local: *; };" >> $output_objdir/$libname.ver~
  7218. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7219. fi
  7220. ;;
  7221. esac
  7222. else
  7223. ld_shlibs=no
  7224. fi
  7225. ;;
  7226. netbsd* | netbsdelf*-gnu)
  7227. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7228. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7229. wlarc=
  7230. else
  7231. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7232. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7233. fi
  7234. ;;
  7235. solaris*)
  7236. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7237. ld_shlibs=no
  7238. cat <<_LT_EOF 1>&2
  7239. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7240. *** create shared libraries on Solaris systems. Therefore, libtool
  7241. *** is disabling shared libraries support. We urge you to upgrade GNU
  7242. *** binutils to release 2.9.1 or newer. Another option is to modify
  7243. *** your PATH or compiler configuration so that the native linker is
  7244. *** used, and then restart.
  7245. _LT_EOF
  7246. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7247. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7248. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7249. else
  7250. ld_shlibs=no
  7251. fi
  7252. ;;
  7253. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7254. case `$LD -v 2>&1` in
  7255. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7256. ld_shlibs=no
  7257. cat <<_LT_EOF 1>&2
  7258. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7259. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7260. *** is disabling shared libraries support. We urge you to upgrade GNU
  7261. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7262. *** your PATH or compiler configuration so that the native linker is
  7263. *** used, and then restart.
  7264. _LT_EOF
  7265. ;;
  7266. *)
  7267. # For security reasons, it is highly recommended that you always
  7268. # use absolute paths for naming shared libraries, and exclude the
  7269. # DT_RUNPATH tag from executables and libraries. But doing so
  7270. # requires that you compile everything twice, which is a pain.
  7271. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7273. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7274. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7275. else
  7276. ld_shlibs=no
  7277. fi
  7278. ;;
  7279. esac
  7280. ;;
  7281. sunos4*)
  7282. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7283. wlarc=
  7284. hardcode_direct=yes
  7285. hardcode_shlibpath_var=no
  7286. ;;
  7287. *)
  7288. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7289. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7290. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7291. else
  7292. ld_shlibs=no
  7293. fi
  7294. ;;
  7295. esac
  7296. if test "$ld_shlibs" = no; then
  7297. runpath_var=
  7298. hardcode_libdir_flag_spec=
  7299. export_dynamic_flag_spec=
  7300. whole_archive_flag_spec=
  7301. fi
  7302. else
  7303. # PORTME fill in a description of your system's linker (not GNU ld)
  7304. case $host_os in
  7305. aix3*)
  7306. allow_undefined_flag=unsupported
  7307. always_export_symbols=yes
  7308. 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'
  7309. # Note: this linker hardcodes the directories in LIBPATH if there
  7310. # are no directories specified by -L.
  7311. hardcode_minus_L=yes
  7312. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7313. # Neither direct hardcoding nor static linking is supported with a
  7314. # broken collect2.
  7315. hardcode_direct=unsupported
  7316. fi
  7317. ;;
  7318. aix[4-9]*)
  7319. if test "$host_cpu" = ia64; then
  7320. # On IA64, the linker does run time linking by default, so we don't
  7321. # have to do anything special.
  7322. aix_use_runtimelinking=no
  7323. exp_sym_flag='-Bexport'
  7324. no_entry_flag=""
  7325. else
  7326. # If we're using GNU nm, then we don't want the "-C" option.
  7327. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7328. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7329. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7330. else
  7331. 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'
  7332. fi
  7333. aix_use_runtimelinking=no
  7334. # Test if we are trying to use run time linking or normal
  7335. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7336. # need to do runtime linking.
  7337. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7338. for ld_flag in $LDFLAGS; do
  7339. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7340. aix_use_runtimelinking=yes
  7341. break
  7342. fi
  7343. done
  7344. ;;
  7345. esac
  7346. exp_sym_flag='-bexport'
  7347. no_entry_flag='-bnoentry'
  7348. fi
  7349. # When large executables or shared objects are built, AIX ld can
  7350. # have problems creating the table of contents. If linking a library
  7351. # or program results in "error TOC overflow" add -mminimal-toc to
  7352. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7353. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7354. archive_cmds=''
  7355. hardcode_direct=yes
  7356. hardcode_direct_absolute=yes
  7357. hardcode_libdir_separator=':'
  7358. link_all_deplibs=yes
  7359. file_list_spec='${wl}-f,'
  7360. if test "$GCC" = yes; then
  7361. case $host_os in aix4.[012]|aix4.[012].*)
  7362. # We only want to do this on AIX 4.2 and lower, the check
  7363. # below for broken collect2 doesn't work under 4.3+
  7364. collect2name=`${CC} -print-prog-name=collect2`
  7365. if test -f "$collect2name" &&
  7366. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7367. then
  7368. # We have reworked collect2
  7369. :
  7370. else
  7371. # We have old collect2
  7372. hardcode_direct=unsupported
  7373. # It fails to find uninstalled libraries when the uninstalled
  7374. # path is not listed in the libpath. Setting hardcode_minus_L
  7375. # to unsupported forces relinking
  7376. hardcode_minus_L=yes
  7377. hardcode_libdir_flag_spec='-L$libdir'
  7378. hardcode_libdir_separator=
  7379. fi
  7380. ;;
  7381. esac
  7382. shared_flag='-shared'
  7383. if test "$aix_use_runtimelinking" = yes; then
  7384. shared_flag="$shared_flag "'${wl}-G'
  7385. fi
  7386. link_all_deplibs=no
  7387. else
  7388. # not using gcc
  7389. if test "$host_cpu" = ia64; then
  7390. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7391. # chokes on -Wl,-G. The following line is correct:
  7392. shared_flag='-G'
  7393. else
  7394. if test "$aix_use_runtimelinking" = yes; then
  7395. shared_flag='${wl}-G'
  7396. else
  7397. shared_flag='${wl}-bM:SRE'
  7398. fi
  7399. fi
  7400. fi
  7401. export_dynamic_flag_spec='${wl}-bexpall'
  7402. # It seems that -bexpall does not export symbols beginning with
  7403. # underscore (_), so it is better to generate a list of symbols to export.
  7404. always_export_symbols=yes
  7405. if test "$aix_use_runtimelinking" = yes; then
  7406. # Warning - without using the other runtime loading flags (-brtl),
  7407. # -berok will link without error, but may produce a broken library.
  7408. allow_undefined_flag='-berok'
  7409. # Determine the default libpath from the value encoded in an
  7410. # empty executable.
  7411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7412. /* end confdefs.h. */
  7413. int
  7414. main ()
  7415. {
  7416. ;
  7417. return 0;
  7418. }
  7419. _ACEOF
  7420. if ac_fn_c_try_link "$LINENO"; then :
  7421. lt_aix_libpath_sed='
  7422. /Import File Strings/,/^$/ {
  7423. /^0/ {
  7424. s/^0 *\(.*\)$/\1/
  7425. p
  7426. }
  7427. }'
  7428. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7429. # Check for a 64-bit object if we didn't find anything.
  7430. if test -z "$aix_libpath"; then
  7431. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7432. fi
  7433. fi
  7434. rm -f core conftest.err conftest.$ac_objext \
  7435. conftest$ac_exeext conftest.$ac_ext
  7436. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7437. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7438. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7439. else
  7440. if test "$host_cpu" = ia64; then
  7441. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7442. allow_undefined_flag="-z nodefs"
  7443. 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"
  7444. else
  7445. # Determine the default libpath from the value encoded in an
  7446. # empty executable.
  7447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7448. /* end confdefs.h. */
  7449. int
  7450. main ()
  7451. {
  7452. ;
  7453. return 0;
  7454. }
  7455. _ACEOF
  7456. if ac_fn_c_try_link "$LINENO"; then :
  7457. lt_aix_libpath_sed='
  7458. /Import File Strings/,/^$/ {
  7459. /^0/ {
  7460. s/^0 *\(.*\)$/\1/
  7461. p
  7462. }
  7463. }'
  7464. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7465. # Check for a 64-bit object if we didn't find anything.
  7466. if test -z "$aix_libpath"; then
  7467. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7468. fi
  7469. fi
  7470. rm -f core conftest.err conftest.$ac_objext \
  7471. conftest$ac_exeext conftest.$ac_ext
  7472. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7473. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7474. # Warning - without using the other run time loading flags,
  7475. # -berok will link without error, but may produce a broken library.
  7476. no_undefined_flag=' ${wl}-bernotok'
  7477. allow_undefined_flag=' ${wl}-berok'
  7478. # Exported symbols can be pulled into shared objects from archives
  7479. whole_archive_flag_spec='$convenience'
  7480. archive_cmds_need_lc=yes
  7481. # This is similar to how AIX traditionally builds its shared libraries.
  7482. 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'
  7483. fi
  7484. fi
  7485. ;;
  7486. amigaos*)
  7487. case $host_cpu in
  7488. powerpc)
  7489. # see comment about AmigaOS4 .so support
  7490. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7491. archive_expsym_cmds=''
  7492. ;;
  7493. m68k)
  7494. 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)'
  7495. hardcode_libdir_flag_spec='-L$libdir'
  7496. hardcode_minus_L=yes
  7497. ;;
  7498. esac
  7499. ;;
  7500. bsdi[45]*)
  7501. export_dynamic_flag_spec=-rdynamic
  7502. ;;
  7503. cygwin* | mingw* | pw32* | cegcc*)
  7504. # When not using gcc, we currently assume that we are using
  7505. # Microsoft Visual C++.
  7506. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7507. # no search path for DLLs.
  7508. hardcode_libdir_flag_spec=' '
  7509. allow_undefined_flag=unsupported
  7510. # Tell ltmain to make .lib files, not .a files.
  7511. libext=lib
  7512. # Tell ltmain to make .dll files, not .so files.
  7513. shrext_cmds=".dll"
  7514. # FIXME: Setting linknames here is a bad hack.
  7515. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7516. # The linker will automatically build a .lib file if we build a DLL.
  7517. old_archive_from_new_cmds='true'
  7518. # FIXME: Should let the user specify the lib program.
  7519. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7520. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7521. enable_shared_with_static_runtimes=yes
  7522. ;;
  7523. darwin* | rhapsody*)
  7524. archive_cmds_need_lc=no
  7525. hardcode_direct=no
  7526. hardcode_automatic=yes
  7527. hardcode_shlibpath_var=unsupported
  7528. whole_archive_flag_spec=''
  7529. link_all_deplibs=yes
  7530. allow_undefined_flag="$_lt_dar_allow_undefined"
  7531. case $cc_basename in
  7532. ifort*) _lt_dar_can_shared=yes ;;
  7533. *) _lt_dar_can_shared=$GCC ;;
  7534. esac
  7535. if test "$_lt_dar_can_shared" = "yes"; then
  7536. output_verbose_link_cmd=echo
  7537. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7538. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7539. 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}"
  7540. 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}"
  7541. else
  7542. ld_shlibs=no
  7543. fi
  7544. ;;
  7545. dgux*)
  7546. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7547. hardcode_libdir_flag_spec='-L$libdir'
  7548. hardcode_shlibpath_var=no
  7549. ;;
  7550. freebsd1*)
  7551. ld_shlibs=no
  7552. ;;
  7553. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7554. # support. Future versions do this automatically, but an explicit c++rt0.o
  7555. # does not break anything, and helps significantly (at the cost of a little
  7556. # extra space).
  7557. freebsd2.2*)
  7558. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7559. hardcode_libdir_flag_spec='-R$libdir'
  7560. hardcode_direct=yes
  7561. hardcode_shlibpath_var=no
  7562. ;;
  7563. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7564. freebsd2*)
  7565. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7566. hardcode_direct=yes
  7567. hardcode_minus_L=yes
  7568. hardcode_shlibpath_var=no
  7569. ;;
  7570. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7571. freebsd* | dragonfly*)
  7572. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7573. hardcode_libdir_flag_spec='-R$libdir'
  7574. hardcode_direct=yes
  7575. hardcode_shlibpath_var=no
  7576. ;;
  7577. hpux9*)
  7578. if test "$GCC" = yes; then
  7579. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7580. else
  7581. 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'
  7582. fi
  7583. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7584. hardcode_libdir_separator=:
  7585. hardcode_direct=yes
  7586. # hardcode_minus_L: Not really in the search PATH,
  7587. # but as the default location of the library.
  7588. hardcode_minus_L=yes
  7589. export_dynamic_flag_spec='${wl}-E'
  7590. ;;
  7591. hpux10*)
  7592. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7593. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7594. else
  7595. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7596. fi
  7597. if test "$with_gnu_ld" = no; then
  7598. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7599. hardcode_libdir_flag_spec_ld='+b $libdir'
  7600. hardcode_libdir_separator=:
  7601. hardcode_direct=yes
  7602. hardcode_direct_absolute=yes
  7603. export_dynamic_flag_spec='${wl}-E'
  7604. # hardcode_minus_L: Not really in the search PATH,
  7605. # but as the default location of the library.
  7606. hardcode_minus_L=yes
  7607. fi
  7608. ;;
  7609. hpux11*)
  7610. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7611. case $host_cpu in
  7612. hppa*64*)
  7613. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7614. ;;
  7615. ia64*)
  7616. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7617. ;;
  7618. *)
  7619. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7620. ;;
  7621. esac
  7622. else
  7623. case $host_cpu in
  7624. hppa*64*)
  7625. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7626. ;;
  7627. ia64*)
  7628. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7629. ;;
  7630. *)
  7631. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7632. ;;
  7633. esac
  7634. fi
  7635. if test "$with_gnu_ld" = no; then
  7636. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7637. hardcode_libdir_separator=:
  7638. case $host_cpu in
  7639. hppa*64*|ia64*)
  7640. hardcode_direct=no
  7641. hardcode_shlibpath_var=no
  7642. ;;
  7643. *)
  7644. hardcode_direct=yes
  7645. hardcode_direct_absolute=yes
  7646. export_dynamic_flag_spec='${wl}-E'
  7647. # hardcode_minus_L: Not really in the search PATH,
  7648. # but as the default location of the library.
  7649. hardcode_minus_L=yes
  7650. ;;
  7651. esac
  7652. fi
  7653. ;;
  7654. irix5* | irix6* | nonstopux*)
  7655. if test "$GCC" = yes; then
  7656. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7657. # Try to use the -exported_symbol ld option, if it does not
  7658. # work, assume that -exports_file does not work either and
  7659. # implicitly export all symbols.
  7660. save_LDFLAGS="$LDFLAGS"
  7661. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7663. /* end confdefs.h. */
  7664. int foo(void) {}
  7665. _ACEOF
  7666. if ac_fn_c_try_link "$LINENO"; then :
  7667. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext \
  7670. conftest$ac_exeext conftest.$ac_ext
  7671. LDFLAGS="$save_LDFLAGS"
  7672. else
  7673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7674. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7675. fi
  7676. archive_cmds_need_lc='no'
  7677. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7678. hardcode_libdir_separator=:
  7679. inherit_rpath=yes
  7680. link_all_deplibs=yes
  7681. ;;
  7682. netbsd* | netbsdelf*-gnu)
  7683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7684. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7685. else
  7686. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7687. fi
  7688. hardcode_libdir_flag_spec='-R$libdir'
  7689. hardcode_direct=yes
  7690. hardcode_shlibpath_var=no
  7691. ;;
  7692. newsos6)
  7693. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7694. hardcode_direct=yes
  7695. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7696. hardcode_libdir_separator=:
  7697. hardcode_shlibpath_var=no
  7698. ;;
  7699. *nto* | *qnx*)
  7700. ;;
  7701. openbsd*)
  7702. if test -f /usr/libexec/ld.so; then
  7703. hardcode_direct=yes
  7704. hardcode_shlibpath_var=no
  7705. hardcode_direct_absolute=yes
  7706. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7707. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7708. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7709. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7710. export_dynamic_flag_spec='${wl}-E'
  7711. else
  7712. case $host_os in
  7713. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7714. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7715. hardcode_libdir_flag_spec='-R$libdir'
  7716. ;;
  7717. *)
  7718. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7719. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7720. ;;
  7721. esac
  7722. fi
  7723. else
  7724. ld_shlibs=no
  7725. fi
  7726. ;;
  7727. os2*)
  7728. hardcode_libdir_flag_spec='-L$libdir'
  7729. hardcode_minus_L=yes
  7730. allow_undefined_flag=unsupported
  7731. 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'
  7732. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7733. ;;
  7734. osf3*)
  7735. if test "$GCC" = yes; then
  7736. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7737. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7738. else
  7739. allow_undefined_flag=' -expect_unresolved \*'
  7740. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7741. fi
  7742. archive_cmds_need_lc='no'
  7743. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7744. hardcode_libdir_separator=:
  7745. ;;
  7746. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7747. if test "$GCC" = yes; then
  7748. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7749. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7750. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7751. else
  7752. allow_undefined_flag=' -expect_unresolved \*'
  7753. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7754. 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~
  7755. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7756. # Both c and cxx compiler support -rpath directly
  7757. hardcode_libdir_flag_spec='-rpath $libdir'
  7758. fi
  7759. archive_cmds_need_lc='no'
  7760. hardcode_libdir_separator=:
  7761. ;;
  7762. solaris*)
  7763. no_undefined_flag=' -z defs'
  7764. if test "$GCC" = yes; then
  7765. wlarc='${wl}'
  7766. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7767. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7768. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7769. else
  7770. case `$CC -V 2>&1` in
  7771. *"Compilers 5.0"*)
  7772. wlarc=''
  7773. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7774. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7775. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7776. ;;
  7777. *)
  7778. wlarc='${wl}'
  7779. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7780. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7781. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7782. ;;
  7783. esac
  7784. fi
  7785. hardcode_libdir_flag_spec='-R$libdir'
  7786. hardcode_shlibpath_var=no
  7787. case $host_os in
  7788. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7789. *)
  7790. # The compiler driver will combine and reorder linker options,
  7791. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7792. # but is careful enough not to reorder.
  7793. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7794. if test "$GCC" = yes; then
  7795. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7796. else
  7797. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7798. fi
  7799. ;;
  7800. esac
  7801. link_all_deplibs=yes
  7802. ;;
  7803. sunos4*)
  7804. if test "x$host_vendor" = xsequent; then
  7805. # Use $CC to link under sequent, because it throws in some extra .o
  7806. # files that make .init and .fini sections work.
  7807. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7808. else
  7809. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7810. fi
  7811. hardcode_libdir_flag_spec='-L$libdir'
  7812. hardcode_direct=yes
  7813. hardcode_minus_L=yes
  7814. hardcode_shlibpath_var=no
  7815. ;;
  7816. sysv4)
  7817. case $host_vendor in
  7818. sni)
  7819. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7820. hardcode_direct=yes # is this really true???
  7821. ;;
  7822. siemens)
  7823. ## LD is ld it makes a PLAMLIB
  7824. ## CC just makes a GrossModule.
  7825. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7826. reload_cmds='$CC -r -o $output$reload_objs'
  7827. hardcode_direct=no
  7828. ;;
  7829. motorola)
  7830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7831. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7832. ;;
  7833. esac
  7834. runpath_var='LD_RUN_PATH'
  7835. hardcode_shlibpath_var=no
  7836. ;;
  7837. sysv4.3*)
  7838. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7839. hardcode_shlibpath_var=no
  7840. export_dynamic_flag_spec='-Bexport'
  7841. ;;
  7842. sysv4*MP*)
  7843. if test -d /usr/nec; then
  7844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7845. hardcode_shlibpath_var=no
  7846. runpath_var=LD_RUN_PATH
  7847. hardcode_runpath_var=yes
  7848. ld_shlibs=yes
  7849. fi
  7850. ;;
  7851. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7852. no_undefined_flag='${wl}-z,text'
  7853. archive_cmds_need_lc=no
  7854. hardcode_shlibpath_var=no
  7855. runpath_var='LD_RUN_PATH'
  7856. if test "$GCC" = yes; then
  7857. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7858. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7859. else
  7860. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7861. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7862. fi
  7863. ;;
  7864. sysv5* | sco3.2v5* | sco5v6*)
  7865. # Note: We can NOT use -z defs as we might desire, because we do not
  7866. # link with -lc, and that would cause any symbols used from libc to
  7867. # always be unresolved, which means just about no library would
  7868. # ever link correctly. If we're not using GNU ld we use -z text
  7869. # though, which does catch some bad symbols but isn't as heavy-handed
  7870. # as -z defs.
  7871. no_undefined_flag='${wl}-z,text'
  7872. allow_undefined_flag='${wl}-z,nodefs'
  7873. archive_cmds_need_lc=no
  7874. hardcode_shlibpath_var=no
  7875. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7876. hardcode_libdir_separator=':'
  7877. link_all_deplibs=yes
  7878. export_dynamic_flag_spec='${wl}-Bexport'
  7879. runpath_var='LD_RUN_PATH'
  7880. if test "$GCC" = yes; then
  7881. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7882. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7883. else
  7884. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7885. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7886. fi
  7887. ;;
  7888. uts4*)
  7889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7890. hardcode_libdir_flag_spec='-L$libdir'
  7891. hardcode_shlibpath_var=no
  7892. ;;
  7893. *)
  7894. ld_shlibs=no
  7895. ;;
  7896. esac
  7897. if test x$host_vendor = xsni; then
  7898. case $host in
  7899. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7900. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7901. ;;
  7902. esac
  7903. fi
  7904. fi
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7906. $as_echo "$ld_shlibs" >&6; }
  7907. test "$ld_shlibs" = no && can_build_shared=no
  7908. with_gnu_ld=$with_gnu_ld
  7909. #
  7910. # Do we need to explicitly link libc?
  7911. #
  7912. case "x$archive_cmds_need_lc" in
  7913. x|xyes)
  7914. # Assume -lc should be added
  7915. archive_cmds_need_lc=yes
  7916. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7917. case $archive_cmds in
  7918. *'~'*)
  7919. # FIXME: we may have to deal with multi-command sequences.
  7920. ;;
  7921. '$CC '*)
  7922. # Test whether the compiler implicitly links with -lc since on some
  7923. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7924. # to ld, don't add -lc before -lgcc.
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7926. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7927. $RM conftest*
  7928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7929. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7930. (eval $ac_compile) 2>&5
  7931. ac_status=$?
  7932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7933. test $ac_status = 0; } 2>conftest.err; then
  7934. soname=conftest
  7935. lib=conftest
  7936. libobjs=conftest.$ac_objext
  7937. deplibs=
  7938. wl=$lt_prog_compiler_wl
  7939. pic_flag=$lt_prog_compiler_pic
  7940. compiler_flags=-v
  7941. linker_flags=-v
  7942. verstring=
  7943. output_objdir=.
  7944. libname=conftest
  7945. lt_save_allow_undefined_flag=$allow_undefined_flag
  7946. allow_undefined_flag=
  7947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7948. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7949. ac_status=$?
  7950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7951. test $ac_status = 0; }
  7952. then
  7953. archive_cmds_need_lc=no
  7954. else
  7955. archive_cmds_need_lc=yes
  7956. fi
  7957. allow_undefined_flag=$lt_save_allow_undefined_flag
  7958. else
  7959. cat conftest.err 1>&5
  7960. fi
  7961. $RM conftest*
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  7963. $as_echo "$archive_cmds_need_lc" >&6; }
  7964. ;;
  7965. esac
  7966. fi
  7967. ;;
  7968. esac
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7970. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7971. if test "$GCC" = yes; then
  7972. case $host_os in
  7973. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7974. *) lt_awk_arg="/^libraries:/" ;;
  7975. esac
  7976. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7977. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7978. # if the path contains ";" then we assume it to be the separator
  7979. # otherwise default to the standard path separator (i.e. ":") - it is
  7980. # assumed that no part of a normal pathname contains ";" but that should
  7981. # okay in the real world where ";" in dirpaths is itself problematic.
  7982. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7983. else
  7984. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7985. fi
  7986. # Ok, now we have the path, separated by spaces, we can step through it
  7987. # and add multilib dir if necessary.
  7988. lt_tmp_lt_search_path_spec=
  7989. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7990. for lt_sys_path in $lt_search_path_spec; do
  7991. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7992. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7993. else
  7994. test -d "$lt_sys_path" && \
  7995. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7996. fi
  7997. done
  7998. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7999. BEGIN {RS=" "; FS="/|\n";} {
  8000. lt_foo="";
  8001. lt_count=0;
  8002. for (lt_i = NF; lt_i > 0; lt_i--) {
  8003. if ($lt_i != "" && $lt_i != ".") {
  8004. if ($lt_i == "..") {
  8005. lt_count++;
  8006. } else {
  8007. if (lt_count == 0) {
  8008. lt_foo="/" $lt_i lt_foo;
  8009. } else {
  8010. lt_count--;
  8011. }
  8012. }
  8013. }
  8014. }
  8015. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8016. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8017. }'`
  8018. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8019. else
  8020. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8021. fi
  8022. library_names_spec=
  8023. libname_spec='lib$name'
  8024. soname_spec=
  8025. shrext_cmds=".so"
  8026. postinstall_cmds=
  8027. postuninstall_cmds=
  8028. finish_cmds=
  8029. finish_eval=
  8030. shlibpath_var=
  8031. shlibpath_overrides_runpath=unknown
  8032. version_type=none
  8033. dynamic_linker="$host_os ld.so"
  8034. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8035. need_lib_prefix=unknown
  8036. hardcode_into_libs=no
  8037. # when you set need_version to no, make sure it does not cause -set_version
  8038. # flags to be left without arguments
  8039. need_version=unknown
  8040. case $host_os in
  8041. aix3*)
  8042. version_type=linux
  8043. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8044. shlibpath_var=LIBPATH
  8045. # AIX 3 has no versioning support, so we append a major version to the name.
  8046. soname_spec='${libname}${release}${shared_ext}$major'
  8047. ;;
  8048. aix[4-9]*)
  8049. version_type=linux
  8050. need_lib_prefix=no
  8051. need_version=no
  8052. hardcode_into_libs=yes
  8053. if test "$host_cpu" = ia64; then
  8054. # AIX 5 supports IA64
  8055. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8056. shlibpath_var=LD_LIBRARY_PATH
  8057. else
  8058. # With GCC up to 2.95.x, collect2 would create an import file
  8059. # for dependence libraries. The import file would start with
  8060. # the line `#! .'. This would cause the generated library to
  8061. # depend on `.', always an invalid library. This was fixed in
  8062. # development snapshots of GCC prior to 3.0.
  8063. case $host_os in
  8064. aix4 | aix4.[01] | aix4.[01].*)
  8065. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8066. echo ' yes '
  8067. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8068. :
  8069. else
  8070. can_build_shared=no
  8071. fi
  8072. ;;
  8073. esac
  8074. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8075. # soname into executable. Probably we can add versioning support to
  8076. # collect2, so additional links can be useful in future.
  8077. if test "$aix_use_runtimelinking" = yes; then
  8078. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8079. # instead of lib<name>.a to let people know that these are not
  8080. # typical AIX shared libraries.
  8081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8082. else
  8083. # We preserve .a as extension for shared libraries through AIX4.2
  8084. # and later when we are not doing run time linking.
  8085. library_names_spec='${libname}${release}.a $libname.a'
  8086. soname_spec='${libname}${release}${shared_ext}$major'
  8087. fi
  8088. shlibpath_var=LIBPATH
  8089. fi
  8090. ;;
  8091. amigaos*)
  8092. case $host_cpu in
  8093. powerpc)
  8094. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8095. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8097. ;;
  8098. m68k)
  8099. library_names_spec='$libname.ixlibrary $libname.a'
  8100. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8101. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8102. ;;
  8103. esac
  8104. ;;
  8105. beos*)
  8106. library_names_spec='${libname}${shared_ext}'
  8107. dynamic_linker="$host_os ld.so"
  8108. shlibpath_var=LIBRARY_PATH
  8109. ;;
  8110. bsdi[45]*)
  8111. version_type=linux
  8112. need_version=no
  8113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8114. soname_spec='${libname}${release}${shared_ext}$major'
  8115. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8116. shlibpath_var=LD_LIBRARY_PATH
  8117. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8118. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8119. # the default ld.so.conf also contains /usr/contrib/lib and
  8120. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8121. # libtool to hard-code these into programs
  8122. ;;
  8123. cygwin* | mingw* | pw32* | cegcc*)
  8124. version_type=windows
  8125. shrext_cmds=".dll"
  8126. need_version=no
  8127. need_lib_prefix=no
  8128. case $GCC,$host_os in
  8129. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8130. library_names_spec='$libname.dll.a'
  8131. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8132. postinstall_cmds='base_file=`basename \${file}`~
  8133. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8134. dldir=$destdir/`dirname \$dlpath`~
  8135. test -d \$dldir || mkdir -p \$dldir~
  8136. $install_prog $dir/$dlname \$dldir/$dlname~
  8137. chmod a+x \$dldir/$dlname~
  8138. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8139. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8140. fi'
  8141. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8142. dlpath=$dir/\$dldll~
  8143. $RM \$dlpath'
  8144. shlibpath_overrides_runpath=yes
  8145. case $host_os in
  8146. cygwin*)
  8147. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8148. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8149. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8150. ;;
  8151. mingw* | cegcc*)
  8152. # MinGW DLLs use traditional 'lib' prefix
  8153. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8154. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8155. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8156. # It is most probably a Windows format PATH printed by
  8157. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8158. # path with ; separators, and with drive letters. We can handle the
  8159. # drive letters (cygwin fileutils understands them), so leave them,
  8160. # especially as we might pass files found there to a mingw objdump,
  8161. # which wouldn't understand a cygwinified path. Ahh.
  8162. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8163. else
  8164. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8165. fi
  8166. ;;
  8167. pw32*)
  8168. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8169. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8170. ;;
  8171. esac
  8172. ;;
  8173. *)
  8174. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8175. ;;
  8176. esac
  8177. dynamic_linker='Win32 ld.exe'
  8178. # FIXME: first we should search . and the directory the executable is in
  8179. shlibpath_var=PATH
  8180. ;;
  8181. darwin* | rhapsody*)
  8182. dynamic_linker="$host_os dyld"
  8183. version_type=darwin
  8184. need_lib_prefix=no
  8185. need_version=no
  8186. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8187. soname_spec='${libname}${release}${major}$shared_ext'
  8188. shlibpath_overrides_runpath=yes
  8189. shlibpath_var=DYLD_LIBRARY_PATH
  8190. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8191. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8192. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8193. ;;
  8194. dgux*)
  8195. version_type=linux
  8196. need_lib_prefix=no
  8197. need_version=no
  8198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8199. soname_spec='${libname}${release}${shared_ext}$major'
  8200. shlibpath_var=LD_LIBRARY_PATH
  8201. ;;
  8202. freebsd1*)
  8203. dynamic_linker=no
  8204. ;;
  8205. freebsd* | dragonfly*)
  8206. # DragonFly does not have aout. When/if they implement a new
  8207. # versioning mechanism, adjust this.
  8208. if test -x /usr/bin/objformat; then
  8209. objformat=`/usr/bin/objformat`
  8210. else
  8211. case $host_os in
  8212. freebsd[123]*) objformat=aout ;;
  8213. *) objformat=elf ;;
  8214. esac
  8215. fi
  8216. version_type=freebsd-$objformat
  8217. case $version_type in
  8218. freebsd-elf*)
  8219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8220. need_version=no
  8221. need_lib_prefix=no
  8222. ;;
  8223. freebsd-*)
  8224. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8225. need_version=yes
  8226. ;;
  8227. esac
  8228. shlibpath_var=LD_LIBRARY_PATH
  8229. case $host_os in
  8230. freebsd2*)
  8231. shlibpath_overrides_runpath=yes
  8232. ;;
  8233. freebsd3.[01]* | freebsdelf3.[01]*)
  8234. shlibpath_overrides_runpath=yes
  8235. hardcode_into_libs=yes
  8236. ;;
  8237. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8238. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8239. shlibpath_overrides_runpath=no
  8240. hardcode_into_libs=yes
  8241. ;;
  8242. *) # from 4.6 on, and DragonFly
  8243. shlibpath_overrides_runpath=yes
  8244. hardcode_into_libs=yes
  8245. ;;
  8246. esac
  8247. ;;
  8248. gnu*)
  8249. version_type=linux
  8250. need_lib_prefix=no
  8251. need_version=no
  8252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8253. soname_spec='${libname}${release}${shared_ext}$major'
  8254. shlibpath_var=LD_LIBRARY_PATH
  8255. hardcode_into_libs=yes
  8256. ;;
  8257. hpux9* | hpux10* | hpux11*)
  8258. # Give a soname corresponding to the major version so that dld.sl refuses to
  8259. # link against other versions.
  8260. version_type=sunos
  8261. need_lib_prefix=no
  8262. need_version=no
  8263. case $host_cpu in
  8264. ia64*)
  8265. shrext_cmds='.so'
  8266. hardcode_into_libs=yes
  8267. dynamic_linker="$host_os dld.so"
  8268. shlibpath_var=LD_LIBRARY_PATH
  8269. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8271. soname_spec='${libname}${release}${shared_ext}$major'
  8272. if test "X$HPUX_IA64_MODE" = X32; then
  8273. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8274. else
  8275. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8276. fi
  8277. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8278. ;;
  8279. hppa*64*)
  8280. shrext_cmds='.sl'
  8281. hardcode_into_libs=yes
  8282. dynamic_linker="$host_os dld.sl"
  8283. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8284. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8286. soname_spec='${libname}${release}${shared_ext}$major'
  8287. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8288. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8289. ;;
  8290. *)
  8291. shrext_cmds='.sl'
  8292. dynamic_linker="$host_os dld.sl"
  8293. shlibpath_var=SHLIB_PATH
  8294. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8296. soname_spec='${libname}${release}${shared_ext}$major'
  8297. ;;
  8298. esac
  8299. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8300. postinstall_cmds='chmod 555 $lib'
  8301. ;;
  8302. interix[3-9]*)
  8303. version_type=linux
  8304. need_lib_prefix=no
  8305. need_version=no
  8306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8307. soname_spec='${libname}${release}${shared_ext}$major'
  8308. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8309. shlibpath_var=LD_LIBRARY_PATH
  8310. shlibpath_overrides_runpath=no
  8311. hardcode_into_libs=yes
  8312. ;;
  8313. irix5* | irix6* | nonstopux*)
  8314. case $host_os in
  8315. nonstopux*) version_type=nonstopux ;;
  8316. *)
  8317. if test "$lt_cv_prog_gnu_ld" = yes; then
  8318. version_type=linux
  8319. else
  8320. version_type=irix
  8321. fi ;;
  8322. esac
  8323. need_lib_prefix=no
  8324. need_version=no
  8325. soname_spec='${libname}${release}${shared_ext}$major'
  8326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8327. case $host_os in
  8328. irix5* | nonstopux*)
  8329. libsuff= shlibsuff=
  8330. ;;
  8331. *)
  8332. case $LD in # libtool.m4 will add one of these switches to LD
  8333. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8334. libsuff= shlibsuff= libmagic=32-bit;;
  8335. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8336. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8337. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8338. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8339. *) libsuff= shlibsuff= libmagic=never-match;;
  8340. esac
  8341. ;;
  8342. esac
  8343. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8344. shlibpath_overrides_runpath=no
  8345. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8346. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8347. hardcode_into_libs=yes
  8348. ;;
  8349. # No shared lib support for Linux oldld, aout, or coff.
  8350. linux*oldld* | linux*aout* | linux*coff*)
  8351. dynamic_linker=no
  8352. ;;
  8353. # This must be Linux ELF.
  8354. linux* | k*bsd*-gnu)
  8355. version_type=linux
  8356. need_lib_prefix=no
  8357. need_version=no
  8358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8359. soname_spec='${libname}${release}${shared_ext}$major'
  8360. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8361. shlibpath_var=LD_LIBRARY_PATH
  8362. shlibpath_overrides_runpath=no
  8363. # Some binutils ld are patched to set DT_RUNPATH
  8364. save_LDFLAGS=$LDFLAGS
  8365. save_libdir=$libdir
  8366. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8367. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8369. /* end confdefs.h. */
  8370. int
  8371. main ()
  8372. {
  8373. ;
  8374. return 0;
  8375. }
  8376. _ACEOF
  8377. if ac_fn_c_try_link "$LINENO"; then :
  8378. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8379. shlibpath_overrides_runpath=yes
  8380. fi
  8381. fi
  8382. rm -f core conftest.err conftest.$ac_objext \
  8383. conftest$ac_exeext conftest.$ac_ext
  8384. LDFLAGS=$save_LDFLAGS
  8385. libdir=$save_libdir
  8386. # This implies no fast_install, which is unacceptable.
  8387. # Some rework will be needed to allow for fast_install
  8388. # before this can be enabled.
  8389. hardcode_into_libs=yes
  8390. # Append ld.so.conf contents to the search path
  8391. if test -f /etc/ld.so.conf; then
  8392. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8393. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8394. fi
  8395. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8396. # powerpc, because MkLinux only supported shared libraries with the
  8397. # GNU dynamic linker. Since this was broken with cross compilers,
  8398. # most powerpc-linux boxes support dynamic linking these days and
  8399. # people can always --disable-shared, the test was removed, and we
  8400. # assume the GNU/Linux dynamic linker is in use.
  8401. dynamic_linker='GNU/Linux ld.so'
  8402. ;;
  8403. netbsdelf*-gnu)
  8404. version_type=linux
  8405. need_lib_prefix=no
  8406. need_version=no
  8407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8408. soname_spec='${libname}${release}${shared_ext}$major'
  8409. shlibpath_var=LD_LIBRARY_PATH
  8410. shlibpath_overrides_runpath=no
  8411. hardcode_into_libs=yes
  8412. dynamic_linker='NetBSD ld.elf_so'
  8413. ;;
  8414. netbsd*)
  8415. version_type=sunos
  8416. need_lib_prefix=no
  8417. need_version=no
  8418. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8421. dynamic_linker='NetBSD (a.out) ld.so'
  8422. else
  8423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8424. soname_spec='${libname}${release}${shared_ext}$major'
  8425. dynamic_linker='NetBSD ld.elf_so'
  8426. fi
  8427. shlibpath_var=LD_LIBRARY_PATH
  8428. shlibpath_overrides_runpath=yes
  8429. hardcode_into_libs=yes
  8430. ;;
  8431. newsos6)
  8432. version_type=linux
  8433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8434. shlibpath_var=LD_LIBRARY_PATH
  8435. shlibpath_overrides_runpath=yes
  8436. ;;
  8437. *nto* | *qnx*)
  8438. version_type=qnx
  8439. need_lib_prefix=no
  8440. need_version=no
  8441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8442. soname_spec='${libname}${release}${shared_ext}$major'
  8443. shlibpath_var=LD_LIBRARY_PATH
  8444. shlibpath_overrides_runpath=no
  8445. hardcode_into_libs=yes
  8446. dynamic_linker='ldqnx.so'
  8447. ;;
  8448. openbsd*)
  8449. version_type=sunos
  8450. sys_lib_dlsearch_path_spec="/usr/lib"
  8451. need_lib_prefix=no
  8452. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8453. case $host_os in
  8454. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8455. *) need_version=no ;;
  8456. esac
  8457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8458. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8459. shlibpath_var=LD_LIBRARY_PATH
  8460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8461. case $host_os in
  8462. openbsd2.[89] | openbsd2.[89].*)
  8463. shlibpath_overrides_runpath=no
  8464. ;;
  8465. *)
  8466. shlibpath_overrides_runpath=yes
  8467. ;;
  8468. esac
  8469. else
  8470. shlibpath_overrides_runpath=yes
  8471. fi
  8472. ;;
  8473. os2*)
  8474. libname_spec='$name'
  8475. shrext_cmds=".dll"
  8476. need_lib_prefix=no
  8477. library_names_spec='$libname${shared_ext} $libname.a'
  8478. dynamic_linker='OS/2 ld.exe'
  8479. shlibpath_var=LIBPATH
  8480. ;;
  8481. osf3* | osf4* | osf5*)
  8482. version_type=osf
  8483. need_lib_prefix=no
  8484. need_version=no
  8485. soname_spec='${libname}${release}${shared_ext}$major'
  8486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8487. shlibpath_var=LD_LIBRARY_PATH
  8488. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8489. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8490. ;;
  8491. rdos*)
  8492. dynamic_linker=no
  8493. ;;
  8494. solaris*)
  8495. version_type=linux
  8496. need_lib_prefix=no
  8497. need_version=no
  8498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8499. soname_spec='${libname}${release}${shared_ext}$major'
  8500. shlibpath_var=LD_LIBRARY_PATH
  8501. shlibpath_overrides_runpath=yes
  8502. hardcode_into_libs=yes
  8503. # ldd complains unless libraries are executable
  8504. postinstall_cmds='chmod +x $lib'
  8505. ;;
  8506. sunos4*)
  8507. version_type=sunos
  8508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8509. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8510. shlibpath_var=LD_LIBRARY_PATH
  8511. shlibpath_overrides_runpath=yes
  8512. if test "$with_gnu_ld" = yes; then
  8513. need_lib_prefix=no
  8514. fi
  8515. need_version=yes
  8516. ;;
  8517. sysv4 | sysv4.3*)
  8518. version_type=linux
  8519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8520. soname_spec='${libname}${release}${shared_ext}$major'
  8521. shlibpath_var=LD_LIBRARY_PATH
  8522. case $host_vendor in
  8523. sni)
  8524. shlibpath_overrides_runpath=no
  8525. need_lib_prefix=no
  8526. runpath_var=LD_RUN_PATH
  8527. ;;
  8528. siemens)
  8529. need_lib_prefix=no
  8530. ;;
  8531. motorola)
  8532. need_lib_prefix=no
  8533. need_version=no
  8534. shlibpath_overrides_runpath=no
  8535. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8536. ;;
  8537. esac
  8538. ;;
  8539. sysv4*MP*)
  8540. if test -d /usr/nec ;then
  8541. version_type=linux
  8542. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8543. soname_spec='$libname${shared_ext}.$major'
  8544. shlibpath_var=LD_LIBRARY_PATH
  8545. fi
  8546. ;;
  8547. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8548. version_type=freebsd-elf
  8549. need_lib_prefix=no
  8550. need_version=no
  8551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8552. soname_spec='${libname}${release}${shared_ext}$major'
  8553. shlibpath_var=LD_LIBRARY_PATH
  8554. shlibpath_overrides_runpath=yes
  8555. hardcode_into_libs=yes
  8556. if test "$with_gnu_ld" = yes; then
  8557. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8558. else
  8559. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8560. case $host_os in
  8561. sco3.2v5*)
  8562. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8563. ;;
  8564. esac
  8565. fi
  8566. sys_lib_dlsearch_path_spec='/usr/lib'
  8567. ;;
  8568. tpf*)
  8569. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8570. version_type=linux
  8571. need_lib_prefix=no
  8572. need_version=no
  8573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8574. shlibpath_var=LD_LIBRARY_PATH
  8575. shlibpath_overrides_runpath=no
  8576. hardcode_into_libs=yes
  8577. ;;
  8578. uts4*)
  8579. version_type=linux
  8580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8581. soname_spec='${libname}${release}${shared_ext}$major'
  8582. shlibpath_var=LD_LIBRARY_PATH
  8583. ;;
  8584. *)
  8585. dynamic_linker=no
  8586. ;;
  8587. esac
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8589. $as_echo "$dynamic_linker" >&6; }
  8590. test "$dynamic_linker" = no && can_build_shared=no
  8591. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8592. if test "$GCC" = yes; then
  8593. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8594. fi
  8595. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8596. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8597. fi
  8598. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8599. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8600. fi
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8602. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8603. hardcode_action=
  8604. if test -n "$hardcode_libdir_flag_spec" ||
  8605. test -n "$runpath_var" ||
  8606. test "X$hardcode_automatic" = "Xyes" ; then
  8607. # We can hardcode non-existent directories.
  8608. if test "$hardcode_direct" != no &&
  8609. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8610. # have to relink, otherwise we might link with an installed library
  8611. # when we should be linking with a yet-to-be-installed one
  8612. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8613. test "$hardcode_minus_L" != no; then
  8614. # Linking always hardcodes the temporary library directory.
  8615. hardcode_action=relink
  8616. else
  8617. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8618. hardcode_action=immediate
  8619. fi
  8620. else
  8621. # We cannot hardcode anything, or else we can only hardcode existing
  8622. # directories.
  8623. hardcode_action=unsupported
  8624. fi
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8626. $as_echo "$hardcode_action" >&6; }
  8627. if test "$hardcode_action" = relink ||
  8628. test "$inherit_rpath" = yes; then
  8629. # Fast installation is not supported
  8630. enable_fast_install=no
  8631. elif test "$shlibpath_overrides_runpath" = yes ||
  8632. test "$enable_shared" = no; then
  8633. # Fast installation is not necessary
  8634. enable_fast_install=needless
  8635. fi
  8636. if test "x$enable_dlopen" != xyes; then
  8637. enable_dlopen=unknown
  8638. enable_dlopen_self=unknown
  8639. enable_dlopen_self_static=unknown
  8640. else
  8641. lt_cv_dlopen=no
  8642. lt_cv_dlopen_libs=
  8643. case $host_os in
  8644. beos*)
  8645. lt_cv_dlopen="load_add_on"
  8646. lt_cv_dlopen_libs=
  8647. lt_cv_dlopen_self=yes
  8648. ;;
  8649. mingw* | pw32* | cegcc*)
  8650. lt_cv_dlopen="LoadLibrary"
  8651. lt_cv_dlopen_libs=
  8652. ;;
  8653. cygwin*)
  8654. lt_cv_dlopen="dlopen"
  8655. lt_cv_dlopen_libs=
  8656. ;;
  8657. darwin*)
  8658. # if libdl is installed we need to link against it
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8660. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8661. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8662. $as_echo_n "(cached) " >&6
  8663. else
  8664. ac_check_lib_save_LIBS=$LIBS
  8665. LIBS="-ldl $LIBS"
  8666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8667. /* end confdefs.h. */
  8668. /* Override any GCC internal prototype to avoid an error.
  8669. Use char because int might match the return type of a GCC
  8670. builtin and then its argument prototype would still apply. */
  8671. #ifdef __cplusplus
  8672. extern "C"
  8673. #endif
  8674. char dlopen ();
  8675. int
  8676. main ()
  8677. {
  8678. return dlopen ();
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. if ac_fn_c_try_link "$LINENO"; then :
  8684. ac_cv_lib_dl_dlopen=yes
  8685. else
  8686. ac_cv_lib_dl_dlopen=no
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. LIBS=$ac_check_lib_save_LIBS
  8691. fi
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8693. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8694. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8695. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8696. else
  8697. lt_cv_dlopen="dyld"
  8698. lt_cv_dlopen_libs=
  8699. lt_cv_dlopen_self=yes
  8700. fi
  8701. ;;
  8702. *)
  8703. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8704. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8705. lt_cv_dlopen="shl_load"
  8706. else
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8708. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8709. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8710. $as_echo_n "(cached) " >&6
  8711. else
  8712. ac_check_lib_save_LIBS=$LIBS
  8713. LIBS="-ldld $LIBS"
  8714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8715. /* end confdefs.h. */
  8716. /* Override any GCC internal prototype to avoid an error.
  8717. Use char because int might match the return type of a GCC
  8718. builtin and then its argument prototype would still apply. */
  8719. #ifdef __cplusplus
  8720. extern "C"
  8721. #endif
  8722. char shl_load ();
  8723. int
  8724. main ()
  8725. {
  8726. return shl_load ();
  8727. ;
  8728. return 0;
  8729. }
  8730. _ACEOF
  8731. if ac_fn_c_try_link "$LINENO"; then :
  8732. ac_cv_lib_dld_shl_load=yes
  8733. else
  8734. ac_cv_lib_dld_shl_load=no
  8735. fi
  8736. rm -f core conftest.err conftest.$ac_objext \
  8737. conftest$ac_exeext conftest.$ac_ext
  8738. LIBS=$ac_check_lib_save_LIBS
  8739. fi
  8740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8741. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8742. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8743. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8744. else
  8745. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8746. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8747. lt_cv_dlopen="dlopen"
  8748. else
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8750. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8751. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8752. $as_echo_n "(cached) " >&6
  8753. else
  8754. ac_check_lib_save_LIBS=$LIBS
  8755. LIBS="-ldl $LIBS"
  8756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8757. /* end confdefs.h. */
  8758. /* Override any GCC internal prototype to avoid an error.
  8759. Use char because int might match the return type of a GCC
  8760. builtin and then its argument prototype would still apply. */
  8761. #ifdef __cplusplus
  8762. extern "C"
  8763. #endif
  8764. char dlopen ();
  8765. int
  8766. main ()
  8767. {
  8768. return dlopen ();
  8769. ;
  8770. return 0;
  8771. }
  8772. _ACEOF
  8773. if ac_fn_c_try_link "$LINENO"; then :
  8774. ac_cv_lib_dl_dlopen=yes
  8775. else
  8776. ac_cv_lib_dl_dlopen=no
  8777. fi
  8778. rm -f core conftest.err conftest.$ac_objext \
  8779. conftest$ac_exeext conftest.$ac_ext
  8780. LIBS=$ac_check_lib_save_LIBS
  8781. fi
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8783. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8784. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8785. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8786. else
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8788. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8789. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8790. $as_echo_n "(cached) " >&6
  8791. else
  8792. ac_check_lib_save_LIBS=$LIBS
  8793. LIBS="-lsvld $LIBS"
  8794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8795. /* end confdefs.h. */
  8796. /* Override any GCC internal prototype to avoid an error.
  8797. Use char because int might match the return type of a GCC
  8798. builtin and then its argument prototype would still apply. */
  8799. #ifdef __cplusplus
  8800. extern "C"
  8801. #endif
  8802. char dlopen ();
  8803. int
  8804. main ()
  8805. {
  8806. return dlopen ();
  8807. ;
  8808. return 0;
  8809. }
  8810. _ACEOF
  8811. if ac_fn_c_try_link "$LINENO"; then :
  8812. ac_cv_lib_svld_dlopen=yes
  8813. else
  8814. ac_cv_lib_svld_dlopen=no
  8815. fi
  8816. rm -f core conftest.err conftest.$ac_objext \
  8817. conftest$ac_exeext conftest.$ac_ext
  8818. LIBS=$ac_check_lib_save_LIBS
  8819. fi
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8821. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8822. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8823. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8824. else
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8826. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8827. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. ac_check_lib_save_LIBS=$LIBS
  8831. LIBS="-ldld $LIBS"
  8832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8833. /* end confdefs.h. */
  8834. /* Override any GCC internal prototype to avoid an error.
  8835. Use char because int might match the return type of a GCC
  8836. builtin and then its argument prototype would still apply. */
  8837. #ifdef __cplusplus
  8838. extern "C"
  8839. #endif
  8840. char dld_link ();
  8841. int
  8842. main ()
  8843. {
  8844. return dld_link ();
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. if ac_fn_c_try_link "$LINENO"; then :
  8850. ac_cv_lib_dld_dld_link=yes
  8851. else
  8852. ac_cv_lib_dld_dld_link=no
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext \
  8855. conftest$ac_exeext conftest.$ac_ext
  8856. LIBS=$ac_check_lib_save_LIBS
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8859. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8860. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8861. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8862. fi
  8863. fi
  8864. fi
  8865. fi
  8866. fi
  8867. fi
  8868. ;;
  8869. esac
  8870. if test "x$lt_cv_dlopen" != xno; then
  8871. enable_dlopen=yes
  8872. else
  8873. enable_dlopen=no
  8874. fi
  8875. case $lt_cv_dlopen in
  8876. dlopen)
  8877. save_CPPFLAGS="$CPPFLAGS"
  8878. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8879. save_LDFLAGS="$LDFLAGS"
  8880. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8881. save_LIBS="$LIBS"
  8882. LIBS="$lt_cv_dlopen_libs $LIBS"
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8884. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8885. if test "${lt_cv_dlopen_self+set}" = set; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. if test "$cross_compiling" = yes; then :
  8889. lt_cv_dlopen_self=cross
  8890. else
  8891. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8892. lt_status=$lt_dlunknown
  8893. cat > conftest.$ac_ext <<_LT_EOF
  8894. #line 10390 "configure"
  8895. #include "confdefs.h"
  8896. #if HAVE_DLFCN_H
  8897. #include <dlfcn.h>
  8898. #endif
  8899. #include <stdio.h>
  8900. #ifdef RTLD_GLOBAL
  8901. # define LT_DLGLOBAL RTLD_GLOBAL
  8902. #else
  8903. # ifdef DL_GLOBAL
  8904. # define LT_DLGLOBAL DL_GLOBAL
  8905. # else
  8906. # define LT_DLGLOBAL 0
  8907. # endif
  8908. #endif
  8909. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8910. find out it does not work in some platform. */
  8911. #ifndef LT_DLLAZY_OR_NOW
  8912. # ifdef RTLD_LAZY
  8913. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8914. # else
  8915. # ifdef DL_LAZY
  8916. # define LT_DLLAZY_OR_NOW DL_LAZY
  8917. # else
  8918. # ifdef RTLD_NOW
  8919. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8920. # else
  8921. # ifdef DL_NOW
  8922. # define LT_DLLAZY_OR_NOW DL_NOW
  8923. # else
  8924. # define LT_DLLAZY_OR_NOW 0
  8925. # endif
  8926. # endif
  8927. # endif
  8928. # endif
  8929. #endif
  8930. void fnord() { int i=42;}
  8931. int main ()
  8932. {
  8933. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8934. int status = $lt_dlunknown;
  8935. if (self)
  8936. {
  8937. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8938. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8939. /* dlclose (self); */
  8940. }
  8941. else
  8942. puts (dlerror ());
  8943. return status;
  8944. }
  8945. _LT_EOF
  8946. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8947. (eval $ac_link) 2>&5
  8948. ac_status=$?
  8949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8950. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8951. (./conftest; exit; ) >&5 2>/dev/null
  8952. lt_status=$?
  8953. case x$lt_status in
  8954. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8955. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8956. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8957. esac
  8958. else :
  8959. # compilation failed
  8960. lt_cv_dlopen_self=no
  8961. fi
  8962. fi
  8963. rm -fr conftest*
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8966. $as_echo "$lt_cv_dlopen_self" >&6; }
  8967. if test "x$lt_cv_dlopen_self" = xyes; then
  8968. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8970. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8971. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  8972. $as_echo_n "(cached) " >&6
  8973. else
  8974. if test "$cross_compiling" = yes; then :
  8975. lt_cv_dlopen_self_static=cross
  8976. else
  8977. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8978. lt_status=$lt_dlunknown
  8979. cat > conftest.$ac_ext <<_LT_EOF
  8980. #line 10486 "configure"
  8981. #include "confdefs.h"
  8982. #if HAVE_DLFCN_H
  8983. #include <dlfcn.h>
  8984. #endif
  8985. #include <stdio.h>
  8986. #ifdef RTLD_GLOBAL
  8987. # define LT_DLGLOBAL RTLD_GLOBAL
  8988. #else
  8989. # ifdef DL_GLOBAL
  8990. # define LT_DLGLOBAL DL_GLOBAL
  8991. # else
  8992. # define LT_DLGLOBAL 0
  8993. # endif
  8994. #endif
  8995. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8996. find out it does not work in some platform. */
  8997. #ifndef LT_DLLAZY_OR_NOW
  8998. # ifdef RTLD_LAZY
  8999. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9000. # else
  9001. # ifdef DL_LAZY
  9002. # define LT_DLLAZY_OR_NOW DL_LAZY
  9003. # else
  9004. # ifdef RTLD_NOW
  9005. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9006. # else
  9007. # ifdef DL_NOW
  9008. # define LT_DLLAZY_OR_NOW DL_NOW
  9009. # else
  9010. # define LT_DLLAZY_OR_NOW 0
  9011. # endif
  9012. # endif
  9013. # endif
  9014. # endif
  9015. #endif
  9016. void fnord() { int i=42;}
  9017. int main ()
  9018. {
  9019. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9020. int status = $lt_dlunknown;
  9021. if (self)
  9022. {
  9023. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9024. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9025. /* dlclose (self); */
  9026. }
  9027. else
  9028. puts (dlerror ());
  9029. return status;
  9030. }
  9031. _LT_EOF
  9032. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9033. (eval $ac_link) 2>&5
  9034. ac_status=$?
  9035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9036. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9037. (./conftest; exit; ) >&5 2>/dev/null
  9038. lt_status=$?
  9039. case x$lt_status in
  9040. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9041. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9042. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9043. esac
  9044. else :
  9045. # compilation failed
  9046. lt_cv_dlopen_self_static=no
  9047. fi
  9048. fi
  9049. rm -fr conftest*
  9050. fi
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9052. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9053. fi
  9054. CPPFLAGS="$save_CPPFLAGS"
  9055. LDFLAGS="$save_LDFLAGS"
  9056. LIBS="$save_LIBS"
  9057. ;;
  9058. esac
  9059. case $lt_cv_dlopen_self in
  9060. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9061. *) enable_dlopen_self=unknown ;;
  9062. esac
  9063. case $lt_cv_dlopen_self_static in
  9064. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9065. *) enable_dlopen_self_static=unknown ;;
  9066. esac
  9067. fi
  9068. striplib=
  9069. old_striplib=
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9071. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9072. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9073. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9074. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9076. $as_echo "yes" >&6; }
  9077. else
  9078. # FIXME - insert some real tests, host_os isn't really good enough
  9079. case $host_os in
  9080. darwin*)
  9081. if test -n "$STRIP" ; then
  9082. striplib="$STRIP -x"
  9083. old_striplib="$STRIP -S"
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9085. $as_echo "yes" >&6; }
  9086. else
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9088. $as_echo "no" >&6; }
  9089. fi
  9090. ;;
  9091. *)
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9093. $as_echo "no" >&6; }
  9094. ;;
  9095. esac
  9096. fi
  9097. # Report which library types will actually be built
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9099. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9101. $as_echo "$can_build_shared" >&6; }
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9103. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9104. test "$can_build_shared" = "no" && enable_shared=no
  9105. # On AIX, shared libraries and static libraries use the same namespace, and
  9106. # are all built from PIC.
  9107. case $host_os in
  9108. aix3*)
  9109. test "$enable_shared" = yes && enable_static=no
  9110. if test -n "$RANLIB"; then
  9111. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9112. postinstall_cmds='$RANLIB $lib'
  9113. fi
  9114. ;;
  9115. aix[4-9]*)
  9116. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9117. test "$enable_shared" = yes && enable_static=no
  9118. fi
  9119. ;;
  9120. esac
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9122. $as_echo "$enable_shared" >&6; }
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9124. $as_echo_n "checking whether to build static libraries... " >&6; }
  9125. # Make sure either enable_shared or enable_static is yes.
  9126. test "$enable_shared" = yes || enable_static=yes
  9127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9128. $as_echo "$enable_static" >&6; }
  9129. fi
  9130. ac_ext=c
  9131. ac_cpp='$CPP $CPPFLAGS'
  9132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9135. CC="$lt_save_CC"
  9136. ac_config_commands="$ac_config_commands libtool"
  9137. # Only expand once:
  9138. ac_ext=c
  9139. ac_cpp='$CPP $CPPFLAGS'
  9140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9143. if test -n "$ac_tool_prefix"; then
  9144. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9145. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9147. $as_echo_n "checking for $ac_word... " >&6; }
  9148. if test "${ac_cv_prog_CC+set}" = set; then :
  9149. $as_echo_n "(cached) " >&6
  9150. else
  9151. if test -n "$CC"; then
  9152. ac_cv_prog_CC="$CC" # Let the user override the test.
  9153. else
  9154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9155. for as_dir in $PATH
  9156. do
  9157. IFS=$as_save_IFS
  9158. test -z "$as_dir" && as_dir=.
  9159. for ac_exec_ext in '' $ac_executable_extensions; do
  9160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9161. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9163. break 2
  9164. fi
  9165. done
  9166. done
  9167. IFS=$as_save_IFS
  9168. fi
  9169. fi
  9170. CC=$ac_cv_prog_CC
  9171. if test -n "$CC"; then
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9173. $as_echo "$CC" >&6; }
  9174. else
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9176. $as_echo "no" >&6; }
  9177. fi
  9178. fi
  9179. if test -z "$ac_cv_prog_CC"; then
  9180. ac_ct_CC=$CC
  9181. # Extract the first word of "gcc", so it can be a program name with args.
  9182. set dummy gcc; ac_word=$2
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9184. $as_echo_n "checking for $ac_word... " >&6; }
  9185. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9186. $as_echo_n "(cached) " >&6
  9187. else
  9188. if test -n "$ac_ct_CC"; then
  9189. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9190. else
  9191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9192. for as_dir in $PATH
  9193. do
  9194. IFS=$as_save_IFS
  9195. test -z "$as_dir" && as_dir=.
  9196. for ac_exec_ext in '' $ac_executable_extensions; do
  9197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9198. ac_cv_prog_ac_ct_CC="gcc"
  9199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9200. break 2
  9201. fi
  9202. done
  9203. done
  9204. IFS=$as_save_IFS
  9205. fi
  9206. fi
  9207. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9208. if test -n "$ac_ct_CC"; then
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9210. $as_echo "$ac_ct_CC" >&6; }
  9211. else
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9213. $as_echo "no" >&6; }
  9214. fi
  9215. if test "x$ac_ct_CC" = x; then
  9216. CC=""
  9217. else
  9218. case $cross_compiling:$ac_tool_warned in
  9219. yes:)
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9222. ac_tool_warned=yes ;;
  9223. esac
  9224. CC=$ac_ct_CC
  9225. fi
  9226. else
  9227. CC="$ac_cv_prog_CC"
  9228. fi
  9229. if test -z "$CC"; then
  9230. if test -n "$ac_tool_prefix"; then
  9231. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9232. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9234. $as_echo_n "checking for $ac_word... " >&6; }
  9235. if test "${ac_cv_prog_CC+set}" = set; then :
  9236. $as_echo_n "(cached) " >&6
  9237. else
  9238. if test -n "$CC"; then
  9239. ac_cv_prog_CC="$CC" # Let the user override the test.
  9240. else
  9241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9242. for as_dir in $PATH
  9243. do
  9244. IFS=$as_save_IFS
  9245. test -z "$as_dir" && as_dir=.
  9246. for ac_exec_ext in '' $ac_executable_extensions; do
  9247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9248. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9250. break 2
  9251. fi
  9252. done
  9253. done
  9254. IFS=$as_save_IFS
  9255. fi
  9256. fi
  9257. CC=$ac_cv_prog_CC
  9258. if test -n "$CC"; then
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9260. $as_echo "$CC" >&6; }
  9261. else
  9262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9263. $as_echo "no" >&6; }
  9264. fi
  9265. fi
  9266. fi
  9267. if test -z "$CC"; then
  9268. # Extract the first word of "cc", so it can be a program name with args.
  9269. set dummy cc; ac_word=$2
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9271. $as_echo_n "checking for $ac_word... " >&6; }
  9272. if test "${ac_cv_prog_CC+set}" = set; then :
  9273. $as_echo_n "(cached) " >&6
  9274. else
  9275. if test -n "$CC"; then
  9276. ac_cv_prog_CC="$CC" # Let the user override the test.
  9277. else
  9278. ac_prog_rejected=no
  9279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9280. for as_dir in $PATH
  9281. do
  9282. IFS=$as_save_IFS
  9283. test -z "$as_dir" && as_dir=.
  9284. for ac_exec_ext in '' $ac_executable_extensions; do
  9285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9286. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9287. ac_prog_rejected=yes
  9288. continue
  9289. fi
  9290. ac_cv_prog_CC="cc"
  9291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9292. break 2
  9293. fi
  9294. done
  9295. done
  9296. IFS=$as_save_IFS
  9297. if test $ac_prog_rejected = yes; then
  9298. # We found a bogon in the path, so make sure we never use it.
  9299. set dummy $ac_cv_prog_CC
  9300. shift
  9301. if test $# != 0; then
  9302. # We chose a different compiler from the bogus one.
  9303. # However, it has the same basename, so the bogon will be chosen
  9304. # first if we set CC to just the basename; use the full file name.
  9305. shift
  9306. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9307. fi
  9308. fi
  9309. fi
  9310. fi
  9311. CC=$ac_cv_prog_CC
  9312. if test -n "$CC"; then
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9314. $as_echo "$CC" >&6; }
  9315. else
  9316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9317. $as_echo "no" >&6; }
  9318. fi
  9319. fi
  9320. if test -z "$CC"; then
  9321. if test -n "$ac_tool_prefix"; then
  9322. for ac_prog in cl.exe
  9323. do
  9324. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9325. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9327. $as_echo_n "checking for $ac_word... " >&6; }
  9328. if test "${ac_cv_prog_CC+set}" = set; then :
  9329. $as_echo_n "(cached) " >&6
  9330. else
  9331. if test -n "$CC"; then
  9332. ac_cv_prog_CC="$CC" # Let the user override the test.
  9333. else
  9334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9335. for as_dir in $PATH
  9336. do
  9337. IFS=$as_save_IFS
  9338. test -z "$as_dir" && as_dir=.
  9339. for ac_exec_ext in '' $ac_executable_extensions; do
  9340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9341. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9343. break 2
  9344. fi
  9345. done
  9346. done
  9347. IFS=$as_save_IFS
  9348. fi
  9349. fi
  9350. CC=$ac_cv_prog_CC
  9351. if test -n "$CC"; then
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9353. $as_echo "$CC" >&6; }
  9354. else
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9356. $as_echo "no" >&6; }
  9357. fi
  9358. test -n "$CC" && break
  9359. done
  9360. fi
  9361. if test -z "$CC"; then
  9362. ac_ct_CC=$CC
  9363. for ac_prog in cl.exe
  9364. do
  9365. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9366. set dummy $ac_prog; ac_word=$2
  9367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9368. $as_echo_n "checking for $ac_word... " >&6; }
  9369. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9370. $as_echo_n "(cached) " >&6
  9371. else
  9372. if test -n "$ac_ct_CC"; then
  9373. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9374. else
  9375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9376. for as_dir in $PATH
  9377. do
  9378. IFS=$as_save_IFS
  9379. test -z "$as_dir" && as_dir=.
  9380. for ac_exec_ext in '' $ac_executable_extensions; do
  9381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9382. ac_cv_prog_ac_ct_CC="$ac_prog"
  9383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9384. break 2
  9385. fi
  9386. done
  9387. done
  9388. IFS=$as_save_IFS
  9389. fi
  9390. fi
  9391. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9392. if test -n "$ac_ct_CC"; then
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9394. $as_echo "$ac_ct_CC" >&6; }
  9395. else
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9397. $as_echo "no" >&6; }
  9398. fi
  9399. test -n "$ac_ct_CC" && break
  9400. done
  9401. if test "x$ac_ct_CC" = x; then
  9402. CC=""
  9403. else
  9404. case $cross_compiling:$ac_tool_warned in
  9405. yes:)
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9408. ac_tool_warned=yes ;;
  9409. esac
  9410. CC=$ac_ct_CC
  9411. fi
  9412. fi
  9413. fi
  9414. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9415. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9416. as_fn_error "no acceptable C compiler found in \$PATH
  9417. See \`config.log' for more details." "$LINENO" 5; }
  9418. # Provide some information about the compiler.
  9419. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9420. set X $ac_compile
  9421. ac_compiler=$2
  9422. for ac_option in --version -v -V -qversion; do
  9423. { { ac_try="$ac_compiler $ac_option >&5"
  9424. case "(($ac_try" in
  9425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9426. *) ac_try_echo=$ac_try;;
  9427. esac
  9428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9429. $as_echo "$ac_try_echo"; } >&5
  9430. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9431. ac_status=$?
  9432. if test -s conftest.err; then
  9433. sed '10a\
  9434. ... rest of stderr output deleted ...
  9435. 10q' conftest.err >conftest.er1
  9436. cat conftest.er1 >&5
  9437. rm -f conftest.er1 conftest.err
  9438. fi
  9439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9440. test $ac_status = 0; }
  9441. done
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9443. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9444. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9448. /* end confdefs.h. */
  9449. int
  9450. main ()
  9451. {
  9452. #ifndef __GNUC__
  9453. choke me
  9454. #endif
  9455. ;
  9456. return 0;
  9457. }
  9458. _ACEOF
  9459. if ac_fn_c_try_compile "$LINENO"; then :
  9460. ac_compiler_gnu=yes
  9461. else
  9462. ac_compiler_gnu=no
  9463. fi
  9464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9465. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9468. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9469. if test $ac_compiler_gnu = yes; then
  9470. GCC=yes
  9471. else
  9472. GCC=
  9473. fi
  9474. ac_test_CFLAGS=${CFLAGS+set}
  9475. ac_save_CFLAGS=$CFLAGS
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9477. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9478. if test "${ac_cv_prog_cc_g+set}" = set; then :
  9479. $as_echo_n "(cached) " >&6
  9480. else
  9481. ac_save_c_werror_flag=$ac_c_werror_flag
  9482. ac_c_werror_flag=yes
  9483. ac_cv_prog_cc_g=no
  9484. CFLAGS="-g"
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. int
  9488. main ()
  9489. {
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_compile "$LINENO"; then :
  9495. ac_cv_prog_cc_g=yes
  9496. else
  9497. CFLAGS=""
  9498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9499. /* end confdefs.h. */
  9500. int
  9501. main ()
  9502. {
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_compile "$LINENO"; then :
  9508. else
  9509. ac_c_werror_flag=$ac_save_c_werror_flag
  9510. CFLAGS="-g"
  9511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9512. /* end confdefs.h. */
  9513. int
  9514. main ()
  9515. {
  9516. ;
  9517. return 0;
  9518. }
  9519. _ACEOF
  9520. if ac_fn_c_try_compile "$LINENO"; then :
  9521. ac_cv_prog_cc_g=yes
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9524. fi
  9525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9526. fi
  9527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9528. ac_c_werror_flag=$ac_save_c_werror_flag
  9529. fi
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9531. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9532. if test "$ac_test_CFLAGS" = set; then
  9533. CFLAGS=$ac_save_CFLAGS
  9534. elif test $ac_cv_prog_cc_g = yes; then
  9535. if test "$GCC" = yes; then
  9536. CFLAGS="-g -O2"
  9537. else
  9538. CFLAGS="-g"
  9539. fi
  9540. else
  9541. if test "$GCC" = yes; then
  9542. CFLAGS="-O2"
  9543. else
  9544. CFLAGS=
  9545. fi
  9546. fi
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9548. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9549. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  9550. $as_echo_n "(cached) " >&6
  9551. else
  9552. ac_cv_prog_cc_c89=no
  9553. ac_save_CC=$CC
  9554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9555. /* end confdefs.h. */
  9556. #include <stdarg.h>
  9557. #include <stdio.h>
  9558. #include <sys/types.h>
  9559. #include <sys/stat.h>
  9560. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9561. struct buf { int x; };
  9562. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9563. static char *e (p, i)
  9564. char **p;
  9565. int i;
  9566. {
  9567. return p[i];
  9568. }
  9569. static char *f (char * (*g) (char **, int), char **p, ...)
  9570. {
  9571. char *s;
  9572. va_list v;
  9573. va_start (v,p);
  9574. s = g (p, va_arg (v,int));
  9575. va_end (v);
  9576. return s;
  9577. }
  9578. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9579. function prototypes and stuff, but not '\xHH' hex character constants.
  9580. These don't provoke an error unfortunately, instead are silently treated
  9581. as 'x'. The following induces an error, until -std is added to get
  9582. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9583. array size at least. It's necessary to write '\x00'==0 to get something
  9584. that's true only with -std. */
  9585. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9586. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9587. inside strings and character constants. */
  9588. #define FOO(x) 'x'
  9589. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9590. int test (int i, double x);
  9591. struct s1 {int (*f) (int a);};
  9592. struct s2 {int (*f) (double a);};
  9593. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9594. int argc;
  9595. char **argv;
  9596. int
  9597. main ()
  9598. {
  9599. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9600. ;
  9601. return 0;
  9602. }
  9603. _ACEOF
  9604. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9605. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9606. do
  9607. CC="$ac_save_CC $ac_arg"
  9608. if ac_fn_c_try_compile "$LINENO"; then :
  9609. ac_cv_prog_cc_c89=$ac_arg
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext
  9612. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9613. done
  9614. rm -f conftest.$ac_ext
  9615. CC=$ac_save_CC
  9616. fi
  9617. # AC_CACHE_VAL
  9618. case "x$ac_cv_prog_cc_c89" in
  9619. x)
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9621. $as_echo "none needed" >&6; } ;;
  9622. xno)
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9624. $as_echo "unsupported" >&6; } ;;
  9625. *)
  9626. CC="$CC $ac_cv_prog_cc_c89"
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9628. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9629. esac
  9630. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9631. fi
  9632. ac_ext=c
  9633. ac_cpp='$CPP $CPPFLAGS'
  9634. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9635. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9636. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9637. depcc="$CC" am_compiler_list=
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9639. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9640. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  9641. $as_echo_n "(cached) " >&6
  9642. else
  9643. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9644. # We make a subdir and do the tests there. Otherwise we can end up
  9645. # making bogus files that we don't know about and never remove. For
  9646. # instance it was reported that on HP-UX the gcc test will end up
  9647. # making a dummy file named `D' -- because `-MD' means `put the output
  9648. # in D'.
  9649. mkdir conftest.dir
  9650. # Copy depcomp to subdir because otherwise we won't find it if we're
  9651. # using a relative directory.
  9652. cp "$am_depcomp" conftest.dir
  9653. cd conftest.dir
  9654. # We will build objects and dependencies in a subdirectory because
  9655. # it helps to detect inapplicable dependency modes. For instance
  9656. # both Tru64's cc and ICC support -MD to output dependencies as a
  9657. # side effect of compilation, but ICC will put the dependencies in
  9658. # the current directory while Tru64 will put them in the object
  9659. # directory.
  9660. mkdir sub
  9661. am_cv_CC_dependencies_compiler_type=none
  9662. if test "$am_compiler_list" = ""; then
  9663. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9664. fi
  9665. am__universal=false
  9666. case " $depcc " in #(
  9667. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9668. esac
  9669. for depmode in $am_compiler_list; do
  9670. # Setup a source with many dependencies, because some compilers
  9671. # like to wrap large dependency lists on column 80 (with \), and
  9672. # we should not choose a depcomp mode which is confused by this.
  9673. #
  9674. # We need to recreate these files for each test, as the compiler may
  9675. # overwrite some of them when testing with obscure command lines.
  9676. # This happens at least with the AIX C compiler.
  9677. : > sub/conftest.c
  9678. for i in 1 2 3 4 5 6; do
  9679. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9680. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9681. # Solaris 8's {/usr,}/bin/sh.
  9682. touch sub/conftst$i.h
  9683. done
  9684. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9685. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9686. # mode. It turns out that the SunPro C++ compiler does not properly
  9687. # handle `-M -o', and we need to detect this. Also, some Intel
  9688. # versions had trouble with output in subdirs
  9689. am__obj=sub/conftest.${OBJEXT-o}
  9690. am__minus_obj="-o $am__obj"
  9691. case $depmode in
  9692. gcc)
  9693. # This depmode causes a compiler race in universal mode.
  9694. test "$am__universal" = false || continue
  9695. ;;
  9696. nosideeffect)
  9697. # after this tag, mechanisms are not by side-effect, so they'll
  9698. # only be used when explicitly requested
  9699. if test "x$enable_dependency_tracking" = xyes; then
  9700. continue
  9701. else
  9702. break
  9703. fi
  9704. ;;
  9705. msvisualcpp | msvcmsys)
  9706. # This compiler won't grok `-c -o', but also, the minuso test has
  9707. # not run yet. These depmodes are late enough in the game, and
  9708. # so weak that their functioning should not be impacted.
  9709. am__obj=conftest.${OBJEXT-o}
  9710. am__minus_obj=
  9711. ;;
  9712. none) break ;;
  9713. esac
  9714. if depmode=$depmode \
  9715. source=sub/conftest.c object=$am__obj \
  9716. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9717. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9718. >/dev/null 2>conftest.err &&
  9719. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9720. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9721. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9722. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9723. # icc doesn't choke on unknown options, it will just issue warnings
  9724. # or remarks (even with -Werror). So we grep stderr for any message
  9725. # that says an option was ignored or not supported.
  9726. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9727. # icc: Command line warning: ignoring option '-M'; no argument required
  9728. # The diagnosis changed in icc 8.0:
  9729. # icc: Command line remark: option '-MP' not supported
  9730. if (grep 'ignoring option' conftest.err ||
  9731. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9732. am_cv_CC_dependencies_compiler_type=$depmode
  9733. break
  9734. fi
  9735. fi
  9736. done
  9737. cd ..
  9738. rm -rf conftest.dir
  9739. else
  9740. am_cv_CC_dependencies_compiler_type=none
  9741. fi
  9742. fi
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  9744. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  9745. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9746. if
  9747. test "x$enable_dependency_tracking" != xno \
  9748. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9749. am__fastdepCC_TRUE=
  9750. am__fastdepCC_FALSE='#'
  9751. else
  9752. am__fastdepCC_TRUE='#'
  9753. am__fastdepCC_FALSE=
  9754. fi
  9755. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  9756. if test "x$CC" != xcc; then
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9758. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9761. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9762. fi
  9763. set dummy $CC; ac_cc=`$as_echo "$2" |
  9764. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9765. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  9766. $as_echo_n "(cached) " >&6
  9767. else
  9768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9769. /* end confdefs.h. */
  9770. int
  9771. main ()
  9772. {
  9773. ;
  9774. return 0;
  9775. }
  9776. _ACEOF
  9777. # Make sure it works both with $CC and with simple cc.
  9778. # We do the test twice because some compilers refuse to overwrite an
  9779. # existing .o file with -o, though they will create one.
  9780. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9781. rm -f conftest2.*
  9782. if { { case "(($ac_try" in
  9783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9784. *) ac_try_echo=$ac_try;;
  9785. esac
  9786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9787. $as_echo "$ac_try_echo"; } >&5
  9788. (eval "$ac_try") 2>&5
  9789. ac_status=$?
  9790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9791. test $ac_status = 0; } &&
  9792. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9794. *) ac_try_echo=$ac_try;;
  9795. esac
  9796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9797. $as_echo "$ac_try_echo"; } >&5
  9798. (eval "$ac_try") 2>&5
  9799. ac_status=$?
  9800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9801. test $ac_status = 0; };
  9802. then
  9803. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9804. if test "x$CC" != xcc; then
  9805. # Test first that cc exists at all.
  9806. if { ac_try='cc -c conftest.$ac_ext >&5'
  9807. { { case "(($ac_try" in
  9808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9809. *) ac_try_echo=$ac_try;;
  9810. esac
  9811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9812. $as_echo "$ac_try_echo"; } >&5
  9813. (eval "$ac_try") 2>&5
  9814. ac_status=$?
  9815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9816. test $ac_status = 0; }; }; then
  9817. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9818. rm -f conftest2.*
  9819. if { { case "(($ac_try" in
  9820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9821. *) ac_try_echo=$ac_try;;
  9822. esac
  9823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9824. $as_echo "$ac_try_echo"; } >&5
  9825. (eval "$ac_try") 2>&5
  9826. ac_status=$?
  9827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9828. test $ac_status = 0; } &&
  9829. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9831. *) ac_try_echo=$ac_try;;
  9832. esac
  9833. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9834. $as_echo "$ac_try_echo"; } >&5
  9835. (eval "$ac_try") 2>&5
  9836. ac_status=$?
  9837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9838. test $ac_status = 0; };
  9839. then
  9840. # cc works too.
  9841. :
  9842. else
  9843. # cc exists but doesn't like -o.
  9844. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9845. fi
  9846. fi
  9847. fi
  9848. else
  9849. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9850. fi
  9851. rm -f core conftest*
  9852. fi
  9853. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9855. $as_echo "yes" >&6; }
  9856. else
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9858. $as_echo "no" >&6; }
  9859. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  9860. fi
  9861. # FIXME: we rely on the cache variable name because
  9862. # there is no other way.
  9863. set dummy $CC
  9864. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9865. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9866. if test "$am_t" != yes; then
  9867. # Losing compiler, so override with the script.
  9868. # FIXME: It is wrong to rewrite CC.
  9869. # But if we don't then we get into trouble of one sort or another.
  9870. # A longer-term fix would be to have automake use am__CC in this case,
  9871. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9872. CC="$am_aux_dir/compile $CC"
  9873. fi
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9875. $as_echo_n "checking whether ln -s works... " >&6; }
  9876. LN_S=$as_ln_s
  9877. if test "$LN_S" = "ln -s"; then
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9879. $as_echo "yes" >&6; }
  9880. else
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9882. $as_echo "no, using $LN_S" >&6; }
  9883. fi
  9884. # Extract the first word of "mktemp", so it can be a program name with args.
  9885. set dummy mktemp; ac_word=$2
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9887. $as_echo_n "checking for $ac_word... " >&6; }
  9888. if test "${ac_cv_path_MKTEMP_PROG+set}" = set; then :
  9889. $as_echo_n "(cached) " >&6
  9890. else
  9891. case $MKTEMP_PROG in
  9892. [\\/]* | ?:[\\/]*)
  9893. ac_cv_path_MKTEMP_PROG="$MKTEMP_PROG" # Let the user override the test with a path.
  9894. ;;
  9895. *)
  9896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9897. for as_dir in $PATH
  9898. do
  9899. IFS=$as_save_IFS
  9900. test -z "$as_dir" && as_dir=.
  9901. for ac_exec_ext in '' $ac_executable_extensions; do
  9902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9903. ac_cv_path_MKTEMP_PROG="$as_dir/$ac_word$ac_exec_ext"
  9904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9905. break 2
  9906. fi
  9907. done
  9908. done
  9909. IFS=$as_save_IFS
  9910. ;;
  9911. esac
  9912. fi
  9913. MKTEMP_PROG=$ac_cv_path_MKTEMP_PROG
  9914. if test -n "$MKTEMP_PROG"; then
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_PROG" >&5
  9916. $as_echo "$MKTEMP_PROG" >&6; }
  9917. else
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9919. $as_echo "no" >&6; }
  9920. fi
  9921. if test "$GCC" = yes; then
  9922. CFLAGS="-Wall -W -pedantic $CFLAGS"
  9923. fi
  9924. # Extract the first word of "cstocs", so it can be a program name with args.
  9925. set dummy cstocs; ac_word=$2
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9927. $as_echo_n "checking for $ac_word... " >&6; }
  9928. if test "${ac_cv_path_CSTOCS_PROG+set}" = set; then :
  9929. $as_echo_n "(cached) " >&6
  9930. else
  9931. case $CSTOCS_PROG in
  9932. [\\/]* | ?:[\\/]*)
  9933. ac_cv_path_CSTOCS_PROG="$CSTOCS_PROG" # Let the user override the test with a path.
  9934. ;;
  9935. *)
  9936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9937. for as_dir in $PATH
  9938. do
  9939. IFS=$as_save_IFS
  9940. test -z "$as_dir" && as_dir=.
  9941. for ac_exec_ext in '' $ac_executable_extensions; do
  9942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9943. ac_cv_path_CSTOCS_PROG="$as_dir/$ac_word$ac_exec_ext"
  9944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9945. break 2
  9946. fi
  9947. done
  9948. done
  9949. IFS=$as_save_IFS
  9950. ;;
  9951. esac
  9952. fi
  9953. CSTOCS_PROG=$ac_cv_path_CSTOCS_PROG
  9954. if test -n "$CSTOCS_PROG"; then
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSTOCS_PROG" >&5
  9956. $as_echo "$CSTOCS_PROG" >&6; }
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9959. $as_echo "no" >&6; }
  9960. fi
  9961. # Extract the first word of "recode", so it can be a program name with args.
  9962. set dummy recode; ac_word=$2
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9964. $as_echo_n "checking for $ac_word... " >&6; }
  9965. if test "${ac_cv_path_RECODE_PROG+set}" = set; then :
  9966. $as_echo_n "(cached) " >&6
  9967. else
  9968. case $RECODE_PROG in
  9969. [\\/]* | ?:[\\/]*)
  9970. ac_cv_path_RECODE_PROG="$RECODE_PROG" # Let the user override the test with a path.
  9971. ;;
  9972. *)
  9973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9974. for as_dir in $PATH
  9975. do
  9976. IFS=$as_save_IFS
  9977. test -z "$as_dir" && as_dir=.
  9978. for ac_exec_ext in '' $ac_executable_extensions; do
  9979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9980. ac_cv_path_RECODE_PROG="$as_dir/$ac_word$ac_exec_ext"
  9981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9982. break 2
  9983. fi
  9984. done
  9985. done
  9986. IFS=$as_save_IFS
  9987. ;;
  9988. esac
  9989. fi
  9990. RECODE_PROG=$ac_cv_path_RECODE_PROG
  9991. if test -n "$RECODE_PROG"; then
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RECODE_PROG" >&5
  9993. $as_echo "$RECODE_PROG" >&6; }
  9994. else
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9996. $as_echo "no" >&6; }
  9997. fi
  9998. # Extract the first word of "umap", so it can be a program name with args.
  9999. set dummy umap; ac_word=$2
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10001. $as_echo_n "checking for $ac_word... " >&6; }
  10002. if test "${ac_cv_path_UMAP_PROG+set}" = set; then :
  10003. $as_echo_n "(cached) " >&6
  10004. else
  10005. case $UMAP_PROG in
  10006. [\\/]* | ?:[\\/]*)
  10007. ac_cv_path_UMAP_PROG="$UMAP_PROG" # Let the user override the test with a path.
  10008. ;;
  10009. *)
  10010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10011. for as_dir in $PATH
  10012. do
  10013. IFS=$as_save_IFS
  10014. test -z "$as_dir" && as_dir=.
  10015. for ac_exec_ext in '' $ac_executable_extensions; do
  10016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10017. ac_cv_path_UMAP_PROG="$as_dir/$ac_word$ac_exec_ext"
  10018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10019. break 2
  10020. fi
  10021. done
  10022. done
  10023. IFS=$as_save_IFS
  10024. ;;
  10025. esac
  10026. fi
  10027. UMAP_PROG=$ac_cv_path_UMAP_PROG
  10028. if test -n "$UMAP_PROG"; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMAP_PROG" >&5
  10030. $as_echo "$UMAP_PROG" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. # Extract the first word of "piconv", so it can be a program name with args.
  10036. set dummy piconv; ac_word=$2
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10038. $as_echo_n "checking for $ac_word... " >&6; }
  10039. if test "${ac_cv_path_PICONV_PROG+set}" = set; then :
  10040. $as_echo_n "(cached) " >&6
  10041. else
  10042. case $PICONV_PROG in
  10043. [\\/]* | ?:[\\/]*)
  10044. ac_cv_path_PICONV_PROG="$PICONV_PROG" # Let the user override the test with a path.
  10045. ;;
  10046. *)
  10047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10048. for as_dir in $PATH
  10049. do
  10050. IFS=$as_save_IFS
  10051. test -z "$as_dir" && as_dir=.
  10052. for ac_exec_ext in '' $ac_executable_extensions; do
  10053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10054. ac_cv_path_PICONV_PROG="$as_dir/$ac_word$ac_exec_ext"
  10055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10056. break 2
  10057. fi
  10058. done
  10059. done
  10060. IFS=$as_save_IFS
  10061. ;;
  10062. esac
  10063. fi
  10064. PICONV_PROG=$ac_cv_path_PICONV_PROG
  10065. if test -n "$PICONV_PROG"; then
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PICONV_PROG" >&5
  10067. $as_echo "$PICONV_PROG" >&6; }
  10068. else
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10070. $as_echo "no" >&6; }
  10071. fi
  10072. # Extract the first word of "map", so it can be a program name with args.
  10073. set dummy map; ac_word=$2
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10075. $as_echo_n "checking for $ac_word... " >&6; }
  10076. if test "${ac_cv_path_MAP_PROG+set}" = set; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. case $MAP_PROG in
  10080. [\\/]* | ?:[\\/]*)
  10081. ac_cv_path_MAP_PROG="$MAP_PROG" # Let the user override the test with a path.
  10082. ;;
  10083. *)
  10084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10085. for as_dir in $PATH
  10086. do
  10087. IFS=$as_save_IFS
  10088. test -z "$as_dir" && as_dir=.
  10089. for ac_exec_ext in '' $ac_executable_extensions; do
  10090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10091. ac_cv_path_MAP_PROG="$as_dir/$ac_word$ac_exec_ext"
  10092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10093. break 2
  10094. fi
  10095. done
  10096. done
  10097. IFS=$as_save_IFS
  10098. ;;
  10099. esac
  10100. fi
  10101. MAP_PROG=$ac_cv_path_MAP_PROG
  10102. if test -n "$MAP_PROG"; then
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAP_PROG" >&5
  10104. $as_echo "$MAP_PROG" >&6; }
  10105. else
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10107. $as_echo "no" >&6; }
  10108. fi
  10109. # Check whether --enable-external was given.
  10110. if test "${enable_external+set}" = set; then :
  10111. enableval=$enable_external; case "${enableval}" in
  10112. yes) WANT_EXTERNAL=yes ;;
  10113. no) WANT_EXTERNAL=no ;;
  10114. *) as_fn_error "bad value ${enableval} for --enable-external" "$LINENO" 5 ;;
  10115. esac
  10116. else
  10117. WANT_EXTERNAL=yes
  10118. fi
  10119. if false; then
  10120. cat >>confdefs.h <<_ACEOF
  10121. #define CSTOCS_PROG ""
  10122. _ACEOF
  10123. cat >>confdefs.h <<_ACEOF
  10124. #define MAP_PROG ""
  10125. _ACEOF
  10126. cat >>confdefs.h <<_ACEOF
  10127. #define RECODE_PROG ""
  10128. _ACEOF
  10129. cat >>confdefs.h <<_ACEOF
  10130. #define PICONV_PROG ""
  10131. _ACEOF
  10132. cat >>confdefs.h <<_ACEOF
  10133. #define UMAP_PROG ""
  10134. _ACEOF
  10135. fi
  10136. for w in cstocs recode piconv map umap; do
  10137. wPROG=`echo $w | tr $as_cr_letters $as_cr_LETTERS`_PROG
  10138. # Is this POSIX? But even ash supports it.
  10139. eval wPROGcv=$`echo ac_cv_path_$wPROG`
  10140. if test -n "$wPROGcv"; then
  10141. cat >>confdefs.h <<_ACEOF
  10142. #define $wPROG "$wPROGcv"
  10143. _ACEOF
  10144. if test -z "$DEFAULT_EXTERNAL_CONVERTER"; then
  10145. DEFAULT_EXTERNAL_CONVERTER=$w
  10146. fi
  10147. fi
  10148. done
  10149. # Check whether --with-html-dir was given.
  10150. if test "${with_html_dir+set}" = set; then :
  10151. withval=$with_html_dir;
  10152. fi
  10153. if test "x$with_html_dir" = "x" ; then
  10154. HTML_DIR=$datadir/gtk-doc/html
  10155. else
  10156. HTML_DIR=$with_html_dir
  10157. fi
  10158. # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
  10159. set dummy gtkdoc-mkdb; ac_word=$2
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10161. $as_echo_n "checking for $ac_word... " >&6; }
  10162. if test "${ac_cv_prog_GTKDOC+set}" = set; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. if test -n "$GTKDOC"; then
  10166. ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
  10167. else
  10168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10169. for as_dir in $PATH
  10170. do
  10171. IFS=$as_save_IFS
  10172. test -z "$as_dir" && as_dir=.
  10173. for ac_exec_ext in '' $ac_executable_extensions; do
  10174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10175. ac_cv_prog_GTKDOC="true"
  10176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10177. break 2
  10178. fi
  10179. done
  10180. done
  10181. IFS=$as_save_IFS
  10182. test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
  10183. fi
  10184. fi
  10185. GTKDOC=$ac_cv_prog_GTKDOC
  10186. if test -n "$GTKDOC"; then
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
  10188. $as_echo "$GTKDOC" >&6; }
  10189. else
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10191. $as_echo "no" >&6; }
  10192. fi
  10193. gtk_doc_min_version=1.0
  10194. if $GTKDOC ; then
  10195. gtk_doc_version=`gtkdoc-mkdb --version`
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version" >&5
  10197. $as_echo_n "checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version... " >&6; }
  10198. if perl <<EOF ; then
  10199. exit (("$gtk_doc_version" =~ /^[0-9]+\.[0-9]+$/) &&
  10200. ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
  10201. EOF
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10203. $as_echo "yes" >&6; }
  10204. else
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10206. $as_echo "no" >&6; }
  10207. GTKDOC=false
  10208. fi
  10209. fi
  10210. # Check whether --enable-gtk-doc was given.
  10211. if test "${enable_gtk_doc+set}" = set; then :
  10212. enableval=$enable_gtk_doc; enable_gtk_doc="$enableval"
  10213. else
  10214. enable_gtk_doc=auto
  10215. fi
  10216. if test x$enable_gtk_doc = xauto ; then
  10217. if test x$GTKDOC = xtrue ; then
  10218. enable_gtk_doc=yes
  10219. else
  10220. enable_gtk_doc=no
  10221. fi
  10222. fi
  10223. if test x$enable_gtk_doc = xyes; then
  10224. ENABLE_GTK_DOC_TRUE=
  10225. ENABLE_GTK_DOC_FALSE='#'
  10226. else
  10227. ENABLE_GTK_DOC_TRUE='#'
  10228. ENABLE_GTK_DOC_FALSE=
  10229. fi
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
  10231. $as_echo_n "checking for /dev/random... " >&6; }
  10232. if test "${ac_cv_file__dev_random+set}" = set; then :
  10233. $as_echo_n "(cached) " >&6
  10234. else
  10235. test "$cross_compiling" = yes &&
  10236. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  10237. if test -r "/dev/random"; then
  10238. ac_cv_file__dev_random=yes
  10239. else
  10240. ac_cv_file__dev_random=no
  10241. fi
  10242. fi
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
  10244. $as_echo "$ac_cv_file__dev_random" >&6; }
  10245. if test "x$ac_cv_file__dev_random" = x""yes; then :
  10246. cat >>confdefs.h <<_ACEOF
  10247. #define HAVE__DEV_RANDOM 1
  10248. _ACEOF
  10249. fi
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
  10251. $as_echo_n "checking for /dev/urandom... " >&6; }
  10252. if test "${ac_cv_file__dev_urandom+set}" = set; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. test "$cross_compiling" = yes &&
  10256. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  10257. if test -r "/dev/urandom"; then
  10258. ac_cv_file__dev_urandom=yes
  10259. else
  10260. ac_cv_file__dev_urandom=no
  10261. fi
  10262. fi
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
  10264. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  10265. if test "x$ac_cv_file__dev_urandom" = x""yes; then :
  10266. cat >>confdefs.h <<_ACEOF
  10267. #define HAVE__DEV_URANDOM 1
  10268. _ACEOF
  10269. fi
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/srandom" >&5
  10271. $as_echo_n "checking for /dev/srandom... " >&6; }
  10272. if test "${ac_cv_file__dev_srandom+set}" = set; then :
  10273. $as_echo_n "(cached) " >&6
  10274. else
  10275. test "$cross_compiling" = yes &&
  10276. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  10277. if test -r "/dev/srandom"; then
  10278. ac_cv_file__dev_srandom=yes
  10279. else
  10280. ac_cv_file__dev_srandom=no
  10281. fi
  10282. fi
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_srandom" >&5
  10284. $as_echo "$ac_cv_file__dev_srandom" >&6; }
  10285. if test "x$ac_cv_file__dev_srandom" = x""yes; then :
  10286. cat >>confdefs.h <<_ACEOF
  10287. #define HAVE__DEV_SRANDOM 1
  10288. _ACEOF
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/arandom" >&5
  10291. $as_echo_n "checking for /dev/arandom... " >&6; }
  10292. if test "${ac_cv_file__dev_arandom+set}" = set; then :
  10293. $as_echo_n "(cached) " >&6
  10294. else
  10295. test "$cross_compiling" = yes &&
  10296. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  10297. if test -r "/dev/arandom"; then
  10298. ac_cv_file__dev_arandom=yes
  10299. else
  10300. ac_cv_file__dev_arandom=no
  10301. fi
  10302. fi
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_arandom" >&5
  10304. $as_echo "$ac_cv_file__dev_arandom" >&6; }
  10305. if test "x$ac_cv_file__dev_arandom" = x""yes; then :
  10306. cat >>confdefs.h <<_ACEOF
  10307. #define HAVE__DEV_ARANDOM 1
  10308. _ACEOF
  10309. fi
  10310. if test "$prefix" = "NONE"; then
  10311. LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
  10312. CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
  10313. else
  10314. LDFLAGS="$LDFLAGS -L$prefix/lib"
  10315. CPPFLAGS="$CPPFLAGS -I$prefix/include"
  10316. fi
  10317. case "$target" in
  10318. NONE) yeti_libm_target="$host" ;;
  10319. *) yeti_libm_target="$target" ;;
  10320. esac
  10321. LIBM=
  10322. case "$yeti_libm_target" in
  10323. *-*-beos* | *-*-cygwin*)
  10324. # These system don't have libm
  10325. ;;
  10326. *-ncr-sysv4.3*)
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  10328. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  10329. if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. ac_check_lib_save_LIBS=$LIBS
  10333. LIBS="-lmw $LIBS"
  10334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10335. /* end confdefs.h. */
  10336. /* Override any GCC internal prototype to avoid an error.
  10337. Use char because int might match the return type of a GCC
  10338. builtin and then its argument prototype would still apply. */
  10339. #ifdef __cplusplus
  10340. extern "C"
  10341. #endif
  10342. char _mwvalidcheckl ();
  10343. int
  10344. main ()
  10345. {
  10346. return _mwvalidcheckl ();
  10347. ;
  10348. return 0;
  10349. }
  10350. _ACEOF
  10351. if ac_fn_c_try_link "$LINENO"; then :
  10352. ac_cv_lib_mw__mwvalidcheckl=yes
  10353. else
  10354. ac_cv_lib_mw__mwvalidcheckl=no
  10355. fi
  10356. rm -f core conftest.err conftest.$ac_objext \
  10357. conftest$ac_exeext conftest.$ac_ext
  10358. LIBS=$ac_check_lib_save_LIBS
  10359. fi
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  10361. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  10362. if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
  10363. LIBM="-lmw"
  10364. fi
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  10366. $as_echo_n "checking for sqrt in -lm... " >&6; }
  10367. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  10368. $as_echo_n "(cached) " >&6
  10369. else
  10370. ac_check_lib_save_LIBS=$LIBS
  10371. LIBS="-lm $LIBS"
  10372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10373. /* end confdefs.h. */
  10374. /* Override any GCC internal prototype to avoid an error.
  10375. Use char because int might match the return type of a GCC
  10376. builtin and then its argument prototype would still apply. */
  10377. #ifdef __cplusplus
  10378. extern "C"
  10379. #endif
  10380. char sqrt ();
  10381. int
  10382. main ()
  10383. {
  10384. return sqrt ();
  10385. ;
  10386. return 0;
  10387. }
  10388. _ACEOF
  10389. if ac_fn_c_try_link "$LINENO"; then :
  10390. ac_cv_lib_m_sqrt=yes
  10391. else
  10392. ac_cv_lib_m_sqrt=no
  10393. fi
  10394. rm -f core conftest.err conftest.$ac_objext \
  10395. conftest$ac_exeext conftest.$ac_ext
  10396. LIBS=$ac_check_lib_save_LIBS
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  10399. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  10400. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  10401. LIBM="$LIBM -lm"
  10402. fi
  10403. ;;
  10404. *)
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  10406. $as_echo_n "checking for sqrt in -lm... " >&6; }
  10407. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  10408. $as_echo_n "(cached) " >&6
  10409. else
  10410. ac_check_lib_save_LIBS=$LIBS
  10411. LIBS="-lm $LIBS"
  10412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10413. /* end confdefs.h. */
  10414. /* Override any GCC internal prototype to avoid an error.
  10415. Use char because int might match the return type of a GCC
  10416. builtin and then its argument prototype would still apply. */
  10417. #ifdef __cplusplus
  10418. extern "C"
  10419. #endif
  10420. char sqrt ();
  10421. int
  10422. main ()
  10423. {
  10424. return sqrt ();
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_c_try_link "$LINENO"; then :
  10430. ac_cv_lib_m_sqrt=yes
  10431. else
  10432. ac_cv_lib_m_sqrt=no
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. LIBS=$ac_check_lib_save_LIBS
  10437. fi
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  10439. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  10440. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  10441. LIBM="-lm"
  10442. fi
  10443. ;;
  10444. esac
  10445. LIBS="$LIBS $LIBM"
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10447. $as_echo_n "checking for ANSI C header files... " >&6; }
  10448. if test "${ac_cv_header_stdc+set}" = set; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. #include <stdlib.h>
  10454. #include <stdarg.h>
  10455. #include <string.h>
  10456. #include <float.h>
  10457. int
  10458. main ()
  10459. {
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_c_try_compile "$LINENO"; then :
  10465. ac_cv_header_stdc=yes
  10466. else
  10467. ac_cv_header_stdc=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. if test $ac_cv_header_stdc = yes; then
  10471. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10473. /* end confdefs.h. */
  10474. #include <string.h>
  10475. _ACEOF
  10476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10477. $EGREP "memchr" >/dev/null 2>&1; then :
  10478. else
  10479. ac_cv_header_stdc=no
  10480. fi
  10481. rm -f conftest*
  10482. fi
  10483. if test $ac_cv_header_stdc = yes; then
  10484. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10486. /* end confdefs.h. */
  10487. #include <stdlib.h>
  10488. _ACEOF
  10489. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10490. $EGREP "free" >/dev/null 2>&1; then :
  10491. else
  10492. ac_cv_header_stdc=no
  10493. fi
  10494. rm -f conftest*
  10495. fi
  10496. if test $ac_cv_header_stdc = yes; then
  10497. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10498. if test "$cross_compiling" = yes; then :
  10499. :
  10500. else
  10501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10502. /* end confdefs.h. */
  10503. #include <ctype.h>
  10504. #include <stdlib.h>
  10505. #if ((' ' & 0x0FF) == 0x020)
  10506. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10507. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10508. #else
  10509. # define ISLOWER(c) \
  10510. (('a' <= (c) && (c) <= 'i') \
  10511. || ('j' <= (c) && (c) <= 'r') \
  10512. || ('s' <= (c) && (c) <= 'z'))
  10513. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10514. #endif
  10515. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10516. int
  10517. main ()
  10518. {
  10519. int i;
  10520. for (i = 0; i < 256; i++)
  10521. if (XOR (islower (i), ISLOWER (i))
  10522. || toupper (i) != TOUPPER (i))
  10523. return 2;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. if ac_fn_c_try_run "$LINENO"; then :
  10528. else
  10529. ac_cv_header_stdc=no
  10530. fi
  10531. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10532. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10533. fi
  10534. fi
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10537. $as_echo "$ac_cv_header_stdc" >&6; }
  10538. if test $ac_cv_header_stdc = yes; then
  10539. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10540. fi
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10542. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10543. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  10544. $as_echo_n "(cached) " >&6
  10545. else
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. #include <sys/types.h>
  10549. #include <sys/wait.h>
  10550. #ifndef WEXITSTATUS
  10551. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10552. #endif
  10553. #ifndef WIFEXITED
  10554. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10555. #endif
  10556. int
  10557. main ()
  10558. {
  10559. int s;
  10560. wait (&s);
  10561. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. if ac_fn_c_try_compile "$LINENO"; then :
  10567. ac_cv_header_sys_wait_h=yes
  10568. else
  10569. ac_cv_header_sys_wait_h=no
  10570. fi
  10571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10572. fi
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10574. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10575. if test $ac_cv_header_sys_wait_h = yes; then
  10576. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10577. fi
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  10579. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  10580. if test "${ac_cv_header_time+set}" = set; then :
  10581. $as_echo_n "(cached) " >&6
  10582. else
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #include <sys/types.h>
  10586. #include <sys/time.h>
  10587. #include <time.h>
  10588. int
  10589. main ()
  10590. {
  10591. if ((struct tm *) 0)
  10592. return 0;
  10593. ;
  10594. return 0;
  10595. }
  10596. _ACEOF
  10597. if ac_fn_c_try_compile "$LINENO"; then :
  10598. ac_cv_header_time=yes
  10599. else
  10600. ac_cv_header_time=no
  10601. fi
  10602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10603. fi
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  10605. $as_echo "$ac_cv_header_time" >&6; }
  10606. if test $ac_cv_header_time = yes; then
  10607. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  10608. fi
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  10610. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  10611. if test "${ac_cv_header_stat_broken+set}" = set; then :
  10612. $as_echo_n "(cached) " >&6
  10613. else
  10614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10615. /* end confdefs.h. */
  10616. #include <sys/types.h>
  10617. #include <sys/stat.h>
  10618. #if defined S_ISBLK && defined S_IFDIR
  10619. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  10620. #endif
  10621. #if defined S_ISBLK && defined S_IFCHR
  10622. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  10623. #endif
  10624. #if defined S_ISLNK && defined S_IFREG
  10625. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  10626. #endif
  10627. #if defined S_ISSOCK && defined S_IFREG
  10628. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  10629. #endif
  10630. _ACEOF
  10631. if ac_fn_c_try_compile "$LINENO"; then :
  10632. ac_cv_header_stat_broken=no
  10633. else
  10634. ac_cv_header_stat_broken=yes
  10635. fi
  10636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10637. fi
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  10639. $as_echo "$ac_cv_header_stat_broken" >&6; }
  10640. if test $ac_cv_header_stat_broken = yes; then
  10641. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  10642. fi
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10644. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10645. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  10646. $as_echo_n "(cached) " >&6
  10647. else
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. #include <stdbool.h>
  10651. #ifndef bool
  10652. "error: bool is not defined"
  10653. #endif
  10654. #ifndef false
  10655. "error: false is not defined"
  10656. #endif
  10657. #if false
  10658. "error: false is not 0"
  10659. #endif
  10660. #ifndef true
  10661. "error: true is not defined"
  10662. #endif
  10663. #if true != 1
  10664. "error: true is not 1"
  10665. #endif
  10666. #ifndef __bool_true_false_are_defined
  10667. "error: __bool_true_false_are_defined is not defined"
  10668. #endif
  10669. struct s { _Bool s: 1; _Bool t; } s;
  10670. char a[true == 1 ? 1 : -1];
  10671. char b[false == 0 ? 1 : -1];
  10672. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10673. char d[(bool) 0.5 == true ? 1 : -1];
  10674. bool e = &s;
  10675. char f[(_Bool) 0.0 == false ? 1 : -1];
  10676. char g[true];
  10677. char h[sizeof (_Bool)];
  10678. char i[sizeof s.t];
  10679. enum { j = false, k = true, l = false * true, m = true * 256 };
  10680. /* The following fails for
  10681. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10682. _Bool n[m];
  10683. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10684. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10685. # if defined __xlc__ || defined __GNUC__
  10686. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  10687. reported by James Lemley on 2005-10-05; see
  10688. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  10689. This test is not quite right, since xlc is allowed to
  10690. reject this program, as the initializer for xlcbug is
  10691. not one of the forms that C requires support for.
  10692. However, doing the test right would require a runtime
  10693. test, and that would make cross-compilation harder.
  10694. Let us hope that IBM fixes the xlc bug, and also adds
  10695. support for this kind of constant expression. In the
  10696. meantime, this test will reject xlc, which is OK, since
  10697. our stdbool.h substitute should suffice. We also test
  10698. this with GCC, where it should work, to detect more
  10699. quickly whether someone messes up the test in the
  10700. future. */
  10701. char digs[] = "0123456789";
  10702. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  10703. # endif
  10704. /* Catch a bug in an HP-UX C compiler. See
  10705. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10706. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10707. */
  10708. _Bool q = true;
  10709. _Bool *pq = &q;
  10710. int
  10711. main ()
  10712. {
  10713. *pq |= q;
  10714. *pq |= ! q;
  10715. /* Refer to every declared value, to avoid compiler optimizations. */
  10716. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10717. + !m + !n + !o + !p + !q + !pq);
  10718. ;
  10719. return 0;
  10720. }
  10721. _ACEOF
  10722. if ac_fn_c_try_compile "$LINENO"; then :
  10723. ac_cv_header_stdbool_h=yes
  10724. else
  10725. ac_cv_header_stdbool_h=no
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10730. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10731. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10732. if test "x$ac_cv_type__Bool" = x""yes; then :
  10733. cat >>confdefs.h <<_ACEOF
  10734. #define HAVE__BOOL 1
  10735. _ACEOF
  10736. fi
  10737. if test $ac_cv_header_stdbool_h = yes; then
  10738. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10739. fi
  10740. for ac_header in \
  10741. errno.h \
  10742. fcntl.h \
  10743. getopt.h \
  10744. langinfo.h \
  10745. limits.h \
  10746. locale.h \
  10747. memory.h \
  10748. string.h \
  10749. strings.h \
  10750. sys/stat.h \
  10751. sys/types.h \
  10752. sys/wait.h \
  10753. sys/time.h \
  10754. time.h \
  10755. unistd.h \
  10756. wordexp.h
  10757. do :
  10758. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10759. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10760. eval as_val=\$$as_ac_Header
  10761. if test "x$as_val" = x""yes; then :
  10762. cat >>confdefs.h <<_ACEOF
  10763. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10764. _ACEOF
  10765. fi
  10766. done
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10768. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10769. if test "${ac_cv_c_const+set}" = set; then :
  10770. $as_echo_n "(cached) " >&6
  10771. else
  10772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10773. /* end confdefs.h. */
  10774. int
  10775. main ()
  10776. {
  10777. /* FIXME: Include the comments suggested by Paul. */
  10778. #ifndef __cplusplus
  10779. /* Ultrix mips cc rejects this. */
  10780. typedef int charset[2];
  10781. const charset cs;
  10782. /* SunOS 4.1.1 cc rejects this. */
  10783. char const *const *pcpcc;
  10784. char **ppc;
  10785. /* NEC SVR4.0.2 mips cc rejects this. */
  10786. struct point {int x, y;};
  10787. static struct point const zero = {0,0};
  10788. /* AIX XL C 1.02.0.0 rejects this.
  10789. It does not let you subtract one const X* pointer from another in
  10790. an arm of an if-expression whose if-part is not a constant
  10791. expression */
  10792. const char *g = "string";
  10793. pcpcc = &g + (g ? g-g : 0);
  10794. /* HPUX 7.0 cc rejects these. */
  10795. ++pcpcc;
  10796. ppc = (char**) pcpcc;
  10797. pcpcc = (char const *const *) ppc;
  10798. { /* SCO 3.2v4 cc rejects this. */
  10799. char *t;
  10800. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10801. *t++ = 0;
  10802. if (s) return 0;
  10803. }
  10804. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10805. int x[] = {25, 17};
  10806. const int *foo = &x[0];
  10807. ++foo;
  10808. }
  10809. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10810. typedef const int *iptr;
  10811. iptr p = 0;
  10812. ++p;
  10813. }
  10814. { /* AIX XL C 1.02.0.0 rejects this saying
  10815. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10816. struct s { int j; const int *ap[3]; };
  10817. struct s *b; b->j = 5;
  10818. }
  10819. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10820. const int foo = 10;
  10821. if (!foo) return 0;
  10822. }
  10823. return !cs[0] && !zero.x;
  10824. #endif
  10825. ;
  10826. return 0;
  10827. }
  10828. _ACEOF
  10829. if ac_fn_c_try_compile "$LINENO"; then :
  10830. ac_cv_c_const=yes
  10831. else
  10832. ac_cv_c_const=no
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10835. fi
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10837. $as_echo "$ac_cv_c_const" >&6; }
  10838. if test $ac_cv_c_const = no; then
  10839. $as_echo "#define const /**/" >>confdefs.h
  10840. fi
  10841. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10842. if test "x$ac_cv_type_size_t" = x""yes; then :
  10843. else
  10844. cat >>confdefs.h <<_ACEOF
  10845. #define size_t unsigned int
  10846. _ACEOF
  10847. fi
  10848. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  10849. if test "x$ac_cv_type_mode_t" = x""yes; then :
  10850. else
  10851. cat >>confdefs.h <<_ACEOF
  10852. #define mode_t int
  10853. _ACEOF
  10854. fi
  10855. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10856. if test "x$ac_cv_type_off_t" = x""yes; then :
  10857. else
  10858. cat >>confdefs.h <<_ACEOF
  10859. #define off_t long int
  10860. _ACEOF
  10861. fi
  10862. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10863. if test "x$ac_cv_type_pid_t" = x""yes; then :
  10864. else
  10865. cat >>confdefs.h <<_ACEOF
  10866. #define pid_t int
  10867. _ACEOF
  10868. fi
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  10870. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  10871. if test "${ac_cv_type_uid_t+set}" = set; then :
  10872. $as_echo_n "(cached) " >&6
  10873. else
  10874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10875. /* end confdefs.h. */
  10876. #include <sys/types.h>
  10877. _ACEOF
  10878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10879. $EGREP "uid_t" >/dev/null 2>&1; then :
  10880. ac_cv_type_uid_t=yes
  10881. else
  10882. ac_cv_type_uid_t=no
  10883. fi
  10884. rm -f conftest*
  10885. fi
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  10887. $as_echo "$ac_cv_type_uid_t" >&6; }
  10888. if test $ac_cv_type_uid_t = no; then
  10889. $as_echo "#define uid_t int" >>confdefs.h
  10890. $as_echo "#define gid_t int" >>confdefs.h
  10891. fi
  10892. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  10893. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  10894. else
  10895. cat >>confdefs.h <<_ACEOF
  10896. #define ssize_t int
  10897. _ACEOF
  10898. fi
  10899. # FIXME: This is crude. It seems to work on Linux, though.
  10900. ac_fn_c_check_decl "$LINENO" "LC_MESSAGES" "ac_cv_have_decl_LC_MESSAGES" "#include <locale.h>
  10901. "
  10902. if test "x$ac_cv_have_decl_LC_MESSAGES" = x""yes; then :
  10903. ac_have_decl=1
  10904. else
  10905. ac_have_decl=0
  10906. fi
  10907. cat >>confdefs.h <<_ACEOF
  10908. #define HAVE_DECL_LC_MESSAGES $ac_have_decl
  10909. _ACEOF
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
  10911. $as_echo_n "checking for program_invocation_short_name... " >&6; }
  10912. if test "${yeti_cv_lib_c_program_invocation_short_name+set}" = set; then :
  10913. $as_echo_n "(cached) " >&6
  10914. else
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. #include <errno.h>
  10918. int
  10919. main ()
  10920. {
  10921. if (!program_invocation_short_name) return 1;
  10922. ;
  10923. return 0;
  10924. }
  10925. _ACEOF
  10926. if ac_fn_c_try_link "$LINENO"; then :
  10927. yeti_cv_lib_c_program_invocation_short_name=yes
  10928. else
  10929. yeti_cv_lib_c_program_invocation_short_name=no
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext \
  10932. conftest$ac_exeext conftest.$ac_ext
  10933. fi
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yeti_cv_lib_c_program_invocation_short_name" >&5
  10935. $as_echo "$yeti_cv_lib_c_program_invocation_short_name" >&6; }
  10936. if test "$yeti_cv_lib_c_program_invocation_short_name" = yes; then
  10937. $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
  10938. fi
  10939. for ac_header in vfork.h
  10940. do :
  10941. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  10942. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  10943. cat >>confdefs.h <<_ACEOF
  10944. #define HAVE_VFORK_H 1
  10945. _ACEOF
  10946. fi
  10947. done
  10948. for ac_func in fork vfork
  10949. do :
  10950. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10951. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10952. eval as_val=\$$as_ac_var
  10953. if test "x$as_val" = x""yes; then :
  10954. cat >>confdefs.h <<_ACEOF
  10955. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10956. _ACEOF
  10957. fi
  10958. done
  10959. if test "x$ac_cv_func_fork" = xyes; then
  10960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  10961. $as_echo_n "checking for working fork... " >&6; }
  10962. if test "${ac_cv_func_fork_works+set}" = set; then :
  10963. $as_echo_n "(cached) " >&6
  10964. else
  10965. if test "$cross_compiling" = yes; then :
  10966. ac_cv_func_fork_works=cross
  10967. else
  10968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10969. /* end confdefs.h. */
  10970. $ac_includes_default
  10971. int
  10972. main ()
  10973. {
  10974. /* By Ruediger Kuhlmann. */
  10975. return fork () < 0;
  10976. ;
  10977. return 0;
  10978. }
  10979. _ACEOF
  10980. if ac_fn_c_try_run "$LINENO"; then :
  10981. ac_cv_func_fork_works=yes
  10982. else
  10983. ac_cv_func_fork_works=no
  10984. fi
  10985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10986. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10987. fi
  10988. fi
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  10990. $as_echo "$ac_cv_func_fork_works" >&6; }
  10991. else
  10992. ac_cv_func_fork_works=$ac_cv_func_fork
  10993. fi
  10994. if test "x$ac_cv_func_fork_works" = xcross; then
  10995. case $host in
  10996. *-*-amigaos* | *-*-msdosdjgpp*)
  10997. # Override, as these systems have only a dummy fork() stub
  10998. ac_cv_func_fork_works=no
  10999. ;;
  11000. *)
  11001. ac_cv_func_fork_works=yes
  11002. ;;
  11003. esac
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11005. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11006. fi
  11007. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11008. if test "x$ac_cv_func_vfork" = xyes; then
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11010. $as_echo_n "checking for working vfork... " >&6; }
  11011. if test "${ac_cv_func_vfork_works+set}" = set; then :
  11012. $as_echo_n "(cached) " >&6
  11013. else
  11014. if test "$cross_compiling" = yes; then :
  11015. ac_cv_func_vfork_works=cross
  11016. else
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. /* Thanks to Paul Eggert for this test. */
  11020. $ac_includes_default
  11021. #include <sys/wait.h>
  11022. #ifdef HAVE_VFORK_H
  11023. # include <vfork.h>
  11024. #endif
  11025. /* On some sparc systems, changes by the child to local and incoming
  11026. argument registers are propagated back to the parent. The compiler
  11027. is told about this with #include <vfork.h>, but some compilers
  11028. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11029. static variable whose address is put into a register that is
  11030. clobbered by the vfork. */
  11031. static void
  11032. #ifdef __cplusplus
  11033. sparc_address_test (int arg)
  11034. # else
  11035. sparc_address_test (arg) int arg;
  11036. #endif
  11037. {
  11038. static pid_t child;
  11039. if (!child) {
  11040. child = vfork ();
  11041. if (child < 0) {
  11042. perror ("vfork");
  11043. _exit(2);
  11044. }
  11045. if (!child) {
  11046. arg = getpid();
  11047. write(-1, "", 0);
  11048. _exit (arg);
  11049. }
  11050. }
  11051. }
  11052. int
  11053. main ()
  11054. {
  11055. pid_t parent = getpid ();
  11056. pid_t child;
  11057. sparc_address_test (0);
  11058. child = vfork ();
  11059. if (child == 0) {
  11060. /* Here is another test for sparc vfork register problems. This
  11061. test uses lots of local variables, at least as many local
  11062. variables as main has allocated so far including compiler
  11063. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11064. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11065. reuse the register of parent for one of the local variables,
  11066. since it will think that parent can't possibly be used any more
  11067. in this routine. Assigning to the local variable will thus
  11068. munge parent in the parent process. */
  11069. pid_t
  11070. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11071. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11072. /* Convince the compiler that p..p7 are live; otherwise, it might
  11073. use the same hardware register for all 8 local variables. */
  11074. if (p != p1 || p != p2 || p != p3 || p != p4
  11075. || p != p5 || p != p6 || p != p7)
  11076. _exit(1);
  11077. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11078. from child file descriptors. If the child closes a descriptor
  11079. before it execs or exits, this munges the parent's descriptor
  11080. as well. Test for this by closing stdout in the child. */
  11081. _exit(close(fileno(stdout)) != 0);
  11082. } else {
  11083. int status;
  11084. struct stat st;
  11085. while (wait(&status) != child)
  11086. ;
  11087. return (
  11088. /* Was there some problem with vforking? */
  11089. child < 0
  11090. /* Did the child fail? (This shouldn't happen.) */
  11091. || status
  11092. /* Did the vfork/compiler bug occur? */
  11093. || parent != getpid()
  11094. /* Did the file descriptor bug occur? */
  11095. || fstat(fileno(stdout), &st) != 0
  11096. );
  11097. }
  11098. }
  11099. _ACEOF
  11100. if ac_fn_c_try_run "$LINENO"; then :
  11101. ac_cv_func_vfork_works=yes
  11102. else
  11103. ac_cv_func_vfork_works=no
  11104. fi
  11105. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11106. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11107. fi
  11108. fi
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11110. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11111. fi;
  11112. if test "x$ac_cv_func_fork_works" = xcross; then
  11113. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11115. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11116. fi
  11117. if test "x$ac_cv_func_vfork_works" = xyes; then
  11118. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11119. else
  11120. $as_echo "#define vfork fork" >>confdefs.h
  11121. fi
  11122. if test "x$ac_cv_func_fork_works" = xyes; then
  11123. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11124. fi
  11125. for ac_func in \
  11126. canonicalize_file_name \
  11127. ftruncate \
  11128. gettimeofday \
  11129. isatty \
  11130. nl_langinfo \
  11131. random \
  11132. realpath \
  11133. strstr \
  11134. stpcpy \
  11135. setlocale \
  11136. ttyname \
  11137. wordexp
  11138. do :
  11139. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11140. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11141. eval as_val=\$$as_ac_var
  11142. if test "x$as_val" = x""yes; then :
  11143. cat >>confdefs.h <<_ACEOF
  11144. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11145. _ACEOF
  11146. fi
  11147. done
  11148. for ac_func in getopt_long
  11149. do :
  11150. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  11151. if test "x$ac_cv_func_getopt_long" = x""yes; then :
  11152. cat >>confdefs.h <<_ACEOF
  11153. #define HAVE_GETOPT_LONG 1
  11154. _ACEOF
  11155. else
  11156. case " $LIBOBJS " in
  11157. *" $ac_func.$ac_objext "* ) ;;
  11158. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  11159. ;;
  11160. esac
  11161. fi
  11162. done
  11163. CONVERTER_LIBS=
  11164. if test "X$prefix" = "XNONE"; then
  11165. acl_final_prefix="$ac_default_prefix"
  11166. else
  11167. acl_final_prefix="$prefix"
  11168. fi
  11169. if test "X$exec_prefix" = "XNONE"; then
  11170. acl_final_exec_prefix='${prefix}'
  11171. else
  11172. acl_final_exec_prefix="$exec_prefix"
  11173. fi
  11174. acl_save_prefix="$prefix"
  11175. prefix="$acl_final_prefix"
  11176. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11177. prefix="$acl_save_prefix"
  11178. # Check whether --with-gnu-ld was given.
  11179. if test "${with_gnu_ld+set}" = set; then :
  11180. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11181. else
  11182. with_gnu_ld=no
  11183. fi
  11184. # Prepare PATH_SEPARATOR.
  11185. # The user is always right.
  11186. if test "${PATH_SEPARATOR+set}" != set; then
  11187. echo "#! /bin/sh" >conf$$.sh
  11188. echo "exit 0" >>conf$$.sh
  11189. chmod +x conf$$.sh
  11190. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11191. PATH_SEPARATOR=';'
  11192. else
  11193. PATH_SEPARATOR=:
  11194. fi
  11195. rm -f conf$$.sh
  11196. fi
  11197. ac_prog=ld
  11198. if test "$GCC" = yes; then
  11199. # Check if gcc -print-prog-name=ld gives a path.
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  11201. $as_echo_n "checking for ld used by GCC... " >&6; }
  11202. case $host in
  11203. *-*-mingw*)
  11204. # gcc leaves a trailing carriage return which upsets mingw
  11205. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11206. *)
  11207. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11208. esac
  11209. case $ac_prog in
  11210. # Accept absolute paths.
  11211. [\\/]* | [A-Za-z]:[\\/]*)
  11212. re_direlt='/[^/][^/]*/\.\./'
  11213. # Canonicalize the path of ld
  11214. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11215. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11216. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11217. done
  11218. test -z "$LD" && LD="$ac_prog"
  11219. ;;
  11220. "")
  11221. # If it fails, then pretend we aren't using GCC.
  11222. ac_prog=ld
  11223. ;;
  11224. *)
  11225. # If it is relative, then search for the first ld in PATH.
  11226. with_gnu_ld=unknown
  11227. ;;
  11228. esac
  11229. elif test "$with_gnu_ld" = yes; then
  11230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11231. $as_echo_n "checking for GNU ld... " >&6; }
  11232. else
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11234. $as_echo_n "checking for non-GNU ld... " >&6; }
  11235. fi
  11236. if test "${acl_cv_path_LD+set}" = set; then :
  11237. $as_echo_n "(cached) " >&6
  11238. else
  11239. if test -z "$LD"; then
  11240. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11241. for ac_dir in $PATH; do
  11242. test -z "$ac_dir" && ac_dir=.
  11243. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11244. acl_cv_path_LD="$ac_dir/$ac_prog"
  11245. # Check to see if the program is GNU ld. I'd rather use --version,
  11246. # but apparently some GNU ld's only accept -v.
  11247. # Break only if it was the GNU/non-GNU ld that we prefer.
  11248. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11249. *GNU* | *'with BFD'*)
  11250. test "$with_gnu_ld" != no && break ;;
  11251. *)
  11252. test "$with_gnu_ld" != yes && break ;;
  11253. esac
  11254. fi
  11255. done
  11256. IFS="$ac_save_ifs"
  11257. else
  11258. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11259. fi
  11260. fi
  11261. LD="$acl_cv_path_LD"
  11262. if test -n "$LD"; then
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11264. $as_echo "$LD" >&6; }
  11265. else
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. $as_echo "no" >&6; }
  11268. fi
  11269. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  11270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11271. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11272. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  11273. $as_echo_n "(cached) " >&6
  11274. else
  11275. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11276. case `$LD -v 2>&1 </dev/null` in
  11277. *GNU* | *'with BFD'*)
  11278. acl_cv_prog_gnu_ld=yes ;;
  11279. *)
  11280. acl_cv_prog_gnu_ld=no ;;
  11281. esac
  11282. fi
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  11284. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11285. with_gnu_ld=$acl_cv_prog_gnu_ld
  11286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  11287. $as_echo_n "checking for shared library run path origin... " >&6; }
  11288. if test "${acl_cv_rpath+set}" = set; then :
  11289. $as_echo_n "(cached) " >&6
  11290. else
  11291. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11292. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11293. . ./conftest.sh
  11294. rm -f ./conftest.sh
  11295. acl_cv_rpath=done
  11296. fi
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  11298. $as_echo "$acl_cv_rpath" >&6; }
  11299. wl="$acl_cv_wl"
  11300. acl_libext="$acl_cv_libext"
  11301. acl_shlibext="$acl_cv_shlibext"
  11302. acl_libname_spec="$acl_cv_libname_spec"
  11303. acl_library_names_spec="$acl_cv_library_names_spec"
  11304. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11305. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11306. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11307. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11308. # Check whether --enable-rpath was given.
  11309. if test "${enable_rpath+set}" = set; then :
  11310. enableval=$enable_rpath; :
  11311. else
  11312. enable_rpath=yes
  11313. fi
  11314. acl_libdirstem=lib
  11315. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11316. if test -n "$searchpath"; then
  11317. acl_save_IFS="${IFS= }"; IFS=":"
  11318. for searchdir in $searchpath; do
  11319. if test -d "$searchdir"; then
  11320. case "$searchdir" in
  11321. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11322. *) searchdir=`cd "$searchdir" && pwd`
  11323. case "$searchdir" in
  11324. */lib64 ) acl_libdirstem=lib64 ;;
  11325. esac ;;
  11326. esac
  11327. fi
  11328. done
  11329. IFS="$acl_save_IFS"
  11330. fi
  11331. use_additional=yes
  11332. acl_save_prefix="$prefix"
  11333. prefix="$acl_final_prefix"
  11334. acl_save_exec_prefix="$exec_prefix"
  11335. exec_prefix="$acl_final_exec_prefix"
  11336. eval additional_includedir=\"$includedir\"
  11337. eval additional_libdir=\"$libdir\"
  11338. exec_prefix="$acl_save_exec_prefix"
  11339. prefix="$acl_save_prefix"
  11340. # Check whether --with-libiconv-prefix was given.
  11341. if test "${with_libiconv_prefix+set}" = set; then :
  11342. withval=$with_libiconv_prefix;
  11343. if test "X$withval" = "Xno"; then
  11344. use_additional=no
  11345. else
  11346. if test "X$withval" = "X"; then
  11347. acl_save_prefix="$prefix"
  11348. prefix="$acl_final_prefix"
  11349. acl_save_exec_prefix="$exec_prefix"
  11350. exec_prefix="$acl_final_exec_prefix"
  11351. eval additional_includedir=\"$includedir\"
  11352. eval additional_libdir=\"$libdir\"
  11353. exec_prefix="$acl_save_exec_prefix"
  11354. prefix="$acl_save_prefix"
  11355. else
  11356. additional_includedir="$withval/include"
  11357. additional_libdir="$withval/$acl_libdirstem"
  11358. fi
  11359. fi
  11360. fi
  11361. LIBICONV=
  11362. LTLIBICONV=
  11363. INCICONV=
  11364. LIBICONV_PREFIX=
  11365. rpathdirs=
  11366. ltrpathdirs=
  11367. names_already_handled=
  11368. names_next_round='iconv '
  11369. while test -n "$names_next_round"; do
  11370. names_this_round="$names_next_round"
  11371. names_next_round=
  11372. for name in $names_this_round; do
  11373. already_handled=
  11374. for n in $names_already_handled; do
  11375. if test "$n" = "$name"; then
  11376. already_handled=yes
  11377. break
  11378. fi
  11379. done
  11380. if test -z "$already_handled"; then
  11381. names_already_handled="$names_already_handled $name"
  11382. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11383. eval value=\"\$HAVE_LIB$uppername\"
  11384. if test -n "$value"; then
  11385. if test "$value" = yes; then
  11386. eval value=\"\$LIB$uppername\"
  11387. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11388. eval value=\"\$LTLIB$uppername\"
  11389. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11390. else
  11391. :
  11392. fi
  11393. else
  11394. found_dir=
  11395. found_la=
  11396. found_so=
  11397. found_a=
  11398. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11399. if test -n "$acl_shlibext"; then
  11400. shrext=".$acl_shlibext" # typically: shrext=.so
  11401. else
  11402. shrext=
  11403. fi
  11404. if test $use_additional = yes; then
  11405. dir="$additional_libdir"
  11406. if test -n "$acl_shlibext"; then
  11407. if test -f "$dir/$libname$shrext"; then
  11408. found_dir="$dir"
  11409. found_so="$dir/$libname$shrext"
  11410. else
  11411. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11412. ver=`(cd "$dir" && \
  11413. for f in "$libname$shrext".*; do echo "$f"; done \
  11414. | sed -e "s,^$libname$shrext\\\\.,," \
  11415. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11416. | sed 1q ) 2>/dev/null`
  11417. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11418. found_dir="$dir"
  11419. found_so="$dir/$libname$shrext.$ver"
  11420. fi
  11421. else
  11422. eval library_names=\"$acl_library_names_spec\"
  11423. for f in $library_names; do
  11424. if test -f "$dir/$f"; then
  11425. found_dir="$dir"
  11426. found_so="$dir/$f"
  11427. break
  11428. fi
  11429. done
  11430. fi
  11431. fi
  11432. fi
  11433. if test "X$found_dir" = "X"; then
  11434. if test -f "$dir/$libname.$acl_libext"; then
  11435. found_dir="$dir"
  11436. found_a="$dir/$libname.$acl_libext"
  11437. fi
  11438. fi
  11439. if test "X$found_dir" != "X"; then
  11440. if test -f "$dir/$libname.la"; then
  11441. found_la="$dir/$libname.la"
  11442. fi
  11443. fi
  11444. fi
  11445. if test "X$found_dir" = "X"; then
  11446. for x in $LDFLAGS $LTLIBICONV; do
  11447. acl_save_prefix="$prefix"
  11448. prefix="$acl_final_prefix"
  11449. acl_save_exec_prefix="$exec_prefix"
  11450. exec_prefix="$acl_final_exec_prefix"
  11451. eval x=\"$x\"
  11452. exec_prefix="$acl_save_exec_prefix"
  11453. prefix="$acl_save_prefix"
  11454. case "$x" in
  11455. -L*)
  11456. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11457. if test -n "$acl_shlibext"; then
  11458. if test -f "$dir/$libname$shrext"; then
  11459. found_dir="$dir"
  11460. found_so="$dir/$libname$shrext"
  11461. else
  11462. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11463. ver=`(cd "$dir" && \
  11464. for f in "$libname$shrext".*; do echo "$f"; done \
  11465. | sed -e "s,^$libname$shrext\\\\.,," \
  11466. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11467. | sed 1q ) 2>/dev/null`
  11468. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11469. found_dir="$dir"
  11470. found_so="$dir/$libname$shrext.$ver"
  11471. fi
  11472. else
  11473. eval library_names=\"$acl_library_names_spec\"
  11474. for f in $library_names; do
  11475. if test -f "$dir/$f"; then
  11476. found_dir="$dir"
  11477. found_so="$dir/$f"
  11478. break
  11479. fi
  11480. done
  11481. fi
  11482. fi
  11483. fi
  11484. if test "X$found_dir" = "X"; then
  11485. if test -f "$dir/$libname.$acl_libext"; then
  11486. found_dir="$dir"
  11487. found_a="$dir/$libname.$acl_libext"
  11488. fi
  11489. fi
  11490. if test "X$found_dir" != "X"; then
  11491. if test -f "$dir/$libname.la"; then
  11492. found_la="$dir/$libname.la"
  11493. fi
  11494. fi
  11495. ;;
  11496. esac
  11497. if test "X$found_dir" != "X"; then
  11498. break
  11499. fi
  11500. done
  11501. fi
  11502. if test "X$found_dir" != "X"; then
  11503. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11504. if test "X$found_so" != "X"; then
  11505. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11506. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11507. else
  11508. haveit=
  11509. for x in $ltrpathdirs; do
  11510. if test "X$x" = "X$found_dir"; then
  11511. haveit=yes
  11512. break
  11513. fi
  11514. done
  11515. if test -z "$haveit"; then
  11516. ltrpathdirs="$ltrpathdirs $found_dir"
  11517. fi
  11518. if test "$acl_hardcode_direct" = yes; then
  11519. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11520. else
  11521. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11522. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11523. haveit=
  11524. for x in $rpathdirs; do
  11525. if test "X$x" = "X$found_dir"; then
  11526. haveit=yes
  11527. break
  11528. fi
  11529. done
  11530. if test -z "$haveit"; then
  11531. rpathdirs="$rpathdirs $found_dir"
  11532. fi
  11533. else
  11534. haveit=
  11535. for x in $LDFLAGS $LIBICONV; do
  11536. acl_save_prefix="$prefix"
  11537. prefix="$acl_final_prefix"
  11538. acl_save_exec_prefix="$exec_prefix"
  11539. exec_prefix="$acl_final_exec_prefix"
  11540. eval x=\"$x\"
  11541. exec_prefix="$acl_save_exec_prefix"
  11542. prefix="$acl_save_prefix"
  11543. if test "X$x" = "X-L$found_dir"; then
  11544. haveit=yes
  11545. break
  11546. fi
  11547. done
  11548. if test -z "$haveit"; then
  11549. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11550. fi
  11551. if test "$acl_hardcode_minus_L" != no; then
  11552. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11553. else
  11554. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11555. fi
  11556. fi
  11557. fi
  11558. fi
  11559. else
  11560. if test "X$found_a" != "X"; then
  11561. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11562. else
  11563. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11564. fi
  11565. fi
  11566. additional_includedir=
  11567. case "$found_dir" in
  11568. */$acl_libdirstem | */$acl_libdirstem/)
  11569. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11570. LIBICONV_PREFIX="$basedir"
  11571. additional_includedir="$basedir/include"
  11572. ;;
  11573. esac
  11574. if test "X$additional_includedir" != "X"; then
  11575. if test "X$additional_includedir" != "X/usr/include"; then
  11576. haveit=
  11577. if test "X$additional_includedir" = "X/usr/local/include"; then
  11578. if test -n "$GCC"; then
  11579. case $host_os in
  11580. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11581. esac
  11582. fi
  11583. fi
  11584. if test -z "$haveit"; then
  11585. for x in $CPPFLAGS $INCICONV; do
  11586. acl_save_prefix="$prefix"
  11587. prefix="$acl_final_prefix"
  11588. acl_save_exec_prefix="$exec_prefix"
  11589. exec_prefix="$acl_final_exec_prefix"
  11590. eval x=\"$x\"
  11591. exec_prefix="$acl_save_exec_prefix"
  11592. prefix="$acl_save_prefix"
  11593. if test "X$x" = "X-I$additional_includedir"; then
  11594. haveit=yes
  11595. break
  11596. fi
  11597. done
  11598. if test -z "$haveit"; then
  11599. if test -d "$additional_includedir"; then
  11600. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11601. fi
  11602. fi
  11603. fi
  11604. fi
  11605. fi
  11606. if test -n "$found_la"; then
  11607. save_libdir="$libdir"
  11608. case "$found_la" in
  11609. */* | *\\*) . "$found_la" ;;
  11610. *) . "./$found_la" ;;
  11611. esac
  11612. libdir="$save_libdir"
  11613. for dep in $dependency_libs; do
  11614. case "$dep" in
  11615. -L*)
  11616. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11617. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11618. haveit=
  11619. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11620. if test -n "$GCC"; then
  11621. case $host_os in
  11622. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11623. esac
  11624. fi
  11625. fi
  11626. if test -z "$haveit"; then
  11627. haveit=
  11628. for x in $LDFLAGS $LIBICONV; do
  11629. acl_save_prefix="$prefix"
  11630. prefix="$acl_final_prefix"
  11631. acl_save_exec_prefix="$exec_prefix"
  11632. exec_prefix="$acl_final_exec_prefix"
  11633. eval x=\"$x\"
  11634. exec_prefix="$acl_save_exec_prefix"
  11635. prefix="$acl_save_prefix"
  11636. if test "X$x" = "X-L$additional_libdir"; then
  11637. haveit=yes
  11638. break
  11639. fi
  11640. done
  11641. if test -z "$haveit"; then
  11642. if test -d "$additional_libdir"; then
  11643. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11644. fi
  11645. fi
  11646. haveit=
  11647. for x in $LDFLAGS $LTLIBICONV; do
  11648. acl_save_prefix="$prefix"
  11649. prefix="$acl_final_prefix"
  11650. acl_save_exec_prefix="$exec_prefix"
  11651. exec_prefix="$acl_final_exec_prefix"
  11652. eval x=\"$x\"
  11653. exec_prefix="$acl_save_exec_prefix"
  11654. prefix="$acl_save_prefix"
  11655. if test "X$x" = "X-L$additional_libdir"; then
  11656. haveit=yes
  11657. break
  11658. fi
  11659. done
  11660. if test -z "$haveit"; then
  11661. if test -d "$additional_libdir"; then
  11662. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11663. fi
  11664. fi
  11665. fi
  11666. fi
  11667. ;;
  11668. -R*)
  11669. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11670. if test "$enable_rpath" != no; then
  11671. haveit=
  11672. for x in $rpathdirs; do
  11673. if test "X$x" = "X$dir"; then
  11674. haveit=yes
  11675. break
  11676. fi
  11677. done
  11678. if test -z "$haveit"; then
  11679. rpathdirs="$rpathdirs $dir"
  11680. fi
  11681. haveit=
  11682. for x in $ltrpathdirs; do
  11683. if test "X$x" = "X$dir"; then
  11684. haveit=yes
  11685. break
  11686. fi
  11687. done
  11688. if test -z "$haveit"; then
  11689. ltrpathdirs="$ltrpathdirs $dir"
  11690. fi
  11691. fi
  11692. ;;
  11693. -l*)
  11694. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11695. ;;
  11696. *.la)
  11697. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11698. ;;
  11699. *)
  11700. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11701. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11702. ;;
  11703. esac
  11704. done
  11705. fi
  11706. else
  11707. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11708. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11709. fi
  11710. fi
  11711. fi
  11712. done
  11713. done
  11714. if test "X$rpathdirs" != "X"; then
  11715. if test -n "$acl_hardcode_libdir_separator"; then
  11716. alldirs=
  11717. for found_dir in $rpathdirs; do
  11718. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11719. done
  11720. acl_save_libdir="$libdir"
  11721. libdir="$alldirs"
  11722. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11723. libdir="$acl_save_libdir"
  11724. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11725. else
  11726. for found_dir in $rpathdirs; do
  11727. acl_save_libdir="$libdir"
  11728. libdir="$found_dir"
  11729. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11730. libdir="$acl_save_libdir"
  11731. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11732. done
  11733. fi
  11734. fi
  11735. if test "X$ltrpathdirs" != "X"; then
  11736. for found_dir in $ltrpathdirs; do
  11737. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11738. done
  11739. fi
  11740. am_save_CPPFLAGS="$CPPFLAGS"
  11741. for element in $INCICONV; do
  11742. haveit=
  11743. for x in $CPPFLAGS; do
  11744. acl_save_prefix="$prefix"
  11745. prefix="$acl_final_prefix"
  11746. acl_save_exec_prefix="$exec_prefix"
  11747. exec_prefix="$acl_final_exec_prefix"
  11748. eval x=\"$x\"
  11749. exec_prefix="$acl_save_exec_prefix"
  11750. prefix="$acl_save_prefix"
  11751. if test "X$x" = "X$element"; then
  11752. haveit=yes
  11753. break
  11754. fi
  11755. done
  11756. if test -z "$haveit"; then
  11757. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11758. fi
  11759. done
  11760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  11761. $as_echo_n "checking for iconv... " >&6; }
  11762. if test "${am_cv_func_iconv+set}" = set; then :
  11763. $as_echo_n "(cached) " >&6
  11764. else
  11765. am_cv_func_iconv="no, consider installing GNU libiconv"
  11766. am_cv_lib_iconv=no
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. #include <stdlib.h>
  11770. #include <iconv.h>
  11771. int
  11772. main ()
  11773. {
  11774. iconv_t cd = iconv_open("","");
  11775. iconv(cd,NULL,NULL,NULL,NULL);
  11776. iconv_close(cd);
  11777. ;
  11778. return 0;
  11779. }
  11780. _ACEOF
  11781. if ac_fn_c_try_link "$LINENO"; then :
  11782. am_cv_func_iconv=yes
  11783. fi
  11784. rm -f core conftest.err conftest.$ac_objext \
  11785. conftest$ac_exeext conftest.$ac_ext
  11786. if test "$am_cv_func_iconv" != yes; then
  11787. am_save_LIBS="$LIBS"
  11788. LIBS="$LIBS $LIBICONV"
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. #include <stdlib.h>
  11792. #include <iconv.h>
  11793. int
  11794. main ()
  11795. {
  11796. iconv_t cd = iconv_open("","");
  11797. iconv(cd,NULL,NULL,NULL,NULL);
  11798. iconv_close(cd);
  11799. ;
  11800. return 0;
  11801. }
  11802. _ACEOF
  11803. if ac_fn_c_try_link "$LINENO"; then :
  11804. am_cv_lib_iconv=yes
  11805. am_cv_func_iconv=yes
  11806. fi
  11807. rm -f core conftest.err conftest.$ac_objext \
  11808. conftest$ac_exeext conftest.$ac_ext
  11809. LIBS="$am_save_LIBS"
  11810. fi
  11811. fi
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  11813. $as_echo "$am_cv_func_iconv" >&6; }
  11814. if test "$am_cv_func_iconv" = yes; then
  11815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  11816. $as_echo_n "checking for working iconv... " >&6; }
  11817. if test "${am_cv_func_iconv_works+set}" = set; then :
  11818. $as_echo_n "(cached) " >&6
  11819. else
  11820. am_save_LIBS="$LIBS"
  11821. if test $am_cv_lib_iconv = yes; then
  11822. LIBS="$LIBS $LIBICONV"
  11823. fi
  11824. if test "$cross_compiling" = yes; then :
  11825. case "$host_os" in
  11826. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  11827. *) am_cv_func_iconv_works="guessing yes" ;;
  11828. esac
  11829. else
  11830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11831. /* end confdefs.h. */
  11832. #include <iconv.h>
  11833. #include <string.h>
  11834. int main ()
  11835. {
  11836. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  11837. returns. */
  11838. {
  11839. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  11840. if (cd_utf8_to_88591 != (iconv_t)(-1))
  11841. {
  11842. static const char input[] = "\342\202\254"; /* EURO SIGN */
  11843. char buf[10];
  11844. const char *inptr = input;
  11845. size_t inbytesleft = strlen (input);
  11846. char *outptr = buf;
  11847. size_t outbytesleft = sizeof (buf);
  11848. size_t res = iconv (cd_utf8_to_88591,
  11849. (char **) &inptr, &inbytesleft,
  11850. &outptr, &outbytesleft);
  11851. if (res == 0)
  11852. return 1;
  11853. }
  11854. }
  11855. #if 0 /* This bug could be worked around by the caller. */
  11856. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  11857. {
  11858. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  11859. if (cd_88591_to_utf8 != (iconv_t)(-1))
  11860. {
  11861. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  11862. char buf[50];
  11863. const char *inptr = input;
  11864. size_t inbytesleft = strlen (input);
  11865. char *outptr = buf;
  11866. size_t outbytesleft = sizeof (buf);
  11867. size_t res = iconv (cd_88591_to_utf8,
  11868. (char **) &inptr, &inbytesleft,
  11869. &outptr, &outbytesleft);
  11870. if ((int)res > 0)
  11871. return 1;
  11872. }
  11873. }
  11874. #endif
  11875. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  11876. provided. */
  11877. if (/* Try standardized names. */
  11878. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  11879. /* Try IRIX, OSF/1 names. */
  11880. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  11881. /* Try AIX names. */
  11882. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  11883. /* Try HP-UX names. */
  11884. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  11885. return 1;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_c_try_run "$LINENO"; then :
  11890. am_cv_func_iconv_works=yes
  11891. else
  11892. am_cv_func_iconv_works=no
  11893. fi
  11894. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11895. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11896. fi
  11897. LIBS="$am_save_LIBS"
  11898. fi
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  11900. $as_echo "$am_cv_func_iconv_works" >&6; }
  11901. case "$am_cv_func_iconv_works" in
  11902. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  11903. *) am_func_iconv=yes ;;
  11904. esac
  11905. else
  11906. am_func_iconv=no am_cv_lib_iconv=no
  11907. fi
  11908. if test "$am_func_iconv" = yes; then
  11909. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  11910. fi
  11911. if test "$am_cv_lib_iconv" = yes; then
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  11913. $as_echo_n "checking how to link with libiconv... " >&6; }
  11914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  11915. $as_echo "$LIBICONV" >&6; }
  11916. else
  11917. CPPFLAGS="$am_save_CPPFLAGS"
  11918. LIBICONV=
  11919. LTLIBICONV=
  11920. fi
  11921. if test "$am_cv_func_iconv" = yes; then
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  11923. $as_echo_n "checking for iconv declaration... " >&6; }
  11924. if test "${am_cv_proto_iconv+set}" = set; then :
  11925. $as_echo_n "(cached) " >&6
  11926. else
  11927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11928. /* end confdefs.h. */
  11929. #include <stdlib.h>
  11930. #include <iconv.h>
  11931. extern
  11932. #ifdef __cplusplus
  11933. "C"
  11934. #endif
  11935. #if defined(__STDC__) || defined(__cplusplus)
  11936. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  11937. #else
  11938. size_t iconv();
  11939. #endif
  11940. int
  11941. main ()
  11942. {
  11943. ;
  11944. return 0;
  11945. }
  11946. _ACEOF
  11947. if ac_fn_c_try_compile "$LINENO"; then :
  11948. am_cv_proto_iconv_arg1=""
  11949. else
  11950. am_cv_proto_iconv_arg1="const"
  11951. fi
  11952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11953. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  11954. fi
  11955. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  11957. }$am_cv_proto_iconv" >&5
  11958. $as_echo "${ac_t:-
  11959. }$am_cv_proto_iconv" >&6; }
  11960. cat >>confdefs.h <<_ACEOF
  11961. #define ICONV_CONST $am_cv_proto_iconv_arg1
  11962. _ACEOF
  11963. fi
  11964. CONVERTER_LIBS="$CONVERTER_LIBS $LIBICONV"
  11965. libiconv_ok="$am_cv_func_iconv"
  11966. if test "$libiconv_ok" = yes; then
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv implementation is usable" >&5
  11968. $as_echo_n "checking whether iconv implementation is usable... " >&6; }
  11969. if $CC -o iconvcap$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS $srcdir/iconvcap.c $LIBS $CONVERTER_LIBS 1>&5 2>&5 && test -s ./iconvcap$ac_exeext 2>&5; then
  11970. if ./iconvcap 2>&5 >iconvenc.h; then
  11971. libiconv_ok=yes
  11972. else
  11973. libiconv_ok=no
  11974. fi
  11975. else
  11976. libiconv_ok=no
  11977. fi
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiconv_ok" >&5
  11979. $as_echo "$libiconv_ok" >&6; }
  11980. if test "$libiconv_ok" = yes; then
  11981. $as_echo "#define HAVE_GOOD_ICONV 1" >>confdefs.h
  11982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is transitive" >&5
  11983. $as_echo_n "checking whether iconv is transitive... " >&6; }
  11984. if test "${yeti_cv_lib_c_iconv_transitive+set}" = set; then :
  11985. $as_echo_n "(cached) " >&6
  11986. else
  11987. if ./iconvcap iconvenc.h 2>&5; then
  11988. yeti_cv_lib_c_iconv_transitive=yes
  11989. else
  11990. yeti_cv_lib_c_iconv_transitive=no
  11991. fi
  11992. fi
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yeti_cv_lib_c_iconv_transitive" >&5
  11994. $as_echo "$yeti_cv_lib_c_iconv_transitive" >&6; }
  11995. if test "$yeti_cv_lib_c_iconv_transitive" = yes; then
  11996. $as_echo "#define ICONV_IS_TRANSITIVE 1" >>confdefs.h
  11997. else
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A non-transitive but otherwise usable iconv implementation
  11999. was found. This beast was believed to be mythical.
  12000. Please send your system specs to the maintainer." >&5
  12001. $as_echo "$as_me: WARNING: A non-transitive but otherwise usable iconv implementation
  12002. was found. This beast was believed to be mythical.
  12003. Please send your system specs to the maintainer." >&2;}
  12004. fi
  12005. else
  12006. echo >iconvenc.h
  12007. fi
  12008. else
  12009. libiconv_ok=no
  12010. fi
  12011. if test "$libiconv_ok" != "yes"; then
  12012. cat $srcdir/tools/iconvenc.null >iconvenc.h
  12013. fi
  12014. # Check whether --with-librecode was given.
  12015. if test "${with_librecode+set}" = set; then :
  12016. withval=$with_librecode; case "$withval" in
  12017. yes|auto) WANT_LIBRECODE=1 ;;
  12018. no) WANT_LIBRECODE=0 ;;
  12019. *) WANT_LIBRECODE=1 ; yeti_librecode_CPPFLAGS="-I$withval/include" ; yeti_librecode_LDFLAGS="-L$withval/lib" ;;
  12020. esac
  12021. else
  12022. WANT_LIBRECODE=1
  12023. fi
  12024. if test "$WANT_LIBRECODE" = 1; then
  12025. yeti_save_LIBS="$LIBS"
  12026. yeti_save_CPPFLAGS="$CPPFLAGS"
  12027. yeti_save_LDFLAGS="$LDFLAGS"
  12028. LIBS="$LIBS -lrecode"
  12029. CPPFLAGS="$CPPFLAGS $yeti_librecode_CPPFLAGS"
  12030. LDFLAGS="$LDFLAGS $yeti_librecode_LDFLAGS"
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_new_outer in librecode" >&5
  12032. $as_echo_n "checking for recode_new_outer in librecode... " >&6; }
  12033. if test "${yeti_cv_lib_recode_new_outer+set}" = set; then :
  12034. $as_echo_n "(cached) " >&6
  12035. else
  12036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12037. /* end confdefs.h. */
  12038. char* program_name = "";
  12039. int
  12040. main ()
  12041. {
  12042. recode_new_outer(0);
  12043. ;
  12044. return 0;
  12045. }
  12046. _ACEOF
  12047. if ac_fn_c_try_link "$LINENO"; then :
  12048. yeti_cv_lib_recode_new_outer=yes
  12049. else
  12050. yeti_cv_lib_recode_new_outer=no
  12051. fi
  12052. rm -f core conftest.err conftest.$ac_objext \
  12053. conftest$ac_exeext conftest.$ac_ext
  12054. fi
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yeti_cv_lib_recode_new_outer" >&5
  12056. $as_echo "$yeti_cv_lib_recode_new_outer" >&6; }
  12057. librecode_ok="$yeti_cv_lib_recode_new_outer";
  12058. if test "$librecode_ok" = yes; then
  12059. ac_fn_c_check_header_compile "$LINENO" "recode.h" "ac_cv_header_recode_h" "#define bool int
  12060. #define size_t int
  12061. #define FILE void
  12062. "
  12063. if test "x$ac_cv_header_recode_h" = x""yes; then :
  12064. librecode_ok=yes
  12065. else
  12066. librecode_ok=no
  12067. fi
  12068. fi
  12069. if test "$librecode_ok" = yes; then
  12070. ac_fn_c_check_header_compile "$LINENO" "recodext.h" "ac_cv_header_recodext_h" "#define bool int
  12071. #define size_t int
  12072. #define FILE void
  12073. "
  12074. if test "x$ac_cv_header_recodext_h" = x""yes; then :
  12075. librecode_ok=yes
  12076. else
  12077. librecode_ok=no
  12078. fi
  12079. fi
  12080. if test "$librecode_ok" = yes; then
  12081. $as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h
  12082. CONVERTER_LIBS="$CONVERTER_LIBS -lrecode"
  12083. fi
  12084. LIBS="$yeti_save_LIBS"
  12085. else
  12086. librecode_ok=no
  12087. fi
  12088. if test "$librecode_ok" != "yes"; then
  12089. if test "$WANT_LIBRECODE" = 1; then
  12090. CPPFLAGS="$yeti_save_CPPFLAGS"
  12091. LDFLAGS="$yeti_save_LDFLAGS"
  12092. fi
  12093. fi
  12094. DEFAULT_CONVERTER_LIST="built-in"
  12095. if test "$librecode_ok" = "yes"; then
  12096. DEFAULT_CONVERTER_LIST="$DEFAULT_CONVERTER_LIST,librecode"
  12097. else
  12098. if test "$libiconv_ok" = "yes"; then
  12099. DEFAULT_CONVERTER_LIST="$DEFAULT_CONVERTER_LIST,iconv"
  12100. fi
  12101. fi
  12102. cat >>confdefs.h <<_ACEOF
  12103. #define DEFAULT_CONVERTER_LIST "$DEFAULT_CONVERTER_LIST"
  12104. _ACEOF
  12105. if test "$WANT_EXTERNAL" = "yes" -a "$ac_cv_func_fork_works" = "yes"; then
  12106. $as_echo "#define ENABLE_EXTERNAL 1" >>confdefs.h
  12107. if test -n "$DEFAULT_EXTERNAL_CONVERTER"; then
  12108. enable_external="yes ($DEFAULT_EXTERNAL_CONVERTER)"
  12109. else
  12110. enable_external="yes (but no suitable found)"
  12111. fi
  12112. else
  12113. enable_external=no
  12114. DEFAULT_EXTERNAL_CONVERTER=
  12115. fi
  12116. cat >>confdefs.h <<_ACEOF
  12117. #define DEFAULT_EXTERNAL_CONVERTER "$DEFAULT_EXTERNAL_CONVERTER"
  12118. _ACEOF
  12119. locale_alias_ok=no
  12120. if test "$ac_cv_func_setlocale" = yes; then
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale.alias" >&5
  12122. $as_echo_n "checking for locale.alias... " >&6; }
  12123. if test "${yeti_cv_file_locale_alias+set}" = set; then :
  12124. $as_echo_n "(cached) " >&6
  12125. else
  12126. for yeti_ac_tmp in /usr/share/locale /usr/local/share/locale /etc /usr/lib/X11/locale /usr/X11/lib/locale; do
  12127. if test -f "$yeti_ac_tmp/locale.alias"; then
  12128. yeti_cv_file_locale_alias="$yeti_ac_tmp/locale.alias"
  12129. break
  12130. fi
  12131. if test -f "$yeti_ac_tmp/locale.aliases"; then
  12132. yeti_cv_file_locale_alias="$yeti_ac_tmp/locale.aliases"
  12133. break
  12134. fi
  12135. done
  12136. fi
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yeti_cv_file_locale_alias" >&5
  12138. $as_echo "$yeti_cv_file_locale_alias" >&6; }
  12139. if test -n "$yeti_cv_file_locale_alias"; then
  12140. locale_alias_ok=yes
  12141. $as_echo "#define HAVE_LOCALE_ALIAS 1" >>confdefs.h
  12142. cat >>confdefs.h <<_ACEOF
  12143. #define LOCALE_ALIAS_PATH "$yeti_cv_file_locale_alias"
  12144. _ACEOF
  12145. fi
  12146. fi
  12147. if test -n "$MKTEMP_PROG"; then
  12148. SHELL_RANDOM_FILENAME='`'$MKTEMP_PROG' /tmp/enca-$$-XXXXXXXX`'
  12149. else
  12150. SHELL_RANDOM_FILENAME='/tmp/enca-$$-$RANDOM'
  12151. fi
  12152. cat >confcache <<\_ACEOF
  12153. # This file is a shell script that caches the results of configure
  12154. # tests run on this system so they can be shared between configure
  12155. # scripts and configure runs, see configure's option --config-cache.
  12156. # It is not useful on other systems. If it contains results you don't
  12157. # want to keep, you may remove or edit it.
  12158. #
  12159. # config.status only pays attention to the cache file if you give it
  12160. # the --recheck option to rerun configure.
  12161. #
  12162. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12163. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12164. # following values.
  12165. _ACEOF
  12166. # The following way of writing the cache mishandles newlines in values,
  12167. # but we know of no workaround that is simple, portable, and efficient.
  12168. # So, we kill variables containing newlines.
  12169. # Ultrix sh set writes to stderr and can't be redirected directly,
  12170. # and sets the high bit in the cache file unless we assign to the vars.
  12171. (
  12172. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12173. eval ac_val=\$$ac_var
  12174. case $ac_val in #(
  12175. *${as_nl}*)
  12176. case $ac_var in #(
  12177. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12178. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12179. esac
  12180. case $ac_var in #(
  12181. _ | IFS | as_nl) ;; #(
  12182. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12183. *) { eval $ac_var=; unset $ac_var;} ;;
  12184. esac ;;
  12185. esac
  12186. done
  12187. (set) 2>&1 |
  12188. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12189. *${as_nl}ac_space=\ *)
  12190. # `set' does not quote correctly, so add quotes: double-quote
  12191. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12192. sed -n \
  12193. "s/'/'\\\\''/g;
  12194. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12195. ;; #(
  12196. *)
  12197. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12198. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12199. ;;
  12200. esac |
  12201. sort
  12202. ) |
  12203. sed '
  12204. /^ac_cv_env_/b end
  12205. t clear
  12206. :clear
  12207. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12208. t end
  12209. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12210. :end' >>confcache
  12211. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12212. if test -w "$cache_file"; then
  12213. test "x$cache_file" != "x/dev/null" &&
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12215. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12216. cat confcache >$cache_file
  12217. else
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12219. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12220. fi
  12221. fi
  12222. rm -f confcache
  12223. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12224. # Let make expand exec_prefix.
  12225. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12226. DEFS=-DHAVE_CONFIG_H
  12227. ac_libobjs=
  12228. ac_ltlibobjs=
  12229. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12230. # 1. Remove the extension, and $U if already installed.
  12231. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12232. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12233. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12234. # will be set to the directory where LIBOBJS objects are built.
  12235. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12236. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12237. done
  12238. LIBOBJS=$ac_libobjs
  12239. LTLIBOBJS=$ac_ltlibobjs
  12240. if test -n "$EXEEXT"; then
  12241. am__EXEEXT_TRUE=
  12242. am__EXEEXT_FALSE='#'
  12243. else
  12244. am__EXEEXT_TRUE='#'
  12245. am__EXEEXT_FALSE=
  12246. fi
  12247. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12248. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12250. fi
  12251. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12252. as_fn_error "conditional \"AMDEP\" was never defined.
  12253. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12254. fi
  12255. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12256. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12257. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12258. fi
  12259. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12260. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12261. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12262. fi
  12263. if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
  12264. as_fn_error "conditional \"ENABLE_GTK_DOC\" was never defined.
  12265. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12266. fi
  12267. : ${CONFIG_STATUS=./config.status}
  12268. ac_write_fail=0
  12269. ac_clean_files_save=$ac_clean_files
  12270. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12272. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12273. as_write_fail=0
  12274. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12275. #! $SHELL
  12276. # Generated by $as_me.
  12277. # Run this file to recreate the current configuration.
  12278. # Compiler output produced by configure, useful for debugging
  12279. # configure, is in config.log if it exists.
  12280. debug=false
  12281. ac_cs_recheck=false
  12282. ac_cs_silent=false
  12283. SHELL=\${CONFIG_SHELL-$SHELL}
  12284. export SHELL
  12285. _ASEOF
  12286. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12287. ## -------------------- ##
  12288. ## M4sh Initialization. ##
  12289. ## -------------------- ##
  12290. # Be more Bourne compatible
  12291. DUALCASE=1; export DUALCASE # for MKS sh
  12292. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12293. emulate sh
  12294. NULLCMD=:
  12295. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12296. # is contrary to our usage. Disable this feature.
  12297. alias -g '${1+"$@"}'='"$@"'
  12298. setopt NO_GLOB_SUBST
  12299. else
  12300. case `(set -o) 2>/dev/null` in #(
  12301. *posix*) :
  12302. set -o posix ;; #(
  12303. *) :
  12304. ;;
  12305. esac
  12306. fi
  12307. as_nl='
  12308. '
  12309. export as_nl
  12310. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12311. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12312. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12313. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12314. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12315. # but without wasting forks for bash or zsh.
  12316. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12317. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12318. as_echo='print -r --'
  12319. as_echo_n='print -rn --'
  12320. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12321. as_echo='printf %s\n'
  12322. as_echo_n='printf %s'
  12323. else
  12324. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12325. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12326. as_echo_n='/usr/ucb/echo -n'
  12327. else
  12328. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12329. as_echo_n_body='eval
  12330. arg=$1;
  12331. case $arg in #(
  12332. *"$as_nl"*)
  12333. expr "X$arg" : "X\\(.*\\)$as_nl";
  12334. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12335. esac;
  12336. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12337. '
  12338. export as_echo_n_body
  12339. as_echo_n='sh -c $as_echo_n_body as_echo'
  12340. fi
  12341. export as_echo_body
  12342. as_echo='sh -c $as_echo_body as_echo'
  12343. fi
  12344. # The user is always right.
  12345. if test "${PATH_SEPARATOR+set}" != set; then
  12346. PATH_SEPARATOR=:
  12347. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12348. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12349. PATH_SEPARATOR=';'
  12350. }
  12351. fi
  12352. # IFS
  12353. # We need space, tab and new line, in precisely that order. Quoting is
  12354. # there to prevent editors from complaining about space-tab.
  12355. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12356. # splitting by setting IFS to empty value.)
  12357. IFS=" "" $as_nl"
  12358. # Find who we are. Look in the path if we contain no directory separator.
  12359. case $0 in #((
  12360. *[\\/]* ) as_myself=$0 ;;
  12361. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12362. for as_dir in $PATH
  12363. do
  12364. IFS=$as_save_IFS
  12365. test -z "$as_dir" && as_dir=.
  12366. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12367. done
  12368. IFS=$as_save_IFS
  12369. ;;
  12370. esac
  12371. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12372. # in which case we are not to be found in the path.
  12373. if test "x$as_myself" = x; then
  12374. as_myself=$0
  12375. fi
  12376. if test ! -f "$as_myself"; then
  12377. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12378. exit 1
  12379. fi
  12380. # Unset variables that we do not need and which cause bugs (e.g. in
  12381. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12382. # suppresses any "Segmentation fault" message there. '((' could
  12383. # trigger a bug in pdksh 5.2.14.
  12384. for as_var in BASH_ENV ENV MAIL MAILPATH
  12385. do eval test x\${$as_var+set} = xset \
  12386. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12387. done
  12388. PS1='$ '
  12389. PS2='> '
  12390. PS4='+ '
  12391. # NLS nuisances.
  12392. LC_ALL=C
  12393. export LC_ALL
  12394. LANGUAGE=C
  12395. export LANGUAGE
  12396. # CDPATH.
  12397. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12398. # as_fn_error ERROR [LINENO LOG_FD]
  12399. # ---------------------------------
  12400. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12401. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12402. # script with status $?, using 1 if that was 0.
  12403. as_fn_error ()
  12404. {
  12405. as_status=$?; test $as_status -eq 0 && as_status=1
  12406. if test "$3"; then
  12407. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12408. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12409. fi
  12410. $as_echo "$as_me: error: $1" >&2
  12411. as_fn_exit $as_status
  12412. } # as_fn_error
  12413. # as_fn_set_status STATUS
  12414. # -----------------------
  12415. # Set $? to STATUS, without forking.
  12416. as_fn_set_status ()
  12417. {
  12418. return $1
  12419. } # as_fn_set_status
  12420. # as_fn_exit STATUS
  12421. # -----------------
  12422. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12423. as_fn_exit ()
  12424. {
  12425. set +e
  12426. as_fn_set_status $1
  12427. exit $1
  12428. } # as_fn_exit
  12429. # as_fn_unset VAR
  12430. # ---------------
  12431. # Portably unset VAR.
  12432. as_fn_unset ()
  12433. {
  12434. { eval $1=; unset $1;}
  12435. }
  12436. as_unset=as_fn_unset
  12437. # as_fn_append VAR VALUE
  12438. # ----------------------
  12439. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12440. # advantage of any shell optimizations that allow amortized linear growth over
  12441. # repeated appends, instead of the typical quadratic growth present in naive
  12442. # implementations.
  12443. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12444. eval 'as_fn_append ()
  12445. {
  12446. eval $1+=\$2
  12447. }'
  12448. else
  12449. as_fn_append ()
  12450. {
  12451. eval $1=\$$1\$2
  12452. }
  12453. fi # as_fn_append
  12454. # as_fn_arith ARG...
  12455. # ------------------
  12456. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12457. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12458. # must be portable across $(()) and expr.
  12459. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12460. eval 'as_fn_arith ()
  12461. {
  12462. as_val=$(( $* ))
  12463. }'
  12464. else
  12465. as_fn_arith ()
  12466. {
  12467. as_val=`expr "$@" || test $? -eq 1`
  12468. }
  12469. fi # as_fn_arith
  12470. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12471. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12472. as_expr=expr
  12473. else
  12474. as_expr=false
  12475. fi
  12476. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12477. as_basename=basename
  12478. else
  12479. as_basename=false
  12480. fi
  12481. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12482. as_dirname=dirname
  12483. else
  12484. as_dirname=false
  12485. fi
  12486. as_me=`$as_basename -- "$0" ||
  12487. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12488. X"$0" : 'X\(//\)$' \| \
  12489. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12490. $as_echo X/"$0" |
  12491. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12492. s//\1/
  12493. q
  12494. }
  12495. /^X\/\(\/\/\)$/{
  12496. s//\1/
  12497. q
  12498. }
  12499. /^X\/\(\/\).*/{
  12500. s//\1/
  12501. q
  12502. }
  12503. s/.*/./; q'`
  12504. # Avoid depending upon Character Ranges.
  12505. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12506. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12507. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12508. as_cr_digits='0123456789'
  12509. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12510. ECHO_C= ECHO_N= ECHO_T=
  12511. case `echo -n x` in #(((((
  12512. -n*)
  12513. case `echo 'xy\c'` in
  12514. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12515. xy) ECHO_C='\c';;
  12516. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12517. ECHO_T=' ';;
  12518. esac;;
  12519. *)
  12520. ECHO_N='-n';;
  12521. esac
  12522. rm -f conf$$ conf$$.exe conf$$.file
  12523. if test -d conf$$.dir; then
  12524. rm -f conf$$.dir/conf$$.file
  12525. else
  12526. rm -f conf$$.dir
  12527. mkdir conf$$.dir 2>/dev/null
  12528. fi
  12529. if (echo >conf$$.file) 2>/dev/null; then
  12530. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12531. as_ln_s='ln -s'
  12532. # ... but there are two gotchas:
  12533. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12534. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12535. # In both cases, we have to default to `cp -p'.
  12536. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12537. as_ln_s='cp -p'
  12538. elif ln conf$$.file conf$$ 2>/dev/null; then
  12539. as_ln_s=ln
  12540. else
  12541. as_ln_s='cp -p'
  12542. fi
  12543. else
  12544. as_ln_s='cp -p'
  12545. fi
  12546. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12547. rmdir conf$$.dir 2>/dev/null
  12548. # as_fn_mkdir_p
  12549. # -------------
  12550. # Create "$as_dir" as a directory, including parents if necessary.
  12551. as_fn_mkdir_p ()
  12552. {
  12553. case $as_dir in #(
  12554. -*) as_dir=./$as_dir;;
  12555. esac
  12556. test -d "$as_dir" || eval $as_mkdir_p || {
  12557. as_dirs=
  12558. while :; do
  12559. case $as_dir in #(
  12560. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12561. *) as_qdir=$as_dir;;
  12562. esac
  12563. as_dirs="'$as_qdir' $as_dirs"
  12564. as_dir=`$as_dirname -- "$as_dir" ||
  12565. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12566. X"$as_dir" : 'X\(//\)[^/]' \| \
  12567. X"$as_dir" : 'X\(//\)$' \| \
  12568. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12569. $as_echo X"$as_dir" |
  12570. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12571. s//\1/
  12572. q
  12573. }
  12574. /^X\(\/\/\)[^/].*/{
  12575. s//\1/
  12576. q
  12577. }
  12578. /^X\(\/\/\)$/{
  12579. s//\1/
  12580. q
  12581. }
  12582. /^X\(\/\).*/{
  12583. s//\1/
  12584. q
  12585. }
  12586. s/.*/./; q'`
  12587. test -d "$as_dir" && break
  12588. done
  12589. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12590. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12591. } # as_fn_mkdir_p
  12592. if mkdir -p . 2>/dev/null; then
  12593. as_mkdir_p='mkdir -p "$as_dir"'
  12594. else
  12595. test -d ./-p && rmdir ./-p
  12596. as_mkdir_p=false
  12597. fi
  12598. if test -x / >/dev/null 2>&1; then
  12599. as_test_x='test -x'
  12600. else
  12601. if ls -dL / >/dev/null 2>&1; then
  12602. as_ls_L_option=L
  12603. else
  12604. as_ls_L_option=
  12605. fi
  12606. as_test_x='
  12607. eval sh -c '\''
  12608. if test -d "$1"; then
  12609. test -d "$1/.";
  12610. else
  12611. case $1 in #(
  12612. -*)set "./$1";;
  12613. esac;
  12614. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12615. ???[sx]*):;;*)false;;esac;fi
  12616. '\'' sh
  12617. '
  12618. fi
  12619. as_executable_p=$as_test_x
  12620. # Sed expression to map a string onto a valid CPP name.
  12621. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12622. # Sed expression to map a string onto a valid variable name.
  12623. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12624. exec 6>&1
  12625. ## ----------------------------------- ##
  12626. ## Main body of $CONFIG_STATUS script. ##
  12627. ## ----------------------------------- ##
  12628. _ASEOF
  12629. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12630. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12631. # Save the log message, to keep $0 and so on meaningful, and to
  12632. # report actual input values of CONFIG_FILES etc. instead of their
  12633. # values after options handling.
  12634. ac_log="
  12635. This file was extended by Enca $as_me 1.12, which was
  12636. generated by GNU Autoconf 2.64. Invocation command line was
  12637. CONFIG_FILES = $CONFIG_FILES
  12638. CONFIG_HEADERS = $CONFIG_HEADERS
  12639. CONFIG_LINKS = $CONFIG_LINKS
  12640. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12641. $ $0 $@
  12642. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12643. "
  12644. _ACEOF
  12645. case $ac_config_files in *"
  12646. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12647. esac
  12648. case $ac_config_headers in *"
  12649. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12650. esac
  12651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12652. # Files that config.status was made for.
  12653. config_files="$ac_config_files"
  12654. config_headers="$ac_config_headers"
  12655. config_commands="$ac_config_commands"
  12656. _ACEOF
  12657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12658. ac_cs_usage="\
  12659. \`$as_me' instantiates files and other configuration actions
  12660. from templates according to the current configuration. Unless the files
  12661. and actions are specified as TAGs, all are instantiated by default.
  12662. Usage: $0 [OPTION]... [TAG]...
  12663. -h, --help print this help, then exit
  12664. -V, --version print version number and configuration settings, then exit
  12665. -q, --quiet, --silent
  12666. do not print progress messages
  12667. -d, --debug don't remove temporary files
  12668. --recheck update $as_me by reconfiguring in the same conditions
  12669. --file=FILE[:TEMPLATE]
  12670. instantiate the configuration file FILE
  12671. --header=FILE[:TEMPLATE]
  12672. instantiate the configuration header FILE
  12673. Configuration files:
  12674. $config_files
  12675. Configuration headers:
  12676. $config_headers
  12677. Configuration commands:
  12678. $config_commands
  12679. Report bugs to <Michal Cihar <michal@cihar.com>>."
  12680. _ACEOF
  12681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12682. ac_cs_version="\\
  12683. Enca config.status 1.12
  12684. configured by $0, generated by GNU Autoconf 2.64,
  12685. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12686. Copyright (C) 2009 Free Software Foundation, Inc.
  12687. This config.status script is free software; the Free Software Foundation
  12688. gives unlimited permission to copy, distribute and modify it."
  12689. ac_pwd='$ac_pwd'
  12690. srcdir='$srcdir'
  12691. INSTALL='$INSTALL'
  12692. MKDIR_P='$MKDIR_P'
  12693. AWK='$AWK'
  12694. test -n "\$AWK" || AWK=awk
  12695. _ACEOF
  12696. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12697. # The default lists apply if the user does not specify any file.
  12698. ac_need_defaults=:
  12699. while test $# != 0
  12700. do
  12701. case $1 in
  12702. --*=*)
  12703. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12704. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12705. ac_shift=:
  12706. ;;
  12707. *)
  12708. ac_option=$1
  12709. ac_optarg=$2
  12710. ac_shift=shift
  12711. ;;
  12712. esac
  12713. case $ac_option in
  12714. # Handling of the options.
  12715. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12716. ac_cs_recheck=: ;;
  12717. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12718. $as_echo "$ac_cs_version"; exit ;;
  12719. --debug | --debu | --deb | --de | --d | -d )
  12720. debug=: ;;
  12721. --file | --fil | --fi | --f )
  12722. $ac_shift
  12723. case $ac_optarg in
  12724. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12725. esac
  12726. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12727. ac_need_defaults=false;;
  12728. --header | --heade | --head | --hea )
  12729. $ac_shift
  12730. case $ac_optarg in
  12731. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12732. esac
  12733. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12734. ac_need_defaults=false;;
  12735. --he | --h)
  12736. # Conflict between --help and --header
  12737. as_fn_error "ambiguous option: \`$1'
  12738. Try \`$0 --help' for more information.";;
  12739. --help | --hel | -h )
  12740. $as_echo "$ac_cs_usage"; exit ;;
  12741. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12742. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12743. ac_cs_silent=: ;;
  12744. # This is an error.
  12745. -*) as_fn_error "unrecognized option: \`$1'
  12746. Try \`$0 --help' for more information." ;;
  12747. *) as_fn_append ac_config_targets " $1"
  12748. ac_need_defaults=false ;;
  12749. esac
  12750. shift
  12751. done
  12752. ac_configure_extra_args=
  12753. if $ac_cs_silent; then
  12754. exec 6>/dev/null
  12755. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12756. fi
  12757. _ACEOF
  12758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12759. if \$ac_cs_recheck; then
  12760. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12761. shift
  12762. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12763. CONFIG_SHELL='$SHELL'
  12764. export CONFIG_SHELL
  12765. exec "\$@"
  12766. fi
  12767. _ACEOF
  12768. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12769. exec 5>>config.log
  12770. {
  12771. echo
  12772. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12773. ## Running $as_me. ##
  12774. _ASBOX
  12775. $as_echo "$ac_log"
  12776. } >&5
  12777. _ACEOF
  12778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12779. #
  12780. # INIT-COMMANDS
  12781. #
  12782. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12783. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12784. # if CDPATH is set.
  12785. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12786. sed_quote_subst='$sed_quote_subst'
  12787. double_quote_subst='$double_quote_subst'
  12788. delay_variable_subst='$delay_variable_subst'
  12789. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12790. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12791. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12792. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12793. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12794. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12795. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12796. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12797. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12798. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12799. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12800. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12801. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12802. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12803. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12804. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12805. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12806. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12807. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12808. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12809. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12810. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12811. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12812. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12813. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12814. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12815. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12816. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12817. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12818. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12819. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12820. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12821. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12822. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12823. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12824. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12825. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12826. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12827. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12828. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12829. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12830. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12831. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12832. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12833. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12834. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12835. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12836. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12837. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12838. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12839. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12840. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12841. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12842. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12843. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12844. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12845. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12846. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12847. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12848. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12849. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12850. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12851. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12852. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12853. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12854. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12855. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12856. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12857. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12858. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12859. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12860. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12861. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12862. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12863. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12864. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12865. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12866. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12867. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12868. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12869. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12870. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12871. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12872. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12873. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12874. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12875. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12876. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12877. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12878. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12879. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12880. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12881. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12882. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12883. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12884. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12885. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12886. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12887. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12888. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12889. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12890. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12891. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12892. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12893. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12894. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12895. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12896. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12897. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12898. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12899. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12900. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12901. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12902. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12903. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12904. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12905. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12906. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12907. LTCC='$LTCC'
  12908. LTCFLAGS='$LTCFLAGS'
  12909. compiler='$compiler_DEFAULT'
  12910. # Quote evaled strings.
  12911. for var in SED \
  12912. GREP \
  12913. EGREP \
  12914. FGREP \
  12915. LD \
  12916. NM \
  12917. LN_S \
  12918. lt_SP2NL \
  12919. lt_NL2SP \
  12920. reload_flag \
  12921. OBJDUMP \
  12922. deplibs_check_method \
  12923. file_magic_cmd \
  12924. AR \
  12925. AR_FLAGS \
  12926. STRIP \
  12927. RANLIB \
  12928. CC \
  12929. CFLAGS \
  12930. compiler \
  12931. lt_cv_sys_global_symbol_pipe \
  12932. lt_cv_sys_global_symbol_to_cdecl \
  12933. lt_cv_sys_global_symbol_to_c_name_address \
  12934. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12935. SHELL \
  12936. ECHO \
  12937. lt_prog_compiler_no_builtin_flag \
  12938. lt_prog_compiler_wl \
  12939. lt_prog_compiler_pic \
  12940. lt_prog_compiler_static \
  12941. lt_cv_prog_compiler_c_o \
  12942. need_locks \
  12943. DSYMUTIL \
  12944. NMEDIT \
  12945. LIPO \
  12946. OTOOL \
  12947. OTOOL64 \
  12948. shrext_cmds \
  12949. export_dynamic_flag_spec \
  12950. whole_archive_flag_spec \
  12951. compiler_needs_object \
  12952. with_gnu_ld \
  12953. allow_undefined_flag \
  12954. no_undefined_flag \
  12955. hardcode_libdir_flag_spec \
  12956. hardcode_libdir_flag_spec_ld \
  12957. hardcode_libdir_separator \
  12958. fix_srcfile_path \
  12959. exclude_expsyms \
  12960. include_expsyms \
  12961. file_list_spec \
  12962. variables_saved_for_relink \
  12963. libname_spec \
  12964. library_names_spec \
  12965. soname_spec \
  12966. finish_eval \
  12967. old_striplib \
  12968. striplib; do
  12969. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12970. *[\\\\\\\`\\"\\\$]*)
  12971. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12972. ;;
  12973. *)
  12974. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12975. ;;
  12976. esac
  12977. done
  12978. # Double-quote double-evaled strings.
  12979. for var in reload_cmds \
  12980. old_postinstall_cmds \
  12981. old_postuninstall_cmds \
  12982. old_archive_cmds \
  12983. extract_expsyms_cmds \
  12984. old_archive_from_new_cmds \
  12985. old_archive_from_expsyms_cmds \
  12986. archive_cmds \
  12987. archive_expsym_cmds \
  12988. module_cmds \
  12989. module_expsym_cmds \
  12990. export_symbols_cmds \
  12991. prelink_cmds \
  12992. postinstall_cmds \
  12993. postuninstall_cmds \
  12994. finish_cmds \
  12995. sys_lib_search_path_spec \
  12996. sys_lib_dlsearch_path_spec; do
  12997. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12998. *[\\\\\\\`\\"\\\$]*)
  12999. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13000. ;;
  13001. *)
  13002. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13003. ;;
  13004. esac
  13005. done
  13006. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13007. case \$lt_ECHO in
  13008. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13009. ;;
  13010. esac
  13011. ac_aux_dir='$ac_aux_dir'
  13012. xsi_shell='$xsi_shell'
  13013. lt_shell_append='$lt_shell_append'
  13014. # See if we are running on zsh, and set the options which allow our
  13015. # commands through without removal of \ escapes INIT.
  13016. if test -n "\${ZSH_VERSION+set}" ; then
  13017. setopt NO_GLOB_SUBST
  13018. fi
  13019. PACKAGE='$PACKAGE'
  13020. VERSION='$VERSION'
  13021. TIMESTAMP='$TIMESTAMP'
  13022. RM='$RM'
  13023. ofile='$ofile'
  13024. _ACEOF
  13025. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13026. # Handling of arguments.
  13027. for ac_config_target in $ac_config_targets
  13028. do
  13029. case $ac_config_target in
  13030. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13031. "enca.spec") CONFIG_FILES="$CONFIG_FILES enca.spec" ;;
  13032. "enca.pc") CONFIG_FILES="$CONFIG_FILES enca.pc" ;;
  13033. "devel-docs/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/Makefile" ;;
  13034. "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  13035. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13036. "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
  13037. "script/b-cstocs") CONFIG_FILES="$CONFIG_FILES script/b-cstocs" ;;
  13038. "script/b-map") CONFIG_FILES="$CONFIG_FILES script/b-map" ;;
  13039. "script/b-piconv") CONFIG_FILES="$CONFIG_FILES script/b-piconv" ;;
  13040. "script/b-umap") CONFIG_FILES="$CONFIG_FILES script/b-umap" ;;
  13041. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13042. "src/HELP") CONFIG_FILES="$CONFIG_FILES src/HELP" ;;
  13043. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13044. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  13045. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13046. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13047. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13048. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13049. esac
  13050. done
  13051. # If the user did not use the arguments to specify the items to instantiate,
  13052. # then the envvar interface is used. Set only those that are not.
  13053. # We use the long form for the default assignment because of an extremely
  13054. # bizarre bug on SunOS 4.1.3.
  13055. if $ac_need_defaults; then
  13056. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13057. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13058. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13059. fi
  13060. # Have a temporary directory for convenience. Make it in the build tree
  13061. # simply because there is no reason against having it here, and in addition,
  13062. # creating and moving files from /tmp can sometimes cause problems.
  13063. # Hook for its removal unless debugging.
  13064. # Note that there is a small window in which the directory will not be cleaned:
  13065. # after its creation but before its name has been assigned to `$tmp'.
  13066. $debug ||
  13067. {
  13068. tmp=
  13069. trap 'exit_status=$?
  13070. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13071. ' 0
  13072. trap 'as_fn_exit 1' 1 2 13 15
  13073. }
  13074. # Create a (secure) tmp directory for tmp files.
  13075. {
  13076. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13077. test -n "$tmp" && test -d "$tmp"
  13078. } ||
  13079. {
  13080. tmp=./conf$$-$RANDOM
  13081. (umask 077 && mkdir "$tmp")
  13082. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13083. # Set up the scripts for CONFIG_FILES section.
  13084. # No need to generate them if there are no CONFIG_FILES.
  13085. # This happens for instance with `./config.status config.h'.
  13086. if test -n "$CONFIG_FILES"; then
  13087. ac_cr=`echo X | tr X '\015'`
  13088. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13089. # But we know of no other shell where ac_cr would be empty at this
  13090. # point, so we can use a bashism as a fallback.
  13091. if test "x$ac_cr" = x; then
  13092. eval ac_cr=\$\'\\r\'
  13093. fi
  13094. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13095. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13096. ac_cs_awk_cr='\r'
  13097. else
  13098. ac_cs_awk_cr=$ac_cr
  13099. fi
  13100. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13101. _ACEOF
  13102. {
  13103. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13104. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13105. echo "_ACEOF"
  13106. } >conf$$subs.sh ||
  13107. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13108. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13109. ac_delim='%!_!# '
  13110. for ac_last_try in false false false false false :; do
  13111. . ./conf$$subs.sh ||
  13112. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13113. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13114. if test $ac_delim_n = $ac_delim_num; then
  13115. break
  13116. elif $ac_last_try; then
  13117. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13118. else
  13119. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13120. fi
  13121. done
  13122. rm -f conf$$subs.sh
  13123. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13124. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13125. _ACEOF
  13126. sed -n '
  13127. h
  13128. s/^/S["/; s/!.*/"]=/
  13129. p
  13130. g
  13131. s/^[^!]*!//
  13132. :repl
  13133. t repl
  13134. s/'"$ac_delim"'$//
  13135. t delim
  13136. :nl
  13137. h
  13138. s/\(.\{148\}\).*/\1/
  13139. t more1
  13140. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13141. p
  13142. n
  13143. b repl
  13144. :more1
  13145. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13146. p
  13147. g
  13148. s/.\{148\}//
  13149. t nl
  13150. :delim
  13151. h
  13152. s/\(.\{148\}\).*/\1/
  13153. t more2
  13154. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13155. p
  13156. b
  13157. :more2
  13158. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13159. p
  13160. g
  13161. s/.\{148\}//
  13162. t delim
  13163. ' <conf$$subs.awk | sed '
  13164. /^[^""]/{
  13165. N
  13166. s/\n//
  13167. }
  13168. ' >>$CONFIG_STATUS || ac_write_fail=1
  13169. rm -f conf$$subs.awk
  13170. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13171. _ACAWK
  13172. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13173. for (key in S) S_is_set[key] = 1
  13174. FS = ""
  13175. }
  13176. {
  13177. line = $ 0
  13178. nfields = split(line, field, "@")
  13179. substed = 0
  13180. len = length(field[1])
  13181. for (i = 2; i < nfields; i++) {
  13182. key = field[i]
  13183. keylen = length(key)
  13184. if (S_is_set[key]) {
  13185. value = S[key]
  13186. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13187. len += length(value) + length(field[++i])
  13188. substed = 1
  13189. } else
  13190. len += 1 + keylen
  13191. }
  13192. print line
  13193. }
  13194. _ACAWK
  13195. _ACEOF
  13196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13197. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13198. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13199. else
  13200. cat
  13201. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13202. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13203. _ACEOF
  13204. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13205. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13206. # trailing colons and then remove the whole line if VPATH becomes empty
  13207. # (actually we leave an empty line to preserve line numbers).
  13208. if test "x$srcdir" = x.; then
  13209. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13210. s/:*\$(srcdir):*/:/
  13211. s/:*\${srcdir}:*/:/
  13212. s/:*@srcdir@:*/:/
  13213. s/^\([^=]*=[ ]*\):*/\1/
  13214. s/:*$//
  13215. s/^[^=]*=[ ]*$//
  13216. }'
  13217. fi
  13218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13219. fi # test -n "$CONFIG_FILES"
  13220. # Set up the scripts for CONFIG_HEADERS section.
  13221. # No need to generate them if there are no CONFIG_HEADERS.
  13222. # This happens for instance with `./config.status Makefile'.
  13223. if test -n "$CONFIG_HEADERS"; then
  13224. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13225. BEGIN {
  13226. _ACEOF
  13227. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13228. # here-document in config.status, that substitutes the proper values into
  13229. # config.h.in to produce config.h.
  13230. # Create a delimiter string that does not exist in confdefs.h, to ease
  13231. # handling of long lines.
  13232. ac_delim='%!_!# '
  13233. for ac_last_try in false false :; do
  13234. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13235. if test -z "$ac_t"; then
  13236. break
  13237. elif $ac_last_try; then
  13238. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13239. else
  13240. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13241. fi
  13242. done
  13243. # For the awk script, D is an array of macro values keyed by name,
  13244. # likewise P contains macro parameters if any. Preserve backslash
  13245. # newline sequences.
  13246. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13247. sed -n '
  13248. s/.\{148\}/&'"$ac_delim"'/g
  13249. t rset
  13250. :rset
  13251. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13252. t def
  13253. d
  13254. :def
  13255. s/\\$//
  13256. t bsnl
  13257. s/["\\]/\\&/g
  13258. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13259. D["\1"]=" \3"/p
  13260. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13261. d
  13262. :bsnl
  13263. s/["\\]/\\&/g
  13264. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13265. D["\1"]=" \3\\\\\\n"\\/p
  13266. t cont
  13267. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13268. t cont
  13269. d
  13270. :cont
  13271. n
  13272. s/.\{148\}/&'"$ac_delim"'/g
  13273. t clear
  13274. :clear
  13275. s/\\$//
  13276. t bsnlc
  13277. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13278. d
  13279. :bsnlc
  13280. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13281. b cont
  13282. ' <confdefs.h | sed '
  13283. s/'"$ac_delim"'/"\\\
  13284. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13285. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13286. for (key in D) D_is_set[key] = 1
  13287. FS = ""
  13288. }
  13289. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13290. line = \$ 0
  13291. split(line, arg, " ")
  13292. if (arg[1] == "#") {
  13293. defundef = arg[2]
  13294. mac1 = arg[3]
  13295. } else {
  13296. defundef = substr(arg[1], 2)
  13297. mac1 = arg[2]
  13298. }
  13299. split(mac1, mac2, "(") #)
  13300. macro = mac2[1]
  13301. prefix = substr(line, 1, index(line, defundef) - 1)
  13302. if (D_is_set[macro]) {
  13303. # Preserve the white space surrounding the "#".
  13304. print prefix "define", macro P[macro] D[macro]
  13305. next
  13306. } else {
  13307. # Replace #undef with comments. This is necessary, for example,
  13308. # in the case of _POSIX_SOURCE, which is predefined and required
  13309. # on some systems where configure will not decide to define it.
  13310. if (defundef == "undef") {
  13311. print "/*", prefix defundef, macro, "*/"
  13312. next
  13313. }
  13314. }
  13315. }
  13316. { print }
  13317. _ACAWK
  13318. _ACEOF
  13319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13320. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13321. fi # test -n "$CONFIG_HEADERS"
  13322. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13323. shift
  13324. for ac_tag
  13325. do
  13326. case $ac_tag in
  13327. :[FHLC]) ac_mode=$ac_tag; continue;;
  13328. esac
  13329. case $ac_mode$ac_tag in
  13330. :[FHL]*:*);;
  13331. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13332. :[FH]-) ac_tag=-:-;;
  13333. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13334. esac
  13335. ac_save_IFS=$IFS
  13336. IFS=:
  13337. set x $ac_tag
  13338. IFS=$ac_save_IFS
  13339. shift
  13340. ac_file=$1
  13341. shift
  13342. case $ac_mode in
  13343. :L) ac_source=$1;;
  13344. :[FH])
  13345. ac_file_inputs=
  13346. for ac_f
  13347. do
  13348. case $ac_f in
  13349. -) ac_f="$tmp/stdin";;
  13350. *) # Look for the file first in the build tree, then in the source tree
  13351. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13352. # because $ac_f cannot contain `:'.
  13353. test -f "$ac_f" ||
  13354. case $ac_f in
  13355. [\\/$]*) false;;
  13356. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13357. esac ||
  13358. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13359. esac
  13360. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13361. as_fn_append ac_file_inputs " '$ac_f'"
  13362. done
  13363. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13364. # use $as_me), people would be surprised to read:
  13365. # /* config.h. Generated by config.status. */
  13366. configure_input='Generated from '`
  13367. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13368. `' by configure.'
  13369. if test x"$ac_file" != x-; then
  13370. configure_input="$ac_file. $configure_input"
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13372. $as_echo "$as_me: creating $ac_file" >&6;}
  13373. fi
  13374. # Neutralize special characters interpreted by sed in replacement strings.
  13375. case $configure_input in #(
  13376. *\&* | *\|* | *\\* )
  13377. ac_sed_conf_input=`$as_echo "$configure_input" |
  13378. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13379. *) ac_sed_conf_input=$configure_input;;
  13380. esac
  13381. case $ac_tag in
  13382. *:-:* | *:-) cat >"$tmp/stdin" \
  13383. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13384. esac
  13385. ;;
  13386. esac
  13387. ac_dir=`$as_dirname -- "$ac_file" ||
  13388. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13389. X"$ac_file" : 'X\(//\)[^/]' \| \
  13390. X"$ac_file" : 'X\(//\)$' \| \
  13391. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13392. $as_echo X"$ac_file" |
  13393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13394. s//\1/
  13395. q
  13396. }
  13397. /^X\(\/\/\)[^/].*/{
  13398. s//\1/
  13399. q
  13400. }
  13401. /^X\(\/\/\)$/{
  13402. s//\1/
  13403. q
  13404. }
  13405. /^X\(\/\).*/{
  13406. s//\1/
  13407. q
  13408. }
  13409. s/.*/./; q'`
  13410. as_dir="$ac_dir"; as_fn_mkdir_p
  13411. ac_builddir=.
  13412. case "$ac_dir" in
  13413. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13414. *)
  13415. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13416. # A ".." for each directory in $ac_dir_suffix.
  13417. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13418. case $ac_top_builddir_sub in
  13419. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13420. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13421. esac ;;
  13422. esac
  13423. ac_abs_top_builddir=$ac_pwd
  13424. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13425. # for backward compatibility:
  13426. ac_top_builddir=$ac_top_build_prefix
  13427. case $srcdir in
  13428. .) # We are building in place.
  13429. ac_srcdir=.
  13430. ac_top_srcdir=$ac_top_builddir_sub
  13431. ac_abs_top_srcdir=$ac_pwd ;;
  13432. [\\/]* | ?:[\\/]* ) # Absolute name.
  13433. ac_srcdir=$srcdir$ac_dir_suffix;
  13434. ac_top_srcdir=$srcdir
  13435. ac_abs_top_srcdir=$srcdir ;;
  13436. *) # Relative name.
  13437. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13438. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13439. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13440. esac
  13441. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13442. case $ac_mode in
  13443. :F)
  13444. #
  13445. # CONFIG_FILE
  13446. #
  13447. case $INSTALL in
  13448. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13449. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13450. esac
  13451. ac_MKDIR_P=$MKDIR_P
  13452. case $MKDIR_P in
  13453. [\\/$]* | ?:[\\/]* ) ;;
  13454. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13455. esac
  13456. _ACEOF
  13457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13458. # If the template does not know about datarootdir, expand it.
  13459. # FIXME: This hack should be removed a few years after 2.60.
  13460. ac_datarootdir_hack=; ac_datarootdir_seen=
  13461. ac_sed_dataroot='
  13462. /datarootdir/ {
  13463. p
  13464. q
  13465. }
  13466. /@datadir@/p
  13467. /@docdir@/p
  13468. /@infodir@/p
  13469. /@localedir@/p
  13470. /@mandir@/p'
  13471. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13472. *datarootdir*) ac_datarootdir_seen=yes;;
  13473. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13475. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13476. _ACEOF
  13477. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13478. ac_datarootdir_hack='
  13479. s&@datadir@&$datadir&g
  13480. s&@docdir@&$docdir&g
  13481. s&@infodir@&$infodir&g
  13482. s&@localedir@&$localedir&g
  13483. s&@mandir@&$mandir&g
  13484. s&\\\${datarootdir}&$datarootdir&g' ;;
  13485. esac
  13486. _ACEOF
  13487. # Neutralize VPATH when `$srcdir' = `.'.
  13488. # Shell code in configure.ac might set extrasub.
  13489. # FIXME: do we really want to maintain this feature?
  13490. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13491. ac_sed_extra="$ac_vpsub
  13492. $extrasub
  13493. _ACEOF
  13494. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13495. :t
  13496. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13497. s|@configure_input@|$ac_sed_conf_input|;t t
  13498. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13499. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13500. s&@srcdir@&$ac_srcdir&;t t
  13501. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13502. s&@top_srcdir@&$ac_top_srcdir&;t t
  13503. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13504. s&@builddir@&$ac_builddir&;t t
  13505. s&@abs_builddir@&$ac_abs_builddir&;t t
  13506. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13507. s&@INSTALL@&$ac_INSTALL&;t t
  13508. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13509. $ac_datarootdir_hack
  13510. "
  13511. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13512. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13513. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13514. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13515. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13517. which seems to be undefined. Please make sure it is defined." >&5
  13518. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13519. which seems to be undefined. Please make sure it is defined." >&2;}
  13520. rm -f "$tmp/stdin"
  13521. case $ac_file in
  13522. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13523. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13524. esac \
  13525. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13526. ;;
  13527. :H)
  13528. #
  13529. # CONFIG_HEADER
  13530. #
  13531. if test x"$ac_file" != x-; then
  13532. {
  13533. $as_echo "/* $configure_input */" \
  13534. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13535. } >"$tmp/config.h" \
  13536. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13537. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13539. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13540. else
  13541. rm -f "$ac_file"
  13542. mv "$tmp/config.h" "$ac_file" \
  13543. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13544. fi
  13545. else
  13546. $as_echo "/* $configure_input */" \
  13547. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13548. || as_fn_error "could not create -" "$LINENO" 5
  13549. fi
  13550. # Compute "$ac_file"'s index in $config_headers.
  13551. _am_arg="$ac_file"
  13552. _am_stamp_count=1
  13553. for _am_header in $config_headers :; do
  13554. case $_am_header in
  13555. $_am_arg | $_am_arg:* )
  13556. break ;;
  13557. * )
  13558. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13559. esac
  13560. done
  13561. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13562. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13563. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13564. X"$_am_arg" : 'X\(//\)$' \| \
  13565. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13566. $as_echo X"$_am_arg" |
  13567. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13568. s//\1/
  13569. q
  13570. }
  13571. /^X\(\/\/\)[^/].*/{
  13572. s//\1/
  13573. q
  13574. }
  13575. /^X\(\/\/\)$/{
  13576. s//\1/
  13577. q
  13578. }
  13579. /^X\(\/\).*/{
  13580. s//\1/
  13581. q
  13582. }
  13583. s/.*/./; q'`/stamp-h$_am_stamp_count
  13584. ;;
  13585. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13586. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13587. ;;
  13588. esac
  13589. case $ac_file$ac_mode in
  13590. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13591. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13592. # are listed without --file. Let's play safe and only enable the eval
  13593. # if we detect the quoting.
  13594. case $CONFIG_FILES in
  13595. *\'*) eval set x "$CONFIG_FILES" ;;
  13596. *) set x $CONFIG_FILES ;;
  13597. esac
  13598. shift
  13599. for mf
  13600. do
  13601. # Strip MF so we end up with the name of the file.
  13602. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13603. # Check whether this is an Automake generated Makefile or not.
  13604. # We used to match only the files named `Makefile.in', but
  13605. # some people rename them; so instead we look at the file content.
  13606. # Grep'ing the first line is not enough: some people post-process
  13607. # each Makefile.in and add a new line on top of each file to say so.
  13608. # Grep'ing the whole file is not good either: AIX grep has a line
  13609. # limit of 2048, but all sed's we know have understand at least 4000.
  13610. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13611. dirpart=`$as_dirname -- "$mf" ||
  13612. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13613. X"$mf" : 'X\(//\)[^/]' \| \
  13614. X"$mf" : 'X\(//\)$' \| \
  13615. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13616. $as_echo X"$mf" |
  13617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13618. s//\1/
  13619. q
  13620. }
  13621. /^X\(\/\/\)[^/].*/{
  13622. s//\1/
  13623. q
  13624. }
  13625. /^X\(\/\/\)$/{
  13626. s//\1/
  13627. q
  13628. }
  13629. /^X\(\/\).*/{
  13630. s//\1/
  13631. q
  13632. }
  13633. s/.*/./; q'`
  13634. else
  13635. continue
  13636. fi
  13637. # Extract the definition of DEPDIR, am__include, and am__quote
  13638. # from the Makefile without running `make'.
  13639. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13640. test -z "$DEPDIR" && continue
  13641. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13642. test -z "am__include" && continue
  13643. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13644. # When using ansi2knr, U may be empty or an underscore; expand it
  13645. U=`sed -n 's/^U = //p' < "$mf"`
  13646. # Find all dependency output files, they are included files with
  13647. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13648. # simplest approach to changing $(DEPDIR) to its actual value in the
  13649. # expansion.
  13650. for file in `sed -n "
  13651. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13652. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13653. # Make sure the directory exists.
  13654. test -f "$dirpart/$file" && continue
  13655. fdir=`$as_dirname -- "$file" ||
  13656. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13657. X"$file" : 'X\(//\)[^/]' \| \
  13658. X"$file" : 'X\(//\)$' \| \
  13659. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13660. $as_echo X"$file" |
  13661. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13662. s//\1/
  13663. q
  13664. }
  13665. /^X\(\/\/\)[^/].*/{
  13666. s//\1/
  13667. q
  13668. }
  13669. /^X\(\/\/\)$/{
  13670. s//\1/
  13671. q
  13672. }
  13673. /^X\(\/\).*/{
  13674. s//\1/
  13675. q
  13676. }
  13677. s/.*/./; q'`
  13678. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13679. # echo "creating $dirpart/$file"
  13680. echo '# dummy' > "$dirpart/$file"
  13681. done
  13682. done
  13683. }
  13684. ;;
  13685. "libtool":C)
  13686. # See if we are running on zsh, and set the options which allow our
  13687. # commands through without removal of \ escapes.
  13688. if test -n "${ZSH_VERSION+set}" ; then
  13689. setopt NO_GLOB_SUBST
  13690. fi
  13691. cfgfile="${ofile}T"
  13692. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13693. $RM "$cfgfile"
  13694. cat <<_LT_EOF >> "$cfgfile"
  13695. #! $SHELL
  13696. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13697. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13698. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13699. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13700. #
  13701. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13702. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13703. # Written by Gordon Matzigkeit, 1996
  13704. #
  13705. # This file is part of GNU Libtool.
  13706. #
  13707. # GNU Libtool is free software; you can redistribute it and/or
  13708. # modify it under the terms of the GNU General Public License as
  13709. # published by the Free Software Foundation; either version 2 of
  13710. # the License, or (at your option) any later version.
  13711. #
  13712. # As a special exception to the GNU General Public License,
  13713. # if you distribute this file as part of a program or library that
  13714. # is built using GNU Libtool, you may include this file under the
  13715. # same distribution terms that you use for the rest of that program.
  13716. #
  13717. # GNU Libtool is distributed in the hope that it will be useful,
  13718. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13719. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13720. # GNU General Public License for more details.
  13721. #
  13722. # You should have received a copy of the GNU General Public License
  13723. # along with GNU Libtool; see the file COPYING. If not, a copy
  13724. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13725. # obtained by writing to the Free Software Foundation, Inc.,
  13726. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13727. # The names of the tagged configurations supported by this script.
  13728. available_tags=""
  13729. # ### BEGIN LIBTOOL CONFIG
  13730. # Which release of libtool.m4 was used?
  13731. macro_version=$macro_version
  13732. macro_revision=$macro_revision
  13733. # Whether or not to build shared libraries.
  13734. build_libtool_libs=$enable_shared
  13735. # Whether or not to build static libraries.
  13736. build_old_libs=$enable_static
  13737. # What type of objects to build.
  13738. pic_mode=$pic_mode
  13739. # Whether or not to optimize for fast installation.
  13740. fast_install=$enable_fast_install
  13741. # The host system.
  13742. host_alias=$host_alias
  13743. host=$host
  13744. host_os=$host_os
  13745. # The build system.
  13746. build_alias=$build_alias
  13747. build=$build
  13748. build_os=$build_os
  13749. # A sed program that does not truncate output.
  13750. SED=$lt_SED
  13751. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13752. Xsed="\$SED -e 1s/^X//"
  13753. # A grep program that handles long lines.
  13754. GREP=$lt_GREP
  13755. # An ERE matcher.
  13756. EGREP=$lt_EGREP
  13757. # A literal string matcher.
  13758. FGREP=$lt_FGREP
  13759. # A BSD- or MS-compatible name lister.
  13760. NM=$lt_NM
  13761. # Whether we need soft or hard links.
  13762. LN_S=$lt_LN_S
  13763. # What is the maximum length of a command?
  13764. max_cmd_len=$max_cmd_len
  13765. # Object file suffix (normally "o").
  13766. objext=$ac_objext
  13767. # Executable file suffix (normally "").
  13768. exeext=$exeext
  13769. # whether the shell understands "unset".
  13770. lt_unset=$lt_unset
  13771. # turn spaces into newlines.
  13772. SP2NL=$lt_lt_SP2NL
  13773. # turn newlines into spaces.
  13774. NL2SP=$lt_lt_NL2SP
  13775. # How to create reloadable object files.
  13776. reload_flag=$lt_reload_flag
  13777. reload_cmds=$lt_reload_cmds
  13778. # An object symbol dumper.
  13779. OBJDUMP=$lt_OBJDUMP
  13780. # Method to check whether dependent libraries are shared objects.
  13781. deplibs_check_method=$lt_deplibs_check_method
  13782. # Command to use when deplibs_check_method == "file_magic".
  13783. file_magic_cmd=$lt_file_magic_cmd
  13784. # The archiver.
  13785. AR=$lt_AR
  13786. AR_FLAGS=$lt_AR_FLAGS
  13787. # A symbol stripping program.
  13788. STRIP=$lt_STRIP
  13789. # Commands used to install an old-style archive.
  13790. RANLIB=$lt_RANLIB
  13791. old_postinstall_cmds=$lt_old_postinstall_cmds
  13792. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13793. # A C compiler.
  13794. LTCC=$lt_CC
  13795. # LTCC compiler flags.
  13796. LTCFLAGS=$lt_CFLAGS
  13797. # Take the output of nm and produce a listing of raw symbols and C names.
  13798. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13799. # Transform the output of nm in a proper C declaration.
  13800. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13801. # Transform the output of nm in a C name address pair.
  13802. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13803. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13804. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13805. # The name of the directory that contains temporary libtool files.
  13806. objdir=$objdir
  13807. # Shell to use when invoking shell scripts.
  13808. SHELL=$lt_SHELL
  13809. # An echo program that does not interpret backslashes.
  13810. ECHO=$lt_ECHO
  13811. # Used to examine libraries when file_magic_cmd begins with "file".
  13812. MAGIC_CMD=$MAGIC_CMD
  13813. # Must we lock files when doing compilation?
  13814. need_locks=$lt_need_locks
  13815. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13816. DSYMUTIL=$lt_DSYMUTIL
  13817. # Tool to change global to local symbols on Mac OS X.
  13818. NMEDIT=$lt_NMEDIT
  13819. # Tool to manipulate fat objects and archives on Mac OS X.
  13820. LIPO=$lt_LIPO
  13821. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13822. OTOOL=$lt_OTOOL
  13823. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13824. OTOOL64=$lt_OTOOL64
  13825. # Old archive suffix (normally "a").
  13826. libext=$libext
  13827. # Shared library suffix (normally ".so").
  13828. shrext_cmds=$lt_shrext_cmds
  13829. # The commands to extract the exported symbol list from a shared archive.
  13830. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13831. # Variables whose values should be saved in libtool wrapper scripts and
  13832. # restored at link time.
  13833. variables_saved_for_relink=$lt_variables_saved_for_relink
  13834. # Do we need the "lib" prefix for modules?
  13835. need_lib_prefix=$need_lib_prefix
  13836. # Do we need a version for libraries?
  13837. need_version=$need_version
  13838. # Library versioning type.
  13839. version_type=$version_type
  13840. # Shared library runtime path variable.
  13841. runpath_var=$runpath_var
  13842. # Shared library path variable.
  13843. shlibpath_var=$shlibpath_var
  13844. # Is shlibpath searched before the hard-coded library search path?
  13845. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13846. # Format of library name prefix.
  13847. libname_spec=$lt_libname_spec
  13848. # List of archive names. First name is the real one, the rest are links.
  13849. # The last name is the one that the linker finds with -lNAME
  13850. library_names_spec=$lt_library_names_spec
  13851. # The coded name of the library, if different from the real name.
  13852. soname_spec=$lt_soname_spec
  13853. # Command to use after installation of a shared archive.
  13854. postinstall_cmds=$lt_postinstall_cmds
  13855. # Command to use after uninstallation of a shared archive.
  13856. postuninstall_cmds=$lt_postuninstall_cmds
  13857. # Commands used to finish a libtool library installation in a directory.
  13858. finish_cmds=$lt_finish_cmds
  13859. # As "finish_cmds", except a single script fragment to be evaled but
  13860. # not shown.
  13861. finish_eval=$lt_finish_eval
  13862. # Whether we should hardcode library paths into libraries.
  13863. hardcode_into_libs=$hardcode_into_libs
  13864. # Compile-time system search path for libraries.
  13865. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13866. # Run-time system search path for libraries.
  13867. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13868. # Whether dlopen is supported.
  13869. dlopen_support=$enable_dlopen
  13870. # Whether dlopen of programs is supported.
  13871. dlopen_self=$enable_dlopen_self
  13872. # Whether dlopen of statically linked programs is supported.
  13873. dlopen_self_static=$enable_dlopen_self_static
  13874. # Commands to strip libraries.
  13875. old_striplib=$lt_old_striplib
  13876. striplib=$lt_striplib
  13877. # The linker used to build libraries.
  13878. LD=$lt_LD
  13879. # Commands used to build an old-style archive.
  13880. old_archive_cmds=$lt_old_archive_cmds
  13881. # A language specific compiler.
  13882. CC=$lt_compiler
  13883. # Is the compiler the GNU compiler?
  13884. with_gcc=$GCC
  13885. # Compiler flag to turn off builtin functions.
  13886. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13887. # How to pass a linker flag through the compiler.
  13888. wl=$lt_lt_prog_compiler_wl
  13889. # Additional compiler flags for building library objects.
  13890. pic_flag=$lt_lt_prog_compiler_pic
  13891. # Compiler flag to prevent dynamic linking.
  13892. link_static_flag=$lt_lt_prog_compiler_static
  13893. # Does compiler simultaneously support -c and -o options?
  13894. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13895. # Whether or not to add -lc for building shared libraries.
  13896. build_libtool_need_lc=$archive_cmds_need_lc
  13897. # Whether or not to disallow shared libs when runtime libs are static.
  13898. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13899. # Compiler flag to allow reflexive dlopens.
  13900. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13901. # Compiler flag to generate shared objects directly from archives.
  13902. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13903. # Whether the compiler copes with passing no objects directly.
  13904. compiler_needs_object=$lt_compiler_needs_object
  13905. # Create an old-style archive from a shared archive.
  13906. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13907. # Create a temporary old-style archive to link instead of a shared archive.
  13908. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13909. # Commands used to build a shared archive.
  13910. archive_cmds=$lt_archive_cmds
  13911. archive_expsym_cmds=$lt_archive_expsym_cmds
  13912. # Commands used to build a loadable module if different from building
  13913. # a shared archive.
  13914. module_cmds=$lt_module_cmds
  13915. module_expsym_cmds=$lt_module_expsym_cmds
  13916. # Whether we are building with GNU ld or not.
  13917. with_gnu_ld=$lt_with_gnu_ld
  13918. # Flag that allows shared libraries with undefined symbols to be built.
  13919. allow_undefined_flag=$lt_allow_undefined_flag
  13920. # Flag that enforces no undefined symbols.
  13921. no_undefined_flag=$lt_no_undefined_flag
  13922. # Flag to hardcode \$libdir into a binary during linking.
  13923. # This must work even if \$libdir does not exist
  13924. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13925. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13926. # during linking. This must work even if \$libdir does not exist.
  13927. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13928. # Whether we need a single "-rpath" flag with a separated argument.
  13929. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13930. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13931. # DIR into the resulting binary.
  13932. hardcode_direct=$hardcode_direct
  13933. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13934. # DIR into the resulting binary and the resulting library dependency is
  13935. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13936. # library is relocated.
  13937. hardcode_direct_absolute=$hardcode_direct_absolute
  13938. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13939. # into the resulting binary.
  13940. hardcode_minus_L=$hardcode_minus_L
  13941. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13942. # into the resulting binary.
  13943. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13944. # Set to "yes" if building a shared library automatically hardcodes DIR
  13945. # into the library and all subsequent libraries and executables linked
  13946. # against it.
  13947. hardcode_automatic=$hardcode_automatic
  13948. # Set to yes if linker adds runtime paths of dependent libraries
  13949. # to runtime path list.
  13950. inherit_rpath=$inherit_rpath
  13951. # Whether libtool must link a program against all its dependency libraries.
  13952. link_all_deplibs=$link_all_deplibs
  13953. # Fix the shell variable \$srcfile for the compiler.
  13954. fix_srcfile_path=$lt_fix_srcfile_path
  13955. # Set to "yes" if exported symbols are required.
  13956. always_export_symbols=$always_export_symbols
  13957. # The commands to list exported symbols.
  13958. export_symbols_cmds=$lt_export_symbols_cmds
  13959. # Symbols that should not be listed in the preloaded symbols.
  13960. exclude_expsyms=$lt_exclude_expsyms
  13961. # Symbols that must always be exported.
  13962. include_expsyms=$lt_include_expsyms
  13963. # Commands necessary for linking programs (against libraries) with templates.
  13964. prelink_cmds=$lt_prelink_cmds
  13965. # Specify filename containing input files.
  13966. file_list_spec=$lt_file_list_spec
  13967. # How to hardcode a shared library path into an executable.
  13968. hardcode_action=$hardcode_action
  13969. # ### END LIBTOOL CONFIG
  13970. _LT_EOF
  13971. case $host_os in
  13972. aix3*)
  13973. cat <<\_LT_EOF >> "$cfgfile"
  13974. # AIX sometimes has problems with the GCC collect2 program. For some
  13975. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13976. # vanish in a puff of smoke.
  13977. if test "X${COLLECT_NAMES+set}" != Xset; then
  13978. COLLECT_NAMES=
  13979. export COLLECT_NAMES
  13980. fi
  13981. _LT_EOF
  13982. ;;
  13983. esac
  13984. ltmain="$ac_aux_dir/ltmain.sh"
  13985. # We use sed instead of cat because bash on DJGPP gets confused if
  13986. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13987. # text mode, it properly converts lines to CR/LF. This bash problem
  13988. # is reportedly fixed, but why not run on old versions too?
  13989. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13990. || (rm -f "$cfgfile"; exit 1)
  13991. case $xsi_shell in
  13992. yes)
  13993. cat << \_LT_EOF >> "$cfgfile"
  13994. # func_dirname file append nondir_replacement
  13995. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13996. # otherwise set result to NONDIR_REPLACEMENT.
  13997. func_dirname ()
  13998. {
  13999. case ${1} in
  14000. */*) func_dirname_result="${1%/*}${2}" ;;
  14001. * ) func_dirname_result="${3}" ;;
  14002. esac
  14003. }
  14004. # func_basename file
  14005. func_basename ()
  14006. {
  14007. func_basename_result="${1##*/}"
  14008. }
  14009. # func_dirname_and_basename file append nondir_replacement
  14010. # perform func_basename and func_dirname in a single function
  14011. # call:
  14012. # dirname: Compute the dirname of FILE. If nonempty,
  14013. # add APPEND to the result, otherwise set result
  14014. # to NONDIR_REPLACEMENT.
  14015. # value returned in "$func_dirname_result"
  14016. # basename: Compute filename of FILE.
  14017. # value retuned in "$func_basename_result"
  14018. # Implementation must be kept synchronized with func_dirname
  14019. # and func_basename. For efficiency, we do not delegate to
  14020. # those functions but instead duplicate the functionality here.
  14021. func_dirname_and_basename ()
  14022. {
  14023. case ${1} in
  14024. */*) func_dirname_result="${1%/*}${2}" ;;
  14025. * ) func_dirname_result="${3}" ;;
  14026. esac
  14027. func_basename_result="${1##*/}"
  14028. }
  14029. # func_stripname prefix suffix name
  14030. # strip PREFIX and SUFFIX off of NAME.
  14031. # PREFIX and SUFFIX must not contain globbing or regex special
  14032. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14033. # dot (in which case that matches only a dot).
  14034. func_stripname ()
  14035. {
  14036. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14037. # positional parameters, so assign one to ordinary parameter first.
  14038. func_stripname_result=${3}
  14039. func_stripname_result=${func_stripname_result#"${1}"}
  14040. func_stripname_result=${func_stripname_result%"${2}"}
  14041. }
  14042. # func_opt_split
  14043. func_opt_split ()
  14044. {
  14045. func_opt_split_opt=${1%%=*}
  14046. func_opt_split_arg=${1#*=}
  14047. }
  14048. # func_lo2o object
  14049. func_lo2o ()
  14050. {
  14051. case ${1} in
  14052. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14053. *) func_lo2o_result=${1} ;;
  14054. esac
  14055. }
  14056. # func_xform libobj-or-source
  14057. func_xform ()
  14058. {
  14059. func_xform_result=${1%.*}.lo
  14060. }
  14061. # func_arith arithmetic-term...
  14062. func_arith ()
  14063. {
  14064. func_arith_result=$(( $* ))
  14065. }
  14066. # func_len string
  14067. # STRING may not start with a hyphen.
  14068. func_len ()
  14069. {
  14070. func_len_result=${#1}
  14071. }
  14072. _LT_EOF
  14073. ;;
  14074. *) # Bourne compatible functions.
  14075. cat << \_LT_EOF >> "$cfgfile"
  14076. # func_dirname file append nondir_replacement
  14077. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14078. # otherwise set result to NONDIR_REPLACEMENT.
  14079. func_dirname ()
  14080. {
  14081. # Extract subdirectory from the argument.
  14082. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14083. if test "X$func_dirname_result" = "X${1}"; then
  14084. func_dirname_result="${3}"
  14085. else
  14086. func_dirname_result="$func_dirname_result${2}"
  14087. fi
  14088. }
  14089. # func_basename file
  14090. func_basename ()
  14091. {
  14092. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14093. }
  14094. # func_stripname prefix suffix name
  14095. # strip PREFIX and SUFFIX off of NAME.
  14096. # PREFIX and SUFFIX must not contain globbing or regex special
  14097. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14098. # dot (in which case that matches only a dot).
  14099. # func_strip_suffix prefix name
  14100. func_stripname ()
  14101. {
  14102. case ${2} in
  14103. .*) func_stripname_result=`$ECHO "X${3}" \
  14104. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14105. *) func_stripname_result=`$ECHO "X${3}" \
  14106. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14107. esac
  14108. }
  14109. # sed scripts:
  14110. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14111. my_sed_long_arg='1s/^-[^=]*=//'
  14112. # func_opt_split
  14113. func_opt_split ()
  14114. {
  14115. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14116. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14117. }
  14118. # func_lo2o object
  14119. func_lo2o ()
  14120. {
  14121. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14122. }
  14123. # func_xform libobj-or-source
  14124. func_xform ()
  14125. {
  14126. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14127. }
  14128. # func_arith arithmetic-term...
  14129. func_arith ()
  14130. {
  14131. func_arith_result=`expr "$@"`
  14132. }
  14133. # func_len string
  14134. # STRING may not start with a hyphen.
  14135. func_len ()
  14136. {
  14137. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14138. }
  14139. _LT_EOF
  14140. esac
  14141. case $lt_shell_append in
  14142. yes)
  14143. cat << \_LT_EOF >> "$cfgfile"
  14144. # func_append var value
  14145. # Append VALUE to the end of shell variable VAR.
  14146. func_append ()
  14147. {
  14148. eval "$1+=\$2"
  14149. }
  14150. _LT_EOF
  14151. ;;
  14152. *)
  14153. cat << \_LT_EOF >> "$cfgfile"
  14154. # func_append var value
  14155. # Append VALUE to the end of shell variable VAR.
  14156. func_append ()
  14157. {
  14158. eval "$1=\$$1\$2"
  14159. }
  14160. _LT_EOF
  14161. ;;
  14162. esac
  14163. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14164. || (rm -f "$cfgfile"; exit 1)
  14165. mv -f "$cfgfile" "$ofile" ||
  14166. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14167. chmod +x "$ofile"
  14168. ;;
  14169. esac
  14170. done # for ac_tag
  14171. as_fn_exit 0
  14172. _ACEOF
  14173. ac_clean_files=$ac_clean_files_save
  14174. test $ac_write_fail = 0 ||
  14175. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14176. # configure is writing to config.log, and then calls config.status.
  14177. # config.status does its own redirection, appending to config.log.
  14178. # Unfortunately, on DOS this fails, as config.log is still kept open
  14179. # by configure, so config.status won't be able to write to it; its
  14180. # output is simply discarded. So we exec the FD to /dev/null,
  14181. # effectively closing config.log, so it can be properly (re)opened and
  14182. # appended to by config.status. When coming back to configure, we
  14183. # need to make the FD available again.
  14184. if test "$no_create" != yes; then
  14185. ac_cs_success=:
  14186. ac_config_status_args=
  14187. test "$silent" = yes &&
  14188. ac_config_status_args="$ac_config_status_args --quiet"
  14189. exec 5>/dev/null
  14190. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14191. exec 5>>config.log
  14192. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14193. # would make configure fail if this is the last instruction.
  14194. $ac_cs_success || as_fn_exit $?
  14195. fi
  14196. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14198. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14199. fi
  14200. if test "$yeti_recode_buggy" = yes; then
  14201. librecode_state="$librecode_ok (buggy, see above)"
  14202. else
  14203. librecode_state="$librecode_ok"
  14204. fi
  14205. if test -z "$yeti_cv_file_locale_alias"; then
  14206. locale_alias_state="built-in (naive)"
  14207. else
  14208. locale_alias_state="$yeti_cv_file_locale_alias"
  14209. fi
  14210. if test "$ac_cv_func_wordexp" = yes; then
  14211. ENCAOPT_state="$ac_cv_func_wordexp"
  14212. else
  14213. ENCAOPT_state="built-in parser (naive)"
  14214. fi
  14215. if test "$enable_static" = yes; then
  14216. if test "$enable_shared" = yes; then
  14217. libenca_state="static, shared"
  14218. else
  14219. libenca_state=static
  14220. fi
  14221. else
  14222. if test "$enable_shared" = yes; then
  14223. # Can this happen?
  14224. libenca_state=shared
  14225. else
  14226. libenca_state="not at all?"
  14227. fi
  14228. fi
  14229. echo "================================================================="
  14230. echo " Features:"
  14231. echo " libenca will be built as: $libenca_state"
  14232. echo " GNU recode library interface: $librecode_state"
  14233. echo " UNIX98 iconv interface: $libiconv_ok"
  14234. if test "$libiconv_ok" != "yes" && test "$librecode_ok" != "yes"; then
  14235. echo " (consider installing at least one of GNU libiconv and GNU librecode)"
  14236. fi
  14237. echo " External converters: $enable_external"
  14238. echo " Language preferences from locale: $ac_cv_func_setlocale"
  14239. if test "$ac_cv_func_setlocale" = yes; then
  14240. echo " Language aliases decryption: $locale_alias_state"
  14241. fi
  14242. echo " Target charset from locale: $ac_cv_func_nl_langinfo"
  14243. echo " ENCAOPT environment variable: $ENCAOPT_state"
  14244. echo "================================================================="
  14245. if test "$ac_cv_header_stdc" != yes; then
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect build to fail since we depend on \"ISO C headers\"" >&5
  14247. $as_echo "$as_me: WARNING: expect build to fail since we depend on \"ISO C headers\"" >&2;}
  14248. fi
  14249. if test "$ac_cv_header_unistd_h" != yes; then
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect build to fail since we depend on \"unistd.h\"" >&5
  14251. $as_echo "$as_me: WARNING: expect build to fail since we depend on \"unistd.h\"" >&2;}
  14252. fi
  14253. if test "$ac_cv_header_sys_types_h" != yes; then
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect build to fail since we depend on \"sys/types.h\"" >&5
  14255. $as_echo "$as_me: WARNING: expect build to fail since we depend on \"sys/types.h\"" >&2;}
  14256. fi
  14257. if test "$ac_cv_header_sys_stat_h" != yes; then
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect build to fail since we depend on \"sys/stat.h\"" >&5
  14259. $as_echo "$as_me: WARNING: expect build to fail since we depend on \"sys/stat.h\"" >&2;}
  14260. fi
  14261. echo
  14262. echo "Configure complete, now type \`make' to compile enca."
  14263. echo "If it compiles, don't forget to run \`make check'."