PageRenderTime 58ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 2ms

/tools/llvm/configure

https://bitbucket.org/arieg/ufofe
Shell | 16924 lines | 15363 code | 870 blank | 691 comment | 1076 complexity | 3153165e5cb1a632fd3372fa30ea5f3a MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.60 for llvm 2.6.
  4. #
  5. # Report bugs to <llvmbugs@cs.uiuc.edu>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. #
  12. # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
  13. ## --------------------- ##
  14. ## M4sh Initialization. ##
  15. ## --------------------- ##
  16. # Be Bourne compatible
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  26. fi
  27. BIN_SH=xpg4; export BIN_SH # for Tru64
  28. DUALCASE=1; export DUALCASE # for MKS sh
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. # Be Bourne compatible
  213. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  214. emulate sh
  215. NULLCMD=:
  216. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  217. # is contrary to our usage. Disable this feature.
  218. alias -g '${1+"$@"}'='"$@"'
  219. setopt NO_GLOB_SUBST
  220. else
  221. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  222. fi
  223. BIN_SH=xpg4; export BIN_SH # for Tru64
  224. DUALCASE=1; export DUALCASE # for MKS sh
  225. :
  226. _ASEOF
  227. }; then
  228. CONFIG_SHELL=$as_shell
  229. as_have_required=yes
  230. if { "$as_shell" 2> /dev/null <<\_ASEOF
  231. # Be Bourne compatible
  232. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  233. emulate sh
  234. NULLCMD=:
  235. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  236. # is contrary to our usage. Disable this feature.
  237. alias -g '${1+"$@"}'='"$@"'
  238. setopt NO_GLOB_SUBST
  239. else
  240. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  241. fi
  242. BIN_SH=xpg4; export BIN_SH # for Tru64
  243. DUALCASE=1; export DUALCASE # for MKS sh
  244. :
  245. (as_func_return () {
  246. (exit $1)
  247. }
  248. as_func_success () {
  249. as_func_return 0
  250. }
  251. as_func_failure () {
  252. as_func_return 1
  253. }
  254. as_func_ret_success () {
  255. return 0
  256. }
  257. as_func_ret_failure () {
  258. return 1
  259. }
  260. exitcode=0
  261. if as_func_success; then
  262. :
  263. else
  264. exitcode=1
  265. echo as_func_success failed.
  266. fi
  267. if as_func_failure; then
  268. exitcode=1
  269. echo as_func_failure succeeded.
  270. fi
  271. if as_func_ret_success; then
  272. :
  273. else
  274. exitcode=1
  275. echo as_func_ret_success failed.
  276. fi
  277. if as_func_ret_failure; then
  278. exitcode=1
  279. echo as_func_ret_failure succeeded.
  280. fi
  281. if ( set x; as_func_ret_success y && test x = "$1" ); then
  282. :
  283. else
  284. exitcode=1
  285. echo positional parameters were not saved.
  286. fi
  287. test $exitcode = 0) || { (exit 1); exit 1; }
  288. (
  289. as_lineno_1=$LINENO
  290. as_lineno_2=$LINENO
  291. test "x$as_lineno_1" != "x$as_lineno_2" &&
  292. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  293. _ASEOF
  294. }; then
  295. break
  296. fi
  297. fi
  298. done
  299. if test "x$CONFIG_SHELL" != x; then
  300. for as_var in BASH_ENV ENV
  301. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  302. done
  303. export CONFIG_SHELL
  304. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  305. fi
  306. if test $as_have_required = no; then
  307. echo This script requires a shell more modern than all the
  308. echo shells that I found on your system. Please install a
  309. echo modern shell, or manually run the script under such a
  310. echo shell if you do have one.
  311. { (exit 1); exit 1; }
  312. fi
  313. fi
  314. fi
  315. (eval "as_func_return () {
  316. (exit \$1)
  317. }
  318. as_func_success () {
  319. as_func_return 0
  320. }
  321. as_func_failure () {
  322. as_func_return 1
  323. }
  324. as_func_ret_success () {
  325. return 0
  326. }
  327. as_func_ret_failure () {
  328. return 1
  329. }
  330. exitcode=0
  331. if as_func_success; then
  332. :
  333. else
  334. exitcode=1
  335. echo as_func_success failed.
  336. fi
  337. if as_func_failure; then
  338. exitcode=1
  339. echo as_func_failure succeeded.
  340. fi
  341. if as_func_ret_success; then
  342. :
  343. else
  344. exitcode=1
  345. echo as_func_ret_success failed.
  346. fi
  347. if as_func_ret_failure; then
  348. exitcode=1
  349. echo as_func_ret_failure succeeded.
  350. fi
  351. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  352. :
  353. else
  354. exitcode=1
  355. echo positional parameters were not saved.
  356. fi
  357. test \$exitcode = 0") || {
  358. echo No shell found that supports shell functions.
  359. echo Please tell autoconf@gnu.org about your system,
  360. echo including any error possibly output before this
  361. echo message
  362. }
  363. as_lineno_1=$LINENO
  364. as_lineno_2=$LINENO
  365. test "x$as_lineno_1" != "x$as_lineno_2" &&
  366. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  367. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  368. # uniformly replaced by the line number. The first 'sed' inserts a
  369. # line-number line after each line using $LINENO; the second 'sed'
  370. # does the real work. The second script uses 'N' to pair each
  371. # line-number line with the line containing $LINENO, and appends
  372. # trailing '-' during substitution so that $LINENO is not a special
  373. # case at line end.
  374. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  375. # scripts with optimization help from Paolo Bonzini. Blame Lee
  376. # E. McMahon (1931-1989) for sed's syntax. :-)
  377. sed -n '
  378. p
  379. /[$]LINENO/=
  380. ' <$as_myself |
  381. sed '
  382. s/[$]LINENO.*/&-/
  383. t lineno
  384. b
  385. :lineno
  386. N
  387. :loop
  388. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  389. t loop
  390. s/-\n.*//
  391. ' >$as_me.lineno &&
  392. chmod +x "$as_me.lineno" ||
  393. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  394. { (exit 1); exit 1; }; }
  395. # Don't try to exec as it changes $[0], causing all sort of problems
  396. # (the dirname of $[0] is not the place where we might find the
  397. # original and so on. Autoconf is especially sensitive to this).
  398. . "./$as_me.lineno"
  399. # Exit status is that of the last command.
  400. exit
  401. }
  402. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  403. as_dirname=dirname
  404. else
  405. as_dirname=false
  406. fi
  407. ECHO_C= ECHO_N= ECHO_T=
  408. case `echo -n x` in
  409. -n*)
  410. case `echo 'x\c'` in
  411. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  412. *) ECHO_C='\c';;
  413. esac;;
  414. *)
  415. ECHO_N='-n';;
  416. esac
  417. if expr a : '\(a\)' >/dev/null 2>&1 &&
  418. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  419. as_expr=expr
  420. else
  421. as_expr=false
  422. fi
  423. rm -f conf$$ conf$$.exe conf$$.file
  424. if test -d conf$$.dir; then
  425. rm -f conf$$.dir/conf$$.file
  426. else
  427. rm -f conf$$.dir
  428. mkdir conf$$.dir
  429. fi
  430. echo >conf$$.file
  431. if ln -s conf$$.file conf$$ 2>/dev/null; then
  432. as_ln_s='ln -s'
  433. # ... but there are two gotchas:
  434. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  435. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  436. # In both cases, we have to default to `cp -p'.
  437. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  438. as_ln_s='cp -p'
  439. elif ln conf$$.file conf$$ 2>/dev/null; then
  440. as_ln_s=ln
  441. else
  442. as_ln_s='cp -p'
  443. fi
  444. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  445. rmdir conf$$.dir 2>/dev/null
  446. if mkdir -p . 2>/dev/null; then
  447. as_mkdir_p=:
  448. else
  449. test -d ./-p && rmdir ./-p
  450. as_mkdir_p=false
  451. fi
  452. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  453. # systems may use methods other than mode bits to determine executability.
  454. cat >conf$$.file <<_ASEOF
  455. #! /bin/sh
  456. exit 0
  457. _ASEOF
  458. chmod +x conf$$.file
  459. if test -x conf$$.file >/dev/null 2>&1; then
  460. as_executable_p="test -x"
  461. else
  462. as_executable_p=:
  463. fi
  464. rm -f conf$$.file
  465. # Sed expression to map a string onto a valid CPP name.
  466. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  467. # Sed expression to map a string onto a valid variable name.
  468. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  469. # Check that we are running under the correct shell.
  470. SHELL=${CONFIG_SHELL-/bin/sh}
  471. case X$ECHO in
  472. X*--fallback-echo)
  473. # Remove one level of quotation (which was required for Make).
  474. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  475. ;;
  476. esac
  477. echo=${ECHO-echo}
  478. if test "X$1" = X--no-reexec; then
  479. # Discard the --no-reexec flag, and continue.
  480. shift
  481. elif test "X$1" = X--fallback-echo; then
  482. # Avoid inline document here, it may be left over
  483. :
  484. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  485. # Yippee, $echo works!
  486. :
  487. else
  488. # Restart under the correct shell.
  489. exec $SHELL "$0" --no-reexec ${1+"$@"}
  490. fi
  491. if test "X$1" = X--fallback-echo; then
  492. # used as fallback echo
  493. shift
  494. cat <<EOF
  495. $*
  496. EOF
  497. exit 0
  498. fi
  499. # The HP-UX ksh and POSIX shell print the target directory to stdout
  500. # if CDPATH is set.
  501. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  502. if test -z "$ECHO"; then
  503. if test "X${echo_test_string+set}" != Xset; then
  504. # find a string as large as possible, as long as the shell can cope with it
  505. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  506. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  507. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  508. echo_test_string=`eval $cmd` &&
  509. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  510. then
  511. break
  512. fi
  513. done
  514. fi
  515. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  516. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  517. test "X$echo_testing_string" = "X$echo_test_string"; then
  518. :
  519. else
  520. # The Solaris, AIX, and Digital Unix default echo programs unquote
  521. # backslashes. This makes it impossible to quote backslashes using
  522. # echo "$something" | sed 's/\\/\\\\/g'
  523. #
  524. # So, first we look for a working echo in the user's PATH.
  525. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  526. for dir in $PATH /usr/ucb; do
  527. IFS="$lt_save_ifs"
  528. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  529. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  530. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  531. test "X$echo_testing_string" = "X$echo_test_string"; then
  532. echo="$dir/echo"
  533. break
  534. fi
  535. done
  536. IFS="$lt_save_ifs"
  537. if test "X$echo" = Xecho; then
  538. # We didn't find a better echo, so look for alternatives.
  539. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  540. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  541. test "X$echo_testing_string" = "X$echo_test_string"; then
  542. # This shell has a builtin print -r that does the trick.
  543. echo='print -r'
  544. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  545. test "X$CONFIG_SHELL" != X/bin/ksh; then
  546. # If we have ksh, try running configure again with it.
  547. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  548. export ORIGINAL_CONFIG_SHELL
  549. CONFIG_SHELL=/bin/ksh
  550. export CONFIG_SHELL
  551. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  552. else
  553. # Try using printf.
  554. echo='printf %s\n'
  555. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # Cool, printf works
  559. :
  560. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  561. test "X$echo_testing_string" = 'X\t' &&
  562. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  565. export CONFIG_SHELL
  566. SHELL="$CONFIG_SHELL"
  567. export SHELL
  568. echo="$CONFIG_SHELL $0 --fallback-echo"
  569. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  570. test "X$echo_testing_string" = 'X\t' &&
  571. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. echo="$CONFIG_SHELL $0 --fallback-echo"
  574. else
  575. # maybe with a smaller string...
  576. prev=:
  577. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  578. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  579. then
  580. break
  581. fi
  582. prev="$cmd"
  583. done
  584. if test "$prev" != 'sed 50q "$0"'; then
  585. echo_test_string=`eval $prev`
  586. export echo_test_string
  587. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  588. else
  589. # Oops. We lost completely, so just stick with echo.
  590. echo=echo
  591. fi
  592. fi
  593. fi
  594. fi
  595. fi
  596. fi
  597. # Copy echo and quote the copy suitably for passing to libtool from
  598. # the Makefile, instead of quoting the original, which is used later.
  599. ECHO=$echo
  600. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  601. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  602. fi
  603. tagnames=${tagnames+${tagnames},}CXX
  604. tagnames=${tagnames+${tagnames},}F77
  605. exec 7<&0 </dev/null 6>&1
  606. # Name of the host.
  607. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  608. # so uname gets run too.
  609. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  610. #
  611. # Initializations.
  612. #
  613. ac_default_prefix=/usr/local
  614. ac_clean_files=
  615. ac_config_libobj_dir=.
  616. LIBOBJS=
  617. cross_compiling=no
  618. subdirs=
  619. MFLAGS=
  620. MAKEFLAGS=
  621. SHELL=${CONFIG_SHELL-/bin/sh}
  622. # Identity of this package.
  623. PACKAGE_NAME='llvm'
  624. PACKAGE_TARNAME='-llvm-'
  625. PACKAGE_VERSION='2.6'
  626. PACKAGE_STRING='llvm 2.6'
  627. PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
  628. ac_unique_file="lib/VMCore/Module.cpp"
  629. # Factoring default headers for most tests.
  630. ac_includes_default="\
  631. #include <stdio.h>
  632. #if HAVE_SYS_TYPES_H
  633. # include <sys/types.h>
  634. #endif
  635. #if HAVE_SYS_STAT_H
  636. # include <sys/stat.h>
  637. #endif
  638. #if STDC_HEADERS
  639. # include <stdlib.h>
  640. # include <stddef.h>
  641. #else
  642. # if HAVE_STDLIB_H
  643. # include <stdlib.h>
  644. # endif
  645. #endif
  646. #if HAVE_STRING_H
  647. # if !STDC_HEADERS && HAVE_MEMORY_H
  648. # include <memory.h>
  649. # endif
  650. # include <string.h>
  651. #endif
  652. #if HAVE_STRINGS_H
  653. # include <strings.h>
  654. #endif
  655. #if HAVE_INTTYPES_H
  656. # include <inttypes.h>
  657. #endif
  658. #if HAVE_STDINT_H
  659. # include <stdint.h>
  660. #endif
  661. #if HAVE_UNISTD_H
  662. # include <unistd.h>
  663. #endif"
  664. ac_subst_vars='SHELL
  665. PATH_SEPARATOR
  666. PACKAGE_NAME
  667. PACKAGE_TARNAME
  668. PACKAGE_VERSION
  669. PACKAGE_STRING
  670. PACKAGE_BUGREPORT
  671. exec_prefix
  672. prefix
  673. program_transform_name
  674. bindir
  675. sbindir
  676. libexecdir
  677. datarootdir
  678. datadir
  679. sysconfdir
  680. sharedstatedir
  681. localstatedir
  682. includedir
  683. oldincludedir
  684. docdir
  685. infodir
  686. htmldir
  687. dvidir
  688. pdfdir
  689. psdir
  690. libdir
  691. localedir
  692. mandir
  693. DEFS
  694. ECHO_C
  695. ECHO_N
  696. ECHO_T
  697. LIBS
  698. build_alias
  699. host_alias
  700. target_alias
  701. LLVM_COPYRIGHT
  702. subdirs
  703. build
  704. build_cpu
  705. build_vendor
  706. build_os
  707. host
  708. host_cpu
  709. host_vendor
  710. host_os
  711. target
  712. target_cpu
  713. target_vendor
  714. target_os
  715. OS
  716. HOST_OS
  717. TARGET_OS
  718. LINKALL
  719. NOLINKALL
  720. LLVM_ON_UNIX
  721. LLVM_ON_WIN32
  722. ARCH
  723. ENDIAN
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. CPPFLAGS
  728. ac_ct_CC
  729. EXEEXT
  730. OBJEXT
  731. CPP
  732. GREP
  733. EGREP
  734. LLVM_CROSS_COMPILING
  735. BUILD_CC
  736. BUILD_EXEEXT
  737. BUILD_CXX
  738. CVSBUILD
  739. ENABLE_OPTIMIZED
  740. ENABLE_PROFILING
  741. DISABLE_ASSERTIONS
  742. LLVM_COMPACT_SENTINELS
  743. ENABLE_EXPENSIVE_CHECKS
  744. EXPENSIVE_CHECKS
  745. DEBUG_RUNTIME
  746. JIT
  747. TARGET_HAS_JIT
  748. ENABLE_DOXYGEN
  749. ENABLE_THREADS
  750. ENABLE_PIC
  751. TARGETS_TO_BUILD
  752. LLVM_ENUM_TARGETS
  753. LLVM_ENUM_ASM_PRINTERS
  754. LLVM_ENUM_ASM_PARSERS
  755. ENABLE_CBE_PRINTF_A
  756. EXTRA_OPTIONS
  757. BINUTILS_INCDIR
  758. ENABLE_LLVMC_DYNAMIC
  759. ENABLE_LLVMC_DYNAMIC_PLUGINS
  760. CXX
  761. CXXFLAGS
  762. ac_ct_CXX
  763. NM
  764. ifGNUmake
  765. LN_S
  766. CMP
  767. CP
  768. DATE
  769. FIND
  770. MKDIR
  771. MV
  772. RANLIB
  773. RM
  774. SED
  775. TAR
  776. BINPWD
  777. GRAPHVIZ
  778. DOT
  779. FDP
  780. NEATO
  781. TWOPI
  782. CIRCO
  783. GV
  784. DOTTY
  785. PERL
  786. HAVE_PERL
  787. INSTALL_PROGRAM
  788. INSTALL_SCRIPT
  789. INSTALL_DATA
  790. BZIP2
  791. DOXYGEN
  792. GROFF
  793. GZIP
  794. POD2HTML
  795. POD2MAN
  796. RUNTEST
  797. TCLSH
  798. ZIP
  799. OCAMLC
  800. OCAMLOPT
  801. OCAMLDEP
  802. OCAMLDOC
  803. GAS
  804. INSTALL_LTDL_TRUE
  805. INSTALL_LTDL_FALSE
  806. CONVENIENCE_LTDL_TRUE
  807. CONVENIENCE_LTDL_FALSE
  808. LIBADD_DL
  809. ECHO
  810. AR
  811. STRIP
  812. CXXCPP
  813. F77
  814. FFLAGS
  815. ac_ct_F77
  816. LIBTOOL
  817. LLVMGCCCOMMAND
  818. LLVMGXXCOMMAND
  819. LLVMGCC
  820. LLVMGXX
  821. USE_UDIS86
  822. USE_OPROFILE
  823. HAVE_PTHREAD
  824. HUGE_VAL_SANITY
  825. ALLOCA
  826. MMAP_FILE
  827. LLVMCC1
  828. LLVMCC1PLUS
  829. LLVMGCCDIR
  830. LLVMGCCLIBEXEC
  831. LLVMGCC_VERSION
  832. LLVMGCC_MAJVERS
  833. LLVMGCC_LANGS
  834. SHLIBEXT
  835. LLVM_PREFIX
  836. LLVM_BINDIR
  837. LLVM_LIBDIR
  838. LLVM_DATADIR
  839. LLVM_DOCSDIR
  840. LLVM_ETCDIR
  841. LLVM_INCLUDEDIR
  842. LLVM_INFODIR
  843. LLVM_MANDIR
  844. LLVM_CONFIGTIME
  845. BINDINGS_TO_BUILD
  846. ALL_BINDINGS
  847. OCAML_LIBDIR
  848. ENABLE_VISIBILITY_INLINES_HIDDEN
  849. RPATH
  850. RDYNAMIC
  851. LIBOBJS
  852. LTLIBOBJS'
  853. ac_subst_files=''
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. CPPFLAGS
  861. CPP
  862. CXX
  863. CXXFLAGS
  864. CCC
  865. CXXCPP
  866. F77
  867. FFLAGS'
  868. ac_subdirs_all='projects/sample
  869. projects/privbracket
  870. projects/llvm-stacker
  871. projects/llvm-test
  872. projects/test-suite
  873. projects/llvm-reopt
  874. projects/llvm-gcc
  875. projects/llvm-java
  876. projects/llvm-tv
  877. projects/llvm-poolalloc
  878. projects/poolalloc
  879. projects/llvm-kernel'
  880. # Initialize some variables set by options.
  881. ac_init_help=
  882. ac_init_version=false
  883. # The variables have the same names as the options, with
  884. # dashes changed to underlines.
  885. cache_file=/dev/null
  886. exec_prefix=NONE
  887. no_create=
  888. no_recursion=
  889. prefix=NONE
  890. program_prefix=NONE
  891. program_suffix=NONE
  892. program_transform_name=s,x,x,
  893. silent=
  894. site=
  895. srcdir=
  896. verbose=
  897. x_includes=NONE
  898. x_libraries=NONE
  899. # Installation directory options.
  900. # These are left unexpanded so users can "make install exec_prefix=/foo"
  901. # and all the variables that are supposed to be based on exec_prefix
  902. # by default will actually change.
  903. # Use braces instead of parens because sh, perl, etc. also accept them.
  904. # (The list follows the same order as the GNU Coding Standards.)
  905. bindir='${exec_prefix}/bin'
  906. sbindir='${exec_prefix}/sbin'
  907. libexecdir='${exec_prefix}/libexec'
  908. datarootdir='${prefix}/share'
  909. datadir='${datarootdir}'
  910. sysconfdir='${prefix}/etc'
  911. sharedstatedir='${prefix}/com'
  912. localstatedir='${prefix}/var'
  913. includedir='${prefix}/include'
  914. oldincludedir='/usr/include'
  915. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  916. infodir='${datarootdir}/info'
  917. htmldir='${docdir}'
  918. dvidir='${docdir}'
  919. pdfdir='${docdir}'
  920. psdir='${docdir}'
  921. libdir='${exec_prefix}/lib'
  922. localedir='${datarootdir}/locale'
  923. mandir='${datarootdir}/man'
  924. ac_prev=
  925. ac_dashdash=
  926. for ac_option
  927. do
  928. # If the previous option needs an argument, assign it.
  929. if test -n "$ac_prev"; then
  930. eval $ac_prev=\$ac_option
  931. ac_prev=
  932. continue
  933. fi
  934. case $ac_option in
  935. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  936. *) ac_optarg=yes ;;
  937. esac
  938. # Accept the important Cygnus configure options, so we can diagnose typos.
  939. case $ac_dashdash$ac_option in
  940. --)
  941. ac_dashdash=yes ;;
  942. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  943. ac_prev=bindir ;;
  944. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  945. bindir=$ac_optarg ;;
  946. -build | --build | --buil | --bui | --bu)
  947. ac_prev=build_alias ;;
  948. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  949. build_alias=$ac_optarg ;;
  950. -cache-file | --cache-file | --cache-fil | --cache-fi \
  951. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  952. ac_prev=cache_file ;;
  953. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  954. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  955. cache_file=$ac_optarg ;;
  956. --config-cache | -C)
  957. cache_file=config.cache ;;
  958. -datadir | --datadir | --datadi | --datad)
  959. ac_prev=datadir ;;
  960. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  961. datadir=$ac_optarg ;;
  962. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  963. | --dataroo | --dataro | --datar)
  964. ac_prev=datarootdir ;;
  965. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  966. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  967. datarootdir=$ac_optarg ;;
  968. -disable-* | --disable-*)
  969. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  970. # Reject names that are not valid shell variable names.
  971. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  972. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  973. { (exit 1); exit 1; }; }
  974. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  975. eval enable_$ac_feature=no ;;
  976. -docdir | --docdir | --docdi | --doc | --do)
  977. ac_prev=docdir ;;
  978. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  979. docdir=$ac_optarg ;;
  980. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  981. ac_prev=dvidir ;;
  982. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  983. dvidir=$ac_optarg ;;
  984. -enable-* | --enable-*)
  985. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  988. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  989. { (exit 1); exit 1; }; }
  990. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  991. eval enable_$ac_feature=\$ac_optarg ;;
  992. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  993. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  994. | --exec | --exe | --ex)
  995. ac_prev=exec_prefix ;;
  996. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  997. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  998. | --exec=* | --exe=* | --ex=*)
  999. exec_prefix=$ac_optarg ;;
  1000. -gas | --gas | --ga | --g)
  1001. # Obsolete; use --with-gas.
  1002. with_gas=yes ;;
  1003. -help | --help | --hel | --he | -h)
  1004. ac_init_help=long ;;
  1005. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1006. ac_init_help=recursive ;;
  1007. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1008. ac_init_help=short ;;
  1009. -host | --host | --hos | --ho)
  1010. ac_prev=host_alias ;;
  1011. -host=* | --host=* | --hos=* | --ho=*)
  1012. host_alias=$ac_optarg ;;
  1013. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1014. ac_prev=htmldir ;;
  1015. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1016. | --ht=*)
  1017. htmldir=$ac_optarg ;;
  1018. -includedir | --includedir | --includedi | --included | --include \
  1019. | --includ | --inclu | --incl | --inc)
  1020. ac_prev=includedir ;;
  1021. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1022. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1023. includedir=$ac_optarg ;;
  1024. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1025. ac_prev=infodir ;;
  1026. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1027. infodir=$ac_optarg ;;
  1028. -libdir | --libdir | --libdi | --libd)
  1029. ac_prev=libdir ;;
  1030. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1031. libdir=$ac_optarg ;;
  1032. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1033. | --libexe | --libex | --libe)
  1034. ac_prev=libexecdir ;;
  1035. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1036. | --libexe=* | --libex=* | --libe=*)
  1037. libexecdir=$ac_optarg ;;
  1038. -localedir | --localedir | --localedi | --localed | --locale)
  1039. ac_prev=localedir ;;
  1040. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1041. localedir=$ac_optarg ;;
  1042. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1043. | --localstate | --localstat | --localsta | --localst | --locals)
  1044. ac_prev=localstatedir ;;
  1045. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1046. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1047. localstatedir=$ac_optarg ;;
  1048. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1049. ac_prev=mandir ;;
  1050. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1051. mandir=$ac_optarg ;;
  1052. -nfp | --nfp | --nf)
  1053. # Obsolete; use --without-fp.
  1054. with_fp=no ;;
  1055. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1056. | --no-cr | --no-c | -n)
  1057. no_create=yes ;;
  1058. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1059. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1060. no_recursion=yes ;;
  1061. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1062. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1063. | --oldin | --oldi | --old | --ol | --o)
  1064. ac_prev=oldincludedir ;;
  1065. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1066. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1067. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1068. oldincludedir=$ac_optarg ;;
  1069. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1070. ac_prev=prefix ;;
  1071. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1072. prefix=$ac_optarg ;;
  1073. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1074. | --program-pre | --program-pr | --program-p)
  1075. ac_prev=program_prefix ;;
  1076. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1077. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1078. program_prefix=$ac_optarg ;;
  1079. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1080. | --program-suf | --program-su | --program-s)
  1081. ac_prev=program_suffix ;;
  1082. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1083. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1084. program_suffix=$ac_optarg ;;
  1085. -program-transform-name | --program-transform-name \
  1086. | --program-transform-nam | --program-transform-na \
  1087. | --program-transform-n | --program-transform- \
  1088. | --program-transform | --program-transfor \
  1089. | --program-transfo | --program-transf \
  1090. | --program-trans | --program-tran \
  1091. | --progr-tra | --program-tr | --program-t)
  1092. ac_prev=program_transform_name ;;
  1093. -program-transform-name=* | --program-transform-name=* \
  1094. | --program-transform-nam=* | --program-transform-na=* \
  1095. | --program-transform-n=* | --program-transform-=* \
  1096. | --program-transform=* | --program-transfor=* \
  1097. | --program-transfo=* | --program-transf=* \
  1098. | --program-trans=* | --program-tran=* \
  1099. | --progr-tra=* | --program-tr=* | --program-t=*)
  1100. program_transform_name=$ac_optarg ;;
  1101. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1102. ac_prev=pdfdir ;;
  1103. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1104. pdfdir=$ac_optarg ;;
  1105. -psdir | --psdir | --psdi | --psd | --ps)
  1106. ac_prev=psdir ;;
  1107. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1108. psdir=$ac_optarg ;;
  1109. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1110. | -silent | --silent | --silen | --sile | --sil)
  1111. silent=yes ;;
  1112. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1113. ac_prev=sbindir ;;
  1114. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1115. | --sbi=* | --sb=*)
  1116. sbindir=$ac_optarg ;;
  1117. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1118. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1119. | --sharedst | --shareds | --shared | --share | --shar \
  1120. | --sha | --sh)
  1121. ac_prev=sharedstatedir ;;
  1122. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1123. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1124. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1125. | --sha=* | --sh=*)
  1126. sharedstatedir=$ac_optarg ;;
  1127. -site | --site | --sit)
  1128. ac_prev=site ;;
  1129. -site=* | --site=* | --sit=*)
  1130. site=$ac_optarg ;;
  1131. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1132. ac_prev=srcdir ;;
  1133. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1134. srcdir=$ac_optarg ;;
  1135. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1136. | --syscon | --sysco | --sysc | --sys | --sy)
  1137. ac_prev=sysconfdir ;;
  1138. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1139. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1140. sysconfdir=$ac_optarg ;;
  1141. -target | --target | --targe | --targ | --tar | --ta | --t)
  1142. ac_prev=target_alias ;;
  1143. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1144. target_alias=$ac_optarg ;;
  1145. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1146. verbose=yes ;;
  1147. -version | --version | --versio | --versi | --vers | -V)
  1148. ac_init_version=: ;;
  1149. -with-* | --with-*)
  1150. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1153. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1154. { (exit 1); exit 1; }; }
  1155. ac_package=`echo $ac_package| sed 's/-/_/g'`
  1156. eval with_$ac_package=\$ac_optarg ;;
  1157. -without-* | --without-*)
  1158. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1159. # Reject names that are not valid shell variable names.
  1160. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1161. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1162. { (exit 1); exit 1; }; }
  1163. ac_package=`echo $ac_package | sed 's/-/_/g'`
  1164. eval with_$ac_package=no ;;
  1165. --x)
  1166. # Obsolete; use --with-x.
  1167. with_x=yes ;;
  1168. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1169. | --x-incl | --x-inc | --x-in | --x-i)
  1170. ac_prev=x_includes ;;
  1171. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1172. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1173. x_includes=$ac_optarg ;;
  1174. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1175. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1176. ac_prev=x_libraries ;;
  1177. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1178. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1179. x_libraries=$ac_optarg ;;
  1180. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1181. Try \`$0 --help' for more information." >&2
  1182. { (exit 1); exit 1; }; }
  1183. ;;
  1184. *=*)
  1185. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1186. # Reject names that are not valid shell variable names.
  1187. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1188. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1189. { (exit 1); exit 1; }; }
  1190. eval $ac_envvar=\$ac_optarg
  1191. export $ac_envvar ;;
  1192. *)
  1193. # FIXME: should be removed in autoconf 3.0.
  1194. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1195. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1196. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1197. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1198. ;;
  1199. esac
  1200. done
  1201. if test -n "$ac_prev"; then
  1202. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1203. { echo "$as_me: error: missing argument to $ac_option" >&2
  1204. { (exit 1); exit 1; }; }
  1205. fi
  1206. # Be sure to have absolute directory names.
  1207. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1208. datadir sysconfdir sharedstatedir localstatedir includedir \
  1209. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1210. libdir localedir mandir
  1211. do
  1212. eval ac_val=\$$ac_var
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1218. { (exit 1); exit 1; }; }
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1231. If a cross compiler is detected then cross compile mode will be used." >&2
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. { echo "$as_me: error: Working directory cannot be determined" >&2
  1243. { (exit 1); exit 1; }; }
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1246. { (exit 1); exit 1; }; }
  1247. # Find the source files, if location was not specified.
  1248. if test -z "$srcdir"; then
  1249. ac_srcdir_defaulted=yes
  1250. # Try the directory containing this script, then the parent directory.
  1251. ac_confdir=`$as_dirname -- "$0" ||
  1252. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1253. X"$0" : 'X\(//\)[^/]' \| \
  1254. X"$0" : 'X\(//\)$' \| \
  1255. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1256. echo X"$0" |
  1257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)[^/].*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\).*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. s/.*/./; q'`
  1274. srcdir=$ac_confdir
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. srcdir=..
  1277. fi
  1278. else
  1279. ac_srcdir_defaulted=no
  1280. fi
  1281. if test ! -r "$srcdir/$ac_unique_file"; then
  1282. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1283. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1289. { (exit 1); exit 1; }; }
  1290. pwd)`
  1291. # When building in place, set srcdir=.
  1292. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1293. srcdir=.
  1294. fi
  1295. # Remove unnecessary trailing slashes from srcdir.
  1296. # Double slashes in file names in object file debugging info
  1297. # mess up M-x gdb in Emacs.
  1298. case $srcdir in
  1299. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1300. esac
  1301. for ac_var in $ac_precious_vars; do
  1302. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_env_${ac_var}_value=\$${ac_var}
  1304. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1306. done
  1307. #
  1308. # Report the --help message.
  1309. #
  1310. if test "$ac_init_help" = "long"; then
  1311. # Omit some internal or obsolete options to make the list less imposing.
  1312. # This message is too long to be a string in the A/UX 3.1 sh.
  1313. cat <<_ACEOF
  1314. \`configure' configures llvm 2.6 to adapt to many kinds of systems.
  1315. Usage: $0 [OPTION]... [VAR=VALUE]...
  1316. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1317. VAR=VALUE. See below for descriptions of some of the useful variables.
  1318. Defaults for the options are specified in brackets.
  1319. Configuration:
  1320. -h, --help display this help and exit
  1321. --help=short display options specific to this package
  1322. --help=recursive display the short help of all the included packages
  1323. -V, --version display version information and exit
  1324. -q, --quiet, --silent do not print \`checking...' messages
  1325. --cache-file=FILE cache test results in FILE [disabled]
  1326. -C, --config-cache alias for \`--cache-file=config.cache'
  1327. -n, --no-create do not create output files
  1328. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1329. Installation directories:
  1330. --prefix=PREFIX install architecture-independent files in PREFIX
  1331. [$ac_default_prefix]
  1332. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1333. [PREFIX]
  1334. By default, \`make install' will install all the files in
  1335. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1336. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1337. for instance \`--prefix=\$HOME'.
  1338. For better control, use the options below.
  1339. Fine tuning of the installation directories:
  1340. --bindir=DIR user executables [EPREFIX/bin]
  1341. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1342. --libexecdir=DIR program executables [EPREFIX/libexec]
  1343. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1344. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1345. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1346. --libdir=DIR object code libraries [EPREFIX/lib]
  1347. --includedir=DIR C header files [PREFIX/include]
  1348. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1349. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1350. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1351. --infodir=DIR info documentation [DATAROOTDIR/info]
  1352. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1353. --mandir=DIR man documentation [DATAROOTDIR/man]
  1354. --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
  1355. --htmldir=DIR html documentation [DOCDIR]
  1356. --dvidir=DIR dvi documentation [DOCDIR]
  1357. --pdfdir=DIR pdf documentation [DOCDIR]
  1358. --psdir=DIR ps documentation [DOCDIR]
  1359. _ACEOF
  1360. cat <<\_ACEOF
  1361. System types:
  1362. --build=BUILD configure for building on BUILD [guessed]
  1363. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1364. --target=TARGET configure for building compilers for TARGET [HOST]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of llvm 2.6:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --enable-optimized Compile with optimizations enabled (default is NO)
  1376. --enable-profiling Compile with profiling enabled (default is NO)
  1377. --enable-assertions Compile with assertion checks enabled (default is
  1378. YES)
  1379. --enable-expensive-checks
  1380. Compile with expensive debug checks enabled (default
  1381. is NO)
  1382. --enable-debug-runtime Build runtime libs with debug symbols (default is
  1383. NO)
  1384. --enable-jit Enable Just In Time Compiling (default is YES)
  1385. --enable-doxygen Build doxygen documentation (default is NO)
  1386. --enable-threads Use threads if available (default is YES)
  1387. --enable-pic Build LLVM with Position Independent Code (default
  1388. is YES)
  1389. --enable-targets Build specific host targets:
  1390. all,host-only,{target-name} (default=all)
  1391. --enable-cbe-printf-a Enable C Backend output with hex floating point via
  1392. %a (default is YES)
  1393. --enable-bindings Build specific language bindings:
  1394. all,auto,none,{binding-name} (default=auto)
  1395. --enable-libffi Check for the presence of libffi (default is YES)
  1396. --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
  1397. Win32)
  1398. --enable-llvmc-dynamic-plugins
  1399. Enable dynamic LLVMC plugins (default is YES)
  1400. --enable-ltdl-install install libltdl
  1401. --enable-shared[=PKGS] build shared libraries
  1402. [default=yes]
  1403. --enable-static[=PKGS] build static libraries
  1404. [default=yes]
  1405. --enable-fast-install[=PKGS]
  1406. optimize for fast installation
  1407. [default=yes]
  1408. --disable-libtool-lock avoid locking (might break parallel builds)
  1409. Optional Packages:
  1410. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1411. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1412. --with-llvmgccdir Specify location of llvm-gcc install dir (default
  1413. searches PATH)
  1414. --with-llvmgcc Specify location of llvm-gcc driver (default
  1415. searches PATH)
  1416. --with-llvmgxx Specify location of llvm-g++ driver (default
  1417. searches PATH)
  1418. --with-extra-options Specify additional options to compile LLVM with
  1419. --with-ocaml-libdir Specify install location for ocaml bindings (default
  1420. is stdlib)
  1421. --with-binutils-include Specify path to binutils/include/ containing
  1422. plugin-api.h file for gold plugin.
  1423. --with-tclinclude directory where tcl headers are
  1424. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1425. --with-pic try to use only PIC/non-PIC objects [default=use
  1426. both]
  1427. --with-tags[=TAGS] include additional configurations [automatic]
  1428. --with-udis86=<path> Use udis86 external x86 disassembler library
  1429. --with-oprofile=<prefix>
  1430. Tell OProfile >= 0.9.4 how to symbolize JIT output
  1431. Some influential environment variables:
  1432. CC C compiler command
  1433. CFLAGS C compiler flags
  1434. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1435. nonstandard directory <lib dir>
  1436. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1437. you have headers in a nonstandard directory <include dir>
  1438. CPP C preprocessor
  1439. CXX C++ compiler command
  1440. CXXFLAGS C++ compiler flags
  1441. CXXCPP C++ preprocessor
  1442. F77 Fortran 77 compiler command
  1443. FFLAGS Fortran 77 compiler flags
  1444. Use these variables to override the choices made by `configure' or to help
  1445. it to find libraries and programs with nonstandard names/locations.
  1446. Report bugs to <llvmbugs@cs.uiuc.edu>.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450. if test "$ac_init_help" = "recursive"; then
  1451. # If there are subdirs, report their specific --help.
  1452. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453. test -d "$ac_dir" || continue
  1454. ac_builddir=.
  1455. case "$ac_dir" in
  1456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *)
  1458. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1459. # A ".." for each directory in $ac_dir_suffix.
  1460. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1461. case $ac_top_builddir_sub in
  1462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1464. esac ;;
  1465. esac
  1466. ac_abs_top_builddir=$ac_pwd
  1467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1468. # for backward compatibility:
  1469. ac_top_builddir=$ac_top_build_prefix
  1470. case $srcdir in
  1471. .) # We are building in place.
  1472. ac_srcdir=.
  1473. ac_top_srcdir=$ac_top_builddir_sub
  1474. ac_abs_top_srcdir=$ac_pwd ;;
  1475. [\\/]* | ?:[\\/]* ) # Absolute name.
  1476. ac_srcdir=$srcdir$ac_dir_suffix;
  1477. ac_top_srcdir=$srcdir
  1478. ac_abs_top_srcdir=$srcdir ;;
  1479. *) # Relative name.
  1480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1483. esac
  1484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1485. cd "$ac_dir" || { ac_status=$?; continue; }
  1486. # Check for guested configure.
  1487. if test -f "$ac_srcdir/configure.gnu"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1490. elif test -f "$ac_srcdir/configure"; then
  1491. echo &&
  1492. $SHELL "$ac_srcdir/configure" --help=recursive
  1493. else
  1494. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1495. fi || ac_status=$?
  1496. cd "$ac_pwd" || { ac_status=$?; break; }
  1497. done
  1498. fi
  1499. test -n "$ac_init_help" && exit $ac_status
  1500. if $ac_init_version; then
  1501. cat <<\_ACEOF
  1502. llvm configure 2.6
  1503. generated by GNU Autoconf 2.60
  1504. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1505. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1506. This configure script is free software; the Free Software Foundation
  1507. gives unlimited permission to copy, distribute and modify it.
  1508. Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
  1509. _ACEOF
  1510. exit
  1511. fi
  1512. cat >config.log <<_ACEOF
  1513. This file contains any messages produced by compilers while
  1514. running configure, to aid debugging if configure makes a mistake.
  1515. It was created by llvm $as_me 2.6, which was
  1516. generated by GNU Autoconf 2.60. Invocation command line was
  1517. $ $0 $@
  1518. _ACEOF
  1519. exec 5>>config.log
  1520. {
  1521. cat <<_ASUNAME
  1522. ## --------- ##
  1523. ## Platform. ##
  1524. ## --------- ##
  1525. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1526. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1527. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1528. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1529. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1530. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1531. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1532. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1533. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1534. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1535. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1536. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1537. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1538. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1539. _ASUNAME
  1540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1541. for as_dir in $PATH
  1542. do
  1543. IFS=$as_save_IFS
  1544. test -z "$as_dir" && as_dir=.
  1545. echo "PATH: $as_dir"
  1546. done
  1547. IFS=$as_save_IFS
  1548. } >&5
  1549. cat >&5 <<_ACEOF
  1550. ## ----------- ##
  1551. ## Core tests. ##
  1552. ## ----------- ##
  1553. _ACEOF
  1554. # Keep a trace of the command line.
  1555. # Strip out --no-create and --no-recursion so they do not pile up.
  1556. # Strip out --silent because we don't want to record it for future runs.
  1557. # Also quote any args containing shell meta-characters.
  1558. # Make two passes to allow for proper duplicate-argument suppression.
  1559. ac_configure_args=
  1560. ac_configure_args0=
  1561. ac_configure_args1=
  1562. ac_must_keep_next=false
  1563. for ac_pass in 1 2
  1564. do
  1565. for ac_arg
  1566. do
  1567. case $ac_arg in
  1568. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1569. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1570. | -silent | --silent | --silen | --sile | --sil)
  1571. continue ;;
  1572. *\'*)
  1573. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1574. esac
  1575. case $ac_pass in
  1576. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1577. 2)
  1578. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1579. if test $ac_must_keep_next = true; then
  1580. ac_must_keep_next=false # Got value, back to normal.
  1581. else
  1582. case $ac_arg in
  1583. *=* | --config-cache | -C | -disable-* | --disable-* \
  1584. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1585. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1586. | -with-* | --with-* | -without-* | --without-* | --x)
  1587. case "$ac_configure_args0 " in
  1588. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1589. esac
  1590. ;;
  1591. -* ) ac_must_keep_next=true ;;
  1592. esac
  1593. fi
  1594. ac_configure_args="$ac_configure_args '$ac_arg'"
  1595. ;;
  1596. esac
  1597. done
  1598. done
  1599. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1600. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1601. # When interrupted or exit'd, cleanup temporary files, and complete
  1602. # config.log. We remove comments because anyway the quotes in there
  1603. # would cause problems or look ugly.
  1604. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1605. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1606. trap 'exit_status=$?
  1607. # Save into config.log some information that might help in debugging.
  1608. {
  1609. echo
  1610. cat <<\_ASBOX
  1611. ## ---------------- ##
  1612. ## Cache variables. ##
  1613. ## ---------------- ##
  1614. _ASBOX
  1615. echo
  1616. # The following way of writing the cache mishandles newlines in values,
  1617. (
  1618. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1619. eval ac_val=\$$ac_var
  1620. case $ac_val in #(
  1621. *${as_nl}*)
  1622. case $ac_var in #(
  1623. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1624. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1625. esac
  1626. case $ac_var in #(
  1627. _ | IFS | as_nl) ;; #(
  1628. *) $as_unset $ac_var ;;
  1629. esac ;;
  1630. esac
  1631. done
  1632. (set) 2>&1 |
  1633. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1634. *${as_nl}ac_space=\ *)
  1635. sed -n \
  1636. "s/'\''/'\''\\\\'\'''\''/g;
  1637. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1638. ;; #(
  1639. *)
  1640. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1641. ;;
  1642. esac |
  1643. sort
  1644. )
  1645. echo
  1646. cat <<\_ASBOX
  1647. ## ----------------- ##
  1648. ## Output variables. ##
  1649. ## ----------------- ##
  1650. _ASBOX
  1651. echo
  1652. for ac_var in $ac_subst_vars
  1653. do
  1654. eval ac_val=\$$ac_var
  1655. case $ac_val in
  1656. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1657. esac
  1658. echo "$ac_var='\''$ac_val'\''"
  1659. done | sort
  1660. echo
  1661. if test -n "$ac_subst_files"; then
  1662. cat <<\_ASBOX
  1663. ## ------------------- ##
  1664. ## File substitutions. ##
  1665. ## ------------------- ##
  1666. _ASBOX
  1667. echo
  1668. for ac_var in $ac_subst_files
  1669. do
  1670. eval ac_val=\$$ac_var
  1671. case $ac_val in
  1672. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1673. esac
  1674. echo "$ac_var='\''$ac_val'\''"
  1675. done | sort
  1676. echo
  1677. fi
  1678. if test -s confdefs.h; then
  1679. cat <<\_ASBOX
  1680. ## ----------- ##
  1681. ## confdefs.h. ##
  1682. ## ----------- ##
  1683. _ASBOX
  1684. echo
  1685. cat confdefs.h
  1686. echo
  1687. fi
  1688. test "$ac_signal" != 0 &&
  1689. echo "$as_me: caught signal $ac_signal"
  1690. echo "$as_me: exit $exit_status"
  1691. } >&5
  1692. rm -f core *.core core.conftest.* &&
  1693. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1694. exit $exit_status
  1695. ' 0
  1696. for ac_signal in 1 2 13 15; do
  1697. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1698. done
  1699. ac_signal=0
  1700. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1701. rm -f -r conftest* confdefs.h
  1702. # Predefined preprocessor variables.
  1703. cat >>confdefs.h <<_ACEOF
  1704. #define PACKAGE_NAME "$PACKAGE_NAME"
  1705. _ACEOF
  1706. cat >>confdefs.h <<_ACEOF
  1707. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1708. _ACEOF
  1709. cat >>confdefs.h <<_ACEOF
  1710. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1711. _ACEOF
  1712. cat >>confdefs.h <<_ACEOF
  1713. #define PACKAGE_STRING "$PACKAGE_STRING"
  1714. _ACEOF
  1715. cat >>confdefs.h <<_ACEOF
  1716. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1717. _ACEOF
  1718. # Let the site file select an alternate cache file if it wants to.
  1719. # Prefer explicitly selected file to automatically selected ones.
  1720. if test -n "$CONFIG_SITE"; then
  1721. set x "$CONFIG_SITE"
  1722. elif test "x$prefix" != xNONE; then
  1723. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1724. else
  1725. set x "$ac_default_prefix/share/config.site" \
  1726. "$ac_default_prefix/etc/config.site"
  1727. fi
  1728. shift
  1729. for ac_site_file
  1730. do
  1731. if test -r "$ac_site_file"; then
  1732. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1733. echo "$as_me: loading site script $ac_site_file" >&6;}
  1734. sed 's/^/| /' "$ac_site_file" >&5
  1735. . "$ac_site_file"
  1736. fi
  1737. done
  1738. if test -r "$cache_file"; then
  1739. # Some versions of bash will fail to source /dev/null (special
  1740. # files actually), so we avoid doing that.
  1741. if test -f "$cache_file"; then
  1742. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1743. echo "$as_me: loading cache $cache_file" >&6;}
  1744. case $cache_file in
  1745. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1746. *) . "./$cache_file";;
  1747. esac
  1748. fi
  1749. else
  1750. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1751. echo "$as_me: creating cache $cache_file" >&6;}
  1752. >$cache_file
  1753. fi
  1754. # Check that the precious variables saved in the cache have kept the same
  1755. # value.
  1756. ac_cache_corrupted=false
  1757. for ac_var in $ac_precious_vars; do
  1758. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1759. eval ac_new_set=\$ac_env_${ac_var}_set
  1760. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1761. eval ac_new_val=\$ac_env_${ac_var}_value
  1762. case $ac_old_set,$ac_new_set in
  1763. set,)
  1764. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1765. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1766. ac_cache_corrupted=: ;;
  1767. ,set)
  1768. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1769. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1770. ac_cache_corrupted=: ;;
  1771. ,);;
  1772. *)
  1773. if test "x$ac_old_val" != "x$ac_new_val"; then
  1774. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1775. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1776. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1777. echo "$as_me: former value: $ac_old_val" >&2;}
  1778. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1779. echo "$as_me: current value: $ac_new_val" >&2;}
  1780. ac_cache_corrupted=:
  1781. fi;;
  1782. esac
  1783. # Pass precious variables to config.status.
  1784. if test "$ac_new_set" = set; then
  1785. case $ac_new_val in
  1786. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1787. *) ac_arg=$ac_var=$ac_new_val ;;
  1788. esac
  1789. case " $ac_configure_args " in
  1790. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1791. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1792. esac
  1793. fi
  1794. done
  1795. if $ac_cache_corrupted; then
  1796. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1797. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1798. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1799. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. fi
  1802. ac_ext=c
  1803. ac_cpp='$CPP $CPPFLAGS'
  1804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1807. LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
  1808. ac_aux_dir=
  1809. for ac_dir in autoconf "$srcdir"/autoconf; do
  1810. if test -f "$ac_dir/install-sh"; then
  1811. ac_aux_dir=$ac_dir
  1812. ac_install_sh="$ac_aux_dir/install-sh -c"
  1813. break
  1814. elif test -f "$ac_dir/install.sh"; then
  1815. ac_aux_dir=$ac_dir
  1816. ac_install_sh="$ac_aux_dir/install.sh -c"
  1817. break
  1818. elif test -f "$ac_dir/shtool"; then
  1819. ac_aux_dir=$ac_dir
  1820. ac_install_sh="$ac_aux_dir/shtool install -c"
  1821. break
  1822. fi
  1823. done
  1824. if test -z "$ac_aux_dir"; then
  1825. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
  1826. echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. # These three variables are undocumented and unsupported,
  1830. # and are intended to be withdrawn in a future Autoconf release.
  1831. # They can cause serious problems if a builder's source tree is in a directory
  1832. # whose full name contains unusual characters.
  1833. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1834. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1835. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1836. if test ${srcdir} != "." ; then
  1837. if test -f ${srcdir}/include/llvm/Config/config.h ; then
  1838. { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
  1839. echo "$as_me: error: Already configured in ${srcdir}" >&2;}
  1840. { (exit 1); exit 1; }; }
  1841. fi
  1842. fi
  1843. for i in `ls ${srcdir}/projects`
  1844. do
  1845. if test -d ${srcdir}/projects/${i} ; then
  1846. case ${i} in
  1847. CVS) ;;
  1848. sample) subdirs="$subdirs projects/sample"
  1849. ;;
  1850. privbracket) subdirs="$subdirs projects/privbracket"
  1851. ;;
  1852. llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
  1853. ;;
  1854. # llvm-test is the old name of the test-suite, kept here for backwards
  1855. # compatibility
  1856. llvm-test) subdirs="$subdirs projects/llvm-test"
  1857. ;;
  1858. test-suite) subdirs="$subdirs projects/test-suite"
  1859. ;;
  1860. llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
  1861. ;;
  1862. llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
  1863. ;;
  1864. llvm-java) subdirs="$subdirs projects/llvm-java"
  1865. ;;
  1866. llvm-tv) subdirs="$subdirs projects/llvm-tv"
  1867. ;;
  1868. llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
  1869. ;;
  1870. poolalloc) subdirs="$subdirs projects/poolalloc"
  1871. ;;
  1872. llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
  1873. ;;
  1874. *)
  1875. { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
  1876. echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
  1877. ;;
  1878. esac
  1879. fi
  1880. done
  1881. # Make sure we can run config.sub.
  1882. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1883. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1884. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1885. { (exit 1); exit 1; }; }
  1886. { echo "$as_me:$LINENO: checking build system type" >&5
  1887. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1888. if test "${ac_cv_build+set}" = set; then
  1889. echo $ECHO_N "(cached) $ECHO_C" >&6
  1890. else
  1891. ac_build_alias=$build_alias
  1892. test "x$ac_build_alias" = x &&
  1893. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1894. test "x$ac_build_alias" = x &&
  1895. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1896. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1897. { (exit 1); exit 1; }; }
  1898. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1899. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1900. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1901. { (exit 1); exit 1; }; }
  1902. fi
  1903. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1904. echo "${ECHO_T}$ac_cv_build" >&6; }
  1905. case $ac_cv_build in
  1906. *-*-*) ;;
  1907. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1908. echo "$as_me: error: invalid value of canonical build" >&2;}
  1909. { (exit 1); exit 1; }; };;
  1910. esac
  1911. build=$ac_cv_build
  1912. ac_save_IFS=$IFS; IFS='-'
  1913. set x $ac_cv_build
  1914. shift
  1915. build_cpu=$1
  1916. build_vendor=$2
  1917. shift; shift
  1918. # Remember, the first character of IFS is used to create $*,
  1919. # except with old shells:
  1920. build_os=$*
  1921. IFS=$ac_save_IFS
  1922. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1923. { echo "$as_me:$LINENO: checking host system type" >&5
  1924. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1925. if test "${ac_cv_host+set}" = set; then
  1926. echo $ECHO_N "(cached) $ECHO_C" >&6
  1927. else
  1928. if test "x$host_alias" = x; then
  1929. ac_cv_host=$ac_cv_build
  1930. else
  1931. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1932. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1933. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1934. { (exit 1); exit 1; }; }
  1935. fi
  1936. fi
  1937. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1938. echo "${ECHO_T}$ac_cv_host" >&6; }
  1939. case $ac_cv_host in
  1940. *-*-*) ;;
  1941. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1942. echo "$as_me: error: invalid value of canonical host" >&2;}
  1943. { (exit 1); exit 1; }; };;
  1944. esac
  1945. host=$ac_cv_host
  1946. ac_save_IFS=$IFS; IFS='-'
  1947. set x $ac_cv_host
  1948. shift
  1949. host_cpu=$1
  1950. host_vendor=$2
  1951. shift; shift
  1952. # Remember, the first character of IFS is used to create $*,
  1953. # except with old shells:
  1954. host_os=$*
  1955. IFS=$ac_save_IFS
  1956. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1957. { echo "$as_me:$LINENO: checking target system type" >&5
  1958. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1959. if test "${ac_cv_target+set}" = set; then
  1960. echo $ECHO_N "(cached) $ECHO_C" >&6
  1961. else
  1962. if test "x$target_alias" = x; then
  1963. ac_cv_target=$ac_cv_host
  1964. else
  1965. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1966. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1967. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1968. { (exit 1); exit 1; }; }
  1969. fi
  1970. fi
  1971. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1972. echo "${ECHO_T}$ac_cv_target" >&6; }
  1973. case $ac_cv_target in
  1974. *-*-*) ;;
  1975. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1976. echo "$as_me: error: invalid value of canonical target" >&2;}
  1977. { (exit 1); exit 1; }; };;
  1978. esac
  1979. target=$ac_cv_target
  1980. ac_save_IFS=$IFS; IFS='-'
  1981. set x $ac_cv_target
  1982. shift
  1983. target_cpu=$1
  1984. target_vendor=$2
  1985. shift; shift
  1986. # Remember, the first character of IFS is used to create $*,
  1987. # except with old shells:
  1988. target_os=$*
  1989. IFS=$ac_save_IFS
  1990. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1991. # The aliases save the names the user supplied, while $host etc.
  1992. # will get canonicalized.
  1993. test -n "$target_alias" &&
  1994. test "$program_prefix$program_suffix$program_transform_name" = \
  1995. NONENONEs,x,x, &&
  1996. program_prefix=${target_alias}-
  1997. { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
  1998. echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
  1999. if test "${llvm_cv_os_type+set}" = set; then
  2000. echo $ECHO_N "(cached) $ECHO_C" >&6
  2001. else
  2002. case $host in
  2003. *-*-aix*)
  2004. llvm_cv_link_all_option="-Wl,--whole-archive"
  2005. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2006. llvm_cv_os_type="AIX"
  2007. llvm_cv_platform_type="Unix" ;;
  2008. *-*-irix*)
  2009. llvm_cv_link_all_option="-Wl,--whole-archive"
  2010. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2011. llvm_cv_os_type="IRIX"
  2012. llvm_cv_platform_type="Unix" ;;
  2013. *-*-cygwin*)
  2014. llvm_cv_link_all_option="-Wl,--whole-archive"
  2015. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2016. llvm_cv_os_type="Cygwin"
  2017. llvm_cv_platform_type="Unix" ;;
  2018. *-*-darwin*)
  2019. llvm_cv_link_all_option="-Wl,-all_load"
  2020. llvm_cv_no_link_all_option="-Wl,-noall_load"
  2021. llvm_cv_os_type="Darwin"
  2022. llvm_cv_platform_type="Unix" ;;
  2023. *-*-freebsd*)
  2024. llvm_cv_link_all_option="-Wl,--whole-archive"
  2025. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2026. llvm_cv_os_type="FreeBSD"
  2027. llvm_cv_platform_type="Unix" ;;
  2028. *-*-openbsd*)
  2029. llvm_cv_link_all_option="-Wl,--whole-archive"
  2030. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2031. llvm_cv_os_type="OpenBSD"
  2032. llvm_cv_platform_type="Unix" ;;
  2033. *-*-netbsd*)
  2034. llvm_cv_link_all_option="-Wl,--whole-archive"
  2035. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2036. llvm_cv_os_type="NetBSD"
  2037. llvm_cv_platform_type="Unix" ;;
  2038. *-*-dragonfly*)
  2039. llvm_cv_link_all_option="-Wl,--whole-archive"
  2040. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2041. llvm_cv_os_type="DragonFly"
  2042. llvm_cv_platform_type="Unix" ;;
  2043. *-*-hpux*)
  2044. llvm_cv_link_all_option="-Wl,--whole-archive"
  2045. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2046. llvm_cv_os_type="HP-UX"
  2047. llvm_cv_platform_type="Unix" ;;
  2048. *-*-interix*)
  2049. llvm_cv_link_all_option="-Wl,--whole-archive"
  2050. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2051. llvm_cv_os_type="Interix"
  2052. llvm_cv_platform_type="Unix" ;;
  2053. *-*-linux*)
  2054. llvm_cv_link_all_option="-Wl,--whole-archive"
  2055. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2056. llvm_cv_os_type="Linux"
  2057. llvm_cv_platform_type="Unix" ;;
  2058. *-*-solaris*)
  2059. llvm_cv_link_all_option="-Wl,-z,allextract"
  2060. llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
  2061. llvm_cv_os_type="SunOS"
  2062. llvm_cv_platform_type="Unix" ;;
  2063. *-*-win32*)
  2064. llvm_cv_link_all_option="-Wl,--whole-archive"
  2065. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2066. llvm_cv_os_type="Win32"
  2067. llvm_cv_platform_type="Win32" ;;
  2068. *-*-mingw*)
  2069. llvm_cv_link_all_option="-Wl,--whole-archive"
  2070. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2071. llvm_cv_os_type="MingW"
  2072. llvm_cv_platform_type="Win32" ;;
  2073. *-unknown-eabi*)
  2074. llvm_cv_link_all_option="-Wl,--whole-archive"
  2075. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2076. llvm_cv_os_type="Freestanding"
  2077. llvm_cv_platform_type="Unix" ;;
  2078. *-unknown-elf*)
  2079. llvm_cv_link_all_option="-Wl,--whole-archive"
  2080. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2081. llvm_cv_os_type="Freestanding"
  2082. llvm_cv_platform_type="Unix" ;;
  2083. *)
  2084. llvm_cv_link_all_option=""
  2085. llvm_cv_no_link_all_option=""
  2086. llvm_cv_os_type="Unknown"
  2087. llvm_cv_platform_type="Unknown" ;;
  2088. esac
  2089. fi
  2090. { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
  2091. echo "${ECHO_T}$llvm_cv_os_type" >&6; }
  2092. { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
  2093. echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
  2094. if test "${llvm_cv_target_os_type+set}" = set; then
  2095. echo $ECHO_N "(cached) $ECHO_C" >&6
  2096. else
  2097. case $target in
  2098. *-*-aix*)
  2099. llvm_cv_target_os_type="AIX" ;;
  2100. *-*-irix*)
  2101. llvm_cv_target_os_type="IRIX" ;;
  2102. *-*-cygwin*)
  2103. llvm_cv_target_os_type="Cygwin" ;;
  2104. *-*-darwin*)
  2105. llvm_cv_target_os_type="Darwin" ;;
  2106. *-*-freebsd*)
  2107. llvm_cv_target_os_type="FreeBSD" ;;
  2108. *-*-openbsd*)
  2109. llvm_cv_target_os_type="OpenBSD" ;;
  2110. *-*-netbsd*)
  2111. llvm_cv_target_os_type="NetBSD" ;;
  2112. *-*-dragonfly*)
  2113. llvm_cv_target_os_type="DragonFly" ;;
  2114. *-*-hpux*)
  2115. llvm_cv_target_os_type="HP-UX" ;;
  2116. *-*-interix*)
  2117. llvm_cv_target_os_type="Interix" ;;
  2118. *-*-linux*)
  2119. llvm_cv_target_os_type="Linux" ;;
  2120. *-*-solaris*)
  2121. llvm_cv_target_os_type="SunOS" ;;
  2122. *-*-win32*)
  2123. llvm_cv_target_os_type="Win32" ;;
  2124. *-*-mingw*)
  2125. llvm_cv_target_os_type="MingW" ;;
  2126. *-unknown-eabi*)
  2127. llvm_cv_target_os_type="Freestanding" ;;
  2128. *)
  2129. llvm_cv_target_os_type="Unknown" ;;
  2130. esac
  2131. fi
  2132. { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
  2133. echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
  2134. if test "$llvm_cv_os_type" = "Unknown" ; then
  2135. { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
  2136. echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
  2137. { (exit 1); exit 1; }; }
  2138. fi
  2139. OS=$llvm_cv_os_type
  2140. HOST_OS=$llvm_cv_os_type
  2141. TARGET_OS=$llvm_cv_target_os_type
  2142. LINKALL=$llvm_cv_link_all_option
  2143. NOLINKALL=$llvm_cv_no_link_all_option
  2144. case $llvm_cv_platform_type in
  2145. Unix)
  2146. cat >>confdefs.h <<\_ACEOF
  2147. #define LLVM_ON_UNIX 1
  2148. _ACEOF
  2149. LLVM_ON_UNIX=1
  2150. LLVM_ON_WIN32=0
  2151. ;;
  2152. Win32)
  2153. cat >>confdefs.h <<\_ACEOF
  2154. #define LLVM_ON_WIN32 1
  2155. _ACEOF
  2156. LLVM_ON_UNIX=0
  2157. LLVM_ON_WIN32=1
  2158. ;;
  2159. esac
  2160. { echo "$as_me:$LINENO: checking target architecture" >&5
  2161. echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
  2162. if test "${llvm_cv_target_arch+set}" = set; then
  2163. echo $ECHO_N "(cached) $ECHO_C" >&6
  2164. else
  2165. case $target in
  2166. i?86-*) llvm_cv_target_arch="x86" ;;
  2167. amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
  2168. sparc*-*) llvm_cv_target_arch="Sparc" ;;
  2169. powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
  2170. alpha*-*) llvm_cv_target_arch="Alpha" ;;
  2171. arm*-*) llvm_cv_target_arch="ARM" ;;
  2172. mips-*) llvm_cv_target_arch="Mips" ;;
  2173. pic16-*) llvm_cv_target_arch="PIC16" ;;
  2174. xcore-*) llvm_cv_target_arch="XCore" ;;
  2175. msp430-*) llvm_cv_target_arch="MSP430" ;;
  2176. s390x-*) llvm_cv_target_arch="SystemZ" ;;
  2177. bfin-*) llvm_cv_target_arch="Blackfin" ;;
  2178. *) llvm_cv_target_arch="Unknown" ;;
  2179. esac
  2180. fi
  2181. { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
  2182. echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
  2183. if test "$llvm_cv_target_arch" = "Unknown" ; then
  2184. { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
  2185. echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
  2186. fi
  2187. # Determine the LLVM native architecture for the target
  2188. case "$llvm_cv_target_arch" in
  2189. x86) LLVM_NATIVE_ARCH="X86" ;;
  2190. x86_64) LLVM_NATIVE_ARCH="X86" ;;
  2191. *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
  2192. esac
  2193. ARCH=$llvm_cv_target_arch
  2194. ac_ext=c
  2195. ac_cpp='$CPP $CPPFLAGS'
  2196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2199. if test -n "$ac_tool_prefix"; then
  2200. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2201. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2202. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2203. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2204. if test "${ac_cv_prog_CC+set}" = set; then
  2205. echo $ECHO_N "(cached) $ECHO_C" >&6
  2206. else
  2207. if test -n "$CC"; then
  2208. ac_cv_prog_CC="$CC" # Let the user override the test.
  2209. else
  2210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2211. for as_dir in $PATH
  2212. do
  2213. IFS=$as_save_IFS
  2214. test -z "$as_dir" && as_dir=.
  2215. for ac_exec_ext in '' $ac_executable_extensions; do
  2216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2217. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2218. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2219. break 2
  2220. fi
  2221. done
  2222. done
  2223. IFS=$as_save_IFS
  2224. fi
  2225. fi
  2226. CC=$ac_cv_prog_CC
  2227. if test -n "$CC"; then
  2228. { echo "$as_me:$LINENO: result: $CC" >&5
  2229. echo "${ECHO_T}$CC" >&6; }
  2230. else
  2231. { echo "$as_me:$LINENO: result: no" >&5
  2232. echo "${ECHO_T}no" >&6; }
  2233. fi
  2234. fi
  2235. if test -z "$ac_cv_prog_CC"; then
  2236. ac_ct_CC=$CC
  2237. # Extract the first word of "gcc", so it can be a program name with args.
  2238. set dummy gcc; ac_word=$2
  2239. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2241. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2242. echo $ECHO_N "(cached) $ECHO_C" >&6
  2243. else
  2244. if test -n "$ac_ct_CC"; then
  2245. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2246. else
  2247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2248. for as_dir in $PATH
  2249. do
  2250. IFS=$as_save_IFS
  2251. test -z "$as_dir" && as_dir=.
  2252. for ac_exec_ext in '' $ac_executable_extensions; do
  2253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2254. ac_cv_prog_ac_ct_CC="gcc"
  2255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2256. break 2
  2257. fi
  2258. done
  2259. done
  2260. IFS=$as_save_IFS
  2261. fi
  2262. fi
  2263. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2264. if test -n "$ac_ct_CC"; then
  2265. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2266. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2267. else
  2268. { echo "$as_me:$LINENO: result: no" >&5
  2269. echo "${ECHO_T}no" >&6; }
  2270. fi
  2271. if test "x$ac_ct_CC" = x; then
  2272. CC=""
  2273. else
  2274. case $cross_compiling:$ac_tool_warned in
  2275. yes:)
  2276. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2277. whose name does not start with the host triplet. If you think this
  2278. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2279. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2280. whose name does not start with the host triplet. If you think this
  2281. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2282. ac_tool_warned=yes ;;
  2283. esac
  2284. CC=$ac_ct_CC
  2285. fi
  2286. else
  2287. CC="$ac_cv_prog_CC"
  2288. fi
  2289. if test -z "$CC"; then
  2290. if test -n "$ac_tool_prefix"; then
  2291. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2292. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2293. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2294. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2295. if test "${ac_cv_prog_CC+set}" = set; then
  2296. echo $ECHO_N "(cached) $ECHO_C" >&6
  2297. else
  2298. if test -n "$CC"; then
  2299. ac_cv_prog_CC="$CC" # Let the user override the test.
  2300. else
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. for ac_exec_ext in '' $ac_executable_extensions; do
  2307. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2308. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2310. break 2
  2311. fi
  2312. done
  2313. done
  2314. IFS=$as_save_IFS
  2315. fi
  2316. fi
  2317. CC=$ac_cv_prog_CC
  2318. if test -n "$CC"; then
  2319. { echo "$as_me:$LINENO: result: $CC" >&5
  2320. echo "${ECHO_T}$CC" >&6; }
  2321. else
  2322. { echo "$as_me:$LINENO: result: no" >&5
  2323. echo "${ECHO_T}no" >&6; }
  2324. fi
  2325. fi
  2326. fi
  2327. if test -z "$CC"; then
  2328. # Extract the first word of "cc", so it can be a program name with args.
  2329. set dummy cc; ac_word=$2
  2330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2332. if test "${ac_cv_prog_CC+set}" = set; then
  2333. echo $ECHO_N "(cached) $ECHO_C" >&6
  2334. else
  2335. if test -n "$CC"; then
  2336. ac_cv_prog_CC="$CC" # Let the user override the test.
  2337. else
  2338. ac_prog_rejected=no
  2339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2340. for as_dir in $PATH
  2341. do
  2342. IFS=$as_save_IFS
  2343. test -z "$as_dir" && as_dir=.
  2344. for ac_exec_ext in '' $ac_executable_extensions; do
  2345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2346. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2347. ac_prog_rejected=yes
  2348. continue
  2349. fi
  2350. ac_cv_prog_CC="cc"
  2351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. if test $ac_prog_rejected = yes; then
  2358. # We found a bogon in the path, so make sure we never use it.
  2359. set dummy $ac_cv_prog_CC
  2360. shift
  2361. if test $# != 0; then
  2362. # We chose a different compiler from the bogus one.
  2363. # However, it has the same basename, so the bogon will be chosen
  2364. # first if we set CC to just the basename; use the full file name.
  2365. shift
  2366. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2367. fi
  2368. fi
  2369. fi
  2370. fi
  2371. CC=$ac_cv_prog_CC
  2372. if test -n "$CC"; then
  2373. { echo "$as_me:$LINENO: result: $CC" >&5
  2374. echo "${ECHO_T}$CC" >&6; }
  2375. else
  2376. { echo "$as_me:$LINENO: result: no" >&5
  2377. echo "${ECHO_T}no" >&6; }
  2378. fi
  2379. fi
  2380. if test -z "$CC"; then
  2381. if test -n "$ac_tool_prefix"; then
  2382. for ac_prog in cl.exe
  2383. do
  2384. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2385. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2386. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2387. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2388. if test "${ac_cv_prog_CC+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -n "$CC"; then
  2392. ac_cv_prog_CC="$CC" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2401. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. CC=$ac_cv_prog_CC
  2411. if test -n "$CC"; then
  2412. { echo "$as_me:$LINENO: result: $CC" >&5
  2413. echo "${ECHO_T}$CC" >&6; }
  2414. else
  2415. { echo "$as_me:$LINENO: result: no" >&5
  2416. echo "${ECHO_T}no" >&6; }
  2417. fi
  2418. test -n "$CC" && break
  2419. done
  2420. fi
  2421. if test -z "$CC"; then
  2422. ac_ct_CC=$CC
  2423. for ac_prog in cl.exe
  2424. do
  2425. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2426. set dummy $ac_prog; ac_word=$2
  2427. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2429. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2430. echo $ECHO_N "(cached) $ECHO_C" >&6
  2431. else
  2432. if test -n "$ac_ct_CC"; then
  2433. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2434. else
  2435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2436. for as_dir in $PATH
  2437. do
  2438. IFS=$as_save_IFS
  2439. test -z "$as_dir" && as_dir=.
  2440. for ac_exec_ext in '' $ac_executable_extensions; do
  2441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2442. ac_cv_prog_ac_ct_CC="$ac_prog"
  2443. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2444. break 2
  2445. fi
  2446. done
  2447. done
  2448. IFS=$as_save_IFS
  2449. fi
  2450. fi
  2451. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2452. if test -n "$ac_ct_CC"; then
  2453. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2454. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2455. else
  2456. { echo "$as_me:$LINENO: result: no" >&5
  2457. echo "${ECHO_T}no" >&6; }
  2458. fi
  2459. test -n "$ac_ct_CC" && break
  2460. done
  2461. if test "x$ac_ct_CC" = x; then
  2462. CC=""
  2463. else
  2464. case $cross_compiling:$ac_tool_warned in
  2465. yes:)
  2466. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2467. whose name does not start with the host triplet. If you think this
  2468. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2469. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2470. whose name does not start with the host triplet. If you think this
  2471. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2472. ac_tool_warned=yes ;;
  2473. esac
  2474. CC=$ac_ct_CC
  2475. fi
  2476. fi
  2477. fi
  2478. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2479. See \`config.log' for more details." >&5
  2480. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2481. See \`config.log' for more details." >&2;}
  2482. { (exit 1); exit 1; }; }
  2483. # Provide some information about the compiler.
  2484. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2485. ac_compiler=`set X $ac_compile; echo $2`
  2486. { (ac_try="$ac_compiler --version >&5"
  2487. case "(($ac_try" in
  2488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2489. *) ac_try_echo=$ac_try;;
  2490. esac
  2491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2492. (eval "$ac_compiler --version >&5") 2>&5
  2493. ac_status=$?
  2494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -v >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2502. (eval "$ac_compiler -v >&5") 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. { (ac_try="$ac_compiler -V >&5"
  2507. case "(($ac_try" in
  2508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2509. *) ac_try_echo=$ac_try;;
  2510. esac
  2511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2512. (eval "$ac_compiler -V >&5") 2>&5
  2513. ac_status=$?
  2514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2515. (exit $ac_status); }
  2516. cat >conftest.$ac_ext <<_ACEOF
  2517. /* confdefs.h. */
  2518. _ACEOF
  2519. cat confdefs.h >>conftest.$ac_ext
  2520. cat >>conftest.$ac_ext <<_ACEOF
  2521. /* end confdefs.h. */
  2522. int
  2523. main ()
  2524. {
  2525. ;
  2526. return 0;
  2527. }
  2528. _ACEOF
  2529. ac_clean_files_save=$ac_clean_files
  2530. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2531. # Try to create an executable without -o first, disregard a.out.
  2532. # It will help us diagnose broken compilers, and finding out an intuition
  2533. # of exeext.
  2534. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2535. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2536. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2537. #
  2538. # List of possible output files, starting from the most likely.
  2539. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2540. # only as a last resort. b.out is created by i960 compilers.
  2541. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2542. #
  2543. # The IRIX 6 linker writes into existing files which may not be
  2544. # executable, retaining their permissions. Remove them first so a
  2545. # subsequent execution test works.
  2546. ac_rmfiles=
  2547. for ac_file in $ac_files
  2548. do
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2551. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2552. esac
  2553. done
  2554. rm -f $ac_rmfiles
  2555. if { (ac_try="$ac_link_default"
  2556. case "(($ac_try" in
  2557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2558. *) ac_try_echo=$ac_try;;
  2559. esac
  2560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2561. (eval "$ac_link_default") 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); }; then
  2565. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2566. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2567. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2568. # so that the user can short-circuit this test for compilers unknown to
  2569. # Autoconf.
  2570. for ac_file in $ac_files
  2571. do
  2572. test -f "$ac_file" || continue
  2573. case $ac_file in
  2574. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2575. ;;
  2576. [ab].out )
  2577. # We found the default executable, but exeext='' is most
  2578. # certainly right.
  2579. break;;
  2580. *.* )
  2581. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2582. then :; else
  2583. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2584. fi
  2585. # We set ac_cv_exeext here because the later test for it is not
  2586. # safe: cross compilers may not add the suffix if given an `-o'
  2587. # argument, so we may need to know it at that point already.
  2588. # Even if this section looks crufty: it has the advantage of
  2589. # actually working.
  2590. break;;
  2591. * )
  2592. break;;
  2593. esac
  2594. done
  2595. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2596. else
  2597. echo "$as_me: failed program was:" >&5
  2598. sed 's/^/| /' conftest.$ac_ext >&5
  2599. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2600. See \`config.log' for more details." >&5
  2601. echo "$as_me: error: C compiler cannot create executables
  2602. See \`config.log' for more details." >&2;}
  2603. { (exit 77); exit 77; }; }
  2604. fi
  2605. ac_exeext=$ac_cv_exeext
  2606. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2607. echo "${ECHO_T}$ac_file" >&6; }
  2608. # Check that the compiler produces executables we can run. If not, either
  2609. # the compiler is broken, or we cross compile.
  2610. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2611. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2612. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2613. # If not cross compiling, check that we can run a simple program.
  2614. if test "$cross_compiling" != yes; then
  2615. if { ac_try='./$ac_file'
  2616. { (case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2621. (eval "$ac_try") 2>&5
  2622. ac_status=$?
  2623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. (exit $ac_status); }; }; then
  2625. cross_compiling=no
  2626. else
  2627. if test "$cross_compiling" = maybe; then
  2628. cross_compiling=yes
  2629. else
  2630. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2631. If you meant to cross compile, use \`--host'.
  2632. See \`config.log' for more details." >&5
  2633. echo "$as_me: error: cannot run C compiled programs.
  2634. If you meant to cross compile, use \`--host'.
  2635. See \`config.log' for more details." >&2;}
  2636. { (exit 1); exit 1; }; }
  2637. fi
  2638. fi
  2639. fi
  2640. { echo "$as_me:$LINENO: result: yes" >&5
  2641. echo "${ECHO_T}yes" >&6; }
  2642. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2643. ac_clean_files=$ac_clean_files_save
  2644. # Check that the compiler produces executables we can run. If not, either
  2645. # the compiler is broken, or we cross compile.
  2646. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2647. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2648. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2649. echo "${ECHO_T}$cross_compiling" >&6; }
  2650. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2651. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2652. if { (ac_try="$ac_link"
  2653. case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_link") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; then
  2662. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2663. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2664. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2665. # `rm'.
  2666. for ac_file in conftest.exe conftest conftest.*; do
  2667. test -f "$ac_file" || continue
  2668. case $ac_file in
  2669. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2670. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2671. break;;
  2672. * ) break;;
  2673. esac
  2674. done
  2675. else
  2676. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2677. See \`config.log' for more details." >&5
  2678. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2679. See \`config.log' for more details." >&2;}
  2680. { (exit 1); exit 1; }; }
  2681. fi
  2682. rm -f conftest$ac_cv_exeext
  2683. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2684. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2685. rm -f conftest.$ac_ext
  2686. EXEEXT=$ac_cv_exeext
  2687. ac_exeext=$EXEEXT
  2688. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2689. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2690. if test "${ac_cv_objext+set}" = set; then
  2691. echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. cat >conftest.$ac_ext <<_ACEOF
  2694. /* confdefs.h. */
  2695. _ACEOF
  2696. cat confdefs.h >>conftest.$ac_ext
  2697. cat >>conftest.$ac_ext <<_ACEOF
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. ;
  2703. return 0;
  2704. }
  2705. _ACEOF
  2706. rm -f conftest.o conftest.obj
  2707. if { (ac_try="$ac_compile"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2713. (eval "$ac_compile") 2>&5
  2714. ac_status=$?
  2715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }; then
  2717. for ac_file in conftest.o conftest.obj conftest.*; do
  2718. test -f "$ac_file" || continue;
  2719. case $ac_file in
  2720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2721. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2722. break;;
  2723. esac
  2724. done
  2725. else
  2726. echo "$as_me: failed program was:" >&5
  2727. sed 's/^/| /' conftest.$ac_ext >&5
  2728. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2729. See \`config.log' for more details." >&5
  2730. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2731. See \`config.log' for more details." >&2;}
  2732. { (exit 1); exit 1; }; }
  2733. fi
  2734. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2735. fi
  2736. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2737. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2738. OBJEXT=$ac_cv_objext
  2739. ac_objext=$OBJEXT
  2740. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2741. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2742. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. cat >conftest.$ac_ext <<_ACEOF
  2746. /* confdefs.h. */
  2747. _ACEOF
  2748. cat confdefs.h >>conftest.$ac_ext
  2749. cat >>conftest.$ac_ext <<_ACEOF
  2750. /* end confdefs.h. */
  2751. int
  2752. main ()
  2753. {
  2754. #ifndef __GNUC__
  2755. choke me
  2756. #endif
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. rm -f conftest.$ac_objext
  2762. if { (ac_try="$ac_compile"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2768. (eval "$ac_compile") 2>conftest.er1
  2769. ac_status=$?
  2770. grep -v '^ *+' conftest.er1 >conftest.err
  2771. rm -f conftest.er1
  2772. cat conftest.err >&5
  2773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2774. (exit $ac_status); } &&
  2775. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2776. { (case "(($ac_try" in
  2777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2778. *) ac_try_echo=$ac_try;;
  2779. esac
  2780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2781. (eval "$ac_try") 2>&5
  2782. ac_status=$?
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); }; } &&
  2785. { ac_try='test -s conftest.$ac_objext'
  2786. { (case "(($ac_try" in
  2787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2788. *) ac_try_echo=$ac_try;;
  2789. esac
  2790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2791. (eval "$ac_try") 2>&5
  2792. ac_status=$?
  2793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2794. (exit $ac_status); }; }; then
  2795. ac_compiler_gnu=yes
  2796. else
  2797. echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. ac_compiler_gnu=no
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2803. fi
  2804. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2805. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2806. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2807. ac_test_CFLAGS=${CFLAGS+set}
  2808. ac_save_CFLAGS=$CFLAGS
  2809. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2810. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2811. if test "${ac_cv_prog_cc_g+set}" = set; then
  2812. echo $ECHO_N "(cached) $ECHO_C" >&6
  2813. else
  2814. ac_save_c_werror_flag=$ac_c_werror_flag
  2815. ac_c_werror_flag=yes
  2816. ac_cv_prog_cc_g=no
  2817. CFLAGS="-g"
  2818. cat >conftest.$ac_ext <<_ACEOF
  2819. /* confdefs.h. */
  2820. _ACEOF
  2821. cat confdefs.h >>conftest.$ac_ext
  2822. cat >>conftest.$ac_ext <<_ACEOF
  2823. /* end confdefs.h. */
  2824. int
  2825. main ()
  2826. {
  2827. ;
  2828. return 0;
  2829. }
  2830. _ACEOF
  2831. rm -f conftest.$ac_objext
  2832. if { (ac_try="$ac_compile"
  2833. case "(($ac_try" in
  2834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2835. *) ac_try_echo=$ac_try;;
  2836. esac
  2837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2838. (eval "$ac_compile") 2>conftest.er1
  2839. ac_status=$?
  2840. grep -v '^ *+' conftest.er1 >conftest.err
  2841. rm -f conftest.er1
  2842. cat conftest.err >&5
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); } &&
  2845. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2846. { (case "(($ac_try" in
  2847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2848. *) ac_try_echo=$ac_try;;
  2849. esac
  2850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2851. (eval "$ac_try") 2>&5
  2852. ac_status=$?
  2853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2854. (exit $ac_status); }; } &&
  2855. { ac_try='test -s conftest.$ac_objext'
  2856. { (case "(($ac_try" in
  2857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2858. *) ac_try_echo=$ac_try;;
  2859. esac
  2860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2861. (eval "$ac_try") 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. ac_cv_prog_cc_g=yes
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. CFLAGS=""
  2870. cat >conftest.$ac_ext <<_ACEOF
  2871. /* confdefs.h. */
  2872. _ACEOF
  2873. cat confdefs.h >>conftest.$ac_ext
  2874. cat >>conftest.$ac_ext <<_ACEOF
  2875. /* end confdefs.h. */
  2876. int
  2877. main ()
  2878. {
  2879. ;
  2880. return 0;
  2881. }
  2882. _ACEOF
  2883. rm -f conftest.$ac_objext
  2884. if { (ac_try="$ac_compile"
  2885. case "(($ac_try" in
  2886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2887. *) ac_try_echo=$ac_try;;
  2888. esac
  2889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2890. (eval "$ac_compile") 2>conftest.er1
  2891. ac_status=$?
  2892. grep -v '^ *+' conftest.er1 >conftest.err
  2893. rm -f conftest.er1
  2894. cat conftest.err >&5
  2895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. (exit $ac_status); } &&
  2897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2898. { (case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2903. (eval "$ac_try") 2>&5
  2904. ac_status=$?
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); }; } &&
  2907. { ac_try='test -s conftest.$ac_objext'
  2908. { (case "(($ac_try" in
  2909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2910. *) ac_try_echo=$ac_try;;
  2911. esac
  2912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2913. (eval "$ac_try") 2>&5
  2914. ac_status=$?
  2915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2916. (exit $ac_status); }; }; then
  2917. :
  2918. else
  2919. echo "$as_me: failed program was:" >&5
  2920. sed 's/^/| /' conftest.$ac_ext >&5
  2921. ac_c_werror_flag=$ac_save_c_werror_flag
  2922. CFLAGS="-g"
  2923. cat >conftest.$ac_ext <<_ACEOF
  2924. /* confdefs.h. */
  2925. _ACEOF
  2926. cat confdefs.h >>conftest.$ac_ext
  2927. cat >>conftest.$ac_ext <<_ACEOF
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. rm -f conftest.$ac_objext
  2937. if { (ac_try="$ac_compile"
  2938. case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943. (eval "$ac_compile") 2>conftest.er1
  2944. ac_status=$?
  2945. grep -v '^ *+' conftest.er1 >conftest.err
  2946. rm -f conftest.er1
  2947. cat conftest.err >&5
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); } &&
  2950. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2951. { (case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2956. (eval "$ac_try") 2>&5
  2957. ac_status=$?
  2958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; } &&
  2960. { ac_try='test -s conftest.$ac_objext'
  2961. { (case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2966. (eval "$ac_try") 2>&5
  2967. ac_status=$?
  2968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2969. (exit $ac_status); }; }; then
  2970. ac_cv_prog_cc_g=yes
  2971. else
  2972. echo "$as_me: failed program was:" >&5
  2973. sed 's/^/| /' conftest.$ac_ext >&5
  2974. fi
  2975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. fi
  2979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2980. ac_c_werror_flag=$ac_save_c_werror_flag
  2981. fi
  2982. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2983. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2984. if test "$ac_test_CFLAGS" = set; then
  2985. CFLAGS=$ac_save_CFLAGS
  2986. elif test $ac_cv_prog_cc_g = yes; then
  2987. if test "$GCC" = yes; then
  2988. CFLAGS="-g -O2"
  2989. else
  2990. CFLAGS="-g"
  2991. fi
  2992. else
  2993. if test "$GCC" = yes; then
  2994. CFLAGS="-O2"
  2995. else
  2996. CFLAGS=
  2997. fi
  2998. fi
  2999. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3000. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3001. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3002. echo $ECHO_N "(cached) $ECHO_C" >&6
  3003. else
  3004. ac_cv_prog_cc_c89=no
  3005. ac_save_CC=$CC
  3006. cat >conftest.$ac_ext <<_ACEOF
  3007. /* confdefs.h. */
  3008. _ACEOF
  3009. cat confdefs.h >>conftest.$ac_ext
  3010. cat >>conftest.$ac_ext <<_ACEOF
  3011. /* end confdefs.h. */
  3012. #include <stdarg.h>
  3013. #include <stdio.h>
  3014. #include <sys/types.h>
  3015. #include <sys/stat.h>
  3016. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3017. struct buf { int x; };
  3018. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3019. static char *e (p, i)
  3020. char **p;
  3021. int i;
  3022. {
  3023. return p[i];
  3024. }
  3025. static char *f (char * (*g) (char **, int), char **p, ...)
  3026. {
  3027. char *s;
  3028. va_list v;
  3029. va_start (v,p);
  3030. s = g (p, va_arg (v,int));
  3031. va_end (v);
  3032. return s;
  3033. }
  3034. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3035. function prototypes and stuff, but not '\xHH' hex character constants.
  3036. These don't provoke an error unfortunately, instead are silently treated
  3037. as 'x'. The following induces an error, until -std is added to get
  3038. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3039. array size at least. It's necessary to write '\x00'==0 to get something
  3040. that's true only with -std. */
  3041. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3042. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3043. inside strings and character constants. */
  3044. #define FOO(x) 'x'
  3045. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3046. int test (int i, double x);
  3047. struct s1 {int (*f) (int a);};
  3048. struct s2 {int (*f) (double a);};
  3049. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3050. int argc;
  3051. char **argv;
  3052. int
  3053. main ()
  3054. {
  3055. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3061. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3062. do
  3063. CC="$ac_save_CC $ac_arg"
  3064. rm -f conftest.$ac_objext
  3065. if { (ac_try="$ac_compile"
  3066. case "(($ac_try" in
  3067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068. *) ac_try_echo=$ac_try;;
  3069. esac
  3070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3071. (eval "$ac_compile") 2>conftest.er1
  3072. ac_status=$?
  3073. grep -v '^ *+' conftest.er1 >conftest.err
  3074. rm -f conftest.er1
  3075. cat conftest.err >&5
  3076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3077. (exit $ac_status); } &&
  3078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3079. { (case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3084. (eval "$ac_try") 2>&5
  3085. ac_status=$?
  3086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3087. (exit $ac_status); }; } &&
  3088. { ac_try='test -s conftest.$ac_objext'
  3089. { (case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3094. (eval "$ac_try") 2>&5
  3095. ac_status=$?
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); }; }; then
  3098. ac_cv_prog_cc_c89=$ac_arg
  3099. else
  3100. echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. fi
  3103. rm -f core conftest.err conftest.$ac_objext
  3104. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3105. done
  3106. rm -f conftest.$ac_ext
  3107. CC=$ac_save_CC
  3108. fi
  3109. # AC_CACHE_VAL
  3110. case "x$ac_cv_prog_cc_c89" in
  3111. x)
  3112. { echo "$as_me:$LINENO: result: none needed" >&5
  3113. echo "${ECHO_T}none needed" >&6; } ;;
  3114. xno)
  3115. { echo "$as_me:$LINENO: result: unsupported" >&5
  3116. echo "${ECHO_T}unsupported" >&6; } ;;
  3117. *)
  3118. CC="$CC $ac_cv_prog_cc_c89"
  3119. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3120. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3121. esac
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. ac_ext=c
  3128. ac_cpp='$CPP $CPPFLAGS'
  3129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3132. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3133. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3134. # On Suns, sometimes $CPP names a directory.
  3135. if test -n "$CPP" && test -d "$CPP"; then
  3136. CPP=
  3137. fi
  3138. if test -z "$CPP"; then
  3139. if test "${ac_cv_prog_CPP+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. # Double quotes because CPP needs to be expanded
  3143. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3144. do
  3145. ac_preproc_ok=false
  3146. for ac_c_preproc_warn_flag in '' yes
  3147. do
  3148. # Use a header file that comes with gcc, so configuring glibc
  3149. # with a fresh cross-compiler works.
  3150. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3151. # <limits.h> exists even on freestanding compilers.
  3152. # On the NeXT, cc -E runs the code through the compiler's parser,
  3153. # not just through cpp. "Syntax error" is here to catch this case.
  3154. cat >conftest.$ac_ext <<_ACEOF
  3155. /* confdefs.h. */
  3156. _ACEOF
  3157. cat confdefs.h >>conftest.$ac_ext
  3158. cat >>conftest.$ac_ext <<_ACEOF
  3159. /* end confdefs.h. */
  3160. #ifdef __STDC__
  3161. # include <limits.h>
  3162. #else
  3163. # include <assert.h>
  3164. #endif
  3165. Syntax error
  3166. _ACEOF
  3167. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3173. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3174. ac_status=$?
  3175. grep -v '^ *+' conftest.er1 >conftest.err
  3176. rm -f conftest.er1
  3177. cat conftest.err >&5
  3178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3179. (exit $ac_status); } >/dev/null; then
  3180. if test -s conftest.err; then
  3181. ac_cpp_err=$ac_c_preproc_warn_flag
  3182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3183. else
  3184. ac_cpp_err=
  3185. fi
  3186. else
  3187. ac_cpp_err=yes
  3188. fi
  3189. if test -z "$ac_cpp_err"; then
  3190. :
  3191. else
  3192. echo "$as_me: failed program was:" >&5
  3193. sed 's/^/| /' conftest.$ac_ext >&5
  3194. # Broken: fails on valid input.
  3195. continue
  3196. fi
  3197. rm -f conftest.err conftest.$ac_ext
  3198. # OK, works on sane cases. Now check whether nonexistent headers
  3199. # can be detected and how.
  3200. cat >conftest.$ac_ext <<_ACEOF
  3201. /* confdefs.h. */
  3202. _ACEOF
  3203. cat confdefs.h >>conftest.$ac_ext
  3204. cat >>conftest.$ac_ext <<_ACEOF
  3205. /* end confdefs.h. */
  3206. #include <ac_nonexistent.h>
  3207. _ACEOF
  3208. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3209. case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3214. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3215. ac_status=$?
  3216. grep -v '^ *+' conftest.er1 >conftest.err
  3217. rm -f conftest.er1
  3218. cat conftest.err >&5
  3219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220. (exit $ac_status); } >/dev/null; then
  3221. if test -s conftest.err; then
  3222. ac_cpp_err=$ac_c_preproc_warn_flag
  3223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3224. else
  3225. ac_cpp_err=
  3226. fi
  3227. else
  3228. ac_cpp_err=yes
  3229. fi
  3230. if test -z "$ac_cpp_err"; then
  3231. # Broken: success on invalid input.
  3232. continue
  3233. else
  3234. echo "$as_me: failed program was:" >&5
  3235. sed 's/^/| /' conftest.$ac_ext >&5
  3236. # Passes both tests.
  3237. ac_preproc_ok=:
  3238. break
  3239. fi
  3240. rm -f conftest.err conftest.$ac_ext
  3241. done
  3242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3243. rm -f conftest.err conftest.$ac_ext
  3244. if $ac_preproc_ok; then
  3245. break
  3246. fi
  3247. done
  3248. ac_cv_prog_CPP=$CPP
  3249. fi
  3250. CPP=$ac_cv_prog_CPP
  3251. else
  3252. ac_cv_prog_CPP=$CPP
  3253. fi
  3254. { echo "$as_me:$LINENO: result: $CPP" >&5
  3255. echo "${ECHO_T}$CPP" >&6; }
  3256. ac_preproc_ok=false
  3257. for ac_c_preproc_warn_flag in '' yes
  3258. do
  3259. # Use a header file that comes with gcc, so configuring glibc
  3260. # with a fresh cross-compiler works.
  3261. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3262. # <limits.h> exists even on freestanding compilers.
  3263. # On the NeXT, cc -E runs the code through the compiler's parser,
  3264. # not just through cpp. "Syntax error" is here to catch this case.
  3265. cat >conftest.$ac_ext <<_ACEOF
  3266. /* confdefs.h. */
  3267. _ACEOF
  3268. cat confdefs.h >>conftest.$ac_ext
  3269. cat >>conftest.$ac_ext <<_ACEOF
  3270. /* end confdefs.h. */
  3271. #ifdef __STDC__
  3272. # include <limits.h>
  3273. #else
  3274. # include <assert.h>
  3275. #endif
  3276. Syntax error
  3277. _ACEOF
  3278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3279. case "(($ac_try" in
  3280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3281. *) ac_try_echo=$ac_try;;
  3282. esac
  3283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3285. ac_status=$?
  3286. grep -v '^ *+' conftest.er1 >conftest.err
  3287. rm -f conftest.er1
  3288. cat conftest.err >&5
  3289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3290. (exit $ac_status); } >/dev/null; then
  3291. if test -s conftest.err; then
  3292. ac_cpp_err=$ac_c_preproc_warn_flag
  3293. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3294. else
  3295. ac_cpp_err=
  3296. fi
  3297. else
  3298. ac_cpp_err=yes
  3299. fi
  3300. if test -z "$ac_cpp_err"; then
  3301. :
  3302. else
  3303. echo "$as_me: failed program was:" >&5
  3304. sed 's/^/| /' conftest.$ac_ext >&5
  3305. # Broken: fails on valid input.
  3306. continue
  3307. fi
  3308. rm -f conftest.err conftest.$ac_ext
  3309. # OK, works on sane cases. Now check whether nonexistent headers
  3310. # can be detected and how.
  3311. cat >conftest.$ac_ext <<_ACEOF
  3312. /* confdefs.h. */
  3313. _ACEOF
  3314. cat confdefs.h >>conftest.$ac_ext
  3315. cat >>conftest.$ac_ext <<_ACEOF
  3316. /* end confdefs.h. */
  3317. #include <ac_nonexistent.h>
  3318. _ACEOF
  3319. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3320. case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3325. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3326. ac_status=$?
  3327. grep -v '^ *+' conftest.er1 >conftest.err
  3328. rm -f conftest.er1
  3329. cat conftest.err >&5
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); } >/dev/null; then
  3332. if test -s conftest.err; then
  3333. ac_cpp_err=$ac_c_preproc_warn_flag
  3334. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3335. else
  3336. ac_cpp_err=
  3337. fi
  3338. else
  3339. ac_cpp_err=yes
  3340. fi
  3341. if test -z "$ac_cpp_err"; then
  3342. # Broken: success on invalid input.
  3343. continue
  3344. else
  3345. echo "$as_me: failed program was:" >&5
  3346. sed 's/^/| /' conftest.$ac_ext >&5
  3347. # Passes both tests.
  3348. ac_preproc_ok=:
  3349. break
  3350. fi
  3351. rm -f conftest.err conftest.$ac_ext
  3352. done
  3353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3354. rm -f conftest.err conftest.$ac_ext
  3355. if $ac_preproc_ok; then
  3356. :
  3357. else
  3358. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3359. See \`config.log' for more details." >&5
  3360. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3361. See \`config.log' for more details." >&2;}
  3362. { (exit 1); exit 1; }; }
  3363. fi
  3364. ac_ext=c
  3365. ac_cpp='$CPP $CPPFLAGS'
  3366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3369. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3370. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3371. if test "${ac_cv_path_GREP+set}" = set; then
  3372. echo $ECHO_N "(cached) $ECHO_C" >&6
  3373. else
  3374. # Extract the first word of "grep ggrep" to use in msg output
  3375. if test -z "$GREP"; then
  3376. set dummy grep ggrep; ac_prog_name=$2
  3377. if test "${ac_cv_path_GREP+set}" = set; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. ac_path_GREP_found=false
  3381. # Loop through the user's path and test for each of PROGNAME-LIST
  3382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3384. do
  3385. IFS=$as_save_IFS
  3386. test -z "$as_dir" && as_dir=.
  3387. for ac_prog in grep ggrep; do
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3390. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  3391. # Check for GNU ac_path_GREP and select it if it is found.
  3392. # Check for GNU $ac_path_GREP
  3393. case `"$ac_path_GREP" --version 2>&1` in
  3394. *GNU*)
  3395. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3396. *)
  3397. ac_count=0
  3398. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3399. while :
  3400. do
  3401. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3402. mv "conftest.tmp" "conftest.in"
  3403. cp "conftest.in" "conftest.nl"
  3404. echo 'GREP' >> "conftest.nl"
  3405. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3406. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3407. ac_count=`expr $ac_count + 1`
  3408. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3409. # Best one so far, save it but keep looking for a better one
  3410. ac_cv_path_GREP="$ac_path_GREP"
  3411. ac_path_GREP_max=$ac_count
  3412. fi
  3413. # 10*(2^10) chars as input seems more than enough
  3414. test $ac_count -gt 10 && break
  3415. done
  3416. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3417. esac
  3418. $ac_path_GREP_found && break 3
  3419. done
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. fi
  3424. GREP="$ac_cv_path_GREP"
  3425. if test -z "$GREP"; then
  3426. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3427. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3428. { (exit 1); exit 1; }; }
  3429. fi
  3430. else
  3431. ac_cv_path_GREP=$GREP
  3432. fi
  3433. fi
  3434. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3435. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3436. GREP="$ac_cv_path_GREP"
  3437. { echo "$as_me:$LINENO: checking for egrep" >&5
  3438. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3439. if test "${ac_cv_path_EGREP+set}" = set; then
  3440. echo $ECHO_N "(cached) $ECHO_C" >&6
  3441. else
  3442. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3443. then ac_cv_path_EGREP="$GREP -E"
  3444. else
  3445. # Extract the first word of "egrep" to use in msg output
  3446. if test -z "$EGREP"; then
  3447. set dummy egrep; ac_prog_name=$2
  3448. if test "${ac_cv_path_EGREP+set}" = set; then
  3449. echo $ECHO_N "(cached) $ECHO_C" >&6
  3450. else
  3451. ac_path_EGREP_found=false
  3452. # Loop through the user's path and test for each of PROGNAME-LIST
  3453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3455. do
  3456. IFS=$as_save_IFS
  3457. test -z "$as_dir" && as_dir=.
  3458. for ac_prog in egrep; do
  3459. for ac_exec_ext in '' $ac_executable_extensions; do
  3460. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3461. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  3462. # Check for GNU ac_path_EGREP and select it if it is found.
  3463. # Check for GNU $ac_path_EGREP
  3464. case `"$ac_path_EGREP" --version 2>&1` in
  3465. *GNU*)
  3466. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3467. *)
  3468. ac_count=0
  3469. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3470. while :
  3471. do
  3472. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3473. mv "conftest.tmp" "conftest.in"
  3474. cp "conftest.in" "conftest.nl"
  3475. echo 'EGREP' >> "conftest.nl"
  3476. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3477. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3478. ac_count=`expr $ac_count + 1`
  3479. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3480. # Best one so far, save it but keep looking for a better one
  3481. ac_cv_path_EGREP="$ac_path_EGREP"
  3482. ac_path_EGREP_max=$ac_count
  3483. fi
  3484. # 10*(2^10) chars as input seems more than enough
  3485. test $ac_count -gt 10 && break
  3486. done
  3487. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3488. esac
  3489. $ac_path_EGREP_found && break 3
  3490. done
  3491. done
  3492. done
  3493. IFS=$as_save_IFS
  3494. fi
  3495. EGREP="$ac_cv_path_EGREP"
  3496. if test -z "$EGREP"; then
  3497. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3498. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3499. { (exit 1); exit 1; }; }
  3500. fi
  3501. else
  3502. ac_cv_path_EGREP=$EGREP
  3503. fi
  3504. fi
  3505. fi
  3506. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3507. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3508. EGREP="$ac_cv_path_EGREP"
  3509. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3510. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3511. if test "${ac_cv_header_stdc+set}" = set; then
  3512. echo $ECHO_N "(cached) $ECHO_C" >&6
  3513. else
  3514. cat >conftest.$ac_ext <<_ACEOF
  3515. /* confdefs.h. */
  3516. _ACEOF
  3517. cat confdefs.h >>conftest.$ac_ext
  3518. cat >>conftest.$ac_ext <<_ACEOF
  3519. /* end confdefs.h. */
  3520. #include <stdlib.h>
  3521. #include <stdarg.h>
  3522. #include <string.h>
  3523. #include <float.h>
  3524. int
  3525. main ()
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. rm -f conftest.$ac_objext
  3532. if { (ac_try="$ac_compile"
  3533. case "(($ac_try" in
  3534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3535. *) ac_try_echo=$ac_try;;
  3536. esac
  3537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3538. (eval "$ac_compile") 2>conftest.er1
  3539. ac_status=$?
  3540. grep -v '^ *+' conftest.er1 >conftest.err
  3541. rm -f conftest.er1
  3542. cat conftest.err >&5
  3543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3544. (exit $ac_status); } &&
  3545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3546. { (case "(($ac_try" in
  3547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3548. *) ac_try_echo=$ac_try;;
  3549. esac
  3550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3551. (eval "$ac_try") 2>&5
  3552. ac_status=$?
  3553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. (exit $ac_status); }; } &&
  3555. { ac_try='test -s conftest.$ac_objext'
  3556. { (case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3561. (eval "$ac_try") 2>&5
  3562. ac_status=$?
  3563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3564. (exit $ac_status); }; }; then
  3565. ac_cv_header_stdc=yes
  3566. else
  3567. echo "$as_me: failed program was:" >&5
  3568. sed 's/^/| /' conftest.$ac_ext >&5
  3569. ac_cv_header_stdc=no
  3570. fi
  3571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3572. if test $ac_cv_header_stdc = yes; then
  3573. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3574. cat >conftest.$ac_ext <<_ACEOF
  3575. /* confdefs.h. */
  3576. _ACEOF
  3577. cat confdefs.h >>conftest.$ac_ext
  3578. cat >>conftest.$ac_ext <<_ACEOF
  3579. /* end confdefs.h. */
  3580. #include <string.h>
  3581. _ACEOF
  3582. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3583. $EGREP "memchr" >/dev/null 2>&1; then
  3584. :
  3585. else
  3586. ac_cv_header_stdc=no
  3587. fi
  3588. rm -f conftest*
  3589. fi
  3590. if test $ac_cv_header_stdc = yes; then
  3591. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. #include <stdlib.h>
  3599. _ACEOF
  3600. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3601. $EGREP "free" >/dev/null 2>&1; then
  3602. :
  3603. else
  3604. ac_cv_header_stdc=no
  3605. fi
  3606. rm -f conftest*
  3607. fi
  3608. if test $ac_cv_header_stdc = yes; then
  3609. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3610. if test "$cross_compiling" = yes; then
  3611. :
  3612. else
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. #include <ctype.h>
  3620. #include <stdlib.h>
  3621. #if ((' ' & 0x0FF) == 0x020)
  3622. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3623. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3624. #else
  3625. # define ISLOWER(c) \
  3626. (('a' <= (c) && (c) <= 'i') \
  3627. || ('j' <= (c) && (c) <= 'r') \
  3628. || ('s' <= (c) && (c) <= 'z'))
  3629. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3630. #endif
  3631. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3632. int
  3633. main ()
  3634. {
  3635. int i;
  3636. for (i = 0; i < 256; i++)
  3637. if (XOR (islower (i), ISLOWER (i))
  3638. || toupper (i) != TOUPPER (i))
  3639. return 2;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest$ac_exeext
  3644. if { (ac_try="$ac_link"
  3645. case "(($ac_try" in
  3646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3647. *) ac_try_echo=$ac_try;;
  3648. esac
  3649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3650. (eval "$ac_link") 2>&5
  3651. ac_status=$?
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3654. { (case "(($ac_try" in
  3655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3656. *) ac_try_echo=$ac_try;;
  3657. esac
  3658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3659. (eval "$ac_try") 2>&5
  3660. ac_status=$?
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); }; }; then
  3663. :
  3664. else
  3665. echo "$as_me: program exited with status $ac_status" >&5
  3666. echo "$as_me: failed program was:" >&5
  3667. sed 's/^/| /' conftest.$ac_ext >&5
  3668. ( exit $ac_status )
  3669. ac_cv_header_stdc=no
  3670. fi
  3671. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3672. fi
  3673. fi
  3674. fi
  3675. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3676. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3677. if test $ac_cv_header_stdc = yes; then
  3678. cat >>confdefs.h <<\_ACEOF
  3679. #define STDC_HEADERS 1
  3680. _ACEOF
  3681. fi
  3682. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3683. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3684. inttypes.h stdint.h unistd.h
  3685. do
  3686. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3687. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3688. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3689. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3690. echo $ECHO_N "(cached) $ECHO_C" >&6
  3691. else
  3692. cat >conftest.$ac_ext <<_ACEOF
  3693. /* confdefs.h. */
  3694. _ACEOF
  3695. cat confdefs.h >>conftest.$ac_ext
  3696. cat >>conftest.$ac_ext <<_ACEOF
  3697. /* end confdefs.h. */
  3698. $ac_includes_default
  3699. #include <$ac_header>
  3700. _ACEOF
  3701. rm -f conftest.$ac_objext
  3702. if { (ac_try="$ac_compile"
  3703. case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3708. (eval "$ac_compile") 2>conftest.er1
  3709. ac_status=$?
  3710. grep -v '^ *+' conftest.er1 >conftest.err
  3711. rm -f conftest.er1
  3712. cat conftest.err >&5
  3713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3714. (exit $ac_status); } &&
  3715. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3716. { (case "(($ac_try" in
  3717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3718. *) ac_try_echo=$ac_try;;
  3719. esac
  3720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3721. (eval "$ac_try") 2>&5
  3722. ac_status=$?
  3723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3724. (exit $ac_status); }; } &&
  3725. { ac_try='test -s conftest.$ac_objext'
  3726. { (case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3731. (eval "$ac_try") 2>&5
  3732. ac_status=$?
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); }; }; then
  3735. eval "$as_ac_Header=yes"
  3736. else
  3737. echo "$as_me: failed program was:" >&5
  3738. sed 's/^/| /' conftest.$ac_ext >&5
  3739. eval "$as_ac_Header=no"
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. ac_res=`eval echo '${'$as_ac_Header'}'`
  3744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3745. echo "${ECHO_T}$ac_res" >&6; }
  3746. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3747. cat >>confdefs.h <<_ACEOF
  3748. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3749. _ACEOF
  3750. fi
  3751. done
  3752. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  3753. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  3754. if test "${ac_cv_c_bigendian+set}" = set; then
  3755. echo $ECHO_N "(cached) $ECHO_C" >&6
  3756. else
  3757. # See if sys/param.h defines the BYTE_ORDER macro.
  3758. cat >conftest.$ac_ext <<_ACEOF
  3759. /* confdefs.h. */
  3760. _ACEOF
  3761. cat confdefs.h >>conftest.$ac_ext
  3762. cat >>conftest.$ac_ext <<_ACEOF
  3763. /* end confdefs.h. */
  3764. #include <sys/types.h>
  3765. #include <sys/param.h>
  3766. int
  3767. main ()
  3768. {
  3769. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  3770. bogus endian macros
  3771. #endif
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. rm -f conftest.$ac_objext
  3777. if { (ac_try="$ac_compile"
  3778. case "(($ac_try" in
  3779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3780. *) ac_try_echo=$ac_try;;
  3781. esac
  3782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3783. (eval "$ac_compile") 2>conftest.er1
  3784. ac_status=$?
  3785. grep -v '^ *+' conftest.er1 >conftest.err
  3786. rm -f conftest.er1
  3787. cat conftest.err >&5
  3788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3789. (exit $ac_status); } &&
  3790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3791. { (case "(($ac_try" in
  3792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3793. *) ac_try_echo=$ac_try;;
  3794. esac
  3795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3796. (eval "$ac_try") 2>&5
  3797. ac_status=$?
  3798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); }; } &&
  3800. { ac_try='test -s conftest.$ac_objext'
  3801. { (case "(($ac_try" in
  3802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3803. *) ac_try_echo=$ac_try;;
  3804. esac
  3805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3806. (eval "$ac_try") 2>&5
  3807. ac_status=$?
  3808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); }; }; then
  3810. # It does; now see whether it defined to BIG_ENDIAN or not.
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. /* confdefs.h. */
  3813. _ACEOF
  3814. cat confdefs.h >>conftest.$ac_ext
  3815. cat >>conftest.$ac_ext <<_ACEOF
  3816. /* end confdefs.h. */
  3817. #include <sys/types.h>
  3818. #include <sys/param.h>
  3819. int
  3820. main ()
  3821. {
  3822. #if BYTE_ORDER != BIG_ENDIAN
  3823. not big endian
  3824. #endif
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. rm -f conftest.$ac_objext
  3830. if { (ac_try="$ac_compile"
  3831. case "(($ac_try" in
  3832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3833. *) ac_try_echo=$ac_try;;
  3834. esac
  3835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3836. (eval "$ac_compile") 2>conftest.er1
  3837. ac_status=$?
  3838. grep -v '^ *+' conftest.er1 >conftest.err
  3839. rm -f conftest.er1
  3840. cat conftest.err >&5
  3841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3842. (exit $ac_status); } &&
  3843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3844. { (case "(($ac_try" in
  3845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3846. *) ac_try_echo=$ac_try;;
  3847. esac
  3848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3849. (eval "$ac_try") 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; } &&
  3853. { ac_try='test -s conftest.$ac_objext'
  3854. { (case "(($ac_try" in
  3855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3856. *) ac_try_echo=$ac_try;;
  3857. esac
  3858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3859. (eval "$ac_try") 2>&5
  3860. ac_status=$?
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); }; }; then
  3863. ac_cv_c_bigendian=yes
  3864. else
  3865. echo "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. ac_cv_c_bigendian=no
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. else
  3871. echo "$as_me: failed program was:" >&5
  3872. sed 's/^/| /' conftest.$ac_ext >&5
  3873. # It does not; compile a test program.
  3874. if test "$cross_compiling" = yes; then
  3875. # try to guess the endianness by grepping values into an object file
  3876. ac_cv_c_bigendian=unknown
  3877. cat >conftest.$ac_ext <<_ACEOF
  3878. /* confdefs.h. */
  3879. _ACEOF
  3880. cat confdefs.h >>conftest.$ac_ext
  3881. cat >>conftest.$ac_ext <<_ACEOF
  3882. /* end confdefs.h. */
  3883. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3884. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3885. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3886. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3887. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3888. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3889. int
  3890. main ()
  3891. {
  3892. _ascii (); _ebcdic ();
  3893. ;
  3894. return 0;
  3895. }
  3896. _ACEOF
  3897. rm -f conftest.$ac_objext
  3898. if { (ac_try="$ac_compile"
  3899. case "(($ac_try" in
  3900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3901. *) ac_try_echo=$ac_try;;
  3902. esac
  3903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3904. (eval "$ac_compile") 2>conftest.er1
  3905. ac_status=$?
  3906. grep -v '^ *+' conftest.er1 >conftest.err
  3907. rm -f conftest.er1
  3908. cat conftest.err >&5
  3909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); } &&
  3911. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3912. { (case "(($ac_try" in
  3913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3914. *) ac_try_echo=$ac_try;;
  3915. esac
  3916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3917. (eval "$ac_try") 2>&5
  3918. ac_status=$?
  3919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3920. (exit $ac_status); }; } &&
  3921. { ac_try='test -s conftest.$ac_objext'
  3922. { (case "(($ac_try" in
  3923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3924. *) ac_try_echo=$ac_try;;
  3925. esac
  3926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3927. (eval "$ac_try") 2>&5
  3928. ac_status=$?
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); }; }; then
  3931. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3932. ac_cv_c_bigendian=yes
  3933. fi
  3934. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3935. if test "$ac_cv_c_bigendian" = unknown; then
  3936. ac_cv_c_bigendian=no
  3937. else
  3938. # finding both strings is unlikely to happen, but who knows?
  3939. ac_cv_c_bigendian=unknown
  3940. fi
  3941. fi
  3942. else
  3943. echo "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3947. else
  3948. cat >conftest.$ac_ext <<_ACEOF
  3949. /* confdefs.h. */
  3950. _ACEOF
  3951. cat confdefs.h >>conftest.$ac_ext
  3952. cat >>conftest.$ac_ext <<_ACEOF
  3953. /* end confdefs.h. */
  3954. $ac_includes_default
  3955. int
  3956. main ()
  3957. {
  3958. /* Are we little or big endian? From Harbison&Steele. */
  3959. union
  3960. {
  3961. long int l;
  3962. char c[sizeof (long int)];
  3963. } u;
  3964. u.l = 1;
  3965. return u.c[sizeof (long int) - 1] == 1;
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. rm -f conftest$ac_exeext
  3971. if { (ac_try="$ac_link"
  3972. case "(($ac_try" in
  3973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3974. *) ac_try_echo=$ac_try;;
  3975. esac
  3976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3977. (eval "$ac_link") 2>&5
  3978. ac_status=$?
  3979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3980. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3981. { (case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3986. (eval "$ac_try") 2>&5
  3987. ac_status=$?
  3988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3989. (exit $ac_status); }; }; then
  3990. ac_cv_c_bigendian=no
  3991. else
  3992. echo "$as_me: program exited with status $ac_status" >&5
  3993. echo "$as_me: failed program was:" >&5
  3994. sed 's/^/| /' conftest.$ac_ext >&5
  3995. ( exit $ac_status )
  3996. ac_cv_c_bigendian=yes
  3997. fi
  3998. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3999. fi
  4000. fi
  4001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4002. fi
  4003. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4004. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  4005. case $ac_cv_c_bigendian in
  4006. yes)
  4007. ENDIAN=big
  4008. ;;
  4009. no)
  4010. ENDIAN=little
  4011. ;;
  4012. *)
  4013. { { echo "$as_me:$LINENO: error: unknown endianness
  4014. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4015. echo "$as_me: error: unknown endianness
  4016. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4017. { (exit 1); exit 1; }; } ;;
  4018. esac
  4019. if test "$cross_compiling" = yes; then
  4020. LLVM_CROSS_COMPILING=1
  4021. { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
  4022. echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
  4023. if test "${ac_cv_build_exeext+set}" = set; then
  4024. echo $ECHO_N "(cached) $ECHO_C" >&6
  4025. else
  4026. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  4027. ac_cv_build_exeext=.exe
  4028. else
  4029. ac_build_prefix=${build_alias}-
  4030. # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
  4031. set dummy ${ac_build_prefix}gcc; ac_word=$2
  4032. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4033. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4034. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4035. echo $ECHO_N "(cached) $ECHO_C" >&6
  4036. else
  4037. if test -n "$BUILD_CC"; then
  4038. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4039. else
  4040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4041. for as_dir in $PATH
  4042. do
  4043. IFS=$as_save_IFS
  4044. test -z "$as_dir" && as_dir=.
  4045. for ac_exec_ext in '' $ac_executable_extensions; do
  4046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4047. ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
  4048. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4049. break 2
  4050. fi
  4051. done
  4052. done
  4053. IFS=$as_save_IFS
  4054. fi
  4055. fi
  4056. BUILD_CC=$ac_cv_prog_BUILD_CC
  4057. if test -n "$BUILD_CC"; then
  4058. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4059. echo "${ECHO_T}$BUILD_CC" >&6; }
  4060. else
  4061. { echo "$as_me:$LINENO: result: no" >&5
  4062. echo "${ECHO_T}no" >&6; }
  4063. fi
  4064. if test -z "$BUILD_CC"; then
  4065. # Extract the first word of "gcc", so it can be a program name with args.
  4066. set dummy gcc; ac_word=$2
  4067. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4068. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4069. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4070. echo $ECHO_N "(cached) $ECHO_C" >&6
  4071. else
  4072. if test -n "$BUILD_CC"; then
  4073. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4074. else
  4075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4076. for as_dir in $PATH
  4077. do
  4078. IFS=$as_save_IFS
  4079. test -z "$as_dir" && as_dir=.
  4080. for ac_exec_ext in '' $ac_executable_extensions; do
  4081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4082. ac_cv_prog_BUILD_CC="gcc"
  4083. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4084. break 2
  4085. fi
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. fi
  4090. fi
  4091. BUILD_CC=$ac_cv_prog_BUILD_CC
  4092. if test -n "$BUILD_CC"; then
  4093. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4094. echo "${ECHO_T}$BUILD_CC" >&6; }
  4095. else
  4096. { echo "$as_me:$LINENO: result: no" >&5
  4097. echo "${ECHO_T}no" >&6; }
  4098. fi
  4099. if test -z "$BUILD_CC"; then
  4100. # Extract the first word of "cc", so it can be a program name with args.
  4101. set dummy cc; ac_word=$2
  4102. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4104. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4105. echo $ECHO_N "(cached) $ECHO_C" >&6
  4106. else
  4107. if test -n "$BUILD_CC"; then
  4108. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4109. else
  4110. ac_prog_rejected=no
  4111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4112. for as_dir in $PATH
  4113. do
  4114. IFS=$as_save_IFS
  4115. test -z "$as_dir" && as_dir=.
  4116. for ac_exec_ext in '' $ac_executable_extensions; do
  4117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4118. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4119. ac_prog_rejected=yes
  4120. continue
  4121. fi
  4122. ac_cv_prog_BUILD_CC="cc"
  4123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4124. break 2
  4125. fi
  4126. done
  4127. done
  4128. IFS=$as_save_IFS
  4129. if test $ac_prog_rejected = yes; then
  4130. # We found a bogon in the path, so make sure we never use it.
  4131. set dummy $ac_cv_prog_BUILD_CC
  4132. shift
  4133. if test $# != 0; then
  4134. # We chose a different compiler from the bogus one.
  4135. # However, it has the same basename, so the bogon will be chosen
  4136. # first if we set BUILD_CC to just the basename; use the full file name.
  4137. shift
  4138. ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
  4139. fi
  4140. fi
  4141. fi
  4142. fi
  4143. BUILD_CC=$ac_cv_prog_BUILD_CC
  4144. if test -n "$BUILD_CC"; then
  4145. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4146. echo "${ECHO_T}$BUILD_CC" >&6; }
  4147. else
  4148. { echo "$as_me:$LINENO: result: no" >&5
  4149. echo "${ECHO_T}no" >&6; }
  4150. fi
  4151. fi
  4152. fi
  4153. test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
  4154. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  4155. { (exit 1); exit 1; }; }
  4156. ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4157. rm -f conftest*
  4158. echo 'int main () { return 0; }' > conftest.$ac_ext
  4159. ac_cv_build_exeext=
  4160. if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
  4161. (eval $ac_build_link) 2>&5
  4162. ac_status=$?
  4163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); }; then
  4165. for file in conftest.*; do
  4166. case $file in
  4167. *.c | *.o | *.obj | *.dSYM) ;;
  4168. *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  4169. esac
  4170. done
  4171. else
  4172. { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
  4173. echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
  4174. { (exit 1); exit 1; }; }
  4175. fi
  4176. rm -f conftest*
  4177. test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
  4178. fi
  4179. fi
  4180. BUILD_EXEEXT=""
  4181. test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
  4182. { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
  4183. echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
  4184. ac_build_exeext=$BUILD_EXEEXT
  4185. ac_build_prefix=${build_alias}-
  4186. # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
  4187. set dummy ${ac_build_prefix}g++; ac_word=$2
  4188. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4190. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4191. echo $ECHO_N "(cached) $ECHO_C" >&6
  4192. else
  4193. if test -n "$BUILD_CXX"; then
  4194. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4195. else
  4196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4197. for as_dir in $PATH
  4198. do
  4199. IFS=$as_save_IFS
  4200. test -z "$as_dir" && as_dir=.
  4201. for ac_exec_ext in '' $ac_executable_extensions; do
  4202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4203. ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
  4204. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4205. break 2
  4206. fi
  4207. done
  4208. done
  4209. IFS=$as_save_IFS
  4210. fi
  4211. fi
  4212. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4213. if test -n "$BUILD_CXX"; then
  4214. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4215. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4216. else
  4217. { echo "$as_me:$LINENO: result: no" >&5
  4218. echo "${ECHO_T}no" >&6; }
  4219. fi
  4220. if test -z "$BUILD_CXX"; then
  4221. # Extract the first word of "g++", so it can be a program name with args.
  4222. set dummy g++; ac_word=$2
  4223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4225. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. if test -n "$BUILD_CXX"; then
  4229. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234. IFS=$as_save_IFS
  4235. test -z "$as_dir" && as_dir=.
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4238. ac_cv_prog_BUILD_CXX="g++"
  4239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240. break 2
  4241. fi
  4242. done
  4243. done
  4244. IFS=$as_save_IFS
  4245. fi
  4246. fi
  4247. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4248. if test -n "$BUILD_CXX"; then
  4249. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4250. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4251. else
  4252. { echo "$as_me:$LINENO: result: no" >&5
  4253. echo "${ECHO_T}no" >&6; }
  4254. fi
  4255. if test -z "$BUILD_CXX"; then
  4256. # Extract the first word of "c++", so it can be a program name with args.
  4257. set dummy c++; ac_word=$2
  4258. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4260. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4261. echo $ECHO_N "(cached) $ECHO_C" >&6
  4262. else
  4263. if test -n "$BUILD_CXX"; then
  4264. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4265. else
  4266. ac_prog_rejected=no
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_exec_ext in '' $ac_executable_extensions; do
  4273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4274. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
  4275. ac_prog_rejected=yes
  4276. continue
  4277. fi
  4278. ac_cv_prog_BUILD_CXX="c++"
  4279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. break 2
  4281. fi
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. if test $ac_prog_rejected = yes; then
  4286. # We found a bogon in the path, so make sure we never use it.
  4287. set dummy $ac_cv_prog_BUILD_CXX
  4288. shift
  4289. if test $# != 0; then
  4290. # We chose a different compiler from the bogus one.
  4291. # However, it has the same basename, so the bogon will be chosen
  4292. # first if we set BUILD_CXX to just the basename; use the full file name.
  4293. shift
  4294. ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
  4295. fi
  4296. fi
  4297. fi
  4298. fi
  4299. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4300. if test -n "$BUILD_CXX"; then
  4301. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4302. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4303. else
  4304. { echo "$as_me:$LINENO: result: no" >&5
  4305. echo "${ECHO_T}no" >&6; }
  4306. fi
  4307. fi
  4308. fi
  4309. else
  4310. LLVM_CROSS_COMPILING=0
  4311. fi
  4312. if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
  4313. cvsbuild="yes"
  4314. optimize="no"
  4315. CVSBUILD=CVSBUILD=1
  4316. else
  4317. cvsbuild="no"
  4318. optimize="yes"
  4319. fi
  4320. # Check whether --enable-optimized was given.
  4321. if test "${enable_optimized+set}" = set; then
  4322. enableval=$enable_optimized;
  4323. else
  4324. enableval=$optimize
  4325. fi
  4326. if test ${enableval} = "no" ; then
  4327. ENABLE_OPTIMIZED=
  4328. else
  4329. ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
  4330. fi
  4331. # Check whether --enable-profiling was given.
  4332. if test "${enable_profiling+set}" = set; then
  4333. enableval=$enable_profiling;
  4334. else
  4335. enableval="no"
  4336. fi
  4337. if test ${enableval} = "no" ; then
  4338. ENABLE_PROFILING=
  4339. else
  4340. ENABLE_PROFILING=ENABLE_PROFILING=1
  4341. fi
  4342. # Check whether --enable-assertions was given.
  4343. if test "${enable_assertions+set}" = set; then
  4344. enableval=$enable_assertions;
  4345. else
  4346. enableval="yes"
  4347. fi
  4348. if test ${enableval} = "yes" ; then
  4349. DISABLE_ASSERTIONS=
  4350. else
  4351. DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
  4352. fi
  4353. if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
  4354. LLVM_COMPACT_SENTINELS=1
  4355. else
  4356. LLVM_COMPACT_SENTINELS=0
  4357. fi
  4358. cat >>confdefs.h <<_ACEOF
  4359. #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
  4360. _ACEOF
  4361. # Check whether --enable-expensive-checks was given.
  4362. if test "${enable_expensive_checks+set}" = set; then
  4363. enableval=$enable_expensive_checks;
  4364. else
  4365. enableval="no"
  4366. fi
  4367. if test ${enableval} = "yes" ; then
  4368. ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
  4369. EXPENSIVE_CHECKS=yes
  4370. else
  4371. ENABLE_EXPENSIVE_CHECKS=
  4372. EXPENSIVE_CHECKS=no
  4373. fi
  4374. # Check whether --enable-debug-runtime was given.
  4375. if test "${enable_debug_runtime+set}" = set; then
  4376. enableval=$enable_debug_runtime;
  4377. else
  4378. enableval=no
  4379. fi
  4380. if test ${enableval} = "no" ; then
  4381. DEBUG_RUNTIME=
  4382. else
  4383. DEBUG_RUNTIME=DEBUG_RUNTIME=1
  4384. fi
  4385. # Check whether --enable-jit was given.
  4386. if test "${enable_jit+set}" = set; then
  4387. enableval=$enable_jit;
  4388. else
  4389. enableval=default
  4390. fi
  4391. if test ${enableval} = "no"
  4392. then
  4393. JIT=
  4394. else
  4395. case "$llvm_cv_target_arch" in
  4396. x86) TARGET_HAS_JIT=1
  4397. ;;
  4398. Sparc) TARGET_HAS_JIT=0
  4399. ;;
  4400. PowerPC) TARGET_HAS_JIT=1
  4401. ;;
  4402. x86_64) TARGET_HAS_JIT=1
  4403. ;;
  4404. Alpha) TARGET_HAS_JIT=1
  4405. ;;
  4406. ARM) TARGET_HAS_JIT=1
  4407. ;;
  4408. Mips) TARGET_HAS_JIT=0
  4409. ;;
  4410. PIC16) TARGET_HAS_JIT=0
  4411. ;;
  4412. XCore) TARGET_HAS_JIT=0
  4413. ;;
  4414. MSP430) TARGET_HAS_JIT=0
  4415. ;;
  4416. SystemZ) TARGET_HAS_JIT=0
  4417. ;;
  4418. Blackfin) TARGET_HAS_JIT=0
  4419. ;;
  4420. *) TARGET_HAS_JIT=0
  4421. ;;
  4422. esac
  4423. fi
  4424. # Check whether --enable-doxygen was given.
  4425. if test "${enable_doxygen+set}" = set; then
  4426. enableval=$enable_doxygen;
  4427. else
  4428. enableval=default
  4429. fi
  4430. case "$enableval" in
  4431. yes) ENABLE_DOXYGEN=1
  4432. ;;
  4433. no) ENABLE_DOXYGEN=0
  4434. ;;
  4435. default) ENABLE_DOXYGEN=0
  4436. ;;
  4437. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
  4438. echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
  4439. { (exit 1); exit 1; }; } ;;
  4440. esac
  4441. # Check whether --enable-threads was given.
  4442. if test "${enable_threads+set}" = set; then
  4443. enableval=$enable_threads;
  4444. else
  4445. enableval=default
  4446. fi
  4447. case "$enableval" in
  4448. yes) ENABLE_THREADS=1
  4449. ;;
  4450. no) ENABLE_THREADS=0
  4451. ;;
  4452. default) ENABLE_THREADS=1
  4453. ;;
  4454. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
  4455. echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
  4456. { (exit 1); exit 1; }; } ;;
  4457. esac
  4458. cat >>confdefs.h <<_ACEOF
  4459. #define ENABLE_THREADS $ENABLE_THREADS
  4460. _ACEOF
  4461. # Check whether --enable-pic was given.
  4462. if test "${enable_pic+set}" = set; then
  4463. enableval=$enable_pic;
  4464. else
  4465. enableval=default
  4466. fi
  4467. case "$enableval" in
  4468. yes) ENABLE_PIC=1
  4469. ;;
  4470. no) ENABLE_PIC=0
  4471. ;;
  4472. default) ENABLE_PIC=1
  4473. ;;
  4474. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
  4475. echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
  4476. { (exit 1); exit 1; }; } ;;
  4477. esac
  4478. cat >>confdefs.h <<_ACEOF
  4479. #define ENABLE_PIC $ENABLE_PIC
  4480. _ACEOF
  4481. TARGETS_TO_BUILD=""
  4482. # Check whether --enable-targets was given.
  4483. if test "${enable_targets+set}" = set; then
  4484. enableval=$enable_targets;
  4485. else
  4486. enableval=all
  4487. fi
  4488. case "$enableval" in
  4489. all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
  4490. host-only)
  4491. case "$llvm_cv_target_arch" in
  4492. x86) TARGETS_TO_BUILD="X86" ;;
  4493. x86_64) TARGETS_TO_BUILD="X86" ;;
  4494. Sparc) TARGETS_TO_BUILD="Sparc" ;;
  4495. PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
  4496. Alpha) TARGETS_TO_BUILD="Alpha" ;;
  4497. ARM) TARGETS_TO_BUILD="ARM" ;;
  4498. Mips) TARGETS_TO_BUILD="Mips" ;;
  4499. CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
  4500. PIC16) TARGETS_TO_BUILD="PIC16" ;;
  4501. XCore) TARGETS_TO_BUILD="XCore" ;;
  4502. MSP430) TARGETS_TO_BUILD="MSP430" ;;
  4503. SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
  4504. Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
  4505. *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
  4506. echo "$as_me: error: Can not set target to build" >&2;}
  4507. { (exit 1); exit 1; }; } ;;
  4508. esac
  4509. ;;
  4510. *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
  4511. case "$a_target" in
  4512. x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
  4513. x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
  4514. sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
  4515. powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
  4516. alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
  4517. arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
  4518. mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
  4519. spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
  4520. pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
  4521. xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
  4522. msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
  4523. systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
  4524. blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
  4525. cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
  4526. msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
  4527. cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
  4528. *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
  4529. echo "$as_me: error: Unrecognized target $a_target" >&2;}
  4530. { (exit 1); exit 1; }; } ;;
  4531. esac
  4532. done
  4533. ;;
  4534. esac
  4535. TARGETS_TO_BUILD=$TARGETS_TO_BUILD
  4536. # Determine whether we are building LLVM support for the native architecture.
  4537. # If so, define LLVM_NATIVE_ARCH to that LLVM target.
  4538. for a_target in $TARGETS_TO_BUILD; do
  4539. if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
  4540. LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
  4541. cat >>confdefs.h <<_ACEOF
  4542. #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
  4543. _ACEOF
  4544. fi
  4545. done
  4546. # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
  4547. # Targets.def, AsmPrinters.def, and AsmParsers.def.
  4548. LLVM_ENUM_TARGETS=""
  4549. LLVM_ENUM_ASM_PRINTERS=""
  4550. LLVM_ENUM_ASM_PARSERS=""
  4551. for target_to_build in $TARGETS_TO_BUILD; do
  4552. LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
  4553. if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
  4554. LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
  4555. fi
  4556. if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
  4557. LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
  4558. fi
  4559. done
  4560. # Check whether --enable-cbe-printf-a was given.
  4561. if test "${enable_cbe_printf_a+set}" = set; then
  4562. enableval=$enable_cbe_printf_a;
  4563. else
  4564. enableval=default
  4565. fi
  4566. case "$enableval" in
  4567. yes) ENABLE_CBE_PRINTF_A=1
  4568. ;;
  4569. no) ENABLE_CBE_PRINTF_A=0
  4570. ;;
  4571. default) ENABLE_CBE_PRINTF_A=1
  4572. ;;
  4573. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
  4574. echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
  4575. { (exit 1); exit 1; }; } ;;
  4576. esac
  4577. cat >>confdefs.h <<_ACEOF
  4578. #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
  4579. _ACEOF
  4580. # Check whether --with-llvmgccdir was given.
  4581. if test "${with_llvmgccdir+set}" = set; then
  4582. withval=$with_llvmgccdir;
  4583. else
  4584. withval=default
  4585. fi
  4586. case "$withval" in
  4587. default) WITH_LLVMGCCDIR=default ;;
  4588. /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
  4589. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
  4590. echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
  4591. { (exit 1); exit 1; }; } ;;
  4592. esac
  4593. # Check whether --with-llvmgcc was given.
  4594. if test "${with_llvmgcc+set}" = set; then
  4595. withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
  4596. WITH_LLVMGCCDIR=""
  4597. fi
  4598. # Check whether --with-llvmgxx was given.
  4599. if test "${with_llvmgxx+set}" = set; then
  4600. withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
  4601. WITH_LLVMGCCDIR=""
  4602. fi
  4603. if test -n "$LLVMGCC"; then
  4604. LLVMGCCCOMMAND="$LLVMGCC"
  4605. fi
  4606. if test -n "$LLVMGXX"; then
  4607. LLVMGXXCOMMAND="$LLVMGXX"
  4608. fi
  4609. if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
  4610. { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
  4611. echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
  4612. { (exit 1); exit 1; }; };
  4613. fi
  4614. if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
  4615. { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
  4616. echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
  4617. { (exit 1); exit 1; }; };
  4618. fi
  4619. # Check whether --with-extra-options was given.
  4620. if test "${with_extra_options+set}" = set; then
  4621. withval=$with_extra_options;
  4622. else
  4623. withval=default
  4624. fi
  4625. case "$withval" in
  4626. default) EXTRA_OPTIONS= ;;
  4627. *) EXTRA_OPTIONS=$withval ;;
  4628. esac
  4629. EXTRA_OPTIONS=$EXTRA_OPTIONS
  4630. # Check whether --enable-bindings was given.
  4631. if test "${enable_bindings+set}" = set; then
  4632. enableval=$enable_bindings;
  4633. else
  4634. enableval=default
  4635. fi
  4636. BINDINGS_TO_BUILD=""
  4637. case "$enableval" in
  4638. yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
  4639. all ) BINDINGS_TO_BUILD="ocaml" ;;
  4640. none | no) BINDINGS_TO_BUILD="" ;;
  4641. *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
  4642. case "$a_binding" in
  4643. ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
  4644. *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
  4645. echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
  4646. { (exit 1); exit 1; }; } ;;
  4647. esac
  4648. done
  4649. ;;
  4650. esac
  4651. # Check whether --with-ocaml-libdir was given.
  4652. if test "${with_ocaml_libdir+set}" = set; then
  4653. withval=$with_ocaml_libdir;
  4654. else
  4655. withval=auto
  4656. fi
  4657. case "$withval" in
  4658. auto) with_ocaml_libdir="$withval" ;;
  4659. /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
  4660. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
  4661. echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
  4662. { (exit 1); exit 1; }; } ;;
  4663. esac
  4664. # Check whether --with-binutils-include was given.
  4665. if test "${with_binutils_include+set}" = set; then
  4666. withval=$with_binutils_include;
  4667. else
  4668. withval=default
  4669. fi
  4670. case "$withval" in
  4671. default) WITH_BINUTILS_INCDIR=default ;;
  4672. /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
  4673. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
  4674. echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
  4675. { (exit 1); exit 1; }; } ;;
  4676. esac
  4677. if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
  4678. BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
  4679. if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
  4680. echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
  4681. { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
  4682. echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
  4683. { (exit 1); exit 1; }; };
  4684. fi
  4685. fi
  4686. # Check whether --enable-libffi was given.
  4687. if test "${enable_libffi+set}" = set; then
  4688. enableval=$enable_libffi;
  4689. else
  4690. enableval=yes
  4691. fi
  4692. case "$enableval" in
  4693. yes) llvm_cv_enable_libffi="yes" ;;
  4694. no) llvm_cv_enable_libffi="no" ;;
  4695. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
  4696. echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
  4697. { (exit 1); exit 1; }; } ;;
  4698. esac
  4699. if test "$llvm_cv_os_type" = "Win32" ; then
  4700. llvmc_dynamic="yes"
  4701. else
  4702. llvmc_dynamic="no"
  4703. fi
  4704. # Check whether --enable-llvmc-dynamic was given.
  4705. if test "${enable_llvmc_dynamic+set}" = set; then
  4706. enableval=$enable_llvmc_dynamic;
  4707. else
  4708. enableval=$llvmc_dynamic
  4709. fi
  4710. if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
  4711. ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
  4712. else
  4713. ENABLE_LLVMC_DYNAMIC=
  4714. fi
  4715. # Check whether --enable-llvmc-dynamic-plugins was given.
  4716. if test "${enable_llvmc_dynamic_plugins+set}" = set; then
  4717. enableval=$enable_llvmc_dynamic_plugins;
  4718. else
  4719. enableval=yes
  4720. fi
  4721. if test ${enableval} = "yes" ; then
  4722. ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
  4723. else
  4724. ENABLE_LLVMC_DYNAMIC_PLUGINS=
  4725. fi
  4726. ac_ext=c
  4727. ac_cpp='$CPP $CPPFLAGS'
  4728. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4729. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4730. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4731. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4732. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4733. # On Suns, sometimes $CPP names a directory.
  4734. if test -n "$CPP" && test -d "$CPP"; then
  4735. CPP=
  4736. fi
  4737. if test -z "$CPP"; then
  4738. if test "${ac_cv_prog_CPP+set}" = set; then
  4739. echo $ECHO_N "(cached) $ECHO_C" >&6
  4740. else
  4741. # Double quotes because CPP needs to be expanded
  4742. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4743. do
  4744. ac_preproc_ok=false
  4745. for ac_c_preproc_warn_flag in '' yes
  4746. do
  4747. # Use a header file that comes with gcc, so configuring glibc
  4748. # with a fresh cross-compiler works.
  4749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4750. # <limits.h> exists even on freestanding compilers.
  4751. # On the NeXT, cc -E runs the code through the compiler's parser,
  4752. # not just through cpp. "Syntax error" is here to catch this case.
  4753. cat >conftest.$ac_ext <<_ACEOF
  4754. /* confdefs.h. */
  4755. _ACEOF
  4756. cat confdefs.h >>conftest.$ac_ext
  4757. cat >>conftest.$ac_ext <<_ACEOF
  4758. /* end confdefs.h. */
  4759. #ifdef __STDC__
  4760. # include <limits.h>
  4761. #else
  4762. # include <assert.h>
  4763. #endif
  4764. Syntax error
  4765. _ACEOF
  4766. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4767. case "(($ac_try" in
  4768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4769. *) ac_try_echo=$ac_try;;
  4770. esac
  4771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4773. ac_status=$?
  4774. grep -v '^ *+' conftest.er1 >conftest.err
  4775. rm -f conftest.er1
  4776. cat conftest.err >&5
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); } >/dev/null; then
  4779. if test -s conftest.err; then
  4780. ac_cpp_err=$ac_c_preproc_warn_flag
  4781. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4782. else
  4783. ac_cpp_err=
  4784. fi
  4785. else
  4786. ac_cpp_err=yes
  4787. fi
  4788. if test -z "$ac_cpp_err"; then
  4789. :
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. # Broken: fails on valid input.
  4794. continue
  4795. fi
  4796. rm -f conftest.err conftest.$ac_ext
  4797. # OK, works on sane cases. Now check whether nonexistent headers
  4798. # can be detected and how.
  4799. cat >conftest.$ac_ext <<_ACEOF
  4800. /* confdefs.h. */
  4801. _ACEOF
  4802. cat confdefs.h >>conftest.$ac_ext
  4803. cat >>conftest.$ac_ext <<_ACEOF
  4804. /* end confdefs.h. */
  4805. #include <ac_nonexistent.h>
  4806. _ACEOF
  4807. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4808. case "(($ac_try" in
  4809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810. *) ac_try_echo=$ac_try;;
  4811. esac
  4812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4813. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4814. ac_status=$?
  4815. grep -v '^ *+' conftest.er1 >conftest.err
  4816. rm -f conftest.er1
  4817. cat conftest.err >&5
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); } >/dev/null; then
  4820. if test -s conftest.err; then
  4821. ac_cpp_err=$ac_c_preproc_warn_flag
  4822. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4823. else
  4824. ac_cpp_err=
  4825. fi
  4826. else
  4827. ac_cpp_err=yes
  4828. fi
  4829. if test -z "$ac_cpp_err"; then
  4830. # Broken: success on invalid input.
  4831. continue
  4832. else
  4833. echo "$as_me: failed program was:" >&5
  4834. sed 's/^/| /' conftest.$ac_ext >&5
  4835. # Passes both tests.
  4836. ac_preproc_ok=:
  4837. break
  4838. fi
  4839. rm -f conftest.err conftest.$ac_ext
  4840. done
  4841. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4842. rm -f conftest.err conftest.$ac_ext
  4843. if $ac_preproc_ok; then
  4844. break
  4845. fi
  4846. done
  4847. ac_cv_prog_CPP=$CPP
  4848. fi
  4849. CPP=$ac_cv_prog_CPP
  4850. else
  4851. ac_cv_prog_CPP=$CPP
  4852. fi
  4853. { echo "$as_me:$LINENO: result: $CPP" >&5
  4854. echo "${ECHO_T}$CPP" >&6; }
  4855. ac_preproc_ok=false
  4856. for ac_c_preproc_warn_flag in '' yes
  4857. do
  4858. # Use a header file that comes with gcc, so configuring glibc
  4859. # with a fresh cross-compiler works.
  4860. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4861. # <limits.h> exists even on freestanding compilers.
  4862. # On the NeXT, cc -E runs the code through the compiler's parser,
  4863. # not just through cpp. "Syntax error" is here to catch this case.
  4864. cat >conftest.$ac_ext <<_ACEOF
  4865. /* confdefs.h. */
  4866. _ACEOF
  4867. cat confdefs.h >>conftest.$ac_ext
  4868. cat >>conftest.$ac_ext <<_ACEOF
  4869. /* end confdefs.h. */
  4870. #ifdef __STDC__
  4871. # include <limits.h>
  4872. #else
  4873. # include <assert.h>
  4874. #endif
  4875. Syntax error
  4876. _ACEOF
  4877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4878. case "(($ac_try" in
  4879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4880. *) ac_try_echo=$ac_try;;
  4881. esac
  4882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4884. ac_status=$?
  4885. grep -v '^ *+' conftest.er1 >conftest.err
  4886. rm -f conftest.er1
  4887. cat conftest.err >&5
  4888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4889. (exit $ac_status); } >/dev/null; then
  4890. if test -s conftest.err; then
  4891. ac_cpp_err=$ac_c_preproc_warn_flag
  4892. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4893. else
  4894. ac_cpp_err=
  4895. fi
  4896. else
  4897. ac_cpp_err=yes
  4898. fi
  4899. if test -z "$ac_cpp_err"; then
  4900. :
  4901. else
  4902. echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. # Broken: fails on valid input.
  4905. continue
  4906. fi
  4907. rm -f conftest.err conftest.$ac_ext
  4908. # OK, works on sane cases. Now check whether nonexistent headers
  4909. # can be detected and how.
  4910. cat >conftest.$ac_ext <<_ACEOF
  4911. /* confdefs.h. */
  4912. _ACEOF
  4913. cat confdefs.h >>conftest.$ac_ext
  4914. cat >>conftest.$ac_ext <<_ACEOF
  4915. /* end confdefs.h. */
  4916. #include <ac_nonexistent.h>
  4917. _ACEOF
  4918. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4919. case "(($ac_try" in
  4920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4921. *) ac_try_echo=$ac_try;;
  4922. esac
  4923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4924. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4925. ac_status=$?
  4926. grep -v '^ *+' conftest.er1 >conftest.err
  4927. rm -f conftest.er1
  4928. cat conftest.err >&5
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); } >/dev/null; then
  4931. if test -s conftest.err; then
  4932. ac_cpp_err=$ac_c_preproc_warn_flag
  4933. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4934. else
  4935. ac_cpp_err=
  4936. fi
  4937. else
  4938. ac_cpp_err=yes
  4939. fi
  4940. if test -z "$ac_cpp_err"; then
  4941. # Broken: success on invalid input.
  4942. continue
  4943. else
  4944. echo "$as_me: failed program was:" >&5
  4945. sed 's/^/| /' conftest.$ac_ext >&5
  4946. # Passes both tests.
  4947. ac_preproc_ok=:
  4948. break
  4949. fi
  4950. rm -f conftest.err conftest.$ac_ext
  4951. done
  4952. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4953. rm -f conftest.err conftest.$ac_ext
  4954. if $ac_preproc_ok; then
  4955. :
  4956. else
  4957. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4958. See \`config.log' for more details." >&5
  4959. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4960. See \`config.log' for more details." >&2;}
  4961. { (exit 1); exit 1; }; }
  4962. fi
  4963. ac_ext=c
  4964. ac_cpp='$CPP $CPPFLAGS'
  4965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4968. ac_ext=c
  4969. ac_cpp='$CPP $CPPFLAGS'
  4970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4973. if test -n "$ac_tool_prefix"; then
  4974. for ac_prog in gcc
  4975. do
  4976. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4977. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4980. if test "${ac_cv_prog_CC+set}" = set; then
  4981. echo $ECHO_N "(cached) $ECHO_C" >&6
  4982. else
  4983. if test -n "$CC"; then
  4984. ac_cv_prog_CC="$CC" # Let the user override the test.
  4985. else
  4986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4987. for as_dir in $PATH
  4988. do
  4989. IFS=$as_save_IFS
  4990. test -z "$as_dir" && as_dir=.
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4993. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4995. break 2
  4996. fi
  4997. done
  4998. done
  4999. IFS=$as_save_IFS
  5000. fi
  5001. fi
  5002. CC=$ac_cv_prog_CC
  5003. if test -n "$CC"; then
  5004. { echo "$as_me:$LINENO: result: $CC" >&5
  5005. echo "${ECHO_T}$CC" >&6; }
  5006. else
  5007. { echo "$as_me:$LINENO: result: no" >&5
  5008. echo "${ECHO_T}no" >&6; }
  5009. fi
  5010. test -n "$CC" && break
  5011. done
  5012. fi
  5013. if test -z "$CC"; then
  5014. ac_ct_CC=$CC
  5015. for ac_prog in gcc
  5016. do
  5017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5018. set dummy $ac_prog; ac_word=$2
  5019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5021. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5022. echo $ECHO_N "(cached) $ECHO_C" >&6
  5023. else
  5024. if test -n "$ac_ct_CC"; then
  5025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5026. else
  5027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5028. for as_dir in $PATH
  5029. do
  5030. IFS=$as_save_IFS
  5031. test -z "$as_dir" && as_dir=.
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5034. ac_cv_prog_ac_ct_CC="$ac_prog"
  5035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5044. if test -n "$ac_ct_CC"; then
  5045. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5046. echo "${ECHO_T}$ac_ct_CC" >&6; }
  5047. else
  5048. { echo "$as_me:$LINENO: result: no" >&5
  5049. echo "${ECHO_T}no" >&6; }
  5050. fi
  5051. test -n "$ac_ct_CC" && break
  5052. done
  5053. if test "x$ac_ct_CC" = x; then
  5054. CC=""
  5055. else
  5056. case $cross_compiling:$ac_tool_warned in
  5057. yes:)
  5058. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5059. whose name does not start with the host triplet. If you think this
  5060. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5061. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5062. whose name does not start with the host triplet. If you think this
  5063. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5064. ac_tool_warned=yes ;;
  5065. esac
  5066. CC=$ac_ct_CC
  5067. fi
  5068. fi
  5069. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5070. See \`config.log' for more details." >&5
  5071. echo "$as_me: error: no acceptable C compiler found in \$PATH
  5072. See \`config.log' for more details." >&2;}
  5073. { (exit 1); exit 1; }; }
  5074. # Provide some information about the compiler.
  5075. echo "$as_me:$LINENO: checking for C compiler version" >&5
  5076. ac_compiler=`set X $ac_compile; echo $2`
  5077. { (ac_try="$ac_compiler --version >&5"
  5078. case "(($ac_try" in
  5079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5080. *) ac_try_echo=$ac_try;;
  5081. esac
  5082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5083. (eval "$ac_compiler --version >&5") 2>&5
  5084. ac_status=$?
  5085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); }
  5087. { (ac_try="$ac_compiler -v >&5"
  5088. case "(($ac_try" in
  5089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5090. *) ac_try_echo=$ac_try;;
  5091. esac
  5092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5093. (eval "$ac_compiler -v >&5") 2>&5
  5094. ac_status=$?
  5095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096. (exit $ac_status); }
  5097. { (ac_try="$ac_compiler -V >&5"
  5098. case "(($ac_try" in
  5099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5100. *) ac_try_echo=$ac_try;;
  5101. esac
  5102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5103. (eval "$ac_compiler -V >&5") 2>&5
  5104. ac_status=$?
  5105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. (exit $ac_status); }
  5107. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5108. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5109. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5110. echo $ECHO_N "(cached) $ECHO_C" >&6
  5111. else
  5112. cat >conftest.$ac_ext <<_ACEOF
  5113. /* confdefs.h. */
  5114. _ACEOF
  5115. cat confdefs.h >>conftest.$ac_ext
  5116. cat >>conftest.$ac_ext <<_ACEOF
  5117. /* end confdefs.h. */
  5118. int
  5119. main ()
  5120. {
  5121. #ifndef __GNUC__
  5122. choke me
  5123. #endif
  5124. ;
  5125. return 0;
  5126. }
  5127. _ACEOF
  5128. rm -f conftest.$ac_objext
  5129. if { (ac_try="$ac_compile"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5135. (eval "$ac_compile") 2>conftest.er1
  5136. ac_status=$?
  5137. grep -v '^ *+' conftest.er1 >conftest.err
  5138. rm -f conftest.er1
  5139. cat conftest.err >&5
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); } &&
  5142. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5143. { (case "(($ac_try" in
  5144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5145. *) ac_try_echo=$ac_try;;
  5146. esac
  5147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5148. (eval "$ac_try") 2>&5
  5149. ac_status=$?
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); }; } &&
  5152. { ac_try='test -s conftest.$ac_objext'
  5153. { (case "(($ac_try" in
  5154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5155. *) ac_try_echo=$ac_try;;
  5156. esac
  5157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5158. (eval "$ac_try") 2>&5
  5159. ac_status=$?
  5160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5161. (exit $ac_status); }; }; then
  5162. ac_compiler_gnu=yes
  5163. else
  5164. echo "$as_me: failed program was:" >&5
  5165. sed 's/^/| /' conftest.$ac_ext >&5
  5166. ac_compiler_gnu=no
  5167. fi
  5168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5169. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5170. fi
  5171. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5172. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5173. GCC=`test $ac_compiler_gnu = yes && echo yes`
  5174. ac_test_CFLAGS=${CFLAGS+set}
  5175. ac_save_CFLAGS=$CFLAGS
  5176. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5177. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5178. if test "${ac_cv_prog_cc_g+set}" = set; then
  5179. echo $ECHO_N "(cached) $ECHO_C" >&6
  5180. else
  5181. ac_save_c_werror_flag=$ac_c_werror_flag
  5182. ac_c_werror_flag=yes
  5183. ac_cv_prog_cc_g=no
  5184. CFLAGS="-g"
  5185. cat >conftest.$ac_ext <<_ACEOF
  5186. /* confdefs.h. */
  5187. _ACEOF
  5188. cat confdefs.h >>conftest.$ac_ext
  5189. cat >>conftest.$ac_ext <<_ACEOF
  5190. /* end confdefs.h. */
  5191. int
  5192. main ()
  5193. {
  5194. ;
  5195. return 0;
  5196. }
  5197. _ACEOF
  5198. rm -f conftest.$ac_objext
  5199. if { (ac_try="$ac_compile"
  5200. case "(($ac_try" in
  5201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5202. *) ac_try_echo=$ac_try;;
  5203. esac
  5204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5205. (eval "$ac_compile") 2>conftest.er1
  5206. ac_status=$?
  5207. grep -v '^ *+' conftest.er1 >conftest.err
  5208. rm -f conftest.er1
  5209. cat conftest.err >&5
  5210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5211. (exit $ac_status); } &&
  5212. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5213. { (case "(($ac_try" in
  5214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5215. *) ac_try_echo=$ac_try;;
  5216. esac
  5217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5218. (eval "$ac_try") 2>&5
  5219. ac_status=$?
  5220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5221. (exit $ac_status); }; } &&
  5222. { ac_try='test -s conftest.$ac_objext'
  5223. { (case "(($ac_try" in
  5224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5225. *) ac_try_echo=$ac_try;;
  5226. esac
  5227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5228. (eval "$ac_try") 2>&5
  5229. ac_status=$?
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }; }; then
  5232. ac_cv_prog_cc_g=yes
  5233. else
  5234. echo "$as_me: failed program was:" >&5
  5235. sed 's/^/| /' conftest.$ac_ext >&5
  5236. CFLAGS=""
  5237. cat >conftest.$ac_ext <<_ACEOF
  5238. /* confdefs.h. */
  5239. _ACEOF
  5240. cat confdefs.h >>conftest.$ac_ext
  5241. cat >>conftest.$ac_ext <<_ACEOF
  5242. /* end confdefs.h. */
  5243. int
  5244. main ()
  5245. {
  5246. ;
  5247. return 0;
  5248. }
  5249. _ACEOF
  5250. rm -f conftest.$ac_objext
  5251. if { (ac_try="$ac_compile"
  5252. case "(($ac_try" in
  5253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5254. *) ac_try_echo=$ac_try;;
  5255. esac
  5256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5257. (eval "$ac_compile") 2>conftest.er1
  5258. ac_status=$?
  5259. grep -v '^ *+' conftest.er1 >conftest.err
  5260. rm -f conftest.er1
  5261. cat conftest.err >&5
  5262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5263. (exit $ac_status); } &&
  5264. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5265. { (case "(($ac_try" in
  5266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5267. *) ac_try_echo=$ac_try;;
  5268. esac
  5269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5270. (eval "$ac_try") 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; } &&
  5274. { ac_try='test -s conftest.$ac_objext'
  5275. { (case "(($ac_try" in
  5276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5277. *) ac_try_echo=$ac_try;;
  5278. esac
  5279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5280. (eval "$ac_try") 2>&5
  5281. ac_status=$?
  5282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5283. (exit $ac_status); }; }; then
  5284. :
  5285. else
  5286. echo "$as_me: failed program was:" >&5
  5287. sed 's/^/| /' conftest.$ac_ext >&5
  5288. ac_c_werror_flag=$ac_save_c_werror_flag
  5289. CFLAGS="-g"
  5290. cat >conftest.$ac_ext <<_ACEOF
  5291. /* confdefs.h. */
  5292. _ACEOF
  5293. cat confdefs.h >>conftest.$ac_ext
  5294. cat >>conftest.$ac_ext <<_ACEOF
  5295. /* end confdefs.h. */
  5296. int
  5297. main ()
  5298. {
  5299. ;
  5300. return 0;
  5301. }
  5302. _ACEOF
  5303. rm -f conftest.$ac_objext
  5304. if { (ac_try="$ac_compile"
  5305. case "(($ac_try" in
  5306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5307. *) ac_try_echo=$ac_try;;
  5308. esac
  5309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5310. (eval "$ac_compile") 2>conftest.er1
  5311. ac_status=$?
  5312. grep -v '^ *+' conftest.er1 >conftest.err
  5313. rm -f conftest.er1
  5314. cat conftest.err >&5
  5315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5316. (exit $ac_status); } &&
  5317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5318. { (case "(($ac_try" in
  5319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5320. *) ac_try_echo=$ac_try;;
  5321. esac
  5322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5323. (eval "$ac_try") 2>&5
  5324. ac_status=$?
  5325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5326. (exit $ac_status); }; } &&
  5327. { ac_try='test -s conftest.$ac_objext'
  5328. { (case "(($ac_try" in
  5329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5330. *) ac_try_echo=$ac_try;;
  5331. esac
  5332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5333. (eval "$ac_try") 2>&5
  5334. ac_status=$?
  5335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5336. (exit $ac_status); }; }; then
  5337. ac_cv_prog_cc_g=yes
  5338. else
  5339. echo "$as_me: failed program was:" >&5
  5340. sed 's/^/| /' conftest.$ac_ext >&5
  5341. fi
  5342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5343. fi
  5344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5345. fi
  5346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5347. ac_c_werror_flag=$ac_save_c_werror_flag
  5348. fi
  5349. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5350. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5351. if test "$ac_test_CFLAGS" = set; then
  5352. CFLAGS=$ac_save_CFLAGS
  5353. elif test $ac_cv_prog_cc_g = yes; then
  5354. if test "$GCC" = yes; then
  5355. CFLAGS="-g -O2"
  5356. else
  5357. CFLAGS="-g"
  5358. fi
  5359. else
  5360. if test "$GCC" = yes; then
  5361. CFLAGS="-O2"
  5362. else
  5363. CFLAGS=
  5364. fi
  5365. fi
  5366. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5367. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5368. if test "${ac_cv_prog_cc_c89+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. ac_cv_prog_cc_c89=no
  5372. ac_save_CC=$CC
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. #include <stdarg.h>
  5380. #include <stdio.h>
  5381. #include <sys/types.h>
  5382. #include <sys/stat.h>
  5383. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5384. struct buf { int x; };
  5385. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5386. static char *e (p, i)
  5387. char **p;
  5388. int i;
  5389. {
  5390. return p[i];
  5391. }
  5392. static char *f (char * (*g) (char **, int), char **p, ...)
  5393. {
  5394. char *s;
  5395. va_list v;
  5396. va_start (v,p);
  5397. s = g (p, va_arg (v,int));
  5398. va_end (v);
  5399. return s;
  5400. }
  5401. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5402. function prototypes and stuff, but not '\xHH' hex character constants.
  5403. These don't provoke an error unfortunately, instead are silently treated
  5404. as 'x'. The following induces an error, until -std is added to get
  5405. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5406. array size at least. It's necessary to write '\x00'==0 to get something
  5407. that's true only with -std. */
  5408. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5409. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5410. inside strings and character constants. */
  5411. #define FOO(x) 'x'
  5412. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5413. int test (int i, double x);
  5414. struct s1 {int (*f) (int a);};
  5415. struct s2 {int (*f) (double a);};
  5416. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5417. int argc;
  5418. char **argv;
  5419. int
  5420. main ()
  5421. {
  5422. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5423. ;
  5424. return 0;
  5425. }
  5426. _ACEOF
  5427. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5428. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5429. do
  5430. CC="$ac_save_CC $ac_arg"
  5431. rm -f conftest.$ac_objext
  5432. if { (ac_try="$ac_compile"
  5433. case "(($ac_try" in
  5434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5435. *) ac_try_echo=$ac_try;;
  5436. esac
  5437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5438. (eval "$ac_compile") 2>conftest.er1
  5439. ac_status=$?
  5440. grep -v '^ *+' conftest.er1 >conftest.err
  5441. rm -f conftest.er1
  5442. cat conftest.err >&5
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); } &&
  5445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5446. { (case "(($ac_try" in
  5447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5448. *) ac_try_echo=$ac_try;;
  5449. esac
  5450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5451. (eval "$ac_try") 2>&5
  5452. ac_status=$?
  5453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5454. (exit $ac_status); }; } &&
  5455. { ac_try='test -s conftest.$ac_objext'
  5456. { (case "(($ac_try" in
  5457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5458. *) ac_try_echo=$ac_try;;
  5459. esac
  5460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5461. (eval "$ac_try") 2>&5
  5462. ac_status=$?
  5463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5464. (exit $ac_status); }; }; then
  5465. ac_cv_prog_cc_c89=$ac_arg
  5466. else
  5467. echo "$as_me: failed program was:" >&5
  5468. sed 's/^/| /' conftest.$ac_ext >&5
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext
  5471. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5472. done
  5473. rm -f conftest.$ac_ext
  5474. CC=$ac_save_CC
  5475. fi
  5476. # AC_CACHE_VAL
  5477. case "x$ac_cv_prog_cc_c89" in
  5478. x)
  5479. { echo "$as_me:$LINENO: result: none needed" >&5
  5480. echo "${ECHO_T}none needed" >&6; } ;;
  5481. xno)
  5482. { echo "$as_me:$LINENO: result: unsupported" >&5
  5483. echo "${ECHO_T}unsupported" >&6; } ;;
  5484. *)
  5485. CC="$CC $ac_cv_prog_cc_c89"
  5486. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5487. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5488. esac
  5489. ac_ext=c
  5490. ac_cpp='$CPP $CPPFLAGS'
  5491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5494. ac_ext=cpp
  5495. ac_cpp='$CXXCPP $CPPFLAGS'
  5496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5499. if test -z "$CXX"; then
  5500. if test -n "$CCC"; then
  5501. CXX=$CCC
  5502. else
  5503. if test -n "$ac_tool_prefix"; then
  5504. for ac_prog in g++
  5505. do
  5506. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5507. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5508. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5510. if test "${ac_cv_prog_CXX+set}" = set; then
  5511. echo $ECHO_N "(cached) $ECHO_C" >&6
  5512. else
  5513. if test -n "$CXX"; then
  5514. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5523. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. CXX=$ac_cv_prog_CXX
  5533. if test -n "$CXX"; then
  5534. { echo "$as_me:$LINENO: result: $CXX" >&5
  5535. echo "${ECHO_T}$CXX" >&6; }
  5536. else
  5537. { echo "$as_me:$LINENO: result: no" >&5
  5538. echo "${ECHO_T}no" >&6; }
  5539. fi
  5540. test -n "$CXX" && break
  5541. done
  5542. fi
  5543. if test -z "$CXX"; then
  5544. ac_ct_CXX=$CXX
  5545. for ac_prog in g++
  5546. do
  5547. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5548. set dummy $ac_prog; ac_word=$2
  5549. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5550. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5551. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5552. echo $ECHO_N "(cached) $ECHO_C" >&6
  5553. else
  5554. if test -n "$ac_ct_CXX"; then
  5555. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5556. else
  5557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5558. for as_dir in $PATH
  5559. do
  5560. IFS=$as_save_IFS
  5561. test -z "$as_dir" && as_dir=.
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5564. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5565. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5566. break 2
  5567. fi
  5568. done
  5569. done
  5570. IFS=$as_save_IFS
  5571. fi
  5572. fi
  5573. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5574. if test -n "$ac_ct_CXX"; then
  5575. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5576. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  5577. else
  5578. { echo "$as_me:$LINENO: result: no" >&5
  5579. echo "${ECHO_T}no" >&6; }
  5580. fi
  5581. test -n "$ac_ct_CXX" && break
  5582. done
  5583. if test "x$ac_ct_CXX" = x; then
  5584. CXX="g++"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5589. whose name does not start with the host triplet. If you think this
  5590. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5591. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5592. whose name does not start with the host triplet. If you think this
  5593. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5594. ac_tool_warned=yes ;;
  5595. esac
  5596. CXX=$ac_ct_CXX
  5597. fi
  5598. fi
  5599. fi
  5600. fi
  5601. # Provide some information about the compiler.
  5602. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5603. ac_compiler=`set X $ac_compile; echo $2`
  5604. { (ac_try="$ac_compiler --version >&5"
  5605. case "(($ac_try" in
  5606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5607. *) ac_try_echo=$ac_try;;
  5608. esac
  5609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5610. (eval "$ac_compiler --version >&5") 2>&5
  5611. ac_status=$?
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); }
  5614. { (ac_try="$ac_compiler -v >&5"
  5615. case "(($ac_try" in
  5616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5617. *) ac_try_echo=$ac_try;;
  5618. esac
  5619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5620. (eval "$ac_compiler -v >&5") 2>&5
  5621. ac_status=$?
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); }
  5624. { (ac_try="$ac_compiler -V >&5"
  5625. case "(($ac_try" in
  5626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5627. *) ac_try_echo=$ac_try;;
  5628. esac
  5629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5630. (eval "$ac_compiler -V >&5") 2>&5
  5631. ac_status=$?
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); }
  5634. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5635. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  5636. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5637. echo $ECHO_N "(cached) $ECHO_C" >&6
  5638. else
  5639. cat >conftest.$ac_ext <<_ACEOF
  5640. /* confdefs.h. */
  5641. _ACEOF
  5642. cat confdefs.h >>conftest.$ac_ext
  5643. cat >>conftest.$ac_ext <<_ACEOF
  5644. /* end confdefs.h. */
  5645. int
  5646. main ()
  5647. {
  5648. #ifndef __GNUC__
  5649. choke me
  5650. #endif
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. rm -f conftest.$ac_objext
  5656. if { (ac_try="$ac_compile"
  5657. case "(($ac_try" in
  5658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5659. *) ac_try_echo=$ac_try;;
  5660. esac
  5661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5662. (eval "$ac_compile") 2>conftest.er1
  5663. ac_status=$?
  5664. grep -v '^ *+' conftest.er1 >conftest.err
  5665. rm -f conftest.er1
  5666. cat conftest.err >&5
  5667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5668. (exit $ac_status); } &&
  5669. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5670. { (case "(($ac_try" in
  5671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5672. *) ac_try_echo=$ac_try;;
  5673. esac
  5674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5675. (eval "$ac_try") 2>&5
  5676. ac_status=$?
  5677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5678. (exit $ac_status); }; } &&
  5679. { ac_try='test -s conftest.$ac_objext'
  5680. { (case "(($ac_try" in
  5681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5682. *) ac_try_echo=$ac_try;;
  5683. esac
  5684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5685. (eval "$ac_try") 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }; }; then
  5689. ac_compiler_gnu=yes
  5690. else
  5691. echo "$as_me: failed program was:" >&5
  5692. sed 's/^/| /' conftest.$ac_ext >&5
  5693. ac_compiler_gnu=no
  5694. fi
  5695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5696. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5697. fi
  5698. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5699. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5700. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5701. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5702. ac_save_CXXFLAGS=$CXXFLAGS
  5703. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5704. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5705. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5706. echo $ECHO_N "(cached) $ECHO_C" >&6
  5707. else
  5708. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5709. ac_cxx_werror_flag=yes
  5710. ac_cv_prog_cxx_g=no
  5711. CXXFLAGS="-g"
  5712. cat >conftest.$ac_ext <<_ACEOF
  5713. /* confdefs.h. */
  5714. _ACEOF
  5715. cat confdefs.h >>conftest.$ac_ext
  5716. cat >>conftest.$ac_ext <<_ACEOF
  5717. /* end confdefs.h. */
  5718. int
  5719. main ()
  5720. {
  5721. ;
  5722. return 0;
  5723. }
  5724. _ACEOF
  5725. rm -f conftest.$ac_objext
  5726. if { (ac_try="$ac_compile"
  5727. case "(($ac_try" in
  5728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5729. *) ac_try_echo=$ac_try;;
  5730. esac
  5731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5732. (eval "$ac_compile") 2>conftest.er1
  5733. ac_status=$?
  5734. grep -v '^ *+' conftest.er1 >conftest.err
  5735. rm -f conftest.er1
  5736. cat conftest.err >&5
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); } &&
  5739. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5740. { (case "(($ac_try" in
  5741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5742. *) ac_try_echo=$ac_try;;
  5743. esac
  5744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5745. (eval "$ac_try") 2>&5
  5746. ac_status=$?
  5747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); }; } &&
  5749. { ac_try='test -s conftest.$ac_objext'
  5750. { (case "(($ac_try" in
  5751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5752. *) ac_try_echo=$ac_try;;
  5753. esac
  5754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5755. (eval "$ac_try") 2>&5
  5756. ac_status=$?
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); }; }; then
  5759. ac_cv_prog_cxx_g=yes
  5760. else
  5761. echo "$as_me: failed program was:" >&5
  5762. sed 's/^/| /' conftest.$ac_ext >&5
  5763. CXXFLAGS=""
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. int
  5771. main ()
  5772. {
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. rm -f conftest.$ac_objext
  5778. if { (ac_try="$ac_compile"
  5779. case "(($ac_try" in
  5780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5781. *) ac_try_echo=$ac_try;;
  5782. esac
  5783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5784. (eval "$ac_compile") 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5792. { (case "(($ac_try" in
  5793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5794. *) ac_try_echo=$ac_try;;
  5795. esac
  5796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5797. (eval "$ac_try") 2>&5
  5798. ac_status=$?
  5799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); }; } &&
  5801. { ac_try='test -s conftest.$ac_objext'
  5802. { (case "(($ac_try" in
  5803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5804. *) ac_try_echo=$ac_try;;
  5805. esac
  5806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5807. (eval "$ac_try") 2>&5
  5808. ac_status=$?
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); }; }; then
  5811. :
  5812. else
  5813. echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5816. CXXFLAGS="-g"
  5817. cat >conftest.$ac_ext <<_ACEOF
  5818. /* confdefs.h. */
  5819. _ACEOF
  5820. cat confdefs.h >>conftest.$ac_ext
  5821. cat >>conftest.$ac_ext <<_ACEOF
  5822. /* end confdefs.h. */
  5823. int
  5824. main ()
  5825. {
  5826. ;
  5827. return 0;
  5828. }
  5829. _ACEOF
  5830. rm -f conftest.$ac_objext
  5831. if { (ac_try="$ac_compile"
  5832. case "(($ac_try" in
  5833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5834. *) ac_try_echo=$ac_try;;
  5835. esac
  5836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5837. (eval "$ac_compile") 2>conftest.er1
  5838. ac_status=$?
  5839. grep -v '^ *+' conftest.er1 >conftest.err
  5840. rm -f conftest.er1
  5841. cat conftest.err >&5
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); } &&
  5844. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5845. { (case "(($ac_try" in
  5846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5847. *) ac_try_echo=$ac_try;;
  5848. esac
  5849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5850. (eval "$ac_try") 2>&5
  5851. ac_status=$?
  5852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); }; } &&
  5854. { ac_try='test -s conftest.$ac_objext'
  5855. { (case "(($ac_try" in
  5856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5857. *) ac_try_echo=$ac_try;;
  5858. esac
  5859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5860. (eval "$ac_try") 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; }; then
  5864. ac_cv_prog_cxx_g=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. fi
  5869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5872. fi
  5873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5874. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5875. fi
  5876. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5877. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5878. if test "$ac_test_CXXFLAGS" = set; then
  5879. CXXFLAGS=$ac_save_CXXFLAGS
  5880. elif test $ac_cv_prog_cxx_g = yes; then
  5881. if test "$GXX" = yes; then
  5882. CXXFLAGS="-g -O2"
  5883. else
  5884. CXXFLAGS="-g"
  5885. fi
  5886. else
  5887. if test "$GXX" = yes; then
  5888. CXXFLAGS="-O2"
  5889. else
  5890. CXXFLAGS=
  5891. fi
  5892. fi
  5893. ac_ext=c
  5894. ac_cpp='$CPP $CPPFLAGS'
  5895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5898. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5899. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  5900. if test "${lt_cv_path_NM+set}" = set; then
  5901. echo $ECHO_N "(cached) $ECHO_C" >&6
  5902. else
  5903. if test -n "$NM"; then
  5904. # Let the user override the test.
  5905. lt_cv_path_NM="$NM"
  5906. else
  5907. lt_nm_to_check="${ac_tool_prefix}nm"
  5908. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5909. lt_nm_to_check="$lt_nm_to_check nm"
  5910. fi
  5911. for lt_tmp_nm in $lt_nm_to_check; do
  5912. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5913. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5914. IFS="$lt_save_ifs"
  5915. test -z "$ac_dir" && ac_dir=.
  5916. tmp_nm="$ac_dir/$lt_tmp_nm"
  5917. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5918. # Check to see if the nm accepts a BSD-compat flag.
  5919. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5920. # nm: unknown option "B" ignored
  5921. # Tru64's nm complains that /dev/null is an invalid object file
  5922. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5923. */dev/null* | *'Invalid file or object type'*)
  5924. lt_cv_path_NM="$tmp_nm -B"
  5925. break
  5926. ;;
  5927. *)
  5928. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5929. */dev/null*)
  5930. lt_cv_path_NM="$tmp_nm -p"
  5931. break
  5932. ;;
  5933. *)
  5934. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5935. continue # so that we can try to find one that supports BSD flags
  5936. ;;
  5937. esac
  5938. ;;
  5939. esac
  5940. fi
  5941. done
  5942. IFS="$lt_save_ifs"
  5943. done
  5944. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5945. fi
  5946. fi
  5947. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5948. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  5949. NM="$lt_cv_path_NM"
  5950. { echo "$as_me:$LINENO: checking for GNU make" >&5
  5951. echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
  5952. if test "${llvm_cv_gnu_make_command+set}" = set; then
  5953. echo $ECHO_N "(cached) $ECHO_C" >&6
  5954. else
  5955. llvm_cv_gnu_make_command=''
  5956. for a in "$MAKE" make gmake gnumake ; do
  5957. if test -z "$a" ; then continue ; fi ;
  5958. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
  5959. then
  5960. llvm_cv_gnu_make_command=$a ;
  5961. break;
  5962. fi
  5963. done
  5964. fi
  5965. { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
  5966. echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
  5967. if test "x$llvm_cv_gnu_make_command" != "x" ; then
  5968. ifGNUmake='' ;
  5969. else
  5970. ifGNUmake='#' ;
  5971. { echo "$as_me:$LINENO: result: \"Not found\"" >&5
  5972. echo "${ECHO_T}\"Not found\"" >&6; };
  5973. fi
  5974. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5975. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  5976. LN_S=$as_ln_s
  5977. if test "$LN_S" = "ln -s"; then
  5978. { echo "$as_me:$LINENO: result: yes" >&5
  5979. echo "${ECHO_T}yes" >&6; }
  5980. else
  5981. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5982. echo "${ECHO_T}no, using $LN_S" >&6; }
  5983. fi
  5984. # Extract the first word of "cmp", so it can be a program name with args.
  5985. set dummy cmp; ac_word=$2
  5986. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5987. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5988. if test "${ac_cv_path_CMP+set}" = set; then
  5989. echo $ECHO_N "(cached) $ECHO_C" >&6
  5990. else
  5991. case $CMP in
  5992. [\\/]* | ?:[\\/]*)
  5993. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  5994. ;;
  5995. *)
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6003. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6004. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
  6011. ;;
  6012. esac
  6013. fi
  6014. CMP=$ac_cv_path_CMP
  6015. if test -n "$CMP"; then
  6016. { echo "$as_me:$LINENO: result: $CMP" >&5
  6017. echo "${ECHO_T}$CMP" >&6; }
  6018. else
  6019. { echo "$as_me:$LINENO: result: no" >&5
  6020. echo "${ECHO_T}no" >&6; }
  6021. fi
  6022. # Extract the first word of "cp", so it can be a program name with args.
  6023. set dummy cp; ac_word=$2
  6024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6026. if test "${ac_cv_path_CP+set}" = set; then
  6027. echo $ECHO_N "(cached) $ECHO_C" >&6
  6028. else
  6029. case $CP in
  6030. [\\/]* | ?:[\\/]*)
  6031. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  6032. ;;
  6033. *)
  6034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035. for as_dir in $PATH
  6036. do
  6037. IFS=$as_save_IFS
  6038. test -z "$as_dir" && as_dir=.
  6039. for ac_exec_ext in '' $ac_executable_extensions; do
  6040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6041. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  6042. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043. break 2
  6044. fi
  6045. done
  6046. done
  6047. IFS=$as_save_IFS
  6048. test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
  6049. ;;
  6050. esac
  6051. fi
  6052. CP=$ac_cv_path_CP
  6053. if test -n "$CP"; then
  6054. { echo "$as_me:$LINENO: result: $CP" >&5
  6055. echo "${ECHO_T}$CP" >&6; }
  6056. else
  6057. { echo "$as_me:$LINENO: result: no" >&5
  6058. echo "${ECHO_T}no" >&6; }
  6059. fi
  6060. # Extract the first word of "date", so it can be a program name with args.
  6061. set dummy date; ac_word=$2
  6062. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6063. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6064. if test "${ac_cv_path_DATE+set}" = set; then
  6065. echo $ECHO_N "(cached) $ECHO_C" >&6
  6066. else
  6067. case $DATE in
  6068. [\\/]* | ?:[\\/]*)
  6069. ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
  6070. ;;
  6071. *)
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. test -z "$as_dir" && as_dir=.
  6077. for ac_exec_ext in '' $ac_executable_extensions; do
  6078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6079. ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
  6080. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6081. break 2
  6082. fi
  6083. done
  6084. done
  6085. IFS=$as_save_IFS
  6086. test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
  6087. ;;
  6088. esac
  6089. fi
  6090. DATE=$ac_cv_path_DATE
  6091. if test -n "$DATE"; then
  6092. { echo "$as_me:$LINENO: result: $DATE" >&5
  6093. echo "${ECHO_T}$DATE" >&6; }
  6094. else
  6095. { echo "$as_me:$LINENO: result: no" >&5
  6096. echo "${ECHO_T}no" >&6; }
  6097. fi
  6098. # Extract the first word of "find", so it can be a program name with args.
  6099. set dummy find; ac_word=$2
  6100. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6102. if test "${ac_cv_path_FIND+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. case $FIND in
  6106. [\\/]* | ?:[\\/]*)
  6107. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6108. ;;
  6109. *)
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6117. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
  6125. ;;
  6126. esac
  6127. fi
  6128. FIND=$ac_cv_path_FIND
  6129. if test -n "$FIND"; then
  6130. { echo "$as_me:$LINENO: result: $FIND" >&5
  6131. echo "${ECHO_T}$FIND" >&6; }
  6132. else
  6133. { echo "$as_me:$LINENO: result: no" >&5
  6134. echo "${ECHO_T}no" >&6; }
  6135. fi
  6136. # Extract the first word of "grep", so it can be a program name with args.
  6137. set dummy grep; ac_word=$2
  6138. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6140. if test "${ac_cv_path_GREP+set}" = set; then
  6141. echo $ECHO_N "(cached) $ECHO_C" >&6
  6142. else
  6143. case $GREP in
  6144. [\\/]* | ?:[\\/]*)
  6145. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6146. ;;
  6147. *)
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6156. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
  6163. ;;
  6164. esac
  6165. fi
  6166. GREP=$ac_cv_path_GREP
  6167. if test -n "$GREP"; then
  6168. { echo "$as_me:$LINENO: result: $GREP" >&5
  6169. echo "${ECHO_T}$GREP" >&6; }
  6170. else
  6171. { echo "$as_me:$LINENO: result: no" >&5
  6172. echo "${ECHO_T}no" >&6; }
  6173. fi
  6174. # Extract the first word of "mkdir", so it can be a program name with args.
  6175. set dummy mkdir; ac_word=$2
  6176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6178. if test "${ac_cv_path_MKDIR+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. case $MKDIR in
  6182. [\\/]* | ?:[\\/]*)
  6183. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  6184. ;;
  6185. *)
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6193. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  6194. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
  6201. ;;
  6202. esac
  6203. fi
  6204. MKDIR=$ac_cv_path_MKDIR
  6205. if test -n "$MKDIR"; then
  6206. { echo "$as_me:$LINENO: result: $MKDIR" >&5
  6207. echo "${ECHO_T}$MKDIR" >&6; }
  6208. else
  6209. { echo "$as_me:$LINENO: result: no" >&5
  6210. echo "${ECHO_T}no" >&6; }
  6211. fi
  6212. # Extract the first word of "mv", so it can be a program name with args.
  6213. set dummy mv; ac_word=$2
  6214. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6216. if test "${ac_cv_path_MV+set}" = set; then
  6217. echo $ECHO_N "(cached) $ECHO_C" >&6
  6218. else
  6219. case $MV in
  6220. [\\/]* | ?:[\\/]*)
  6221. ac_cv_path_MV="$MV" # Let the user override the test with a path.
  6222. ;;
  6223. *)
  6224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6225. for as_dir in $PATH
  6226. do
  6227. IFS=$as_save_IFS
  6228. test -z "$as_dir" && as_dir=.
  6229. for ac_exec_ext in '' $ac_executable_extensions; do
  6230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6231. ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
  6232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6233. break 2
  6234. fi
  6235. done
  6236. done
  6237. IFS=$as_save_IFS
  6238. test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
  6239. ;;
  6240. esac
  6241. fi
  6242. MV=$ac_cv_path_MV
  6243. if test -n "$MV"; then
  6244. { echo "$as_me:$LINENO: result: $MV" >&5
  6245. echo "${ECHO_T}$MV" >&6; }
  6246. else
  6247. { echo "$as_me:$LINENO: result: no" >&5
  6248. echo "${ECHO_T}no" >&6; }
  6249. fi
  6250. if test -n "$ac_tool_prefix"; then
  6251. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6252. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6253. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6254. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6255. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6256. echo $ECHO_N "(cached) $ECHO_C" >&6
  6257. else
  6258. if test -n "$RANLIB"; then
  6259. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6260. else
  6261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6262. for as_dir in $PATH
  6263. do
  6264. IFS=$as_save_IFS
  6265. test -z "$as_dir" && as_dir=.
  6266. for ac_exec_ext in '' $ac_executable_extensions; do
  6267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6268. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6270. break 2
  6271. fi
  6272. done
  6273. done
  6274. IFS=$as_save_IFS
  6275. fi
  6276. fi
  6277. RANLIB=$ac_cv_prog_RANLIB
  6278. if test -n "$RANLIB"; then
  6279. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6280. echo "${ECHO_T}$RANLIB" >&6; }
  6281. else
  6282. { echo "$as_me:$LINENO: result: no" >&5
  6283. echo "${ECHO_T}no" >&6; }
  6284. fi
  6285. fi
  6286. if test -z "$ac_cv_prog_RANLIB"; then
  6287. ac_ct_RANLIB=$RANLIB
  6288. # Extract the first word of "ranlib", so it can be a program name with args.
  6289. set dummy ranlib; ac_word=$2
  6290. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6291. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6292. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6293. echo $ECHO_N "(cached) $ECHO_C" >&6
  6294. else
  6295. if test -n "$ac_ct_RANLIB"; then
  6296. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6305. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6306. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6315. if test -n "$ac_ct_RANLIB"; then
  6316. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6317. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6318. else
  6319. { echo "$as_me:$LINENO: result: no" >&5
  6320. echo "${ECHO_T}no" >&6; }
  6321. fi
  6322. if test "x$ac_ct_RANLIB" = x; then
  6323. RANLIB=":"
  6324. else
  6325. case $cross_compiling:$ac_tool_warned in
  6326. yes:)
  6327. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6328. whose name does not start with the host triplet. If you think this
  6329. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6330. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6331. whose name does not start with the host triplet. If you think this
  6332. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6333. ac_tool_warned=yes ;;
  6334. esac
  6335. RANLIB=$ac_ct_RANLIB
  6336. fi
  6337. else
  6338. RANLIB="$ac_cv_prog_RANLIB"
  6339. fi
  6340. # Extract the first word of "rm", so it can be a program name with args.
  6341. set dummy rm; ac_word=$2
  6342. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6343. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6344. if test "${ac_cv_path_RM+set}" = set; then
  6345. echo $ECHO_N "(cached) $ECHO_C" >&6
  6346. else
  6347. case $RM in
  6348. [\\/]* | ?:[\\/]*)
  6349. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  6350. ;;
  6351. *)
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6359. ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
  6360. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  6367. ;;
  6368. esac
  6369. fi
  6370. RM=$ac_cv_path_RM
  6371. if test -n "$RM"; then
  6372. { echo "$as_me:$LINENO: result: $RM" >&5
  6373. echo "${ECHO_T}$RM" >&6; }
  6374. else
  6375. { echo "$as_me:$LINENO: result: no" >&5
  6376. echo "${ECHO_T}no" >&6; }
  6377. fi
  6378. # Extract the first word of "sed", so it can be a program name with args.
  6379. set dummy sed; ac_word=$2
  6380. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6382. if test "${ac_cv_path_SED+set}" = set; then
  6383. echo $ECHO_N "(cached) $ECHO_C" >&6
  6384. else
  6385. case $SED in
  6386. [\\/]* | ?:[\\/]*)
  6387. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  6388. ;;
  6389. *)
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  6398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
  6405. ;;
  6406. esac
  6407. fi
  6408. SED=$ac_cv_path_SED
  6409. if test -n "$SED"; then
  6410. { echo "$as_me:$LINENO: result: $SED" >&5
  6411. echo "${ECHO_T}$SED" >&6; }
  6412. else
  6413. { echo "$as_me:$LINENO: result: no" >&5
  6414. echo "${ECHO_T}no" >&6; }
  6415. fi
  6416. # Extract the first word of "tar", so it can be a program name with args.
  6417. set dummy tar; ac_word=$2
  6418. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6420. if test "${ac_cv_path_TAR+set}" = set; then
  6421. echo $ECHO_N "(cached) $ECHO_C" >&6
  6422. else
  6423. case $TAR in
  6424. [\\/]* | ?:[\\/]*)
  6425. ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  6426. ;;
  6427. *)
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
  6436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
  6443. ;;
  6444. esac
  6445. fi
  6446. TAR=$ac_cv_path_TAR
  6447. if test -n "$TAR"; then
  6448. { echo "$as_me:$LINENO: result: $TAR" >&5
  6449. echo "${ECHO_T}$TAR" >&6; }
  6450. else
  6451. { echo "$as_me:$LINENO: result: no" >&5
  6452. echo "${ECHO_T}no" >&6; }
  6453. fi
  6454. # Extract the first word of "pwd", so it can be a program name with args.
  6455. set dummy pwd; ac_word=$2
  6456. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6458. if test "${ac_cv_path_BINPWD+set}" = set; then
  6459. echo $ECHO_N "(cached) $ECHO_C" >&6
  6460. else
  6461. case $BINPWD in
  6462. [\\/]* | ?:[\\/]*)
  6463. ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
  6464. ;;
  6465. *)
  6466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6467. for as_dir in $PATH
  6468. do
  6469. IFS=$as_save_IFS
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6473. ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
  6474. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6475. break 2
  6476. fi
  6477. done
  6478. done
  6479. IFS=$as_save_IFS
  6480. test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
  6481. ;;
  6482. esac
  6483. fi
  6484. BINPWD=$ac_cv_path_BINPWD
  6485. if test -n "$BINPWD"; then
  6486. { echo "$as_me:$LINENO: result: $BINPWD" >&5
  6487. echo "${ECHO_T}$BINPWD" >&6; }
  6488. else
  6489. { echo "$as_me:$LINENO: result: no" >&5
  6490. echo "${ECHO_T}no" >&6; }
  6491. fi
  6492. # Extract the first word of "Graphviz", so it can be a program name with args.
  6493. set dummy Graphviz; ac_word=$2
  6494. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6495. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6496. if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
  6497. echo $ECHO_N "(cached) $ECHO_C" >&6
  6498. else
  6499. case $GRAPHVIZ in
  6500. [\\/]* | ?:[\\/]*)
  6501. ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
  6502. ;;
  6503. *)
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. test -z "$as_dir" && as_dir=.
  6509. for ac_exec_ext in '' $ac_executable_extensions; do
  6510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6511. ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
  6512. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6513. break 2
  6514. fi
  6515. done
  6516. done
  6517. IFS=$as_save_IFS
  6518. test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
  6519. ;;
  6520. esac
  6521. fi
  6522. GRAPHVIZ=$ac_cv_path_GRAPHVIZ
  6523. if test -n "$GRAPHVIZ"; then
  6524. { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
  6525. echo "${ECHO_T}$GRAPHVIZ" >&6; }
  6526. else
  6527. { echo "$as_me:$LINENO: result: no" >&5
  6528. echo "${ECHO_T}no" >&6; }
  6529. fi
  6530. if test "$GRAPHVIZ" != "echo Graphviz" ; then
  6531. cat >>confdefs.h <<\_ACEOF
  6532. #define HAVE_GRAPHVIZ 1
  6533. _ACEOF
  6534. if test "$llvm_cv_os_type" = "MingW" ; then
  6535. GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6536. fi
  6537. cat >>confdefs.h <<_ACEOF
  6538. #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
  6539. _ACEOF
  6540. fi
  6541. # Extract the first word of "dot", so it can be a program name with args.
  6542. set dummy dot; ac_word=$2
  6543. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6544. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6545. if test "${ac_cv_path_DOT+set}" = set; then
  6546. echo $ECHO_N "(cached) $ECHO_C" >&6
  6547. else
  6548. case $DOT in
  6549. [\\/]* | ?:[\\/]*)
  6550. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6551. ;;
  6552. *)
  6553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6554. for as_dir in $PATH
  6555. do
  6556. IFS=$as_save_IFS
  6557. test -z "$as_dir" && as_dir=.
  6558. for ac_exec_ext in '' $ac_executable_extensions; do
  6559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6560. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6561. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6562. break 2
  6563. fi
  6564. done
  6565. done
  6566. IFS=$as_save_IFS
  6567. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
  6568. ;;
  6569. esac
  6570. fi
  6571. DOT=$ac_cv_path_DOT
  6572. if test -n "$DOT"; then
  6573. { echo "$as_me:$LINENO: result: $DOT" >&5
  6574. echo "${ECHO_T}$DOT" >&6; }
  6575. else
  6576. { echo "$as_me:$LINENO: result: no" >&5
  6577. echo "${ECHO_T}no" >&6; }
  6578. fi
  6579. if test "$DOT" != "echo dot" ; then
  6580. cat >>confdefs.h <<\_ACEOF
  6581. #define HAVE_DOT 1
  6582. _ACEOF
  6583. if test "$llvm_cv_os_type" = "MingW" ; then
  6584. DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6585. fi
  6586. cat >>confdefs.h <<_ACEOF
  6587. #define LLVM_PATH_DOT "$DOT${EXEEXT}"
  6588. _ACEOF
  6589. fi
  6590. # Extract the first word of "fdp", so it can be a program name with args.
  6591. set dummy fdp; ac_word=$2
  6592. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6594. if test "${ac_cv_path_FDP+set}" = set; then
  6595. echo $ECHO_N "(cached) $ECHO_C" >&6
  6596. else
  6597. case $FDP in
  6598. [\\/]* | ?:[\\/]*)
  6599. ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
  6600. ;;
  6601. *)
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6609. ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
  6610. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
  6617. ;;
  6618. esac
  6619. fi
  6620. FDP=$ac_cv_path_FDP
  6621. if test -n "$FDP"; then
  6622. { echo "$as_me:$LINENO: result: $FDP" >&5
  6623. echo "${ECHO_T}$FDP" >&6; }
  6624. else
  6625. { echo "$as_me:$LINENO: result: no" >&5
  6626. echo "${ECHO_T}no" >&6; }
  6627. fi
  6628. if test "$FDP" != "echo fdp" ; then
  6629. cat >>confdefs.h <<\_ACEOF
  6630. #define HAVE_FDP 1
  6631. _ACEOF
  6632. if test "$llvm_cv_os_type" = "MingW" ; then
  6633. FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6634. fi
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define LLVM_PATH_FDP "$FDP${EXEEXT}"
  6637. _ACEOF
  6638. fi
  6639. # Extract the first word of "neato", so it can be a program name with args.
  6640. set dummy neato; ac_word=$2
  6641. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6642. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6643. if test "${ac_cv_path_NEATO+set}" = set; then
  6644. echo $ECHO_N "(cached) $ECHO_C" >&6
  6645. else
  6646. case $NEATO in
  6647. [\\/]* | ?:[\\/]*)
  6648. ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
  6649. ;;
  6650. *)
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. test -z "$as_dir" && as_dir=.
  6656. for ac_exec_ext in '' $ac_executable_extensions; do
  6657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6658. ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
  6659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6660. break 2
  6661. fi
  6662. done
  6663. done
  6664. IFS=$as_save_IFS
  6665. test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
  6666. ;;
  6667. esac
  6668. fi
  6669. NEATO=$ac_cv_path_NEATO
  6670. if test -n "$NEATO"; then
  6671. { echo "$as_me:$LINENO: result: $NEATO" >&5
  6672. echo "${ECHO_T}$NEATO" >&6; }
  6673. else
  6674. { echo "$as_me:$LINENO: result: no" >&5
  6675. echo "${ECHO_T}no" >&6; }
  6676. fi
  6677. if test "$NEATO" != "echo neato" ; then
  6678. cat >>confdefs.h <<\_ACEOF
  6679. #define HAVE_NEATO 1
  6680. _ACEOF
  6681. if test "$llvm_cv_os_type" = "MingW" ; then
  6682. NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6683. fi
  6684. cat >>confdefs.h <<_ACEOF
  6685. #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
  6686. _ACEOF
  6687. fi
  6688. # Extract the first word of "twopi", so it can be a program name with args.
  6689. set dummy twopi; ac_word=$2
  6690. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6692. if test "${ac_cv_path_TWOPI+set}" = set; then
  6693. echo $ECHO_N "(cached) $ECHO_C" >&6
  6694. else
  6695. case $TWOPI in
  6696. [\\/]* | ?:[\\/]*)
  6697. ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
  6698. ;;
  6699. *)
  6700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701. for as_dir in $PATH
  6702. do
  6703. IFS=$as_save_IFS
  6704. test -z "$as_dir" && as_dir=.
  6705. for ac_exec_ext in '' $ac_executable_extensions; do
  6706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6707. ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
  6708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709. break 2
  6710. fi
  6711. done
  6712. done
  6713. IFS=$as_save_IFS
  6714. test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
  6715. ;;
  6716. esac
  6717. fi
  6718. TWOPI=$ac_cv_path_TWOPI
  6719. if test -n "$TWOPI"; then
  6720. { echo "$as_me:$LINENO: result: $TWOPI" >&5
  6721. echo "${ECHO_T}$TWOPI" >&6; }
  6722. else
  6723. { echo "$as_me:$LINENO: result: no" >&5
  6724. echo "${ECHO_T}no" >&6; }
  6725. fi
  6726. if test "$TWOPI" != "echo twopi" ; then
  6727. cat >>confdefs.h <<\_ACEOF
  6728. #define HAVE_TWOPI 1
  6729. _ACEOF
  6730. if test "$llvm_cv_os_type" = "MingW" ; then
  6731. TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6732. fi
  6733. cat >>confdefs.h <<_ACEOF
  6734. #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
  6735. _ACEOF
  6736. fi
  6737. # Extract the first word of "circo", so it can be a program name with args.
  6738. set dummy circo; ac_word=$2
  6739. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6741. if test "${ac_cv_path_CIRCO+set}" = set; then
  6742. echo $ECHO_N "(cached) $ECHO_C" >&6
  6743. else
  6744. case $CIRCO in
  6745. [\\/]* | ?:[\\/]*)
  6746. ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
  6747. ;;
  6748. *)
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. test -z "$as_dir" && as_dir=.
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6756. ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
  6757. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
  6764. ;;
  6765. esac
  6766. fi
  6767. CIRCO=$ac_cv_path_CIRCO
  6768. if test -n "$CIRCO"; then
  6769. { echo "$as_me:$LINENO: result: $CIRCO" >&5
  6770. echo "${ECHO_T}$CIRCO" >&6; }
  6771. else
  6772. { echo "$as_me:$LINENO: result: no" >&5
  6773. echo "${ECHO_T}no" >&6; }
  6774. fi
  6775. if test "$CIRCO" != "echo circo" ; then
  6776. cat >>confdefs.h <<\_ACEOF
  6777. #define HAVE_CIRCO 1
  6778. _ACEOF
  6779. if test "$llvm_cv_os_type" = "MingW" ; then
  6780. CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6781. fi
  6782. cat >>confdefs.h <<_ACEOF
  6783. #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
  6784. _ACEOF
  6785. fi
  6786. for ac_prog in gv gsview32
  6787. do
  6788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6789. set dummy $ac_prog; ac_word=$2
  6790. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6792. if test "${ac_cv_path_GV+set}" = set; then
  6793. echo $ECHO_N "(cached) $ECHO_C" >&6
  6794. else
  6795. case $GV in
  6796. [\\/]* | ?:[\\/]*)
  6797. ac_cv_path_GV="$GV" # Let the user override the test with a path.
  6798. ;;
  6799. *)
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6807. ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
  6808. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. ;;
  6815. esac
  6816. fi
  6817. GV=$ac_cv_path_GV
  6818. if test -n "$GV"; then
  6819. { echo "$as_me:$LINENO: result: $GV" >&5
  6820. echo "${ECHO_T}$GV" >&6; }
  6821. else
  6822. { echo "$as_me:$LINENO: result: no" >&5
  6823. echo "${ECHO_T}no" >&6; }
  6824. fi
  6825. test -n "$GV" && break
  6826. done
  6827. test -n "$GV" || GV="echo gv"
  6828. if test "$GV" != "echo gv" ; then
  6829. cat >>confdefs.h <<\_ACEOF
  6830. #define HAVE_GV 1
  6831. _ACEOF
  6832. if test "$llvm_cv_os_type" = "MingW" ; then
  6833. GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6834. fi
  6835. cat >>confdefs.h <<_ACEOF
  6836. #define LLVM_PATH_GV "$GV${EXEEXT}"
  6837. _ACEOF
  6838. fi
  6839. # Extract the first word of "dotty", so it can be a program name with args.
  6840. set dummy dotty; ac_word=$2
  6841. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6842. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6843. if test "${ac_cv_path_DOTTY+set}" = set; then
  6844. echo $ECHO_N "(cached) $ECHO_C" >&6
  6845. else
  6846. case $DOTTY in
  6847. [\\/]* | ?:[\\/]*)
  6848. ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
  6849. ;;
  6850. *)
  6851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6852. for as_dir in $PATH
  6853. do
  6854. IFS=$as_save_IFS
  6855. test -z "$as_dir" && as_dir=.
  6856. for ac_exec_ext in '' $ac_executable_extensions; do
  6857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6858. ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
  6859. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6860. break 2
  6861. fi
  6862. done
  6863. done
  6864. IFS=$as_save_IFS
  6865. test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
  6866. ;;
  6867. esac
  6868. fi
  6869. DOTTY=$ac_cv_path_DOTTY
  6870. if test -n "$DOTTY"; then
  6871. { echo "$as_me:$LINENO: result: $DOTTY" >&5
  6872. echo "${ECHO_T}$DOTTY" >&6; }
  6873. else
  6874. { echo "$as_me:$LINENO: result: no" >&5
  6875. echo "${ECHO_T}no" >&6; }
  6876. fi
  6877. if test "$DOTTY" != "echo dotty" ; then
  6878. cat >>confdefs.h <<\_ACEOF
  6879. #define HAVE_DOTTY 1
  6880. _ACEOF
  6881. if test "$llvm_cv_os_type" = "MingW" ; then
  6882. DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6883. fi
  6884. cat >>confdefs.h <<_ACEOF
  6885. #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
  6886. _ACEOF
  6887. fi
  6888. # Extract the first word of "perl", so it can be a program name with args.
  6889. set dummy perl; ac_word=$2
  6890. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6891. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6892. if test "${ac_cv_path_PERL+set}" = set; then
  6893. echo $ECHO_N "(cached) $ECHO_C" >&6
  6894. else
  6895. case $PERL in
  6896. [\\/]* | ?:[\\/]*)
  6897. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6898. ;;
  6899. *)
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6907. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
  6915. ;;
  6916. esac
  6917. fi
  6918. PERL=$ac_cv_path_PERL
  6919. if test -n "$PERL"; then
  6920. { echo "$as_me:$LINENO: result: $PERL" >&5
  6921. echo "${ECHO_T}$PERL" >&6; }
  6922. else
  6923. { echo "$as_me:$LINENO: result: no" >&5
  6924. echo "${ECHO_T}no" >&6; }
  6925. fi
  6926. if test "$PERL" != "none"; then
  6927. { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
  6928. echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
  6929. if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
  6930. { echo "$as_me:$LINENO: result: yes" >&5
  6931. echo "${ECHO_T}yes" >&6; }
  6932. else
  6933. PERL=none
  6934. { echo "$as_me:$LINENO: result: not found" >&5
  6935. echo "${ECHO_T}not found" >&6; }
  6936. fi
  6937. fi
  6938. if test x"$PERL" = xnone; then
  6939. HAVE_PERL=0
  6940. { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
  6941. echo "$as_me: error: perl is required but was not found, please install it" >&2;}
  6942. { (exit 1); exit 1; }; }
  6943. else
  6944. HAVE_PERL=1
  6945. fi
  6946. # Find a good install program. We prefer a C program (faster),
  6947. # so one script is as good as another. But avoid the broken or
  6948. # incompatible versions:
  6949. # SysV /etc/install, /usr/sbin/install
  6950. # SunOS /usr/etc/install
  6951. # IRIX /sbin/install
  6952. # AIX /bin/install
  6953. # AmigaOS /C/install, which installs bootblocks on floppy discs
  6954. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6955. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6956. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6957. # OS/2's system install, which has a completely different semantic
  6958. # ./install, which can be erroneously created by make from ./install.sh.
  6959. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6960. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  6961. if test -z "$INSTALL"; then
  6962. if test "${ac_cv_path_install+set}" = set; then
  6963. echo $ECHO_N "(cached) $ECHO_C" >&6
  6964. else
  6965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6966. for as_dir in $PATH
  6967. do
  6968. IFS=$as_save_IFS
  6969. test -z "$as_dir" && as_dir=.
  6970. # Account for people who put trailing slashes in PATH elements.
  6971. case $as_dir/ in
  6972. ./ | .// | /cC/* | \
  6973. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6974. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  6975. /usr/ucb/* ) ;;
  6976. *)
  6977. # OSF1 and SCO ODT 3.0 have their own names for install.
  6978. # Don't use installbsd from OSF since it installs stuff as root
  6979. # by default.
  6980. for ac_prog in ginstall scoinst install; do
  6981. for ac_exec_ext in '' $ac_executable_extensions; do
  6982. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  6983. if test $ac_prog = install &&
  6984. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6985. # AIX install. It has an incompatible calling convention.
  6986. :
  6987. elif test $ac_prog = install &&
  6988. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6989. # program-specific install script used by HP pwplus--don't use.
  6990. :
  6991. else
  6992. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6993. break 3
  6994. fi
  6995. fi
  6996. done
  6997. done
  6998. ;;
  6999. esac
  7000. done
  7001. IFS=$as_save_IFS
  7002. fi
  7003. if test "${ac_cv_path_install+set}" = set; then
  7004. INSTALL=$ac_cv_path_install
  7005. else
  7006. # As a last resort, use the slow shell script. Don't cache a
  7007. # value for INSTALL within a source directory, because that will
  7008. # break other packages using the cache if that directory is
  7009. # removed, or if the value is a relative name.
  7010. INSTALL=$ac_install_sh
  7011. fi
  7012. fi
  7013. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  7014. echo "${ECHO_T}$INSTALL" >&6; }
  7015. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7016. # It thinks the first close brace ends the variable substitution.
  7017. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7018. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7019. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7020. # Extract the first word of "bzip2", so it can be a program name with args.
  7021. set dummy bzip2; ac_word=$2
  7022. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7023. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7024. if test "${ac_cv_path_BZIP2+set}" = set; then
  7025. echo $ECHO_N "(cached) $ECHO_C" >&6
  7026. else
  7027. case $BZIP2 in
  7028. [\\/]* | ?:[\\/]*)
  7029. ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  7030. ;;
  7031. *)
  7032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7033. for as_dir in $PATH
  7034. do
  7035. IFS=$as_save_IFS
  7036. test -z "$as_dir" && as_dir=.
  7037. for ac_exec_ext in '' $ac_executable_extensions; do
  7038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7039. ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
  7040. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7041. break 2
  7042. fi
  7043. done
  7044. done
  7045. IFS=$as_save_IFS
  7046. ;;
  7047. esac
  7048. fi
  7049. BZIP2=$ac_cv_path_BZIP2
  7050. if test -n "$BZIP2"; then
  7051. { echo "$as_me:$LINENO: result: $BZIP2" >&5
  7052. echo "${ECHO_T}$BZIP2" >&6; }
  7053. else
  7054. { echo "$as_me:$LINENO: result: no" >&5
  7055. echo "${ECHO_T}no" >&6; }
  7056. fi
  7057. # Extract the first word of "doxygen", so it can be a program name with args.
  7058. set dummy doxygen; ac_word=$2
  7059. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7060. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7061. if test "${ac_cv_path_DOXYGEN+set}" = set; then
  7062. echo $ECHO_N "(cached) $ECHO_C" >&6
  7063. else
  7064. case $DOXYGEN in
  7065. [\\/]* | ?:[\\/]*)
  7066. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  7067. ;;
  7068. *)
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7076. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  7077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. ;;
  7084. esac
  7085. fi
  7086. DOXYGEN=$ac_cv_path_DOXYGEN
  7087. if test -n "$DOXYGEN"; then
  7088. { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
  7089. echo "${ECHO_T}$DOXYGEN" >&6; }
  7090. else
  7091. { echo "$as_me:$LINENO: result: no" >&5
  7092. echo "${ECHO_T}no" >&6; }
  7093. fi
  7094. # Extract the first word of "groff", so it can be a program name with args.
  7095. set dummy groff; ac_word=$2
  7096. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7098. if test "${ac_cv_path_GROFF+set}" = set; then
  7099. echo $ECHO_N "(cached) $ECHO_C" >&6
  7100. else
  7101. case $GROFF in
  7102. [\\/]* | ?:[\\/]*)
  7103. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  7104. ;;
  7105. *)
  7106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7107. for as_dir in $PATH
  7108. do
  7109. IFS=$as_save_IFS
  7110. test -z "$as_dir" && as_dir=.
  7111. for ac_exec_ext in '' $ac_executable_extensions; do
  7112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7113. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  7114. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7115. break 2
  7116. fi
  7117. done
  7118. done
  7119. IFS=$as_save_IFS
  7120. ;;
  7121. esac
  7122. fi
  7123. GROFF=$ac_cv_path_GROFF
  7124. if test -n "$GROFF"; then
  7125. { echo "$as_me:$LINENO: result: $GROFF" >&5
  7126. echo "${ECHO_T}$GROFF" >&6; }
  7127. else
  7128. { echo "$as_me:$LINENO: result: no" >&5
  7129. echo "${ECHO_T}no" >&6; }
  7130. fi
  7131. # Extract the first word of "gzip", so it can be a program name with args.
  7132. set dummy gzip; ac_word=$2
  7133. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7135. if test "${ac_cv_path_GZIP+set}" = set; then
  7136. echo $ECHO_N "(cached) $ECHO_C" >&6
  7137. else
  7138. case $GZIP in
  7139. [\\/]* | ?:[\\/]*)
  7140. ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  7141. ;;
  7142. *)
  7143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7144. for as_dir in $PATH
  7145. do
  7146. IFS=$as_save_IFS
  7147. test -z "$as_dir" && as_dir=.
  7148. for ac_exec_ext in '' $ac_executable_extensions; do
  7149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7150. ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
  7151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7152. break 2
  7153. fi
  7154. done
  7155. done
  7156. IFS=$as_save_IFS
  7157. ;;
  7158. esac
  7159. fi
  7160. GZIP=$ac_cv_path_GZIP
  7161. if test -n "$GZIP"; then
  7162. { echo "$as_me:$LINENO: result: $GZIP" >&5
  7163. echo "${ECHO_T}$GZIP" >&6; }
  7164. else
  7165. { echo "$as_me:$LINENO: result: no" >&5
  7166. echo "${ECHO_T}no" >&6; }
  7167. fi
  7168. # Extract the first word of "pod2html", so it can be a program name with args.
  7169. set dummy pod2html; ac_word=$2
  7170. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7171. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7172. if test "${ac_cv_path_POD2HTML+set}" = set; then
  7173. echo $ECHO_N "(cached) $ECHO_C" >&6
  7174. else
  7175. case $POD2HTML in
  7176. [\\/]* | ?:[\\/]*)
  7177. ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7178. ;;
  7179. *)
  7180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181. for as_dir in $PATH
  7182. do
  7183. IFS=$as_save_IFS
  7184. test -z "$as_dir" && as_dir=.
  7185. for ac_exec_ext in '' $ac_executable_extensions; do
  7186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7187. ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7189. break 2
  7190. fi
  7191. done
  7192. done
  7193. IFS=$as_save_IFS
  7194. ;;
  7195. esac
  7196. fi
  7197. POD2HTML=$ac_cv_path_POD2HTML
  7198. if test -n "$POD2HTML"; then
  7199. { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7200. echo "${ECHO_T}$POD2HTML" >&6; }
  7201. else
  7202. { echo "$as_me:$LINENO: result: no" >&5
  7203. echo "${ECHO_T}no" >&6; }
  7204. fi
  7205. # Extract the first word of "pod2man", so it can be a program name with args.
  7206. set dummy pod2man; ac_word=$2
  7207. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7209. if test "${ac_cv_path_POD2MAN+set}" = set; then
  7210. echo $ECHO_N "(cached) $ECHO_C" >&6
  7211. else
  7212. case $POD2MAN in
  7213. [\\/]* | ?:[\\/]*)
  7214. ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  7215. ;;
  7216. *)
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220. IFS=$as_save_IFS
  7221. test -z "$as_dir" && as_dir=.
  7222. for ac_exec_ext in '' $ac_executable_extensions; do
  7223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7224. ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7225. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226. break 2
  7227. fi
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. ;;
  7232. esac
  7233. fi
  7234. POD2MAN=$ac_cv_path_POD2MAN
  7235. if test -n "$POD2MAN"; then
  7236. { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7237. echo "${ECHO_T}$POD2MAN" >&6; }
  7238. else
  7239. { echo "$as_me:$LINENO: result: no" >&5
  7240. echo "${ECHO_T}no" >&6; }
  7241. fi
  7242. # Extract the first word of "runtest", so it can be a program name with args.
  7243. set dummy runtest; ac_word=$2
  7244. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7246. if test "${ac_cv_path_RUNTEST+set}" = set; then
  7247. echo $ECHO_N "(cached) $ECHO_C" >&6
  7248. else
  7249. case $RUNTEST in
  7250. [\\/]* | ?:[\\/]*)
  7251. ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
  7252. ;;
  7253. *)
  7254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7255. for as_dir in $PATH
  7256. do
  7257. IFS=$as_save_IFS
  7258. test -z "$as_dir" && as_dir=.
  7259. for ac_exec_ext in '' $ac_executable_extensions; do
  7260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7261. ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
  7262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7263. break 2
  7264. fi
  7265. done
  7266. done
  7267. IFS=$as_save_IFS
  7268. ;;
  7269. esac
  7270. fi
  7271. RUNTEST=$ac_cv_path_RUNTEST
  7272. if test -n "$RUNTEST"; then
  7273. { echo "$as_me:$LINENO: result: $RUNTEST" >&5
  7274. echo "${ECHO_T}$RUNTEST" >&6; }
  7275. else
  7276. { echo "$as_me:$LINENO: result: no" >&5
  7277. echo "${ECHO_T}no" >&6; }
  7278. fi
  7279. no_itcl=true
  7280. { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
  7281. echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
  7282. # Check whether --with-tclinclude was given.
  7283. if test "${with_tclinclude+set}" = set; then
  7284. withval=$with_tclinclude; with_tclinclude=${withval}
  7285. else
  7286. with_tclinclude=''
  7287. fi
  7288. if test "${ac_cv_path_tclsh+set}" = set; then
  7289. echo $ECHO_N "(cached) $ECHO_C" >&6
  7290. else
  7291. if test x"${with_tclinclude}" != x ; then
  7292. if test -f ${with_tclinclude}/tclsh ; then
  7293. ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
  7294. elif test -f ${with_tclinclude}/src/tclsh ; then
  7295. ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
  7296. else
  7297. { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
  7298. echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
  7299. { (exit 1); exit 1; }; }
  7300. fi
  7301. fi
  7302. if test x"${ac_cv_path_tclsh}" = x ; then
  7303. { echo "$as_me:$LINENO: result: none" >&5
  7304. echo "${ECHO_T}none" >&6; }
  7305. for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
  7306. do
  7307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7308. set dummy $ac_prog; ac_word=$2
  7309. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7310. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7311. if test "${ac_cv_path_TCLSH+set}" = set; then
  7312. echo $ECHO_N "(cached) $ECHO_C" >&6
  7313. else
  7314. case $TCLSH in
  7315. [\\/]* | ?:[\\/]*)
  7316. ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
  7317. ;;
  7318. *)
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7326. ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
  7327. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. ;;
  7334. esac
  7335. fi
  7336. TCLSH=$ac_cv_path_TCLSH
  7337. if test -n "$TCLSH"; then
  7338. { echo "$as_me:$LINENO: result: $TCLSH" >&5
  7339. echo "${ECHO_T}$TCLSH" >&6; }
  7340. else
  7341. { echo "$as_me:$LINENO: result: no" >&5
  7342. echo "${ECHO_T}no" >&6; }
  7343. fi
  7344. test -n "$TCLSH" && break
  7345. done
  7346. if test x"${TCLSH}" = x ; then
  7347. ac_cv_path_tclsh='';
  7348. else
  7349. ac_cv_path_tclsh="${TCLSH}";
  7350. fi
  7351. else
  7352. { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
  7353. echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
  7354. TCLSH="${ac_cv_path_tclsh}"
  7355. fi
  7356. fi
  7357. # Extract the first word of "zip", so it can be a program name with args.
  7358. set dummy zip; ac_word=$2
  7359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7361. if test "${ac_cv_path_ZIP+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. case $ZIP in
  7365. [\\/]* | ?:[\\/]*)
  7366. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  7367. ;;
  7368. *)
  7369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7370. for as_dir in $PATH
  7371. do
  7372. IFS=$as_save_IFS
  7373. test -z "$as_dir" && as_dir=.
  7374. for ac_exec_ext in '' $ac_executable_extensions; do
  7375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7376. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  7377. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7378. break 2
  7379. fi
  7380. done
  7381. done
  7382. IFS=$as_save_IFS
  7383. ;;
  7384. esac
  7385. fi
  7386. ZIP=$ac_cv_path_ZIP
  7387. if test -n "$ZIP"; then
  7388. { echo "$as_me:$LINENO: result: $ZIP" >&5
  7389. echo "${ECHO_T}$ZIP" >&6; }
  7390. else
  7391. { echo "$as_me:$LINENO: result: no" >&5
  7392. echo "${ECHO_T}no" >&6; }
  7393. fi
  7394. for ac_prog in ocamlc
  7395. do
  7396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7397. set dummy $ac_prog; ac_word=$2
  7398. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7400. if test "${ac_cv_path_OCAMLC+set}" = set; then
  7401. echo $ECHO_N "(cached) $ECHO_C" >&6
  7402. else
  7403. case $OCAMLC in
  7404. [\\/]* | ?:[\\/]*)
  7405. ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
  7406. ;;
  7407. *)
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7415. ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
  7416. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. ;;
  7423. esac
  7424. fi
  7425. OCAMLC=$ac_cv_path_OCAMLC
  7426. if test -n "$OCAMLC"; then
  7427. { echo "$as_me:$LINENO: result: $OCAMLC" >&5
  7428. echo "${ECHO_T}$OCAMLC" >&6; }
  7429. else
  7430. { echo "$as_me:$LINENO: result: no" >&5
  7431. echo "${ECHO_T}no" >&6; }
  7432. fi
  7433. test -n "$OCAMLC" && break
  7434. done
  7435. for ac_prog in ocamlopt
  7436. do
  7437. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7438. set dummy $ac_prog; ac_word=$2
  7439. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7440. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7441. if test "${ac_cv_path_OCAMLOPT+set}" = set; then
  7442. echo $ECHO_N "(cached) $ECHO_C" >&6
  7443. else
  7444. case $OCAMLOPT in
  7445. [\\/]* | ?:[\\/]*)
  7446. ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
  7447. ;;
  7448. *)
  7449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7456. ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
  7457. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. ;;
  7464. esac
  7465. fi
  7466. OCAMLOPT=$ac_cv_path_OCAMLOPT
  7467. if test -n "$OCAMLOPT"; then
  7468. { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
  7469. echo "${ECHO_T}$OCAMLOPT" >&6; }
  7470. else
  7471. { echo "$as_me:$LINENO: result: no" >&5
  7472. echo "${ECHO_T}no" >&6; }
  7473. fi
  7474. test -n "$OCAMLOPT" && break
  7475. done
  7476. for ac_prog in ocamldep
  7477. do
  7478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7479. set dummy $ac_prog; ac_word=$2
  7480. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7481. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7482. if test "${ac_cv_path_OCAMLDEP+set}" = set; then
  7483. echo $ECHO_N "(cached) $ECHO_C" >&6
  7484. else
  7485. case $OCAMLDEP in
  7486. [\\/]* | ?:[\\/]*)
  7487. ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
  7488. ;;
  7489. *)
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. test -z "$as_dir" && as_dir=.
  7495. for ac_exec_ext in '' $ac_executable_extensions; do
  7496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7497. ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
  7498. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7499. break 2
  7500. fi
  7501. done
  7502. done
  7503. IFS=$as_save_IFS
  7504. ;;
  7505. esac
  7506. fi
  7507. OCAMLDEP=$ac_cv_path_OCAMLDEP
  7508. if test -n "$OCAMLDEP"; then
  7509. { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
  7510. echo "${ECHO_T}$OCAMLDEP" >&6; }
  7511. else
  7512. { echo "$as_me:$LINENO: result: no" >&5
  7513. echo "${ECHO_T}no" >&6; }
  7514. fi
  7515. test -n "$OCAMLDEP" && break
  7516. done
  7517. for ac_prog in ocamldoc
  7518. do
  7519. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7520. set dummy $ac_prog; ac_word=$2
  7521. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7522. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7523. if test "${ac_cv_path_OCAMLDOC+set}" = set; then
  7524. echo $ECHO_N "(cached) $ECHO_C" >&6
  7525. else
  7526. case $OCAMLDOC in
  7527. [\\/]* | ?:[\\/]*)
  7528. ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
  7529. ;;
  7530. *)
  7531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7532. for as_dir in $PATH
  7533. do
  7534. IFS=$as_save_IFS
  7535. test -z "$as_dir" && as_dir=.
  7536. for ac_exec_ext in '' $ac_executable_extensions; do
  7537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7538. ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
  7539. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7540. break 2
  7541. fi
  7542. done
  7543. done
  7544. IFS=$as_save_IFS
  7545. ;;
  7546. esac
  7547. fi
  7548. OCAMLDOC=$ac_cv_path_OCAMLDOC
  7549. if test -n "$OCAMLDOC"; then
  7550. { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
  7551. echo "${ECHO_T}$OCAMLDOC" >&6; }
  7552. else
  7553. { echo "$as_me:$LINENO: result: no" >&5
  7554. echo "${ECHO_T}no" >&6; }
  7555. fi
  7556. test -n "$OCAMLDOC" && break
  7557. done
  7558. for ac_prog in gas as
  7559. do
  7560. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7561. set dummy $ac_prog; ac_word=$2
  7562. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7564. if test "${ac_cv_path_GAS+set}" = set; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. case $GAS in
  7568. [\\/]* | ?:[\\/]*)
  7569. ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
  7570. ;;
  7571. *)
  7572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7573. for as_dir in $PATH
  7574. do
  7575. IFS=$as_save_IFS
  7576. test -z "$as_dir" && as_dir=.
  7577. for ac_exec_ext in '' $ac_executable_extensions; do
  7578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7579. ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
  7580. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7581. break 2
  7582. fi
  7583. done
  7584. done
  7585. IFS=$as_save_IFS
  7586. ;;
  7587. esac
  7588. fi
  7589. GAS=$ac_cv_path_GAS
  7590. if test -n "$GAS"; then
  7591. { echo "$as_me:$LINENO: result: $GAS" >&5
  7592. echo "${ECHO_T}$GAS" >&6; }
  7593. else
  7594. { echo "$as_me:$LINENO: result: no" >&5
  7595. echo "${ECHO_T}no" >&6; }
  7596. fi
  7597. test -n "$GAS" && break
  7598. done
  7599. { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
  7600. echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
  7601. if test "${llvm_cv_link_use_r+set}" = set; then
  7602. echo $ECHO_N "(cached) $ECHO_C" >&6
  7603. else
  7604. ac_ext=c
  7605. ac_cpp='$CPP $CPPFLAGS'
  7606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7609. oldcflags="$CFLAGS"
  7610. CFLAGS="$CFLAGS -Wl,-R."
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. int
  7618. main ()
  7619. {
  7620. int main() { return 0; }
  7621. ;
  7622. return 0;
  7623. }
  7624. _ACEOF
  7625. rm -f conftest.$ac_objext conftest$ac_exeext
  7626. if { (ac_try="$ac_link"
  7627. case "(($ac_try" in
  7628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7629. *) ac_try_echo=$ac_try;;
  7630. esac
  7631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7632. (eval "$ac_link") 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } &&
  7639. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7640. { (case "(($ac_try" in
  7641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. *) ac_try_echo=$ac_try;;
  7643. esac
  7644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7645. (eval "$ac_try") 2>&5
  7646. ac_status=$?
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); }; } &&
  7649. { ac_try='test -s conftest$ac_exeext'
  7650. { (case "(($ac_try" in
  7651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7652. *) ac_try_echo=$ac_try;;
  7653. esac
  7654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7655. (eval "$ac_try") 2>&5
  7656. ac_status=$?
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); }; }; then
  7659. llvm_cv_link_use_r=yes
  7660. else
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. llvm_cv_link_use_r=no
  7664. fi
  7665. rm -f core conftest.err conftest.$ac_objext \
  7666. conftest$ac_exeext conftest.$ac_ext
  7667. CFLAGS="$oldcflags"
  7668. ac_ext=c
  7669. ac_cpp='$CPP $CPPFLAGS'
  7670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7673. fi
  7674. { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
  7675. echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
  7676. if test "$llvm_cv_link_use_r" = yes ; then
  7677. cat >>confdefs.h <<\_ACEOF
  7678. #define HAVE_LINK_R 1
  7679. _ACEOF
  7680. fi
  7681. { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
  7682. echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
  7683. if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
  7684. echo $ECHO_N "(cached) $ECHO_C" >&6
  7685. else
  7686. ac_ext=c
  7687. ac_cpp='$CPP $CPPFLAGS'
  7688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7691. oldcflags="$CFLAGS"
  7692. CFLAGS="$CFLAGS -Wl,-export-dynamic"
  7693. cat >conftest.$ac_ext <<_ACEOF
  7694. /* confdefs.h. */
  7695. _ACEOF
  7696. cat confdefs.h >>conftest.$ac_ext
  7697. cat >>conftest.$ac_ext <<_ACEOF
  7698. /* end confdefs.h. */
  7699. int
  7700. main ()
  7701. {
  7702. int main() { return 0; }
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext conftest$ac_exeext
  7708. if { (ac_try="$ac_link"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_link") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } &&
  7721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7722. { (case "(($ac_try" in
  7723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7724. *) ac_try_echo=$ac_try;;
  7725. esac
  7726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7727. (eval "$ac_try") 2>&5
  7728. ac_status=$?
  7729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7730. (exit $ac_status); }; } &&
  7731. { ac_try='test -s conftest$ac_exeext'
  7732. { (case "(($ac_try" in
  7733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7734. *) ac_try_echo=$ac_try;;
  7735. esac
  7736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7737. (eval "$ac_try") 2>&5
  7738. ac_status=$?
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. (exit $ac_status); }; }; then
  7741. llvm_cv_link_use_export_dynamic=yes
  7742. else
  7743. echo "$as_me: failed program was:" >&5
  7744. sed 's/^/| /' conftest.$ac_ext >&5
  7745. llvm_cv_link_use_export_dynamic=no
  7746. fi
  7747. rm -f core conftest.err conftest.$ac_objext \
  7748. conftest$ac_exeext conftest.$ac_ext
  7749. CFLAGS="$oldcflags"
  7750. ac_ext=c
  7751. ac_cpp='$CPP $CPPFLAGS'
  7752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7755. fi
  7756. { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
  7757. echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
  7758. if test "$llvm_cv_link_use_export_dynamic" = yes ; then
  7759. cat >>confdefs.h <<\_ACEOF
  7760. #define HAVE_LINK_EXPORT_DYNAMIC 1
  7761. _ACEOF
  7762. fi
  7763. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7764. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7765. if test "${ac_cv_c_const+set}" = set; then
  7766. echo $ECHO_N "(cached) $ECHO_C" >&6
  7767. else
  7768. cat >conftest.$ac_ext <<_ACEOF
  7769. /* confdefs.h. */
  7770. _ACEOF
  7771. cat confdefs.h >>conftest.$ac_ext
  7772. cat >>conftest.$ac_ext <<_ACEOF
  7773. /* end confdefs.h. */
  7774. int
  7775. main ()
  7776. {
  7777. /* FIXME: Include the comments suggested by Paul. */
  7778. #ifndef __cplusplus
  7779. /* Ultrix mips cc rejects this. */
  7780. typedef int charset[2];
  7781. const charset x;
  7782. /* SunOS 4.1.1 cc rejects this. */
  7783. char const *const *ccp;
  7784. char **p;
  7785. /* NEC SVR4.0.2 mips cc rejects this. */
  7786. struct point {int x, y;};
  7787. static struct point const zero = {0,0};
  7788. /* AIX XL C 1.02.0.0 rejects this.
  7789. It does not let you subtract one const X* pointer from another in
  7790. an arm of an if-expression whose if-part is not a constant
  7791. expression */
  7792. const char *g = "string";
  7793. ccp = &g + (g ? g-g : 0);
  7794. /* HPUX 7.0 cc rejects these. */
  7795. ++ccp;
  7796. p = (char**) ccp;
  7797. ccp = (char const *const *) p;
  7798. { /* SCO 3.2v4 cc rejects this. */
  7799. char *t;
  7800. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7801. *t++ = 0;
  7802. if (s) return 0;
  7803. }
  7804. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7805. int x[] = {25, 17};
  7806. const int *foo = &x[0];
  7807. ++foo;
  7808. }
  7809. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7810. typedef const int *iptr;
  7811. iptr p = 0;
  7812. ++p;
  7813. }
  7814. { /* AIX XL C 1.02.0.0 rejects this saying
  7815. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7816. struct s { int j; const int *ap[3]; };
  7817. struct s *b; b->j = 5;
  7818. }
  7819. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7820. const int foo = 10;
  7821. if (!foo) return 0;
  7822. }
  7823. return !x[0] && !zero.x;
  7824. #endif
  7825. ;
  7826. return 0;
  7827. }
  7828. _ACEOF
  7829. rm -f conftest.$ac_objext
  7830. if { (ac_try="$ac_compile"
  7831. case "(($ac_try" in
  7832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7833. *) ac_try_echo=$ac_try;;
  7834. esac
  7835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7836. (eval "$ac_compile") 2>conftest.er1
  7837. ac_status=$?
  7838. grep -v '^ *+' conftest.er1 >conftest.err
  7839. rm -f conftest.er1
  7840. cat conftest.err >&5
  7841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. (exit $ac_status); } &&
  7843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7844. { (case "(($ac_try" in
  7845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7846. *) ac_try_echo=$ac_try;;
  7847. esac
  7848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7849. (eval "$ac_try") 2>&5
  7850. ac_status=$?
  7851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7852. (exit $ac_status); }; } &&
  7853. { ac_try='test -s conftest.$ac_objext'
  7854. { (case "(($ac_try" in
  7855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7856. *) ac_try_echo=$ac_try;;
  7857. esac
  7858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7859. (eval "$ac_try") 2>&5
  7860. ac_status=$?
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. (exit $ac_status); }; }; then
  7863. ac_cv_c_const=yes
  7864. else
  7865. echo "$as_me: failed program was:" >&5
  7866. sed 's/^/| /' conftest.$ac_ext >&5
  7867. ac_cv_c_const=no
  7868. fi
  7869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7870. fi
  7871. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7872. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7873. if test $ac_cv_c_const = no; then
  7874. cat >>confdefs.h <<\_ACEOF
  7875. #define const
  7876. _ACEOF
  7877. fi
  7878. ac_header_dirent=no
  7879. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  7880. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  7881. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  7882. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  7883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7884. echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. cat >conftest.$ac_ext <<_ACEOF
  7887. /* confdefs.h. */
  7888. _ACEOF
  7889. cat confdefs.h >>conftest.$ac_ext
  7890. cat >>conftest.$ac_ext <<_ACEOF
  7891. /* end confdefs.h. */
  7892. #include <sys/types.h>
  7893. #include <$ac_hdr>
  7894. int
  7895. main ()
  7896. {
  7897. if ((DIR *) 0)
  7898. return 0;
  7899. ;
  7900. return 0;
  7901. }
  7902. _ACEOF
  7903. rm -f conftest.$ac_objext
  7904. if { (ac_try="$ac_compile"
  7905. case "(($ac_try" in
  7906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7907. *) ac_try_echo=$ac_try;;
  7908. esac
  7909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7910. (eval "$ac_compile") 2>conftest.er1
  7911. ac_status=$?
  7912. grep -v '^ *+' conftest.er1 >conftest.err
  7913. rm -f conftest.er1
  7914. cat conftest.err >&5
  7915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7916. (exit $ac_status); } &&
  7917. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7918. { (case "(($ac_try" in
  7919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7920. *) ac_try_echo=$ac_try;;
  7921. esac
  7922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7923. (eval "$ac_try") 2>&5
  7924. ac_status=$?
  7925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7926. (exit $ac_status); }; } &&
  7927. { ac_try='test -s conftest.$ac_objext'
  7928. { (case "(($ac_try" in
  7929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7930. *) ac_try_echo=$ac_try;;
  7931. esac
  7932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7933. (eval "$ac_try") 2>&5
  7934. ac_status=$?
  7935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); }; }; then
  7937. eval "$as_ac_Header=yes"
  7938. else
  7939. echo "$as_me: failed program was:" >&5
  7940. sed 's/^/| /' conftest.$ac_ext >&5
  7941. eval "$as_ac_Header=no"
  7942. fi
  7943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7944. fi
  7945. ac_res=`eval echo '${'$as_ac_Header'}'`
  7946. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7947. echo "${ECHO_T}$ac_res" >&6; }
  7948. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7949. cat >>confdefs.h <<_ACEOF
  7950. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  7951. _ACEOF
  7952. ac_header_dirent=$ac_hdr; break
  7953. fi
  7954. done
  7955. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  7956. if test $ac_header_dirent = dirent.h; then
  7957. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  7958. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  7959. if test "${ac_cv_search_opendir+set}" = set; then
  7960. echo $ECHO_N "(cached) $ECHO_C" >&6
  7961. else
  7962. ac_func_search_save_LIBS=$LIBS
  7963. cat >conftest.$ac_ext <<_ACEOF
  7964. /* confdefs.h. */
  7965. _ACEOF
  7966. cat confdefs.h >>conftest.$ac_ext
  7967. cat >>conftest.$ac_ext <<_ACEOF
  7968. /* end confdefs.h. */
  7969. /* Override any GCC internal prototype to avoid an error.
  7970. Use char because int might match the return type of a GCC
  7971. builtin and then its argument prototype would still apply. */
  7972. #ifdef __cplusplus
  7973. extern "C"
  7974. #endif
  7975. char opendir ();
  7976. int
  7977. main ()
  7978. {
  7979. return opendir ();
  7980. ;
  7981. return 0;
  7982. }
  7983. _ACEOF
  7984. for ac_lib in '' dir; do
  7985. if test -z "$ac_lib"; then
  7986. ac_res="none required"
  7987. else
  7988. ac_res=-l$ac_lib
  7989. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7990. fi
  7991. rm -f conftest.$ac_objext conftest$ac_exeext
  7992. if { (ac_try="$ac_link"
  7993. case "(($ac_try" in
  7994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7995. *) ac_try_echo=$ac_try;;
  7996. esac
  7997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7998. (eval "$ac_link") 2>conftest.er1
  7999. ac_status=$?
  8000. grep -v '^ *+' conftest.er1 >conftest.err
  8001. rm -f conftest.er1
  8002. cat conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); } &&
  8005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8006. { (case "(($ac_try" in
  8007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8008. *) ac_try_echo=$ac_try;;
  8009. esac
  8010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8011. (eval "$ac_try") 2>&5
  8012. ac_status=$?
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); }; } &&
  8015. { ac_try='test -s conftest$ac_exeext'
  8016. { (case "(($ac_try" in
  8017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8018. *) ac_try_echo=$ac_try;;
  8019. esac
  8020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8021. (eval "$ac_try") 2>&5
  8022. ac_status=$?
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); }; }; then
  8025. ac_cv_search_opendir=$ac_res
  8026. else
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029. fi
  8030. rm -f core conftest.err conftest.$ac_objext \
  8031. conftest$ac_exeext
  8032. if test "${ac_cv_search_opendir+set}" = set; then
  8033. break
  8034. fi
  8035. done
  8036. if test "${ac_cv_search_opendir+set}" = set; then
  8037. :
  8038. else
  8039. ac_cv_search_opendir=no
  8040. fi
  8041. rm conftest.$ac_ext
  8042. LIBS=$ac_func_search_save_LIBS
  8043. fi
  8044. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  8045. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  8046. ac_res=$ac_cv_search_opendir
  8047. if test "$ac_res" != no; then
  8048. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8049. fi
  8050. else
  8051. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  8052. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  8053. if test "${ac_cv_search_opendir+set}" = set; then
  8054. echo $ECHO_N "(cached) $ECHO_C" >&6
  8055. else
  8056. ac_func_search_save_LIBS=$LIBS
  8057. cat >conftest.$ac_ext <<_ACEOF
  8058. /* confdefs.h. */
  8059. _ACEOF
  8060. cat confdefs.h >>conftest.$ac_ext
  8061. cat >>conftest.$ac_ext <<_ACEOF
  8062. /* end confdefs.h. */
  8063. /* Override any GCC internal prototype to avoid an error.
  8064. Use char because int might match the return type of a GCC
  8065. builtin and then its argument prototype would still apply. */
  8066. #ifdef __cplusplus
  8067. extern "C"
  8068. #endif
  8069. char opendir ();
  8070. int
  8071. main ()
  8072. {
  8073. return opendir ();
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. for ac_lib in '' x; do
  8079. if test -z "$ac_lib"; then
  8080. ac_res="none required"
  8081. else
  8082. ac_res=-l$ac_lib
  8083. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8084. fi
  8085. rm -f conftest.$ac_objext conftest$ac_exeext
  8086. if { (ac_try="$ac_link"
  8087. case "(($ac_try" in
  8088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8089. *) ac_try_echo=$ac_try;;
  8090. esac
  8091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8092. (eval "$ac_link") 2>conftest.er1
  8093. ac_status=$?
  8094. grep -v '^ *+' conftest.er1 >conftest.err
  8095. rm -f conftest.er1
  8096. cat conftest.err >&5
  8097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8098. (exit $ac_status); } &&
  8099. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8100. { (case "(($ac_try" in
  8101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8102. *) ac_try_echo=$ac_try;;
  8103. esac
  8104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8105. (eval "$ac_try") 2>&5
  8106. ac_status=$?
  8107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108. (exit $ac_status); }; } &&
  8109. { ac_try='test -s conftest$ac_exeext'
  8110. { (case "(($ac_try" in
  8111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8112. *) ac_try_echo=$ac_try;;
  8113. esac
  8114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8115. (eval "$ac_try") 2>&5
  8116. ac_status=$?
  8117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8118. (exit $ac_status); }; }; then
  8119. ac_cv_search_opendir=$ac_res
  8120. else
  8121. echo "$as_me: failed program was:" >&5
  8122. sed 's/^/| /' conftest.$ac_ext >&5
  8123. fi
  8124. rm -f core conftest.err conftest.$ac_objext \
  8125. conftest$ac_exeext
  8126. if test "${ac_cv_search_opendir+set}" = set; then
  8127. break
  8128. fi
  8129. done
  8130. if test "${ac_cv_search_opendir+set}" = set; then
  8131. :
  8132. else
  8133. ac_cv_search_opendir=no
  8134. fi
  8135. rm conftest.$ac_ext
  8136. LIBS=$ac_func_search_save_LIBS
  8137. fi
  8138. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  8139. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  8140. ac_res=$ac_cv_search_opendir
  8141. if test "$ac_res" != no; then
  8142. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8143. fi
  8144. fi
  8145. for ac_header in dlfcn.h
  8146. do
  8147. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8148. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8149. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8150. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8151. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8152. echo $ECHO_N "(cached) $ECHO_C" >&6
  8153. fi
  8154. ac_res=`eval echo '${'$as_ac_Header'}'`
  8155. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8156. echo "${ECHO_T}$ac_res" >&6; }
  8157. else
  8158. # Is the header compilable?
  8159. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8160. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8161. cat >conftest.$ac_ext <<_ACEOF
  8162. /* confdefs.h. */
  8163. _ACEOF
  8164. cat confdefs.h >>conftest.$ac_ext
  8165. cat >>conftest.$ac_ext <<_ACEOF
  8166. /* end confdefs.h. */
  8167. $ac_includes_default
  8168. #include <$ac_header>
  8169. _ACEOF
  8170. rm -f conftest.$ac_objext
  8171. if { (ac_try="$ac_compile"
  8172. case "(($ac_try" in
  8173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8174. *) ac_try_echo=$ac_try;;
  8175. esac
  8176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8177. (eval "$ac_compile") 2>conftest.er1
  8178. ac_status=$?
  8179. grep -v '^ *+' conftest.er1 >conftest.err
  8180. rm -f conftest.er1
  8181. cat conftest.err >&5
  8182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8183. (exit $ac_status); } &&
  8184. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8185. { (case "(($ac_try" in
  8186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8187. *) ac_try_echo=$ac_try;;
  8188. esac
  8189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8190. (eval "$ac_try") 2>&5
  8191. ac_status=$?
  8192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8193. (exit $ac_status); }; } &&
  8194. { ac_try='test -s conftest.$ac_objext'
  8195. { (case "(($ac_try" in
  8196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8197. *) ac_try_echo=$ac_try;;
  8198. esac
  8199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8200. (eval "$ac_try") 2>&5
  8201. ac_status=$?
  8202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); }; }; then
  8204. ac_header_compiler=yes
  8205. else
  8206. echo "$as_me: failed program was:" >&5
  8207. sed 's/^/| /' conftest.$ac_ext >&5
  8208. ac_header_compiler=no
  8209. fi
  8210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8211. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8212. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8213. # Is the header present?
  8214. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8215. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8216. cat >conftest.$ac_ext <<_ACEOF
  8217. /* confdefs.h. */
  8218. _ACEOF
  8219. cat confdefs.h >>conftest.$ac_ext
  8220. cat >>conftest.$ac_ext <<_ACEOF
  8221. /* end confdefs.h. */
  8222. #include <$ac_header>
  8223. _ACEOF
  8224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8225. case "(($ac_try" in
  8226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8227. *) ac_try_echo=$ac_try;;
  8228. esac
  8229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8231. ac_status=$?
  8232. grep -v '^ *+' conftest.er1 >conftest.err
  8233. rm -f conftest.er1
  8234. cat conftest.err >&5
  8235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. (exit $ac_status); } >/dev/null; then
  8237. if test -s conftest.err; then
  8238. ac_cpp_err=$ac_c_preproc_warn_flag
  8239. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8240. else
  8241. ac_cpp_err=
  8242. fi
  8243. else
  8244. ac_cpp_err=yes
  8245. fi
  8246. if test -z "$ac_cpp_err"; then
  8247. ac_header_preproc=yes
  8248. else
  8249. echo "$as_me: failed program was:" >&5
  8250. sed 's/^/| /' conftest.$ac_ext >&5
  8251. ac_header_preproc=no
  8252. fi
  8253. rm -f conftest.err conftest.$ac_ext
  8254. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8255. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8256. # So? What about this header?
  8257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8258. yes:no: )
  8259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8263. ac_header_preproc=yes
  8264. ;;
  8265. no:yes:* )
  8266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8278. ( cat <<\_ASBOX
  8279. ## ----------------------------------- ##
  8280. ## Report this to llvmbugs@cs.uiuc.edu ##
  8281. ## ----------------------------------- ##
  8282. _ASBOX
  8283. ) | sed "s/^/$as_me: WARNING: /" >&2
  8284. ;;
  8285. esac
  8286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8289. echo $ECHO_N "(cached) $ECHO_C" >&6
  8290. else
  8291. eval "$as_ac_Header=\$ac_header_preproc"
  8292. fi
  8293. ac_res=`eval echo '${'$as_ac_Header'}'`
  8294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8295. echo "${ECHO_T}$ac_res" >&6; }
  8296. fi
  8297. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8298. cat >>confdefs.h <<_ACEOF
  8299. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8300. _ACEOF
  8301. fi
  8302. done
  8303. # Check whether --enable-ltdl-install was given.
  8304. if test "${enable_ltdl_install+set}" = set; then
  8305. enableval=$enable_ltdl_install;
  8306. fi
  8307. if test x"${enable_ltdl_install-no}" != xno; then
  8308. INSTALL_LTDL_TRUE=
  8309. INSTALL_LTDL_FALSE='#'
  8310. else
  8311. INSTALL_LTDL_TRUE='#'
  8312. INSTALL_LTDL_FALSE=
  8313. fi
  8314. if test x"${enable_ltdl_convenience-no}" != xno; then
  8315. CONVENIENCE_LTDL_TRUE=
  8316. CONVENIENCE_LTDL_FALSE='#'
  8317. else
  8318. CONVENIENCE_LTDL_TRUE='#'
  8319. CONVENIENCE_LTDL_FALSE=
  8320. fi
  8321. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8322. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8323. library_names_spec=
  8324. libname_spec='lib$name'
  8325. soname_spec=
  8326. shrext_cmds=".so"
  8327. postinstall_cmds=
  8328. postuninstall_cmds=
  8329. finish_cmds=
  8330. finish_eval=
  8331. shlibpath_var=
  8332. shlibpath_overrides_runpath=unknown
  8333. version_type=none
  8334. dynamic_linker="$host_os ld.so"
  8335. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8336. if test "$GCC" = yes; then
  8337. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8338. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8339. # if the path contains ";" then we assume it to be the separator
  8340. # otherwise default to the standard path separator (i.e. ":") - it is
  8341. # assumed that no part of a normal pathname contains ";" but that should
  8342. # okay in the real world where ";" in dirpaths is itself problematic.
  8343. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8344. else
  8345. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8346. fi
  8347. else
  8348. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8349. fi
  8350. need_lib_prefix=unknown
  8351. hardcode_into_libs=no
  8352. # when you set need_version to no, make sure it does not cause -set_version
  8353. # flags to be left without arguments
  8354. need_version=unknown
  8355. case $host_os in
  8356. aix3*)
  8357. version_type=linux
  8358. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8359. shlibpath_var=LIBPATH
  8360. # AIX 3 has no versioning support, so we append a major version to the name.
  8361. soname_spec='${libname}${release}${shared_ext}$major'
  8362. ;;
  8363. aix4* | aix5*)
  8364. version_type=linux
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. hardcode_into_libs=yes
  8368. if test "$host_cpu" = ia64; then
  8369. # AIX 5 supports IA64
  8370. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8371. shlibpath_var=LD_LIBRARY_PATH
  8372. else
  8373. # With GCC up to 2.95.x, collect2 would create an import file
  8374. # for dependence libraries. The import file would start with
  8375. # the line `#! .'. This would cause the generated library to
  8376. # depend on `.', always an invalid library. This was fixed in
  8377. # development snapshots of GCC prior to 3.0.
  8378. case $host_os in
  8379. aix4 | aix4.[01] | aix4.[01].*)
  8380. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8381. echo ' yes '
  8382. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8383. :
  8384. else
  8385. can_build_shared=no
  8386. fi
  8387. ;;
  8388. esac
  8389. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8390. # soname into executable. Probably we can add versioning support to
  8391. # collect2, so additional links can be useful in future.
  8392. if test "$aix_use_runtimelinking" = yes; then
  8393. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8394. # instead of lib<name>.a to let people know that these are not
  8395. # typical AIX shared libraries.
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. else
  8398. # We preserve .a as extension for shared libraries through AIX4.2
  8399. # and later when we are not doing run time linking.
  8400. library_names_spec='${libname}${release}.a $libname.a'
  8401. soname_spec='${libname}${release}${shared_ext}$major'
  8402. fi
  8403. shlibpath_var=LIBPATH
  8404. fi
  8405. ;;
  8406. amigaos*)
  8407. library_names_spec='$libname.ixlibrary $libname.a'
  8408. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8409. 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'
  8410. ;;
  8411. beos*)
  8412. library_names_spec='${libname}${shared_ext}'
  8413. dynamic_linker="$host_os ld.so"
  8414. shlibpath_var=LIBRARY_PATH
  8415. ;;
  8416. bsdi[45]*)
  8417. version_type=linux
  8418. need_version=no
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8420. soname_spec='${libname}${release}${shared_ext}$major'
  8421. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8422. shlibpath_var=LD_LIBRARY_PATH
  8423. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8424. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8425. # the default ld.so.conf also contains /usr/contrib/lib and
  8426. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8427. # libtool to hard-code these into programs
  8428. ;;
  8429. cygwin* | mingw* | pw32*)
  8430. version_type=windows
  8431. shrext_cmds=".dll"
  8432. need_version=no
  8433. need_lib_prefix=no
  8434. case $GCC,$host_os in
  8435. yes,cygwin* | yes,mingw* | yes,pw32*)
  8436. library_names_spec='$libname.dll.a'
  8437. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8438. postinstall_cmds='base_file=`basename \${file}`~
  8439. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8440. dldir=$destdir/`dirname \$dlpath`~
  8441. test -d \$dldir || mkdir -p \$dldir~
  8442. $install_prog $dir/$dlname \$dldir/$dlname~
  8443. chmod a+x \$dldir/$dlname'
  8444. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8445. dlpath=$dir/\$dldll~
  8446. $rm \$dlpath'
  8447. shlibpath_overrides_runpath=yes
  8448. case $host_os in
  8449. cygwin*)
  8450. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8451. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8452. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8453. ;;
  8454. mingw*)
  8455. # MinGW DLLs use traditional 'lib' prefix
  8456. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8457. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8458. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8459. # It is most probably a Windows format PATH printed by
  8460. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8461. # path with ; separators, and with drive letters. We can handle the
  8462. # drive letters (cygwin fileutils understands them), so leave them,
  8463. # especially as we might pass files found there to a mingw objdump,
  8464. # which wouldn't understand a cygwinified path. Ahh.
  8465. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8466. else
  8467. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8468. fi
  8469. ;;
  8470. pw32*)
  8471. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8472. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8473. ;;
  8474. esac
  8475. ;;
  8476. *)
  8477. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8478. ;;
  8479. esac
  8480. dynamic_linker='Win32 ld.exe'
  8481. # FIXME: first we should search . and the directory the executable is in
  8482. shlibpath_var=PATH
  8483. ;;
  8484. darwin* | rhapsody*)
  8485. dynamic_linker="$host_os dyld"
  8486. version_type=darwin
  8487. need_lib_prefix=no
  8488. need_version=no
  8489. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8490. soname_spec='${libname}${release}${major}$shared_ext'
  8491. shlibpath_overrides_runpath=yes
  8492. shlibpath_var=DYLD_LIBRARY_PATH
  8493. shrext_cmds='.dylib'
  8494. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8495. if test "$GCC" = yes; then
  8496. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8497. else
  8498. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8499. fi
  8500. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8501. ;;
  8502. dgux*)
  8503. version_type=linux
  8504. need_lib_prefix=no
  8505. need_version=no
  8506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8507. soname_spec='${libname}${release}${shared_ext}$major'
  8508. shlibpath_var=LD_LIBRARY_PATH
  8509. ;;
  8510. freebsd1*)
  8511. dynamic_linker=no
  8512. ;;
  8513. kfreebsd*-gnu)
  8514. version_type=linux
  8515. need_lib_prefix=no
  8516. need_version=no
  8517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8518. soname_spec='${libname}${release}${shared_ext}$major'
  8519. shlibpath_var=LD_LIBRARY_PATH
  8520. shlibpath_overrides_runpath=no
  8521. hardcode_into_libs=yes
  8522. dynamic_linker='GNU ld.so'
  8523. ;;
  8524. freebsd* | dragonfly*)
  8525. # DragonFly does not have aout. When/if they implement a new
  8526. # versioning mechanism, adjust this.
  8527. if test -x /usr/bin/objformat; then
  8528. objformat=`/usr/bin/objformat`
  8529. else
  8530. case $host_os in
  8531. freebsd[123]*) objformat=aout ;;
  8532. *) objformat=elf ;;
  8533. esac
  8534. fi
  8535. version_type=freebsd-$objformat
  8536. case $version_type in
  8537. freebsd-elf*)
  8538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8539. need_version=no
  8540. need_lib_prefix=no
  8541. ;;
  8542. freebsd-*)
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8544. need_version=yes
  8545. ;;
  8546. esac
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. case $host_os in
  8549. freebsd2*)
  8550. shlibpath_overrides_runpath=yes
  8551. ;;
  8552. freebsd3.[01]* | freebsdelf3.[01]*)
  8553. shlibpath_overrides_runpath=yes
  8554. hardcode_into_libs=yes
  8555. ;;
  8556. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8557. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8558. shlibpath_overrides_runpath=no
  8559. hardcode_into_libs=yes
  8560. ;;
  8561. freebsd*) # from 4.6 on
  8562. shlibpath_overrides_runpath=yes
  8563. hardcode_into_libs=yes
  8564. ;;
  8565. esac
  8566. ;;
  8567. gnu*)
  8568. version_type=linux
  8569. need_lib_prefix=no
  8570. need_version=no
  8571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8572. soname_spec='${libname}${release}${shared_ext}$major'
  8573. shlibpath_var=LD_LIBRARY_PATH
  8574. hardcode_into_libs=yes
  8575. ;;
  8576. hpux9* | hpux10* | hpux11*)
  8577. # Give a soname corresponding to the major version so that dld.sl refuses to
  8578. # link against other versions.
  8579. version_type=sunos
  8580. need_lib_prefix=no
  8581. need_version=no
  8582. case $host_cpu in
  8583. ia64*)
  8584. shrext_cmds='.so'
  8585. hardcode_into_libs=yes
  8586. dynamic_linker="$host_os dld.so"
  8587. shlibpath_var=LD_LIBRARY_PATH
  8588. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8590. soname_spec='${libname}${release}${shared_ext}$major'
  8591. if test "X$HPUX_IA64_MODE" = X32; then
  8592. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8593. else
  8594. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8595. fi
  8596. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8597. ;;
  8598. hppa*64*)
  8599. shrext_cmds='.sl'
  8600. hardcode_into_libs=yes
  8601. dynamic_linker="$host_os dld.sl"
  8602. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8603. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8605. soname_spec='${libname}${release}${shared_ext}$major'
  8606. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8607. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8608. ;;
  8609. *)
  8610. shrext_cmds='.sl'
  8611. dynamic_linker="$host_os dld.sl"
  8612. shlibpath_var=SHLIB_PATH
  8613. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8615. soname_spec='${libname}${release}${shared_ext}$major'
  8616. ;;
  8617. esac
  8618. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8619. postinstall_cmds='chmod 555 $lib'
  8620. ;;
  8621. interix3*)
  8622. version_type=linux
  8623. need_lib_prefix=no
  8624. need_version=no
  8625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8626. soname_spec='${libname}${release}${shared_ext}$major'
  8627. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8628. shlibpath_var=LD_LIBRARY_PATH
  8629. shlibpath_overrides_runpath=no
  8630. hardcode_into_libs=yes
  8631. ;;
  8632. irix5* | irix6* | nonstopux*)
  8633. case $host_os in
  8634. nonstopux*) version_type=nonstopux ;;
  8635. *)
  8636. if test "$lt_cv_prog_gnu_ld" = yes; then
  8637. version_type=linux
  8638. else
  8639. version_type=irix
  8640. fi ;;
  8641. esac
  8642. need_lib_prefix=no
  8643. need_version=no
  8644. soname_spec='${libname}${release}${shared_ext}$major'
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8646. case $host_os in
  8647. irix5* | nonstopux*)
  8648. libsuff= shlibsuff=
  8649. ;;
  8650. *)
  8651. case $LD in # libtool.m4 will add one of these switches to LD
  8652. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8653. libsuff= shlibsuff= libmagic=32-bit;;
  8654. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8655. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8656. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8657. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8658. *) libsuff= shlibsuff= libmagic=never-match;;
  8659. esac
  8660. ;;
  8661. esac
  8662. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8663. shlibpath_overrides_runpath=no
  8664. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8665. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8666. hardcode_into_libs=yes
  8667. ;;
  8668. # No shared lib support for Linux oldld, aout, or coff.
  8669. linux*oldld* | linux*aout* | linux*coff*)
  8670. dynamic_linker=no
  8671. ;;
  8672. # This must be Linux ELF.
  8673. linux*)
  8674. version_type=linux
  8675. need_lib_prefix=no
  8676. need_version=no
  8677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8678. soname_spec='${libname}${release}${shared_ext}$major'
  8679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8680. shlibpath_var=LD_LIBRARY_PATH
  8681. shlibpath_overrides_runpath=no
  8682. # This implies no fast_install, which is unacceptable.
  8683. # Some rework will be needed to allow for fast_install
  8684. # before this can be enabled.
  8685. hardcode_into_libs=yes
  8686. # Append ld.so.conf contents to the search path
  8687. if test -f /etc/ld.so.conf; then
  8688. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8689. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8690. fi
  8691. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8692. # powerpc, because MkLinux only supported shared libraries with the
  8693. # GNU dynamic linker. Since this was broken with cross compilers,
  8694. # most powerpc-linux boxes support dynamic linking these days and
  8695. # people can always --disable-shared, the test was removed, and we
  8696. # assume the GNU/Linux dynamic linker is in use.
  8697. dynamic_linker='GNU/Linux ld.so'
  8698. ;;
  8699. knetbsd*-gnu)
  8700. version_type=linux
  8701. need_lib_prefix=no
  8702. need_version=no
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8704. soname_spec='${libname}${release}${shared_ext}$major'
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. shlibpath_overrides_runpath=no
  8707. hardcode_into_libs=yes
  8708. dynamic_linker='GNU ld.so'
  8709. ;;
  8710. netbsd*)
  8711. version_type=sunos
  8712. need_lib_prefix=no
  8713. need_version=no
  8714. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8716. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8717. dynamic_linker='NetBSD (a.out) ld.so'
  8718. else
  8719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8720. soname_spec='${libname}${release}${shared_ext}$major'
  8721. dynamic_linker='NetBSD ld.elf_so'
  8722. fi
  8723. shlibpath_var=LD_LIBRARY_PATH
  8724. shlibpath_overrides_runpath=yes
  8725. hardcode_into_libs=yes
  8726. ;;
  8727. newsos6)
  8728. version_type=linux
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=yes
  8732. ;;
  8733. nto-qnx*)
  8734. version_type=linux
  8735. need_lib_prefix=no
  8736. need_version=no
  8737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8738. soname_spec='${libname}${release}${shared_ext}$major'
  8739. shlibpath_var=LD_LIBRARY_PATH
  8740. shlibpath_overrides_runpath=yes
  8741. ;;
  8742. openbsd*)
  8743. version_type=sunos
  8744. sys_lib_dlsearch_path_spec="/usr/lib"
  8745. need_lib_prefix=no
  8746. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8747. case $host_os in
  8748. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8749. *) need_version=no ;;
  8750. esac
  8751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8752. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8753. shlibpath_var=LD_LIBRARY_PATH
  8754. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8755. case $host_os in
  8756. openbsd2.[89] | openbsd2.[89].*)
  8757. shlibpath_overrides_runpath=no
  8758. ;;
  8759. *)
  8760. shlibpath_overrides_runpath=yes
  8761. ;;
  8762. esac
  8763. else
  8764. shlibpath_overrides_runpath=yes
  8765. fi
  8766. ;;
  8767. os2*)
  8768. libname_spec='$name'
  8769. shrext_cmds=".dll"
  8770. need_lib_prefix=no
  8771. library_names_spec='$libname${shared_ext} $libname.a'
  8772. dynamic_linker='OS/2 ld.exe'
  8773. shlibpath_var=LIBPATH
  8774. ;;
  8775. osf3* | osf4* | osf5*)
  8776. version_type=osf
  8777. need_lib_prefix=no
  8778. need_version=no
  8779. soname_spec='${libname}${release}${shared_ext}$major'
  8780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8783. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8784. ;;
  8785. solaris*)
  8786. version_type=linux
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. shlibpath_overrides_runpath=yes
  8793. hardcode_into_libs=yes
  8794. # ldd complains unless libraries are executable
  8795. postinstall_cmds='chmod +x $lib'
  8796. ;;
  8797. sunos4*)
  8798. version_type=sunos
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8800. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8801. shlibpath_var=LD_LIBRARY_PATH
  8802. shlibpath_overrides_runpath=yes
  8803. if test "$with_gnu_ld" = yes; then
  8804. need_lib_prefix=no
  8805. fi
  8806. need_version=yes
  8807. ;;
  8808. sysv4 | sysv4.3*)
  8809. version_type=linux
  8810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8811. soname_spec='${libname}${release}${shared_ext}$major'
  8812. shlibpath_var=LD_LIBRARY_PATH
  8813. case $host_vendor in
  8814. sni)
  8815. shlibpath_overrides_runpath=no
  8816. need_lib_prefix=no
  8817. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8818. runpath_var=LD_RUN_PATH
  8819. ;;
  8820. siemens)
  8821. need_lib_prefix=no
  8822. ;;
  8823. motorola)
  8824. need_lib_prefix=no
  8825. need_version=no
  8826. shlibpath_overrides_runpath=no
  8827. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8828. ;;
  8829. esac
  8830. ;;
  8831. sysv4*MP*)
  8832. if test -d /usr/nec ;then
  8833. version_type=linux
  8834. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8835. soname_spec='$libname${shared_ext}.$major'
  8836. shlibpath_var=LD_LIBRARY_PATH
  8837. fi
  8838. ;;
  8839. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8840. version_type=freebsd-elf
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8844. soname_spec='${libname}${release}${shared_ext}$major'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. hardcode_into_libs=yes
  8847. if test "$with_gnu_ld" = yes; then
  8848. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8849. shlibpath_overrides_runpath=no
  8850. else
  8851. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8852. shlibpath_overrides_runpath=yes
  8853. case $host_os in
  8854. sco3.2v5*)
  8855. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8856. ;;
  8857. esac
  8858. fi
  8859. sys_lib_dlsearch_path_spec='/usr/lib'
  8860. ;;
  8861. uts4*)
  8862. version_type=linux
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. ;;
  8867. *)
  8868. dynamic_linker=no
  8869. ;;
  8870. esac
  8871. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8872. echo "${ECHO_T}$dynamic_linker" >&6; }
  8873. test "$dynamic_linker" = no && can_build_shared=no
  8874. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8875. if test "$GCC" = yes; then
  8876. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8877. fi
  8878. { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
  8879. echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
  8880. if test "${libltdl_cv_shlibext+set}" = set; then
  8881. echo $ECHO_N "(cached) $ECHO_C" >&6
  8882. else
  8883. module=yes
  8884. eval libltdl_cv_shlibext=$shrext_cmds
  8885. fi
  8886. { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
  8887. echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
  8888. if test -n "$libltdl_cv_shlibext"; then
  8889. cat >>confdefs.h <<_ACEOF
  8890. #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
  8891. _ACEOF
  8892. fi
  8893. { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
  8894. echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
  8895. if test "${libltdl_cv_shlibpath_var+set}" = set; then
  8896. echo $ECHO_N "(cached) $ECHO_C" >&6
  8897. else
  8898. libltdl_cv_shlibpath_var="$shlibpath_var"
  8899. fi
  8900. { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
  8901. echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
  8902. if test -n "$libltdl_cv_shlibpath_var"; then
  8903. cat >>confdefs.h <<_ACEOF
  8904. #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
  8905. _ACEOF
  8906. fi
  8907. { echo "$as_me:$LINENO: checking for the default library search path" >&5
  8908. echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
  8909. if test "${libltdl_cv_sys_search_path+set}" = set; then
  8910. echo $ECHO_N "(cached) $ECHO_C" >&6
  8911. else
  8912. libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
  8913. fi
  8914. { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
  8915. echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
  8916. if test -n "$libltdl_cv_sys_search_path"; then
  8917. sys_search_path=
  8918. for dir in $libltdl_cv_sys_search_path; do
  8919. if test -z "$sys_search_path"; then
  8920. sys_search_path="$dir"
  8921. else
  8922. sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
  8923. fi
  8924. done
  8925. cat >>confdefs.h <<_ACEOF
  8926. #define LTDL_SYSSEARCHPATH "$sys_search_path"
  8927. _ACEOF
  8928. fi
  8929. { echo "$as_me:$LINENO: checking for objdir" >&5
  8930. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  8931. if test "${libltdl_cv_objdir+set}" = set; then
  8932. echo $ECHO_N "(cached) $ECHO_C" >&6
  8933. else
  8934. libltdl_cv_objdir="$objdir"
  8935. if test -n "$objdir"; then
  8936. :
  8937. else
  8938. rm -f .libs 2>/dev/null
  8939. mkdir .libs 2>/dev/null
  8940. if test -d .libs; then
  8941. libltdl_cv_objdir=.libs
  8942. else
  8943. # MS-DOS does not allow filenames that begin with a dot.
  8944. libltdl_cv_objdir=_libs
  8945. fi
  8946. rmdir .libs 2>/dev/null
  8947. fi
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
  8950. echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
  8951. cat >>confdefs.h <<_ACEOF
  8952. #define LTDL_OBJDIR "$libltdl_cv_objdir/"
  8953. _ACEOF
  8954. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8955. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8956. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  8957. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8958. echo $ECHO_N "(cached) $ECHO_C" >&6
  8959. else
  8960. # These are sane defaults that work on at least a few old systems.
  8961. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8962. # Character class describing NM global symbol codes.
  8963. symcode='[BCDEGRST]'
  8964. # Regexp to match symbols that can be accessed directly from C.
  8965. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8966. # Transform an extracted symbol line into a proper C declaration
  8967. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8968. # Transform an extracted symbol line into symbol name and symbol address
  8969. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8970. # Define system-specific variables.
  8971. case $host_os in
  8972. aix*)
  8973. symcode='[BCDT]'
  8974. ;;
  8975. cygwin* | mingw* | pw32*)
  8976. symcode='[ABCDGISTW]'
  8977. ;;
  8978. hpux*) # Its linker distinguishes data from code symbols
  8979. if test "$host_cpu" = ia64; then
  8980. symcode='[ABCDEGRST]'
  8981. fi
  8982. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8983. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8984. ;;
  8985. linux*)
  8986. if test "$host_cpu" = ia64; then
  8987. symcode='[ABCDGIRSTW]'
  8988. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8989. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8990. fi
  8991. ;;
  8992. irix* | nonstopux*)
  8993. symcode='[BCDEGRST]'
  8994. ;;
  8995. osf*)
  8996. symcode='[BCDEGQRST]'
  8997. ;;
  8998. solaris*)
  8999. symcode='[BDRT]'
  9000. ;;
  9001. sco3.2v5*)
  9002. symcode='[DT]'
  9003. ;;
  9004. sysv4.2uw2*)
  9005. symcode='[DT]'
  9006. ;;
  9007. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9008. symcode='[ABDT]'
  9009. ;;
  9010. sysv4)
  9011. symcode='[DFNSTU]'
  9012. ;;
  9013. esac
  9014. # Handle CRLF in mingw tool chain
  9015. opt_cr=
  9016. case $build_os in
  9017. mingw*)
  9018. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9019. ;;
  9020. esac
  9021. # If we're using GNU nm, then use its standard symbol codes.
  9022. case `$NM -V 2>&1` in
  9023. *GNU* | *'with BFD'*)
  9024. symcode='[ABCDGIRSTW]' ;;
  9025. esac
  9026. # Try without a prefix undercore, then with it.
  9027. for ac_symprfx in "" "_"; do
  9028. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9029. symxfrm="\\1 $ac_symprfx\\2 \\2"
  9030. # Write the raw and C identifiers.
  9031. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9032. # Check to see that the pipe works correctly.
  9033. pipe_works=no
  9034. rm -f conftest*
  9035. cat > conftest.$ac_ext <<EOF
  9036. #ifdef __cplusplus
  9037. extern "C" {
  9038. #endif
  9039. char nm_test_var;
  9040. void nm_test_func(){}
  9041. #ifdef __cplusplus
  9042. }
  9043. #endif
  9044. int main(){nm_test_var='a';nm_test_func();return(0);}
  9045. EOF
  9046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9047. (eval $ac_compile) 2>&5
  9048. ac_status=$?
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); }; then
  9051. # Now try to grab the symbols.
  9052. nlist=conftest.nm
  9053. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  9054. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  9055. ac_status=$?
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); } && test -s "$nlist"; then
  9058. # Try sorting and uniquifying the output.
  9059. if sort "$nlist" | uniq > "$nlist"T; then
  9060. mv -f "$nlist"T "$nlist"
  9061. else
  9062. rm -f "$nlist"T
  9063. fi
  9064. # Make sure that we snagged all the symbols we need.
  9065. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9066. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9067. cat <<EOF > conftest.$ac_ext
  9068. #ifdef __cplusplus
  9069. extern "C" {
  9070. #endif
  9071. EOF
  9072. # Now generate the symbol file.
  9073. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9074. cat <<EOF >> conftest.$ac_ext
  9075. #if defined (__STDC__) && __STDC__
  9076. # define lt_ptr_t void *
  9077. #else
  9078. # define lt_ptr_t char *
  9079. # define const
  9080. #endif
  9081. /* The mapping between symbol names and symbols. */
  9082. const struct {
  9083. const char *name;
  9084. lt_ptr_t address;
  9085. }
  9086. lt_preloaded_symbols[] =
  9087. {
  9088. EOF
  9089. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9090. cat <<\EOF >> conftest.$ac_ext
  9091. {0, (lt_ptr_t) 0}
  9092. };
  9093. #ifdef __cplusplus
  9094. }
  9095. #endif
  9096. EOF
  9097. # Now try linking the two files.
  9098. mv conftest.$ac_objext conftstm.$ac_objext
  9099. lt_save_LIBS="$LIBS"
  9100. lt_save_CFLAGS="$CFLAGS"
  9101. LIBS="conftstm.$ac_objext"
  9102. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9103. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9104. (eval $ac_link) 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  9108. pipe_works=yes
  9109. fi
  9110. LIBS="$lt_save_LIBS"
  9111. CFLAGS="$lt_save_CFLAGS"
  9112. else
  9113. echo "cannot find nm_test_func in $nlist" >&5
  9114. fi
  9115. else
  9116. echo "cannot find nm_test_var in $nlist" >&5
  9117. fi
  9118. else
  9119. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9120. fi
  9121. else
  9122. echo "$progname: failed program was:" >&5
  9123. cat conftest.$ac_ext >&5
  9124. fi
  9125. rm -f conftest* conftst*
  9126. # Do not use the global_symbol_pipe unless it works.
  9127. if test "$pipe_works" = yes; then
  9128. break
  9129. else
  9130. lt_cv_sys_global_symbol_pipe=
  9131. fi
  9132. done
  9133. fi
  9134. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9135. lt_cv_sys_global_symbol_to_cdecl=
  9136. fi
  9137. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9138. { echo "$as_me:$LINENO: result: failed" >&5
  9139. echo "${ECHO_T}failed" >&6; }
  9140. else
  9141. { echo "$as_me:$LINENO: result: ok" >&5
  9142. echo "${ECHO_T}ok" >&6; }
  9143. fi
  9144. { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
  9145. echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
  9146. if test "${libltdl_cv_preloaded_symbols+set}" = set; then
  9147. echo $ECHO_N "(cached) $ECHO_C" >&6
  9148. else
  9149. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  9150. libltdl_cv_preloaded_symbols=yes
  9151. else
  9152. libltdl_cv_preloaded_symbols=no
  9153. fi
  9154. fi
  9155. { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
  9156. echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
  9157. if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  9158. cat >>confdefs.h <<\_ACEOF
  9159. #define HAVE_PRELOADED_SYMBOLS 1
  9160. _ACEOF
  9161. fi
  9162. LIBADD_DL=
  9163. ac_ext=c
  9164. ac_cpp='$CPP $CPPFLAGS'
  9165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9168. { echo "$as_me:$LINENO: checking for shl_load" >&5
  9169. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  9170. if test "${ac_cv_func_shl_load+set}" = set; then
  9171. echo $ECHO_N "(cached) $ECHO_C" >&6
  9172. else
  9173. cat >conftest.$ac_ext <<_ACEOF
  9174. /* confdefs.h. */
  9175. _ACEOF
  9176. cat confdefs.h >>conftest.$ac_ext
  9177. cat >>conftest.$ac_ext <<_ACEOF
  9178. /* end confdefs.h. */
  9179. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9180. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9181. #define shl_load innocuous_shl_load
  9182. /* System header to define __stub macros and hopefully few prototypes,
  9183. which can conflict with char shl_load (); below.
  9184. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9185. <limits.h> exists even on freestanding compilers. */
  9186. #ifdef __STDC__
  9187. # include <limits.h>
  9188. #else
  9189. # include <assert.h>
  9190. #endif
  9191. #undef shl_load
  9192. /* Override any GCC internal prototype to avoid an error.
  9193. Use char because int might match the return type of a GCC
  9194. builtin and then its argument prototype would still apply. */
  9195. #ifdef __cplusplus
  9196. extern "C"
  9197. #endif
  9198. char shl_load ();
  9199. /* The GNU C library defines this for functions which it implements
  9200. to always fail with ENOSYS. Some functions are actually named
  9201. something starting with __ and the normal name is an alias. */
  9202. #if defined __stub_shl_load || defined __stub___shl_load
  9203. choke me
  9204. #endif
  9205. int
  9206. main ()
  9207. {
  9208. return shl_load ();
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. rm -f conftest.$ac_objext conftest$ac_exeext
  9214. if { (ac_try="$ac_link"
  9215. case "(($ac_try" in
  9216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9217. *) ac_try_echo=$ac_try;;
  9218. esac
  9219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9220. (eval "$ac_link") 2>conftest.er1
  9221. ac_status=$?
  9222. grep -v '^ *+' conftest.er1 >conftest.err
  9223. rm -f conftest.er1
  9224. cat conftest.err >&5
  9225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. (exit $ac_status); } &&
  9227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9228. { (case "(($ac_try" in
  9229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9230. *) ac_try_echo=$ac_try;;
  9231. esac
  9232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9233. (eval "$ac_try") 2>&5
  9234. ac_status=$?
  9235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9236. (exit $ac_status); }; } &&
  9237. { ac_try='test -s conftest$ac_exeext'
  9238. { (case "(($ac_try" in
  9239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9240. *) ac_try_echo=$ac_try;;
  9241. esac
  9242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9243. (eval "$ac_try") 2>&5
  9244. ac_status=$?
  9245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9246. (exit $ac_status); }; }; then
  9247. ac_cv_func_shl_load=yes
  9248. else
  9249. echo "$as_me: failed program was:" >&5
  9250. sed 's/^/| /' conftest.$ac_ext >&5
  9251. ac_cv_func_shl_load=no
  9252. fi
  9253. rm -f core conftest.err conftest.$ac_objext \
  9254. conftest$ac_exeext conftest.$ac_ext
  9255. fi
  9256. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9257. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  9258. if test $ac_cv_func_shl_load = yes; then
  9259. cat >>confdefs.h <<\_ACEOF
  9260. #define HAVE_SHL_LOAD 1
  9261. _ACEOF
  9262. else
  9263. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9264. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  9265. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9266. echo $ECHO_N "(cached) $ECHO_C" >&6
  9267. else
  9268. ac_check_lib_save_LIBS=$LIBS
  9269. LIBS="-ldld $LIBS"
  9270. cat >conftest.$ac_ext <<_ACEOF
  9271. /* confdefs.h. */
  9272. _ACEOF
  9273. cat confdefs.h >>conftest.$ac_ext
  9274. cat >>conftest.$ac_ext <<_ACEOF
  9275. /* end confdefs.h. */
  9276. /* Override any GCC internal prototype to avoid an error.
  9277. Use char because int might match the return type of a GCC
  9278. builtin and then its argument prototype would still apply. */
  9279. #ifdef __cplusplus
  9280. extern "C"
  9281. #endif
  9282. char shl_load ();
  9283. int
  9284. main ()
  9285. {
  9286. return shl_load ();
  9287. ;
  9288. return 0;
  9289. }
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext conftest$ac_exeext
  9292. if { (ac_try="$ac_link"
  9293. case "(($ac_try" in
  9294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9295. *) ac_try_echo=$ac_try;;
  9296. esac
  9297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9298. (eval "$ac_link") 2>conftest.er1
  9299. ac_status=$?
  9300. grep -v '^ *+' conftest.er1 >conftest.err
  9301. rm -f conftest.er1
  9302. cat conftest.err >&5
  9303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9304. (exit $ac_status); } &&
  9305. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9306. { (case "(($ac_try" in
  9307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9308. *) ac_try_echo=$ac_try;;
  9309. esac
  9310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9311. (eval "$ac_try") 2>&5
  9312. ac_status=$?
  9313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314. (exit $ac_status); }; } &&
  9315. { ac_try='test -s conftest$ac_exeext'
  9316. { (case "(($ac_try" in
  9317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9318. *) ac_try_echo=$ac_try;;
  9319. esac
  9320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9321. (eval "$ac_try") 2>&5
  9322. ac_status=$?
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_lib_dld_shl_load=yes
  9326. else
  9327. echo "$as_me: failed program was:" >&5
  9328. sed 's/^/| /' conftest.$ac_ext >&5
  9329. ac_cv_lib_dld_shl_load=no
  9330. fi
  9331. rm -f core conftest.err conftest.$ac_objext \
  9332. conftest$ac_exeext conftest.$ac_ext
  9333. LIBS=$ac_check_lib_save_LIBS
  9334. fi
  9335. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9336. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  9337. if test $ac_cv_lib_dld_shl_load = yes; then
  9338. cat >>confdefs.h <<\_ACEOF
  9339. #define HAVE_SHL_LOAD 1
  9340. _ACEOF
  9341. LIBADD_DL="$LIBADD_DL -ldld"
  9342. else
  9343. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9344. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9345. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9346. echo $ECHO_N "(cached) $ECHO_C" >&6
  9347. else
  9348. ac_check_lib_save_LIBS=$LIBS
  9349. LIBS="-ldl $LIBS"
  9350. cat >conftest.$ac_ext <<_ACEOF
  9351. /* confdefs.h. */
  9352. _ACEOF
  9353. cat confdefs.h >>conftest.$ac_ext
  9354. cat >>conftest.$ac_ext <<_ACEOF
  9355. /* end confdefs.h. */
  9356. /* Override any GCC internal prototype to avoid an error.
  9357. Use char because int might match the return type of a GCC
  9358. builtin and then its argument prototype would still apply. */
  9359. #ifdef __cplusplus
  9360. extern "C"
  9361. #endif
  9362. char dlopen ();
  9363. int
  9364. main ()
  9365. {
  9366. return dlopen ();
  9367. ;
  9368. return 0;
  9369. }
  9370. _ACEOF
  9371. rm -f conftest.$ac_objext conftest$ac_exeext
  9372. if { (ac_try="$ac_link"
  9373. case "(($ac_try" in
  9374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9375. *) ac_try_echo=$ac_try;;
  9376. esac
  9377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9378. (eval "$ac_link") 2>conftest.er1
  9379. ac_status=$?
  9380. grep -v '^ *+' conftest.er1 >conftest.err
  9381. rm -f conftest.er1
  9382. cat conftest.err >&5
  9383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9384. (exit $ac_status); } &&
  9385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9386. { (case "(($ac_try" in
  9387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9388. *) ac_try_echo=$ac_try;;
  9389. esac
  9390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9391. (eval "$ac_try") 2>&5
  9392. ac_status=$?
  9393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9394. (exit $ac_status); }; } &&
  9395. { ac_try='test -s conftest$ac_exeext'
  9396. { (case "(($ac_try" in
  9397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9398. *) ac_try_echo=$ac_try;;
  9399. esac
  9400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9401. (eval "$ac_try") 2>&5
  9402. ac_status=$?
  9403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9404. (exit $ac_status); }; }; then
  9405. ac_cv_lib_dl_dlopen=yes
  9406. else
  9407. echo "$as_me: failed program was:" >&5
  9408. sed 's/^/| /' conftest.$ac_ext >&5
  9409. ac_cv_lib_dl_dlopen=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LIBS=$ac_check_lib_save_LIBS
  9414. fi
  9415. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9416. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9417. if test $ac_cv_lib_dl_dlopen = yes; then
  9418. cat >>confdefs.h <<\_ACEOF
  9419. #define HAVE_LIBDL 1
  9420. _ACEOF
  9421. LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
  9422. else
  9423. cat >conftest.$ac_ext <<_ACEOF
  9424. /* confdefs.h. */
  9425. _ACEOF
  9426. cat confdefs.h >>conftest.$ac_ext
  9427. cat >>conftest.$ac_ext <<_ACEOF
  9428. /* end confdefs.h. */
  9429. #if HAVE_DLFCN_H
  9430. # include <dlfcn.h>
  9431. #endif
  9432. int
  9433. main ()
  9434. {
  9435. dlopen(0, 0);
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. rm -f conftest.$ac_objext conftest$ac_exeext
  9441. if { (ac_try="$ac_link"
  9442. case "(($ac_try" in
  9443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9444. *) ac_try_echo=$ac_try;;
  9445. esac
  9446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9447. (eval "$ac_link") 2>conftest.er1
  9448. ac_status=$?
  9449. grep -v '^ *+' conftest.er1 >conftest.err
  9450. rm -f conftest.er1
  9451. cat conftest.err >&5
  9452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9453. (exit $ac_status); } &&
  9454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9455. { (case "(($ac_try" in
  9456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9457. *) ac_try_echo=$ac_try;;
  9458. esac
  9459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9460. (eval "$ac_try") 2>&5
  9461. ac_status=$?
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); }; } &&
  9464. { ac_try='test -s conftest$ac_exeext'
  9465. { (case "(($ac_try" in
  9466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9467. *) ac_try_echo=$ac_try;;
  9468. esac
  9469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9470. (eval "$ac_try") 2>&5
  9471. ac_status=$?
  9472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); }; }; then
  9474. cat >>confdefs.h <<\_ACEOF
  9475. #define HAVE_LIBDL 1
  9476. _ACEOF
  9477. libltdl_cv_func_dlopen="yes"
  9478. else
  9479. echo "$as_me: failed program was:" >&5
  9480. sed 's/^/| /' conftest.$ac_ext >&5
  9481. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9482. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9483. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9484. echo $ECHO_N "(cached) $ECHO_C" >&6
  9485. else
  9486. ac_check_lib_save_LIBS=$LIBS
  9487. LIBS="-lsvld $LIBS"
  9488. cat >conftest.$ac_ext <<_ACEOF
  9489. /* confdefs.h. */
  9490. _ACEOF
  9491. cat confdefs.h >>conftest.$ac_ext
  9492. cat >>conftest.$ac_ext <<_ACEOF
  9493. /* end confdefs.h. */
  9494. /* Override any GCC internal prototype to avoid an error.
  9495. Use char because int might match the return type of a GCC
  9496. builtin and then its argument prototype would still apply. */
  9497. #ifdef __cplusplus
  9498. extern "C"
  9499. #endif
  9500. char dlopen ();
  9501. int
  9502. main ()
  9503. {
  9504. return dlopen ();
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. rm -f conftest.$ac_objext conftest$ac_exeext
  9510. if { (ac_try="$ac_link"
  9511. case "(($ac_try" in
  9512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9513. *) ac_try_echo=$ac_try;;
  9514. esac
  9515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9516. (eval "$ac_link") 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } &&
  9523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9524. { (case "(($ac_try" in
  9525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9526. *) ac_try_echo=$ac_try;;
  9527. esac
  9528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9529. (eval "$ac_try") 2>&5
  9530. ac_status=$?
  9531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9532. (exit $ac_status); }; } &&
  9533. { ac_try='test -s conftest$ac_exeext'
  9534. { (case "(($ac_try" in
  9535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9536. *) ac_try_echo=$ac_try;;
  9537. esac
  9538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9539. (eval "$ac_try") 2>&5
  9540. ac_status=$?
  9541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9542. (exit $ac_status); }; }; then
  9543. ac_cv_lib_svld_dlopen=yes
  9544. else
  9545. echo "$as_me: failed program was:" >&5
  9546. sed 's/^/| /' conftest.$ac_ext >&5
  9547. ac_cv_lib_svld_dlopen=no
  9548. fi
  9549. rm -f core conftest.err conftest.$ac_objext \
  9550. conftest$ac_exeext conftest.$ac_ext
  9551. LIBS=$ac_check_lib_save_LIBS
  9552. fi
  9553. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9554. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9555. if test $ac_cv_lib_svld_dlopen = yes; then
  9556. cat >>confdefs.h <<\_ACEOF
  9557. #define HAVE_LIBDL 1
  9558. _ACEOF
  9559. LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
  9560. else
  9561. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9562. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9563. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9564. echo $ECHO_N "(cached) $ECHO_C" >&6
  9565. else
  9566. ac_check_lib_save_LIBS=$LIBS
  9567. LIBS="-ldld $LIBS"
  9568. cat >conftest.$ac_ext <<_ACEOF
  9569. /* confdefs.h. */
  9570. _ACEOF
  9571. cat confdefs.h >>conftest.$ac_ext
  9572. cat >>conftest.$ac_ext <<_ACEOF
  9573. /* end confdefs.h. */
  9574. /* Override any GCC internal prototype to avoid an error.
  9575. Use char because int might match the return type of a GCC
  9576. builtin and then its argument prototype would still apply. */
  9577. #ifdef __cplusplus
  9578. extern "C"
  9579. #endif
  9580. char dld_link ();
  9581. int
  9582. main ()
  9583. {
  9584. return dld_link ();
  9585. ;
  9586. return 0;
  9587. }
  9588. _ACEOF
  9589. rm -f conftest.$ac_objext conftest$ac_exeext
  9590. if { (ac_try="$ac_link"
  9591. case "(($ac_try" in
  9592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9593. *) ac_try_echo=$ac_try;;
  9594. esac
  9595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9596. (eval "$ac_link") 2>conftest.er1
  9597. ac_status=$?
  9598. grep -v '^ *+' conftest.er1 >conftest.err
  9599. rm -f conftest.er1
  9600. cat conftest.err >&5
  9601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9602. (exit $ac_status); } &&
  9603. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9604. { (case "(($ac_try" in
  9605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9606. *) ac_try_echo=$ac_try;;
  9607. esac
  9608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9609. (eval "$ac_try") 2>&5
  9610. ac_status=$?
  9611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9612. (exit $ac_status); }; } &&
  9613. { ac_try='test -s conftest$ac_exeext'
  9614. { (case "(($ac_try" in
  9615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9616. *) ac_try_echo=$ac_try;;
  9617. esac
  9618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9619. (eval "$ac_try") 2>&5
  9620. ac_status=$?
  9621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9622. (exit $ac_status); }; }; then
  9623. ac_cv_lib_dld_dld_link=yes
  9624. else
  9625. echo "$as_me: failed program was:" >&5
  9626. sed 's/^/| /' conftest.$ac_ext >&5
  9627. ac_cv_lib_dld_dld_link=no
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LIBS=$ac_check_lib_save_LIBS
  9632. fi
  9633. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9634. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9635. if test $ac_cv_lib_dld_dld_link = yes; then
  9636. cat >>confdefs.h <<\_ACEOF
  9637. #define HAVE_DLD 1
  9638. _ACEOF
  9639. LIBADD_DL="$LIBADD_DL -ldld"
  9640. else
  9641. { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
  9642. echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
  9643. if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
  9644. echo $ECHO_N "(cached) $ECHO_C" >&6
  9645. else
  9646. cat >conftest.$ac_ext <<_ACEOF
  9647. /* confdefs.h. */
  9648. _ACEOF
  9649. cat confdefs.h >>conftest.$ac_ext
  9650. cat >>conftest.$ac_ext <<_ACEOF
  9651. /* end confdefs.h. */
  9652. /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
  9653. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9654. #define _dyld_func_lookup innocuous__dyld_func_lookup
  9655. /* System header to define __stub macros and hopefully few prototypes,
  9656. which can conflict with char _dyld_func_lookup (); below.
  9657. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9658. <limits.h> exists even on freestanding compilers. */
  9659. #ifdef __STDC__
  9660. # include <limits.h>
  9661. #else
  9662. # include <assert.h>
  9663. #endif
  9664. #undef _dyld_func_lookup
  9665. /* Override any GCC internal prototype to avoid an error.
  9666. Use char because int might match the return type of a GCC
  9667. builtin and then its argument prototype would still apply. */
  9668. #ifdef __cplusplus
  9669. extern "C"
  9670. #endif
  9671. char _dyld_func_lookup ();
  9672. /* The GNU C library defines this for functions which it implements
  9673. to always fail with ENOSYS. Some functions are actually named
  9674. something starting with __ and the normal name is an alias. */
  9675. #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
  9676. choke me
  9677. #endif
  9678. int
  9679. main ()
  9680. {
  9681. return _dyld_func_lookup ();
  9682. ;
  9683. return 0;
  9684. }
  9685. _ACEOF
  9686. rm -f conftest.$ac_objext conftest$ac_exeext
  9687. if { (ac_try="$ac_link"
  9688. case "(($ac_try" in
  9689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9690. *) ac_try_echo=$ac_try;;
  9691. esac
  9692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9693. (eval "$ac_link") 2>conftest.er1
  9694. ac_status=$?
  9695. grep -v '^ *+' conftest.er1 >conftest.err
  9696. rm -f conftest.er1
  9697. cat conftest.err >&5
  9698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9699. (exit $ac_status); } &&
  9700. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9701. { (case "(($ac_try" in
  9702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9703. *) ac_try_echo=$ac_try;;
  9704. esac
  9705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9706. (eval "$ac_try") 2>&5
  9707. ac_status=$?
  9708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9709. (exit $ac_status); }; } &&
  9710. { ac_try='test -s conftest$ac_exeext'
  9711. { (case "(($ac_try" in
  9712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9713. *) ac_try_echo=$ac_try;;
  9714. esac
  9715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9716. (eval "$ac_try") 2>&5
  9717. ac_status=$?
  9718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9719. (exit $ac_status); }; }; then
  9720. ac_cv_func__dyld_func_lookup=yes
  9721. else
  9722. echo "$as_me: failed program was:" >&5
  9723. sed 's/^/| /' conftest.$ac_ext >&5
  9724. ac_cv_func__dyld_func_lookup=no
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext \
  9727. conftest$ac_exeext conftest.$ac_ext
  9728. fi
  9729. { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
  9730. echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
  9731. if test $ac_cv_func__dyld_func_lookup = yes; then
  9732. cat >>confdefs.h <<\_ACEOF
  9733. #define HAVE_DYLD 1
  9734. _ACEOF
  9735. fi
  9736. fi
  9737. fi
  9738. fi
  9739. rm -f core conftest.err conftest.$ac_objext \
  9740. conftest$ac_exeext conftest.$ac_ext
  9741. fi
  9742. fi
  9743. fi
  9744. if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  9745. then
  9746. lt_save_LIBS="$LIBS"
  9747. LIBS="$LIBS $LIBADD_DL"
  9748. for ac_func in dlerror
  9749. do
  9750. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9751. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9752. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9753. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9754. echo $ECHO_N "(cached) $ECHO_C" >&6
  9755. else
  9756. cat >conftest.$ac_ext <<_ACEOF
  9757. /* confdefs.h. */
  9758. _ACEOF
  9759. cat confdefs.h >>conftest.$ac_ext
  9760. cat >>conftest.$ac_ext <<_ACEOF
  9761. /* end confdefs.h. */
  9762. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9763. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9764. #define $ac_func innocuous_$ac_func
  9765. /* System header to define __stub macros and hopefully few prototypes,
  9766. which can conflict with char $ac_func (); below.
  9767. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9768. <limits.h> exists even on freestanding compilers. */
  9769. #ifdef __STDC__
  9770. # include <limits.h>
  9771. #else
  9772. # include <assert.h>
  9773. #endif
  9774. #undef $ac_func
  9775. /* Override any GCC internal prototype to avoid an error.
  9776. Use char because int might match the return type of a GCC
  9777. builtin and then its argument prototype would still apply. */
  9778. #ifdef __cplusplus
  9779. extern "C"
  9780. #endif
  9781. char $ac_func ();
  9782. /* The GNU C library defines this for functions which it implements
  9783. to always fail with ENOSYS. Some functions are actually named
  9784. something starting with __ and the normal name is an alias. */
  9785. #if defined __stub_$ac_func || defined __stub___$ac_func
  9786. choke me
  9787. #endif
  9788. int
  9789. main ()
  9790. {
  9791. return $ac_func ();
  9792. ;
  9793. return 0;
  9794. }
  9795. _ACEOF
  9796. rm -f conftest.$ac_objext conftest$ac_exeext
  9797. if { (ac_try="$ac_link"
  9798. case "(($ac_try" in
  9799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9800. *) ac_try_echo=$ac_try;;
  9801. esac
  9802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9803. (eval "$ac_link") 2>conftest.er1
  9804. ac_status=$?
  9805. grep -v '^ *+' conftest.er1 >conftest.err
  9806. rm -f conftest.er1
  9807. cat conftest.err >&5
  9808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); } &&
  9810. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9811. { (case "(($ac_try" in
  9812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9813. *) ac_try_echo=$ac_try;;
  9814. esac
  9815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9816. (eval "$ac_try") 2>&5
  9817. ac_status=$?
  9818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); }; } &&
  9820. { ac_try='test -s conftest$ac_exeext'
  9821. { (case "(($ac_try" in
  9822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9823. *) ac_try_echo=$ac_try;;
  9824. esac
  9825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9826. (eval "$ac_try") 2>&5
  9827. ac_status=$?
  9828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9829. (exit $ac_status); }; }; then
  9830. eval "$as_ac_var=yes"
  9831. else
  9832. echo "$as_me: failed program was:" >&5
  9833. sed 's/^/| /' conftest.$ac_ext >&5
  9834. eval "$as_ac_var=no"
  9835. fi
  9836. rm -f core conftest.err conftest.$ac_objext \
  9837. conftest$ac_exeext conftest.$ac_ext
  9838. fi
  9839. ac_res=`eval echo '${'$as_ac_var'}'`
  9840. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9841. echo "${ECHO_T}$ac_res" >&6; }
  9842. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9843. cat >>confdefs.h <<_ACEOF
  9844. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9845. _ACEOF
  9846. fi
  9847. done
  9848. LIBS="$lt_save_LIBS"
  9849. fi
  9850. ac_ext=c
  9851. ac_cpp='$CPP $CPPFLAGS'
  9852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9855. { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
  9856. echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
  9857. if test "${ac_cv_sys_symbol_underscore+set}" = set; then
  9858. echo $ECHO_N "(cached) $ECHO_C" >&6
  9859. else
  9860. ac_cv_sys_symbol_underscore=no
  9861. cat > conftest.$ac_ext <<EOF
  9862. void nm_test_func(){}
  9863. int main(){nm_test_func;return 0;}
  9864. EOF
  9865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9866. (eval $ac_compile) 2>&5
  9867. ac_status=$?
  9868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9869. (exit $ac_status); }; then
  9870. # Now try to grab the symbols.
  9871. ac_nlist=conftest.nm
  9872. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
  9873. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  9874. ac_status=$?
  9875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9876. (exit $ac_status); } && test -s "$ac_nlist"; then
  9877. # See whether the symbols have a leading underscore.
  9878. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  9879. ac_cv_sys_symbol_underscore=yes
  9880. else
  9881. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  9882. :
  9883. else
  9884. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  9885. fi
  9886. fi
  9887. else
  9888. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9889. fi
  9890. else
  9891. echo "configure: failed program was:" >&5
  9892. cat conftest.c >&5
  9893. fi
  9894. rm -rf conftest*
  9895. fi
  9896. { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
  9897. echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
  9898. if test x"$ac_cv_sys_symbol_underscore" = xyes; then
  9899. if test x"$libltdl_cv_func_dlopen" = xyes ||
  9900. test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  9901. { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
  9902. echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
  9903. if test "${libltdl_cv_need_uscore+set}" = set; then
  9904. echo $ECHO_N "(cached) $ECHO_C" >&6
  9905. else
  9906. libltdl_cv_need_uscore=unknown
  9907. save_LIBS="$LIBS"
  9908. LIBS="$LIBS $LIBADD_DL"
  9909. if test "$cross_compiling" = yes; then :
  9910. libltdl_cv_need_uscore=cross
  9911. else
  9912. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9913. lt_status=$lt_dlunknown
  9914. cat > conftest.$ac_ext <<EOF
  9915. #line 10991 "configure"
  9916. #include "confdefs.h"
  9917. #if HAVE_DLFCN_H
  9918. #include <dlfcn.h>
  9919. #endif
  9920. #include <stdio.h>
  9921. #ifdef RTLD_GLOBAL
  9922. # define LT_DLGLOBAL RTLD_GLOBAL
  9923. #else
  9924. # ifdef DL_GLOBAL
  9925. # define LT_DLGLOBAL DL_GLOBAL
  9926. # else
  9927. # define LT_DLGLOBAL 0
  9928. # endif
  9929. #endif
  9930. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9931. find out it does not work in some platform. */
  9932. #ifndef LT_DLLAZY_OR_NOW
  9933. # ifdef RTLD_LAZY
  9934. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9935. # else
  9936. # ifdef DL_LAZY
  9937. # define LT_DLLAZY_OR_NOW DL_LAZY
  9938. # else
  9939. # ifdef RTLD_NOW
  9940. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9941. # else
  9942. # ifdef DL_NOW
  9943. # define LT_DLLAZY_OR_NOW DL_NOW
  9944. # else
  9945. # define LT_DLLAZY_OR_NOW 0
  9946. # endif
  9947. # endif
  9948. # endif
  9949. # endif
  9950. #endif
  9951. #ifdef __cplusplus
  9952. extern "C" void exit (int);
  9953. #endif
  9954. void fnord() { int i=42;}
  9955. int main ()
  9956. {
  9957. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9958. int status = $lt_dlunknown;
  9959. if (self)
  9960. {
  9961. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9962. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9963. /* dlclose (self); */
  9964. }
  9965. else
  9966. puts (dlerror ());
  9967. exit (status);
  9968. }
  9969. EOF
  9970. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9971. (eval $ac_link) 2>&5
  9972. ac_status=$?
  9973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9974. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9975. (./conftest; exit; ) >&5 2>/dev/null
  9976. lt_status=$?
  9977. case x$lt_status in
  9978. x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
  9979. x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
  9980. x$lt_dlunknown|x*) ;;
  9981. esac
  9982. else :
  9983. # compilation failed
  9984. fi
  9985. fi
  9986. rm -fr conftest*
  9987. LIBS="$save_LIBS"
  9988. fi
  9989. { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
  9990. echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
  9991. fi
  9992. fi
  9993. if test x"$libltdl_cv_need_uscore" = xyes; then
  9994. cat >>confdefs.h <<\_ACEOF
  9995. #define NEED_USCORE 1
  9996. _ACEOF
  9997. fi
  9998. { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
  9999. echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
  10000. if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
  10001. echo $ECHO_N "(cached) $ECHO_C" >&6
  10002. else
  10003. # PORTME does your system automatically load deplibs for dlopen?
  10004. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  10005. # For now, we just catch OSes we know something about -- in the
  10006. # future, we'll try test this programmatically.
  10007. libltdl_cv_sys_dlopen_deplibs=unknown
  10008. case "$host_os" in
  10009. aix3*|aix4.1.*|aix4.2.*)
  10010. # Unknown whether this is true for these versions of AIX, but
  10011. # we want this `case' here to explicitly catch those versions.
  10012. libltdl_cv_sys_dlopen_deplibs=unknown
  10013. ;;
  10014. aix[45]*)
  10015. libltdl_cv_sys_dlopen_deplibs=yes
  10016. ;;
  10017. darwin*)
  10018. # Assuming the user has installed a libdl from somewhere, this is true
  10019. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  10020. libltdl_cv_sys_dlopen_deplibs=yes
  10021. ;;
  10022. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
  10023. # GNU and its variants, using gnu ld.so (Glibc)
  10024. libltdl_cv_sys_dlopen_deplibs=yes
  10025. ;;
  10026. hpux10*|hpux11*)
  10027. libltdl_cv_sys_dlopen_deplibs=yes
  10028. ;;
  10029. interix*)
  10030. libltdl_cv_sys_dlopen_deplibs=yes
  10031. ;;
  10032. irix[12345]*|irix6.[01]*)
  10033. # Catch all versions of IRIX before 6.2, and indicate that we don't
  10034. # know how it worked for any of those versions.
  10035. libltdl_cv_sys_dlopen_deplibs=unknown
  10036. ;;
  10037. irix*)
  10038. # The case above catches anything before 6.2, and it's known that
  10039. # at 6.2 and later dlopen does load deplibs.
  10040. libltdl_cv_sys_dlopen_deplibs=yes
  10041. ;;
  10042. netbsd*)
  10043. libltdl_cv_sys_dlopen_deplibs=yes
  10044. ;;
  10045. openbsd*)
  10046. libltdl_cv_sys_dlopen_deplibs=yes
  10047. ;;
  10048. osf[1234]*)
  10049. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  10050. # it did *not* use an RPATH in a shared library to find objects the
  10051. # library depends on, so we explictly say `no'.
  10052. libltdl_cv_sys_dlopen_deplibs=no
  10053. ;;
  10054. osf5.0|osf5.0a|osf5.1)
  10055. # dlopen *does* load deplibs and with the right loader patch applied
  10056. # it even uses RPATH in a shared library to search for shared objects
  10057. # that the library depends on, but there's no easy way to know if that
  10058. # patch is installed. Since this is the case, all we can really
  10059. # say is unknown -- it depends on the patch being installed. If
  10060. # it is, this changes to `yes'. Without it, it would be `no'.
  10061. libltdl_cv_sys_dlopen_deplibs=unknown
  10062. ;;
  10063. osf*)
  10064. # the two cases above should catch all versions of osf <= 5.1. Read
  10065. # the comments above for what we know about them.
  10066. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  10067. # is used to find them so we can finally say `yes'.
  10068. libltdl_cv_sys_dlopen_deplibs=yes
  10069. ;;
  10070. solaris*)
  10071. libltdl_cv_sys_dlopen_deplibs=yes
  10072. ;;
  10073. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10074. libltdl_cv_sys_dlopen_deplibs=yes
  10075. ;;
  10076. esac
  10077. fi
  10078. { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
  10079. echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
  10080. if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
  10081. cat >>confdefs.h <<\_ACEOF
  10082. #define LTDL_DLOPEN_DEPLIBS 1
  10083. _ACEOF
  10084. fi
  10085. for ac_header in argz.h
  10086. do
  10087. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10088. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10089. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10090. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10091. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10092. echo $ECHO_N "(cached) $ECHO_C" >&6
  10093. fi
  10094. ac_res=`eval echo '${'$as_ac_Header'}'`
  10095. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10096. echo "${ECHO_T}$ac_res" >&6; }
  10097. else
  10098. # Is the header compilable?
  10099. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10100. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10101. cat >conftest.$ac_ext <<_ACEOF
  10102. /* confdefs.h. */
  10103. _ACEOF
  10104. cat confdefs.h >>conftest.$ac_ext
  10105. cat >>conftest.$ac_ext <<_ACEOF
  10106. /* end confdefs.h. */
  10107. $ac_includes_default
  10108. #include <$ac_header>
  10109. _ACEOF
  10110. rm -f conftest.$ac_objext
  10111. if { (ac_try="$ac_compile"
  10112. case "(($ac_try" in
  10113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10114. *) ac_try_echo=$ac_try;;
  10115. esac
  10116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10117. (eval "$ac_compile") 2>conftest.er1
  10118. ac_status=$?
  10119. grep -v '^ *+' conftest.er1 >conftest.err
  10120. rm -f conftest.er1
  10121. cat conftest.err >&5
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); } &&
  10124. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10125. { (case "(($ac_try" in
  10126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10127. *) ac_try_echo=$ac_try;;
  10128. esac
  10129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10130. (eval "$ac_try") 2>&5
  10131. ac_status=$?
  10132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10133. (exit $ac_status); }; } &&
  10134. { ac_try='test -s conftest.$ac_objext'
  10135. { (case "(($ac_try" in
  10136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10137. *) ac_try_echo=$ac_try;;
  10138. esac
  10139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10140. (eval "$ac_try") 2>&5
  10141. ac_status=$?
  10142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10143. (exit $ac_status); }; }; then
  10144. ac_header_compiler=yes
  10145. else
  10146. echo "$as_me: failed program was:" >&5
  10147. sed 's/^/| /' conftest.$ac_ext >&5
  10148. ac_header_compiler=no
  10149. fi
  10150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10151. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10152. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10153. # Is the header present?
  10154. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10155. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10156. cat >conftest.$ac_ext <<_ACEOF
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162. #include <$ac_header>
  10163. _ACEOF
  10164. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10165. case "(($ac_try" in
  10166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10167. *) ac_try_echo=$ac_try;;
  10168. esac
  10169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10170. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10171. ac_status=$?
  10172. grep -v '^ *+' conftest.er1 >conftest.err
  10173. rm -f conftest.er1
  10174. cat conftest.err >&5
  10175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); } >/dev/null; then
  10177. if test -s conftest.err; then
  10178. ac_cpp_err=$ac_c_preproc_warn_flag
  10179. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10180. else
  10181. ac_cpp_err=
  10182. fi
  10183. else
  10184. ac_cpp_err=yes
  10185. fi
  10186. if test -z "$ac_cpp_err"; then
  10187. ac_header_preproc=yes
  10188. else
  10189. echo "$as_me: failed program was:" >&5
  10190. sed 's/^/| /' conftest.$ac_ext >&5
  10191. ac_header_preproc=no
  10192. fi
  10193. rm -f conftest.err conftest.$ac_ext
  10194. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10195. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10196. # So? What about this header?
  10197. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10198. yes:no: )
  10199. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10200. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10201. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10202. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10203. ac_header_preproc=yes
  10204. ;;
  10205. no:yes:* )
  10206. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10207. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10208. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10209. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10210. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10211. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10212. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10213. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10214. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10215. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10216. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10217. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10218. ( cat <<\_ASBOX
  10219. ## ----------------------------------- ##
  10220. ## Report this to llvmbugs@cs.uiuc.edu ##
  10221. ## ----------------------------------- ##
  10222. _ASBOX
  10223. ) | sed "s/^/$as_me: WARNING: /" >&2
  10224. ;;
  10225. esac
  10226. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10227. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10228. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10229. echo $ECHO_N "(cached) $ECHO_C" >&6
  10230. else
  10231. eval "$as_ac_Header=\$ac_header_preproc"
  10232. fi
  10233. ac_res=`eval echo '${'$as_ac_Header'}'`
  10234. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10235. echo "${ECHO_T}$ac_res" >&6; }
  10236. fi
  10237. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10238. cat >>confdefs.h <<_ACEOF
  10239. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10240. _ACEOF
  10241. fi
  10242. done
  10243. { echo "$as_me:$LINENO: checking for error_t" >&5
  10244. echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
  10245. if test "${ac_cv_type_error_t+set}" = set; then
  10246. echo $ECHO_N "(cached) $ECHO_C" >&6
  10247. else
  10248. cat >conftest.$ac_ext <<_ACEOF
  10249. /* confdefs.h. */
  10250. _ACEOF
  10251. cat confdefs.h >>conftest.$ac_ext
  10252. cat >>conftest.$ac_ext <<_ACEOF
  10253. /* end confdefs.h. */
  10254. #if HAVE_ARGZ_H
  10255. # include <argz.h>
  10256. #endif
  10257. typedef error_t ac__type_new_;
  10258. int
  10259. main ()
  10260. {
  10261. if ((ac__type_new_ *) 0)
  10262. return 0;
  10263. if (sizeof (ac__type_new_))
  10264. return 0;
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. rm -f conftest.$ac_objext
  10270. if { (ac_try="$ac_compile"
  10271. case "(($ac_try" in
  10272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10273. *) ac_try_echo=$ac_try;;
  10274. esac
  10275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10276. (eval "$ac_compile") 2>conftest.er1
  10277. ac_status=$?
  10278. grep -v '^ *+' conftest.er1 >conftest.err
  10279. rm -f conftest.er1
  10280. cat conftest.err >&5
  10281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10282. (exit $ac_status); } &&
  10283. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10284. { (case "(($ac_try" in
  10285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10286. *) ac_try_echo=$ac_try;;
  10287. esac
  10288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10289. (eval "$ac_try") 2>&5
  10290. ac_status=$?
  10291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10292. (exit $ac_status); }; } &&
  10293. { ac_try='test -s conftest.$ac_objext'
  10294. { (case "(($ac_try" in
  10295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10296. *) ac_try_echo=$ac_try;;
  10297. esac
  10298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10299. (eval "$ac_try") 2>&5
  10300. ac_status=$?
  10301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10302. (exit $ac_status); }; }; then
  10303. ac_cv_type_error_t=yes
  10304. else
  10305. echo "$as_me: failed program was:" >&5
  10306. sed 's/^/| /' conftest.$ac_ext >&5
  10307. ac_cv_type_error_t=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10310. fi
  10311. { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
  10312. echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
  10313. if test $ac_cv_type_error_t = yes; then
  10314. cat >>confdefs.h <<_ACEOF
  10315. #define HAVE_ERROR_T 1
  10316. _ACEOF
  10317. else
  10318. cat >>confdefs.h <<\_ACEOF
  10319. #define error_t int
  10320. _ACEOF
  10321. fi
  10322. for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
  10323. do
  10324. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10325. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10326. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10327. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10328. echo $ECHO_N "(cached) $ECHO_C" >&6
  10329. else
  10330. cat >conftest.$ac_ext <<_ACEOF
  10331. /* confdefs.h. */
  10332. _ACEOF
  10333. cat confdefs.h >>conftest.$ac_ext
  10334. cat >>conftest.$ac_ext <<_ACEOF
  10335. /* end confdefs.h. */
  10336. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10337. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10338. #define $ac_func innocuous_$ac_func
  10339. /* System header to define __stub macros and hopefully few prototypes,
  10340. which can conflict with char $ac_func (); below.
  10341. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10342. <limits.h> exists even on freestanding compilers. */
  10343. #ifdef __STDC__
  10344. # include <limits.h>
  10345. #else
  10346. # include <assert.h>
  10347. #endif
  10348. #undef $ac_func
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char $ac_func ();
  10356. /* The GNU C library defines this for functions which it implements
  10357. to always fail with ENOSYS. Some functions are actually named
  10358. something starting with __ and the normal name is an alias. */
  10359. #if defined __stub_$ac_func || defined __stub___$ac_func
  10360. choke me
  10361. #endif
  10362. int
  10363. main ()
  10364. {
  10365. return $ac_func ();
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. rm -f conftest.$ac_objext conftest$ac_exeext
  10371. if { (ac_try="$ac_link"
  10372. case "(($ac_try" in
  10373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10374. *) ac_try_echo=$ac_try;;
  10375. esac
  10376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10377. (eval "$ac_link") 2>conftest.er1
  10378. ac_status=$?
  10379. grep -v '^ *+' conftest.er1 >conftest.err
  10380. rm -f conftest.er1
  10381. cat conftest.err >&5
  10382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10383. (exit $ac_status); } &&
  10384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10385. { (case "(($ac_try" in
  10386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10387. *) ac_try_echo=$ac_try;;
  10388. esac
  10389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10390. (eval "$ac_try") 2>&5
  10391. ac_status=$?
  10392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10393. (exit $ac_status); }; } &&
  10394. { ac_try='test -s conftest$ac_exeext'
  10395. { (case "(($ac_try" in
  10396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10397. *) ac_try_echo=$ac_try;;
  10398. esac
  10399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10400. (eval "$ac_try") 2>&5
  10401. ac_status=$?
  10402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10403. (exit $ac_status); }; }; then
  10404. eval "$as_ac_var=yes"
  10405. else
  10406. echo "$as_me: failed program was:" >&5
  10407. sed 's/^/| /' conftest.$ac_ext >&5
  10408. eval "$as_ac_var=no"
  10409. fi
  10410. rm -f core conftest.err conftest.$ac_objext \
  10411. conftest$ac_exeext conftest.$ac_ext
  10412. fi
  10413. ac_res=`eval echo '${'$as_ac_var'}'`
  10414. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10415. echo "${ECHO_T}$ac_res" >&6; }
  10416. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10417. cat >>confdefs.h <<_ACEOF
  10418. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10419. _ACEOF
  10420. fi
  10421. done
  10422. for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
  10423. stdio.h unistd.h
  10424. do
  10425. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10426. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10427. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10428. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10429. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10430. echo $ECHO_N "(cached) $ECHO_C" >&6
  10431. fi
  10432. ac_res=`eval echo '${'$as_ac_Header'}'`
  10433. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10434. echo "${ECHO_T}$ac_res" >&6; }
  10435. else
  10436. # Is the header compilable?
  10437. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10438. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10439. cat >conftest.$ac_ext <<_ACEOF
  10440. /* confdefs.h. */
  10441. _ACEOF
  10442. cat confdefs.h >>conftest.$ac_ext
  10443. cat >>conftest.$ac_ext <<_ACEOF
  10444. /* end confdefs.h. */
  10445. $ac_includes_default
  10446. #include <$ac_header>
  10447. _ACEOF
  10448. rm -f conftest.$ac_objext
  10449. if { (ac_try="$ac_compile"
  10450. case "(($ac_try" in
  10451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10452. *) ac_try_echo=$ac_try;;
  10453. esac
  10454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10455. (eval "$ac_compile") 2>conftest.er1
  10456. ac_status=$?
  10457. grep -v '^ *+' conftest.er1 >conftest.err
  10458. rm -f conftest.er1
  10459. cat conftest.err >&5
  10460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10461. (exit $ac_status); } &&
  10462. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10463. { (case "(($ac_try" in
  10464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10465. *) ac_try_echo=$ac_try;;
  10466. esac
  10467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10468. (eval "$ac_try") 2>&5
  10469. ac_status=$?
  10470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10471. (exit $ac_status); }; } &&
  10472. { ac_try='test -s conftest.$ac_objext'
  10473. { (case "(($ac_try" in
  10474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10475. *) ac_try_echo=$ac_try;;
  10476. esac
  10477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10478. (eval "$ac_try") 2>&5
  10479. ac_status=$?
  10480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10481. (exit $ac_status); }; }; then
  10482. ac_header_compiler=yes
  10483. else
  10484. echo "$as_me: failed program was:" >&5
  10485. sed 's/^/| /' conftest.$ac_ext >&5
  10486. ac_header_compiler=no
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10489. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10490. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10491. # Is the header present?
  10492. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10493. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10494. cat >conftest.$ac_ext <<_ACEOF
  10495. /* confdefs.h. */
  10496. _ACEOF
  10497. cat confdefs.h >>conftest.$ac_ext
  10498. cat >>conftest.$ac_ext <<_ACEOF
  10499. /* end confdefs.h. */
  10500. #include <$ac_header>
  10501. _ACEOF
  10502. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10503. case "(($ac_try" in
  10504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10505. *) ac_try_echo=$ac_try;;
  10506. esac
  10507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10509. ac_status=$?
  10510. grep -v '^ *+' conftest.er1 >conftest.err
  10511. rm -f conftest.er1
  10512. cat conftest.err >&5
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); } >/dev/null; then
  10515. if test -s conftest.err; then
  10516. ac_cpp_err=$ac_c_preproc_warn_flag
  10517. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10518. else
  10519. ac_cpp_err=
  10520. fi
  10521. else
  10522. ac_cpp_err=yes
  10523. fi
  10524. if test -z "$ac_cpp_err"; then
  10525. ac_header_preproc=yes
  10526. else
  10527. echo "$as_me: failed program was:" >&5
  10528. sed 's/^/| /' conftest.$ac_ext >&5
  10529. ac_header_preproc=no
  10530. fi
  10531. rm -f conftest.err conftest.$ac_ext
  10532. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10533. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10534. # So? What about this header?
  10535. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10536. yes:no: )
  10537. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10538. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10540. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10541. ac_header_preproc=yes
  10542. ;;
  10543. no:yes:* )
  10544. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10545. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10546. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10547. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10549. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10551. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10553. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10554. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10555. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10556. ( cat <<\_ASBOX
  10557. ## ----------------------------------- ##
  10558. ## Report this to llvmbugs@cs.uiuc.edu ##
  10559. ## ----------------------------------- ##
  10560. _ASBOX
  10561. ) | sed "s/^/$as_me: WARNING: /" >&2
  10562. ;;
  10563. esac
  10564. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10565. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10566. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10567. echo $ECHO_N "(cached) $ECHO_C" >&6
  10568. else
  10569. eval "$as_ac_Header=\$ac_header_preproc"
  10570. fi
  10571. ac_res=`eval echo '${'$as_ac_Header'}'`
  10572. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10573. echo "${ECHO_T}$ac_res" >&6; }
  10574. fi
  10575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10576. cat >>confdefs.h <<_ACEOF
  10577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10578. _ACEOF
  10579. fi
  10580. done
  10581. for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
  10582. do
  10583. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10584. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10585. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10586. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10587. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10588. echo $ECHO_N "(cached) $ECHO_C" >&6
  10589. fi
  10590. ac_res=`eval echo '${'$as_ac_Header'}'`
  10591. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10592. echo "${ECHO_T}$ac_res" >&6; }
  10593. else
  10594. # Is the header compilable?
  10595. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10596. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10597. cat >conftest.$ac_ext <<_ACEOF
  10598. /* confdefs.h. */
  10599. _ACEOF
  10600. cat confdefs.h >>conftest.$ac_ext
  10601. cat >>conftest.$ac_ext <<_ACEOF
  10602. /* end confdefs.h. */
  10603. $ac_includes_default
  10604. #include <$ac_header>
  10605. _ACEOF
  10606. rm -f conftest.$ac_objext
  10607. if { (ac_try="$ac_compile"
  10608. case "(($ac_try" in
  10609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10610. *) ac_try_echo=$ac_try;;
  10611. esac
  10612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10613. (eval "$ac_compile") 2>conftest.er1
  10614. ac_status=$?
  10615. grep -v '^ *+' conftest.er1 >conftest.err
  10616. rm -f conftest.er1
  10617. cat conftest.err >&5
  10618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10619. (exit $ac_status); } &&
  10620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10621. { (case "(($ac_try" in
  10622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10623. *) ac_try_echo=$ac_try;;
  10624. esac
  10625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10626. (eval "$ac_try") 2>&5
  10627. ac_status=$?
  10628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. (exit $ac_status); }; } &&
  10630. { ac_try='test -s conftest.$ac_objext'
  10631. { (case "(($ac_try" in
  10632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10633. *) ac_try_echo=$ac_try;;
  10634. esac
  10635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10636. (eval "$ac_try") 2>&5
  10637. ac_status=$?
  10638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); }; }; then
  10640. ac_header_compiler=yes
  10641. else
  10642. echo "$as_me: failed program was:" >&5
  10643. sed 's/^/| /' conftest.$ac_ext >&5
  10644. ac_header_compiler=no
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10647. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10648. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10649. # Is the header present?
  10650. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10651. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10652. cat >conftest.$ac_ext <<_ACEOF
  10653. /* confdefs.h. */
  10654. _ACEOF
  10655. cat confdefs.h >>conftest.$ac_ext
  10656. cat >>conftest.$ac_ext <<_ACEOF
  10657. /* end confdefs.h. */
  10658. #include <$ac_header>
  10659. _ACEOF
  10660. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10661. case "(($ac_try" in
  10662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10663. *) ac_try_echo=$ac_try;;
  10664. esac
  10665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10667. ac_status=$?
  10668. grep -v '^ *+' conftest.er1 >conftest.err
  10669. rm -f conftest.er1
  10670. cat conftest.err >&5
  10671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10672. (exit $ac_status); } >/dev/null; then
  10673. if test -s conftest.err; then
  10674. ac_cpp_err=$ac_c_preproc_warn_flag
  10675. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10676. else
  10677. ac_cpp_err=
  10678. fi
  10679. else
  10680. ac_cpp_err=yes
  10681. fi
  10682. if test -z "$ac_cpp_err"; then
  10683. ac_header_preproc=yes
  10684. else
  10685. echo "$as_me: failed program was:" >&5
  10686. sed 's/^/| /' conftest.$ac_ext >&5
  10687. ac_header_preproc=no
  10688. fi
  10689. rm -f conftest.err conftest.$ac_ext
  10690. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10691. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10692. # So? What about this header?
  10693. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10694. yes:no: )
  10695. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10696. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10697. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10698. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10699. ac_header_preproc=yes
  10700. ;;
  10701. no:yes:* )
  10702. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10703. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10704. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10705. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10706. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10707. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10708. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10709. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10710. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10711. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10712. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10713. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10714. ( cat <<\_ASBOX
  10715. ## ----------------------------------- ##
  10716. ## Report this to llvmbugs@cs.uiuc.edu ##
  10717. ## ----------------------------------- ##
  10718. _ASBOX
  10719. ) | sed "s/^/$as_me: WARNING: /" >&2
  10720. ;;
  10721. esac
  10722. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10723. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10724. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10725. echo $ECHO_N "(cached) $ECHO_C" >&6
  10726. else
  10727. eval "$as_ac_Header=\$ac_header_preproc"
  10728. fi
  10729. ac_res=`eval echo '${'$as_ac_Header'}'`
  10730. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10731. echo "${ECHO_T}$ac_res" >&6; }
  10732. fi
  10733. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10734. cat >>confdefs.h <<_ACEOF
  10735. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10736. _ACEOF
  10737. fi
  10738. done
  10739. for ac_header in string.h strings.h
  10740. do
  10741. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10742. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10743. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10744. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10745. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10746. echo $ECHO_N "(cached) $ECHO_C" >&6
  10747. fi
  10748. ac_res=`eval echo '${'$as_ac_Header'}'`
  10749. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10750. echo "${ECHO_T}$ac_res" >&6; }
  10751. else
  10752. # Is the header compilable?
  10753. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10754. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10755. cat >conftest.$ac_ext <<_ACEOF
  10756. /* confdefs.h. */
  10757. _ACEOF
  10758. cat confdefs.h >>conftest.$ac_ext
  10759. cat >>conftest.$ac_ext <<_ACEOF
  10760. /* end confdefs.h. */
  10761. $ac_includes_default
  10762. #include <$ac_header>
  10763. _ACEOF
  10764. rm -f conftest.$ac_objext
  10765. if { (ac_try="$ac_compile"
  10766. case "(($ac_try" in
  10767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10768. *) ac_try_echo=$ac_try;;
  10769. esac
  10770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10771. (eval "$ac_compile") 2>conftest.er1
  10772. ac_status=$?
  10773. grep -v '^ *+' conftest.er1 >conftest.err
  10774. rm -f conftest.er1
  10775. cat conftest.err >&5
  10776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10777. (exit $ac_status); } &&
  10778. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10779. { (case "(($ac_try" in
  10780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10781. *) ac_try_echo=$ac_try;;
  10782. esac
  10783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10784. (eval "$ac_try") 2>&5
  10785. ac_status=$?
  10786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10787. (exit $ac_status); }; } &&
  10788. { ac_try='test -s conftest.$ac_objext'
  10789. { (case "(($ac_try" in
  10790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10791. *) ac_try_echo=$ac_try;;
  10792. esac
  10793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10794. (eval "$ac_try") 2>&5
  10795. ac_status=$?
  10796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10797. (exit $ac_status); }; }; then
  10798. ac_header_compiler=yes
  10799. else
  10800. echo "$as_me: failed program was:" >&5
  10801. sed 's/^/| /' conftest.$ac_ext >&5
  10802. ac_header_compiler=no
  10803. fi
  10804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10805. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10806. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10807. # Is the header present?
  10808. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10810. cat >conftest.$ac_ext <<_ACEOF
  10811. /* confdefs.h. */
  10812. _ACEOF
  10813. cat confdefs.h >>conftest.$ac_ext
  10814. cat >>conftest.$ac_ext <<_ACEOF
  10815. /* end confdefs.h. */
  10816. #include <$ac_header>
  10817. _ACEOF
  10818. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10819. case "(($ac_try" in
  10820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10821. *) ac_try_echo=$ac_try;;
  10822. esac
  10823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10825. ac_status=$?
  10826. grep -v '^ *+' conftest.er1 >conftest.err
  10827. rm -f conftest.er1
  10828. cat conftest.err >&5
  10829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10830. (exit $ac_status); } >/dev/null; then
  10831. if test -s conftest.err; then
  10832. ac_cpp_err=$ac_c_preproc_warn_flag
  10833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10834. else
  10835. ac_cpp_err=
  10836. fi
  10837. else
  10838. ac_cpp_err=yes
  10839. fi
  10840. if test -z "$ac_cpp_err"; then
  10841. ac_header_preproc=yes
  10842. else
  10843. echo "$as_me: failed program was:" >&5
  10844. sed 's/^/| /' conftest.$ac_ext >&5
  10845. ac_header_preproc=no
  10846. fi
  10847. rm -f conftest.err conftest.$ac_ext
  10848. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10849. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10850. # So? What about this header?
  10851. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10852. yes:no: )
  10853. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10854. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10856. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10857. ac_header_preproc=yes
  10858. ;;
  10859. no:yes:* )
  10860. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10861. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10862. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10863. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10864. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10865. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10866. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10867. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10869. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10870. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10871. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10872. ( cat <<\_ASBOX
  10873. ## ----------------------------------- ##
  10874. ## Report this to llvmbugs@cs.uiuc.edu ##
  10875. ## ----------------------------------- ##
  10876. _ASBOX
  10877. ) | sed "s/^/$as_me: WARNING: /" >&2
  10878. ;;
  10879. esac
  10880. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10882. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10883. echo $ECHO_N "(cached) $ECHO_C" >&6
  10884. else
  10885. eval "$as_ac_Header=\$ac_header_preproc"
  10886. fi
  10887. ac_res=`eval echo '${'$as_ac_Header'}'`
  10888. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10889. echo "${ECHO_T}$ac_res" >&6; }
  10890. fi
  10891. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10892. cat >>confdefs.h <<_ACEOF
  10893. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10894. _ACEOF
  10895. break
  10896. fi
  10897. done
  10898. for ac_func in strchr index
  10899. do
  10900. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10901. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10902. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10903. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10904. echo $ECHO_N "(cached) $ECHO_C" >&6
  10905. else
  10906. cat >conftest.$ac_ext <<_ACEOF
  10907. /* confdefs.h. */
  10908. _ACEOF
  10909. cat confdefs.h >>conftest.$ac_ext
  10910. cat >>conftest.$ac_ext <<_ACEOF
  10911. /* end confdefs.h. */
  10912. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10913. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10914. #define $ac_func innocuous_$ac_func
  10915. /* System header to define __stub macros and hopefully few prototypes,
  10916. which can conflict with char $ac_func (); below.
  10917. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10918. <limits.h> exists even on freestanding compilers. */
  10919. #ifdef __STDC__
  10920. # include <limits.h>
  10921. #else
  10922. # include <assert.h>
  10923. #endif
  10924. #undef $ac_func
  10925. /* Override any GCC internal prototype to avoid an error.
  10926. Use char because int might match the return type of a GCC
  10927. builtin and then its argument prototype would still apply. */
  10928. #ifdef __cplusplus
  10929. extern "C"
  10930. #endif
  10931. char $ac_func ();
  10932. /* The GNU C library defines this for functions which it implements
  10933. to always fail with ENOSYS. Some functions are actually named
  10934. something starting with __ and the normal name is an alias. */
  10935. #if defined __stub_$ac_func || defined __stub___$ac_func
  10936. choke me
  10937. #endif
  10938. int
  10939. main ()
  10940. {
  10941. return $ac_func ();
  10942. ;
  10943. return 0;
  10944. }
  10945. _ACEOF
  10946. rm -f conftest.$ac_objext conftest$ac_exeext
  10947. if { (ac_try="$ac_link"
  10948. case "(($ac_try" in
  10949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10950. *) ac_try_echo=$ac_try;;
  10951. esac
  10952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10953. (eval "$ac_link") 2>conftest.er1
  10954. ac_status=$?
  10955. grep -v '^ *+' conftest.er1 >conftest.err
  10956. rm -f conftest.er1
  10957. cat conftest.err >&5
  10958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10959. (exit $ac_status); } &&
  10960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10961. { (case "(($ac_try" in
  10962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10963. *) ac_try_echo=$ac_try;;
  10964. esac
  10965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10966. (eval "$ac_try") 2>&5
  10967. ac_status=$?
  10968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10969. (exit $ac_status); }; } &&
  10970. { ac_try='test -s conftest$ac_exeext'
  10971. { (case "(($ac_try" in
  10972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10973. *) ac_try_echo=$ac_try;;
  10974. esac
  10975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10976. (eval "$ac_try") 2>&5
  10977. ac_status=$?
  10978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10979. (exit $ac_status); }; }; then
  10980. eval "$as_ac_var=yes"
  10981. else
  10982. echo "$as_me: failed program was:" >&5
  10983. sed 's/^/| /' conftest.$ac_ext >&5
  10984. eval "$as_ac_var=no"
  10985. fi
  10986. rm -f core conftest.err conftest.$ac_objext \
  10987. conftest$ac_exeext conftest.$ac_ext
  10988. fi
  10989. ac_res=`eval echo '${'$as_ac_var'}'`
  10990. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10991. echo "${ECHO_T}$ac_res" >&6; }
  10992. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10993. cat >>confdefs.h <<_ACEOF
  10994. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10995. _ACEOF
  10996. break
  10997. fi
  10998. done
  10999. for ac_func in strrchr rindex
  11000. do
  11001. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11002. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11003. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11004. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11005. echo $ECHO_N "(cached) $ECHO_C" >&6
  11006. else
  11007. cat >conftest.$ac_ext <<_ACEOF
  11008. /* confdefs.h. */
  11009. _ACEOF
  11010. cat confdefs.h >>conftest.$ac_ext
  11011. cat >>conftest.$ac_ext <<_ACEOF
  11012. /* end confdefs.h. */
  11013. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11014. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11015. #define $ac_func innocuous_$ac_func
  11016. /* System header to define __stub macros and hopefully few prototypes,
  11017. which can conflict with char $ac_func (); below.
  11018. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11019. <limits.h> exists even on freestanding compilers. */
  11020. #ifdef __STDC__
  11021. # include <limits.h>
  11022. #else
  11023. # include <assert.h>
  11024. #endif
  11025. #undef $ac_func
  11026. /* Override any GCC internal prototype to avoid an error.
  11027. Use char because int might match the return type of a GCC
  11028. builtin and then its argument prototype would still apply. */
  11029. #ifdef __cplusplus
  11030. extern "C"
  11031. #endif
  11032. char $ac_func ();
  11033. /* The GNU C library defines this for functions which it implements
  11034. to always fail with ENOSYS. Some functions are actually named
  11035. something starting with __ and the normal name is an alias. */
  11036. #if defined __stub_$ac_func || defined __stub___$ac_func
  11037. choke me
  11038. #endif
  11039. int
  11040. main ()
  11041. {
  11042. return $ac_func ();
  11043. ;
  11044. return 0;
  11045. }
  11046. _ACEOF
  11047. rm -f conftest.$ac_objext conftest$ac_exeext
  11048. if { (ac_try="$ac_link"
  11049. case "(($ac_try" in
  11050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11051. *) ac_try_echo=$ac_try;;
  11052. esac
  11053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11054. (eval "$ac_link") 2>conftest.er1
  11055. ac_status=$?
  11056. grep -v '^ *+' conftest.er1 >conftest.err
  11057. rm -f conftest.er1
  11058. cat conftest.err >&5
  11059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11060. (exit $ac_status); } &&
  11061. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11062. { (case "(($ac_try" in
  11063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11064. *) ac_try_echo=$ac_try;;
  11065. esac
  11066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11067. (eval "$ac_try") 2>&5
  11068. ac_status=$?
  11069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11070. (exit $ac_status); }; } &&
  11071. { ac_try='test -s conftest$ac_exeext'
  11072. { (case "(($ac_try" in
  11073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11074. *) ac_try_echo=$ac_try;;
  11075. esac
  11076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11077. (eval "$ac_try") 2>&5
  11078. ac_status=$?
  11079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11080. (exit $ac_status); }; }; then
  11081. eval "$as_ac_var=yes"
  11082. else
  11083. echo "$as_me: failed program was:" >&5
  11084. sed 's/^/| /' conftest.$ac_ext >&5
  11085. eval "$as_ac_var=no"
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext \
  11088. conftest$ac_exeext conftest.$ac_ext
  11089. fi
  11090. ac_res=`eval echo '${'$as_ac_var'}'`
  11091. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11092. echo "${ECHO_T}$ac_res" >&6; }
  11093. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11094. cat >>confdefs.h <<_ACEOF
  11095. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11096. _ACEOF
  11097. break
  11098. fi
  11099. done
  11100. for ac_func in memcpy bcopy
  11101. do
  11102. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11103. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11104. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11105. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11106. echo $ECHO_N "(cached) $ECHO_C" >&6
  11107. else
  11108. cat >conftest.$ac_ext <<_ACEOF
  11109. /* confdefs.h. */
  11110. _ACEOF
  11111. cat confdefs.h >>conftest.$ac_ext
  11112. cat >>conftest.$ac_ext <<_ACEOF
  11113. /* end confdefs.h. */
  11114. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11115. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11116. #define $ac_func innocuous_$ac_func
  11117. /* System header to define __stub macros and hopefully few prototypes,
  11118. which can conflict with char $ac_func (); below.
  11119. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11120. <limits.h> exists even on freestanding compilers. */
  11121. #ifdef __STDC__
  11122. # include <limits.h>
  11123. #else
  11124. # include <assert.h>
  11125. #endif
  11126. #undef $ac_func
  11127. /* Override any GCC internal prototype to avoid an error.
  11128. Use char because int might match the return type of a GCC
  11129. builtin and then its argument prototype would still apply. */
  11130. #ifdef __cplusplus
  11131. extern "C"
  11132. #endif
  11133. char $ac_func ();
  11134. /* The GNU C library defines this for functions which it implements
  11135. to always fail with ENOSYS. Some functions are actually named
  11136. something starting with __ and the normal name is an alias. */
  11137. #if defined __stub_$ac_func || defined __stub___$ac_func
  11138. choke me
  11139. #endif
  11140. int
  11141. main ()
  11142. {
  11143. return $ac_func ();
  11144. ;
  11145. return 0;
  11146. }
  11147. _ACEOF
  11148. rm -f conftest.$ac_objext conftest$ac_exeext
  11149. if { (ac_try="$ac_link"
  11150. case "(($ac_try" in
  11151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11152. *) ac_try_echo=$ac_try;;
  11153. esac
  11154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11155. (eval "$ac_link") 2>conftest.er1
  11156. ac_status=$?
  11157. grep -v '^ *+' conftest.er1 >conftest.err
  11158. rm -f conftest.er1
  11159. cat conftest.err >&5
  11160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11161. (exit $ac_status); } &&
  11162. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11163. { (case "(($ac_try" in
  11164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11165. *) ac_try_echo=$ac_try;;
  11166. esac
  11167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11168. (eval "$ac_try") 2>&5
  11169. ac_status=$?
  11170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11171. (exit $ac_status); }; } &&
  11172. { ac_try='test -s conftest$ac_exeext'
  11173. { (case "(($ac_try" in
  11174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11175. *) ac_try_echo=$ac_try;;
  11176. esac
  11177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11178. (eval "$ac_try") 2>&5
  11179. ac_status=$?
  11180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11181. (exit $ac_status); }; }; then
  11182. eval "$as_ac_var=yes"
  11183. else
  11184. echo "$as_me: failed program was:" >&5
  11185. sed 's/^/| /' conftest.$ac_ext >&5
  11186. eval "$as_ac_var=no"
  11187. fi
  11188. rm -f core conftest.err conftest.$ac_objext \
  11189. conftest$ac_exeext conftest.$ac_ext
  11190. fi
  11191. ac_res=`eval echo '${'$as_ac_var'}'`
  11192. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11193. echo "${ECHO_T}$ac_res" >&6; }
  11194. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11195. cat >>confdefs.h <<_ACEOF
  11196. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11197. _ACEOF
  11198. break
  11199. fi
  11200. done
  11201. for ac_func in memmove strcmp
  11202. do
  11203. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11204. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11205. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11206. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11207. echo $ECHO_N "(cached) $ECHO_C" >&6
  11208. else
  11209. cat >conftest.$ac_ext <<_ACEOF
  11210. /* confdefs.h. */
  11211. _ACEOF
  11212. cat confdefs.h >>conftest.$ac_ext
  11213. cat >>conftest.$ac_ext <<_ACEOF
  11214. /* end confdefs.h. */
  11215. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11217. #define $ac_func innocuous_$ac_func
  11218. /* System header to define __stub macros and hopefully few prototypes,
  11219. which can conflict with char $ac_func (); below.
  11220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11221. <limits.h> exists even on freestanding compilers. */
  11222. #ifdef __STDC__
  11223. # include <limits.h>
  11224. #else
  11225. # include <assert.h>
  11226. #endif
  11227. #undef $ac_func
  11228. /* Override any GCC internal prototype to avoid an error.
  11229. Use char because int might match the return type of a GCC
  11230. builtin and then its argument prototype would still apply. */
  11231. #ifdef __cplusplus
  11232. extern "C"
  11233. #endif
  11234. char $ac_func ();
  11235. /* The GNU C library defines this for functions which it implements
  11236. to always fail with ENOSYS. Some functions are actually named
  11237. something starting with __ and the normal name is an alias. */
  11238. #if defined __stub_$ac_func || defined __stub___$ac_func
  11239. choke me
  11240. #endif
  11241. int
  11242. main ()
  11243. {
  11244. return $ac_func ();
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. rm -f conftest.$ac_objext conftest$ac_exeext
  11250. if { (ac_try="$ac_link"
  11251. case "(($ac_try" in
  11252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. *) ac_try_echo=$ac_try;;
  11254. esac
  11255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11256. (eval "$ac_link") 2>conftest.er1
  11257. ac_status=$?
  11258. grep -v '^ *+' conftest.er1 >conftest.err
  11259. rm -f conftest.er1
  11260. cat conftest.err >&5
  11261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. (exit $ac_status); } &&
  11263. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11264. { (case "(($ac_try" in
  11265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11266. *) ac_try_echo=$ac_try;;
  11267. esac
  11268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11269. (eval "$ac_try") 2>&5
  11270. ac_status=$?
  11271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11272. (exit $ac_status); }; } &&
  11273. { ac_try='test -s conftest$ac_exeext'
  11274. { (case "(($ac_try" in
  11275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11276. *) ac_try_echo=$ac_try;;
  11277. esac
  11278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11279. (eval "$ac_try") 2>&5
  11280. ac_status=$?
  11281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11282. (exit $ac_status); }; }; then
  11283. eval "$as_ac_var=yes"
  11284. else
  11285. echo "$as_me: failed program was:" >&5
  11286. sed 's/^/| /' conftest.$ac_ext >&5
  11287. eval "$as_ac_var=no"
  11288. fi
  11289. rm -f core conftest.err conftest.$ac_objext \
  11290. conftest$ac_exeext conftest.$ac_ext
  11291. fi
  11292. ac_res=`eval echo '${'$as_ac_var'}'`
  11293. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11294. echo "${ECHO_T}$ac_res" >&6; }
  11295. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11296. cat >>confdefs.h <<_ACEOF
  11297. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11298. _ACEOF
  11299. fi
  11300. done
  11301. for ac_func in closedir opendir readdir
  11302. do
  11303. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11304. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11305. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11306. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11307. echo $ECHO_N "(cached) $ECHO_C" >&6
  11308. else
  11309. cat >conftest.$ac_ext <<_ACEOF
  11310. /* confdefs.h. */
  11311. _ACEOF
  11312. cat confdefs.h >>conftest.$ac_ext
  11313. cat >>conftest.$ac_ext <<_ACEOF
  11314. /* end confdefs.h. */
  11315. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11316. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11317. #define $ac_func innocuous_$ac_func
  11318. /* System header to define __stub macros and hopefully few prototypes,
  11319. which can conflict with char $ac_func (); below.
  11320. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11321. <limits.h> exists even on freestanding compilers. */
  11322. #ifdef __STDC__
  11323. # include <limits.h>
  11324. #else
  11325. # include <assert.h>
  11326. #endif
  11327. #undef $ac_func
  11328. /* Override any GCC internal prototype to avoid an error.
  11329. Use char because int might match the return type of a GCC
  11330. builtin and then its argument prototype would still apply. */
  11331. #ifdef __cplusplus
  11332. extern "C"
  11333. #endif
  11334. char $ac_func ();
  11335. /* The GNU C library defines this for functions which it implements
  11336. to always fail with ENOSYS. Some functions are actually named
  11337. something starting with __ and the normal name is an alias. */
  11338. #if defined __stub_$ac_func || defined __stub___$ac_func
  11339. choke me
  11340. #endif
  11341. int
  11342. main ()
  11343. {
  11344. return $ac_func ();
  11345. ;
  11346. return 0;
  11347. }
  11348. _ACEOF
  11349. rm -f conftest.$ac_objext conftest$ac_exeext
  11350. if { (ac_try="$ac_link"
  11351. case "(($ac_try" in
  11352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11353. *) ac_try_echo=$ac_try;;
  11354. esac
  11355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11356. (eval "$ac_link") 2>conftest.er1
  11357. ac_status=$?
  11358. grep -v '^ *+' conftest.er1 >conftest.err
  11359. rm -f conftest.er1
  11360. cat conftest.err >&5
  11361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11362. (exit $ac_status); } &&
  11363. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11364. { (case "(($ac_try" in
  11365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11366. *) ac_try_echo=$ac_try;;
  11367. esac
  11368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11369. (eval "$ac_try") 2>&5
  11370. ac_status=$?
  11371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11372. (exit $ac_status); }; } &&
  11373. { ac_try='test -s conftest$ac_exeext'
  11374. { (case "(($ac_try" in
  11375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11376. *) ac_try_echo=$ac_try;;
  11377. esac
  11378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11379. (eval "$ac_try") 2>&5
  11380. ac_status=$?
  11381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11382. (exit $ac_status); }; }; then
  11383. eval "$as_ac_var=yes"
  11384. else
  11385. echo "$as_me: failed program was:" >&5
  11386. sed 's/^/| /' conftest.$ac_ext >&5
  11387. eval "$as_ac_var=no"
  11388. fi
  11389. rm -f core conftest.err conftest.$ac_objext \
  11390. conftest$ac_exeext conftest.$ac_ext
  11391. fi
  11392. ac_res=`eval echo '${'$as_ac_var'}'`
  11393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11394. echo "${ECHO_T}$ac_res" >&6; }
  11395. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11396. cat >>confdefs.h <<_ACEOF
  11397. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11398. _ACEOF
  11399. fi
  11400. done
  11401. # Check whether --enable-shared was given.
  11402. if test "${enable_shared+set}" = set; then
  11403. enableval=$enable_shared; p=${PACKAGE-default}
  11404. case $enableval in
  11405. yes) enable_shared=yes ;;
  11406. no) enable_shared=no ;;
  11407. *)
  11408. enable_shared=no
  11409. # Look at the argument we got. We use all the common list separators.
  11410. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11411. for pkg in $enableval; do
  11412. IFS="$lt_save_ifs"
  11413. if test "X$pkg" = "X$p"; then
  11414. enable_shared=yes
  11415. fi
  11416. done
  11417. IFS="$lt_save_ifs"
  11418. ;;
  11419. esac
  11420. else
  11421. enable_shared=yes
  11422. fi
  11423. # Check whether --enable-static was given.
  11424. if test "${enable_static+set}" = set; then
  11425. enableval=$enable_static; p=${PACKAGE-default}
  11426. case $enableval in
  11427. yes) enable_static=yes ;;
  11428. no) enable_static=no ;;
  11429. *)
  11430. enable_static=no
  11431. # Look at the argument we got. We use all the common list separators.
  11432. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11433. for pkg in $enableval; do
  11434. IFS="$lt_save_ifs"
  11435. if test "X$pkg" = "X$p"; then
  11436. enable_static=yes
  11437. fi
  11438. done
  11439. IFS="$lt_save_ifs"
  11440. ;;
  11441. esac
  11442. else
  11443. enable_static=yes
  11444. fi
  11445. # Check whether --enable-fast-install was given.
  11446. if test "${enable_fast_install+set}" = set; then
  11447. enableval=$enable_fast_install; p=${PACKAGE-default}
  11448. case $enableval in
  11449. yes) enable_fast_install=yes ;;
  11450. no) enable_fast_install=no ;;
  11451. *)
  11452. enable_fast_install=no
  11453. # Look at the argument we got. We use all the common list separators.
  11454. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11455. for pkg in $enableval; do
  11456. IFS="$lt_save_ifs"
  11457. if test "X$pkg" = "X$p"; then
  11458. enable_fast_install=yes
  11459. fi
  11460. done
  11461. IFS="$lt_save_ifs"
  11462. ;;
  11463. esac
  11464. else
  11465. enable_fast_install=yes
  11466. fi
  11467. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  11468. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  11469. if test "${lt_cv_path_SED+set}" = set; then
  11470. echo $ECHO_N "(cached) $ECHO_C" >&6
  11471. else
  11472. # Loop through the user's path and test for sed and gsed.
  11473. # Then use that list of sed's as ones to test for truncation.
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. test -z "$as_dir" && as_dir=.
  11479. for lt_ac_prog in sed gsed; do
  11480. for ac_exec_ext in '' $ac_executable_extensions; do
  11481. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11482. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11483. fi
  11484. done
  11485. done
  11486. done
  11487. lt_ac_max=0
  11488. lt_ac_count=0
  11489. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11490. # along with /bin/sed that truncates output.
  11491. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11492. test ! -f $lt_ac_sed && continue
  11493. cat /dev/null > conftest.in
  11494. lt_ac_count=0
  11495. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11496. # Check for GNU sed and select it if it is found.
  11497. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11498. lt_cv_path_SED=$lt_ac_sed
  11499. break
  11500. fi
  11501. while true; do
  11502. cat conftest.in conftest.in >conftest.tmp
  11503. mv conftest.tmp conftest.in
  11504. cp conftest.in conftest.nl
  11505. echo >>conftest.nl
  11506. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11507. cmp -s conftest.out conftest.nl || break
  11508. # 10000 chars as input seems more than enough
  11509. test $lt_ac_count -gt 10 && break
  11510. lt_ac_count=`expr $lt_ac_count + 1`
  11511. if test $lt_ac_count -gt $lt_ac_max; then
  11512. lt_ac_max=$lt_ac_count
  11513. lt_cv_path_SED=$lt_ac_sed
  11514. fi
  11515. done
  11516. done
  11517. fi
  11518. SED=$lt_cv_path_SED
  11519. { echo "$as_me:$LINENO: result: $SED" >&5
  11520. echo "${ECHO_T}$SED" >&6; }
  11521. # Check whether --with-gnu-ld was given.
  11522. if test "${with_gnu_ld+set}" = set; then
  11523. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11524. else
  11525. with_gnu_ld=no
  11526. fi
  11527. ac_prog=ld
  11528. if test "$GCC" = yes; then
  11529. # Check if gcc -print-prog-name=ld gives a path.
  11530. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11531. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11532. case $host in
  11533. *-*-mingw*)
  11534. # gcc leaves a trailing carriage return which upsets mingw
  11535. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11536. *)
  11537. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11538. esac
  11539. case $ac_prog in
  11540. # Accept absolute paths.
  11541. [\\/]* | ?:[\\/]*)
  11542. re_direlt='/[^/][^/]*/\.\./'
  11543. # Canonicalize the pathname of ld
  11544. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  11545. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11546. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  11547. done
  11548. test -z "$LD" && LD="$ac_prog"
  11549. ;;
  11550. "")
  11551. # If it fails, then pretend we aren't using GCC.
  11552. ac_prog=ld
  11553. ;;
  11554. *)
  11555. # If it is relative, then search for the first ld in PATH.
  11556. with_gnu_ld=unknown
  11557. ;;
  11558. esac
  11559. elif test "$with_gnu_ld" = yes; then
  11560. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11561. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11562. else
  11563. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11564. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11565. fi
  11566. if test "${lt_cv_path_LD+set}" = set; then
  11567. echo $ECHO_N "(cached) $ECHO_C" >&6
  11568. else
  11569. if test -z "$LD"; then
  11570. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11571. for ac_dir in $PATH; do
  11572. IFS="$lt_save_ifs"
  11573. test -z "$ac_dir" && ac_dir=.
  11574. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11575. lt_cv_path_LD="$ac_dir/$ac_prog"
  11576. # Check to see if the program is GNU ld. I'd rather use --version,
  11577. # but apparently some variants of GNU ld only accept -v.
  11578. # Break only if it was the GNU/non-GNU ld that we prefer.
  11579. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11580. *GNU* | *'with BFD'*)
  11581. test "$with_gnu_ld" != no && break
  11582. ;;
  11583. *)
  11584. test "$with_gnu_ld" != yes && break
  11585. ;;
  11586. esac
  11587. fi
  11588. done
  11589. IFS="$lt_save_ifs"
  11590. else
  11591. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11592. fi
  11593. fi
  11594. LD="$lt_cv_path_LD"
  11595. if test -n "$LD"; then
  11596. { echo "$as_me:$LINENO: result: $LD" >&5
  11597. echo "${ECHO_T}$LD" >&6; }
  11598. else
  11599. { echo "$as_me:$LINENO: result: no" >&5
  11600. echo "${ECHO_T}no" >&6; }
  11601. fi
  11602. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11603. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11604. { (exit 1); exit 1; }; }
  11605. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11606. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11607. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11608. echo $ECHO_N "(cached) $ECHO_C" >&6
  11609. else
  11610. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11611. case `$LD -v 2>&1 </dev/null` in
  11612. *GNU* | *'with BFD'*)
  11613. lt_cv_prog_gnu_ld=yes
  11614. ;;
  11615. *)
  11616. lt_cv_prog_gnu_ld=no
  11617. ;;
  11618. esac
  11619. fi
  11620. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11621. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11622. with_gnu_ld=$lt_cv_prog_gnu_ld
  11623. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  11624. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  11625. if test "${lt_cv_ld_reload_flag+set}" = set; then
  11626. echo $ECHO_N "(cached) $ECHO_C" >&6
  11627. else
  11628. lt_cv_ld_reload_flag='-r'
  11629. fi
  11630. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  11631. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  11632. reload_flag=$lt_cv_ld_reload_flag
  11633. case $reload_flag in
  11634. "" | " "*) ;;
  11635. *) reload_flag=" $reload_flag" ;;
  11636. esac
  11637. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11638. case $host_os in
  11639. darwin*)
  11640. if test "$GCC" = yes; then
  11641. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
  11642. else
  11643. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11644. fi
  11645. ;;
  11646. esac
  11647. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  11648. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  11649. if test "${lt_cv_deplibs_check_method+set}" = set; then
  11650. echo $ECHO_N "(cached) $ECHO_C" >&6
  11651. else
  11652. lt_cv_file_magic_cmd='$MAGIC_CMD'
  11653. lt_cv_file_magic_test_file=
  11654. lt_cv_deplibs_check_method='unknown'
  11655. # Need to set the preceding variable on all platforms that support
  11656. # interlibrary dependencies.
  11657. # 'none' -- dependencies not supported.
  11658. # `unknown' -- same as none, but documents that we really don't know.
  11659. # 'pass_all' -- all dependencies passed with no checks.
  11660. # 'test_compile' -- check by making test program.
  11661. # 'file_magic [[regex]]' -- check by looking for files in library path
  11662. # which responds to the $file_magic_cmd with a given extended regex.
  11663. # If you have `file' or equivalent on your system and you're not sure
  11664. # whether `pass_all' will *always* work, you probably want this one.
  11665. case $host_os in
  11666. aix4* | aix5*)
  11667. lt_cv_deplibs_check_method=pass_all
  11668. ;;
  11669. beos*)
  11670. lt_cv_deplibs_check_method=pass_all
  11671. ;;
  11672. bsdi[45]*)
  11673. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  11674. lt_cv_file_magic_cmd='/usr/bin/file -L'
  11675. lt_cv_file_magic_test_file=/shlib/libc.so
  11676. ;;
  11677. cygwin*)
  11678. # func_win32_libid is a shell function defined in ltmain.sh
  11679. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  11680. lt_cv_file_magic_cmd='func_win32_libid'
  11681. ;;
  11682. mingw* | pw32*)
  11683. # Base MSYS/MinGW do not provide the 'file' command needed by
  11684. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  11685. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  11686. lt_cv_file_magic_cmd='$OBJDUMP -f'
  11687. ;;
  11688. darwin* | rhapsody*)
  11689. lt_cv_deplibs_check_method=pass_all
  11690. ;;
  11691. freebsd* | kfreebsd*-gnu | dragonfly*)
  11692. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  11693. case $host_cpu in
  11694. i*86 )
  11695. # Not sure whether the presence of OpenBSD here was a mistake.
  11696. # Let's accept both of them until this is cleared up.
  11697. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  11698. lt_cv_file_magic_cmd=/usr/bin/file
  11699. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  11700. ;;
  11701. esac
  11702. else
  11703. lt_cv_deplibs_check_method=pass_all
  11704. fi
  11705. ;;
  11706. gnu*)
  11707. lt_cv_deplibs_check_method=pass_all
  11708. ;;
  11709. hpux10.20* | hpux11*)
  11710. lt_cv_file_magic_cmd=/usr/bin/file
  11711. case $host_cpu in
  11712. ia64*)
  11713. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  11714. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  11715. ;;
  11716. hppa*64*)
  11717. 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]'
  11718. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  11719. ;;
  11720. *)
  11721. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  11722. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  11723. ;;
  11724. esac
  11725. ;;
  11726. interix3*)
  11727. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  11728. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  11729. ;;
  11730. irix5* | irix6* | nonstopux*)
  11731. case $LD in
  11732. *-32|*"-32 ") libmagic=32-bit;;
  11733. *-n32|*"-n32 ") libmagic=N32;;
  11734. *-64|*"-64 ") libmagic=64-bit;;
  11735. *) libmagic=never-match;;
  11736. esac
  11737. lt_cv_deplibs_check_method=pass_all
  11738. ;;
  11739. # This must be Linux ELF.
  11740. linux*)
  11741. lt_cv_deplibs_check_method=pass_all
  11742. ;;
  11743. netbsd*)
  11744. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  11745. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11746. else
  11747. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  11748. fi
  11749. ;;
  11750. newos6*)
  11751. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  11752. lt_cv_file_magic_cmd=/usr/bin/file
  11753. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  11754. ;;
  11755. nto-qnx*)
  11756. lt_cv_deplibs_check_method=unknown
  11757. ;;
  11758. openbsd*)
  11759. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11760. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  11761. else
  11762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11763. fi
  11764. ;;
  11765. osf3* | osf4* | osf5*)
  11766. lt_cv_deplibs_check_method=pass_all
  11767. ;;
  11768. solaris*)
  11769. lt_cv_deplibs_check_method=pass_all
  11770. ;;
  11771. sysv4 | sysv4.3*)
  11772. case $host_vendor in
  11773. motorola)
  11774. 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]'
  11775. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  11776. ;;
  11777. ncr)
  11778. lt_cv_deplibs_check_method=pass_all
  11779. ;;
  11780. sequent)
  11781. lt_cv_file_magic_cmd='/bin/file'
  11782. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  11783. ;;
  11784. sni)
  11785. lt_cv_file_magic_cmd='/bin/file'
  11786. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  11787. lt_cv_file_magic_test_file=/lib/libc.so
  11788. ;;
  11789. siemens)
  11790. lt_cv_deplibs_check_method=pass_all
  11791. ;;
  11792. pc)
  11793. lt_cv_deplibs_check_method=pass_all
  11794. ;;
  11795. esac
  11796. ;;
  11797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11798. lt_cv_deplibs_check_method=pass_all
  11799. ;;
  11800. esac
  11801. fi
  11802. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  11803. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  11804. file_magic_cmd=$lt_cv_file_magic_cmd
  11805. deplibs_check_method=$lt_cv_deplibs_check_method
  11806. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  11807. # If no C compiler was specified, use CC.
  11808. LTCC=${LTCC-"$CC"}
  11809. # If no C compiler flags were specified, use CFLAGS.
  11810. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11811. # Allow CC to be a program name with arguments.
  11812. compiler=$CC
  11813. # Check whether --enable-libtool-lock was given.
  11814. if test "${enable_libtool_lock+set}" = set; then
  11815. enableval=$enable_libtool_lock;
  11816. fi
  11817. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11818. # Some flags need to be propagated to the compiler or linker for good
  11819. # libtool support.
  11820. case $host in
  11821. ia64-*-hpux*)
  11822. # Find out which ABI we are using.
  11823. echo 'int i;' > conftest.$ac_ext
  11824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11825. (eval $ac_compile) 2>&5
  11826. ac_status=$?
  11827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11828. (exit $ac_status); }; then
  11829. case `/usr/bin/file conftest.$ac_objext` in
  11830. *ELF-32*)
  11831. HPUX_IA64_MODE="32"
  11832. ;;
  11833. *ELF-64*)
  11834. HPUX_IA64_MODE="64"
  11835. ;;
  11836. esac
  11837. fi
  11838. rm -rf conftest*
  11839. ;;
  11840. *-*-irix6*)
  11841. # Find out which ABI we are using.
  11842. echo '#line 13135 "configure"' > conftest.$ac_ext
  11843. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11844. (eval $ac_compile) 2>&5
  11845. ac_status=$?
  11846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11847. (exit $ac_status); }; then
  11848. if test "$lt_cv_prog_gnu_ld" = yes; then
  11849. case `/usr/bin/file conftest.$ac_objext` in
  11850. *32-bit*)
  11851. LD="${LD-ld} -melf32bsmip"
  11852. ;;
  11853. *N32*)
  11854. LD="${LD-ld} -melf32bmipn32"
  11855. ;;
  11856. *64-bit*)
  11857. LD="${LD-ld} -melf64bmip"
  11858. ;;
  11859. esac
  11860. else
  11861. case `/usr/bin/file conftest.$ac_objext` in
  11862. *32-bit*)
  11863. LD="${LD-ld} -32"
  11864. ;;
  11865. *N32*)
  11866. LD="${LD-ld} -n32"
  11867. ;;
  11868. *64-bit*)
  11869. LD="${LD-ld} -64"
  11870. ;;
  11871. esac
  11872. fi
  11873. fi
  11874. rm -rf conftest*
  11875. ;;
  11876. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  11877. # Find out which ABI we are using.
  11878. echo 'int i;' > conftest.$ac_ext
  11879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11880. (eval $ac_compile) 2>&5
  11881. ac_status=$?
  11882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11883. (exit $ac_status); }; then
  11884. case `/usr/bin/file conftest.o` in
  11885. *32-bit*)
  11886. case $host in
  11887. x86_64-*linux*)
  11888. LD="${LD-ld} -m elf_i386"
  11889. ;;
  11890. ppc64-*linux*|powerpc64-*linux*)
  11891. LD="${LD-ld} -m elf32ppclinux"
  11892. ;;
  11893. s390x-*linux*)
  11894. LD="${LD-ld} -m elf_s390"
  11895. ;;
  11896. sparc64-*linux*)
  11897. LD="${LD-ld} -m elf32_sparc"
  11898. ;;
  11899. esac
  11900. ;;
  11901. *64-bit*)
  11902. case $host in
  11903. x86_64-*linux*)
  11904. LD="${LD-ld} -m elf_x86_64"
  11905. ;;
  11906. ppc*-*linux*|powerpc*-*linux*)
  11907. LD="${LD-ld} -m elf64ppc"
  11908. ;;
  11909. s390*-*linux*)
  11910. LD="${LD-ld} -m elf64_s390"
  11911. ;;
  11912. sparc*-*linux*)
  11913. LD="${LD-ld} -m elf64_sparc"
  11914. ;;
  11915. esac
  11916. ;;
  11917. esac
  11918. fi
  11919. rm -rf conftest*
  11920. ;;
  11921. *-*-sco3.2v5*)
  11922. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11923. SAVE_CFLAGS="$CFLAGS"
  11924. CFLAGS="$CFLAGS -belf"
  11925. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  11926. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  11927. if test "${lt_cv_cc_needs_belf+set}" = set; then
  11928. echo $ECHO_N "(cached) $ECHO_C" >&6
  11929. else
  11930. ac_ext=c
  11931. ac_cpp='$CPP $CPPFLAGS'
  11932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11935. cat >conftest.$ac_ext <<_ACEOF
  11936. /* confdefs.h. */
  11937. _ACEOF
  11938. cat confdefs.h >>conftest.$ac_ext
  11939. cat >>conftest.$ac_ext <<_ACEOF
  11940. /* end confdefs.h. */
  11941. int
  11942. main ()
  11943. {
  11944. ;
  11945. return 0;
  11946. }
  11947. _ACEOF
  11948. rm -f conftest.$ac_objext conftest$ac_exeext
  11949. if { (ac_try="$ac_link"
  11950. case "(($ac_try" in
  11951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11952. *) ac_try_echo=$ac_try;;
  11953. esac
  11954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11955. (eval "$ac_link") 2>conftest.er1
  11956. ac_status=$?
  11957. grep -v '^ *+' conftest.er1 >conftest.err
  11958. rm -f conftest.er1
  11959. cat conftest.err >&5
  11960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11961. (exit $ac_status); } &&
  11962. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11963. { (case "(($ac_try" in
  11964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11965. *) ac_try_echo=$ac_try;;
  11966. esac
  11967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11968. (eval "$ac_try") 2>&5
  11969. ac_status=$?
  11970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11971. (exit $ac_status); }; } &&
  11972. { ac_try='test -s conftest$ac_exeext'
  11973. { (case "(($ac_try" in
  11974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11975. *) ac_try_echo=$ac_try;;
  11976. esac
  11977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11978. (eval "$ac_try") 2>&5
  11979. ac_status=$?
  11980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11981. (exit $ac_status); }; }; then
  11982. lt_cv_cc_needs_belf=yes
  11983. else
  11984. echo "$as_me: failed program was:" >&5
  11985. sed 's/^/| /' conftest.$ac_ext >&5
  11986. lt_cv_cc_needs_belf=no
  11987. fi
  11988. rm -f core conftest.err conftest.$ac_objext \
  11989. conftest$ac_exeext conftest.$ac_ext
  11990. ac_ext=c
  11991. ac_cpp='$CPP $CPPFLAGS'
  11992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11995. fi
  11996. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  11997. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  11998. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11999. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  12000. CFLAGS="$SAVE_CFLAGS"
  12001. fi
  12002. ;;
  12003. sparc*-*solaris*)
  12004. # Find out which ABI we are using.
  12005. echo 'int i;' > conftest.$ac_ext
  12006. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12007. (eval $ac_compile) 2>&5
  12008. ac_status=$?
  12009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12010. (exit $ac_status); }; then
  12011. case `/usr/bin/file conftest.o` in
  12012. *64-bit*)
  12013. case $lt_cv_prog_gnu_ld in
  12014. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  12015. *) LD="${LD-ld} -64" ;;
  12016. esac
  12017. ;;
  12018. esac
  12019. fi
  12020. rm -rf conftest*
  12021. ;;
  12022. esac
  12023. need_locks="$enable_libtool_lock"
  12024. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12025. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12026. (test "X$CXX" != "Xg++"))) ; then
  12027. ac_ext=cpp
  12028. ac_cpp='$CXXCPP $CPPFLAGS'
  12029. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12030. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12031. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12032. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  12033. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  12034. if test -z "$CXXCPP"; then
  12035. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  12036. echo $ECHO_N "(cached) $ECHO_C" >&6
  12037. else
  12038. # Double quotes because CXXCPP needs to be expanded
  12039. for CXXCPP in "$CXX -E" "/lib/cpp"
  12040. do
  12041. ac_preproc_ok=false
  12042. for ac_cxx_preproc_warn_flag in '' yes
  12043. do
  12044. # Use a header file that comes with gcc, so configuring glibc
  12045. # with a fresh cross-compiler works.
  12046. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12047. # <limits.h> exists even on freestanding compilers.
  12048. # On the NeXT, cc -E runs the code through the compiler's parser,
  12049. # not just through cpp. "Syntax error" is here to catch this case.
  12050. cat >conftest.$ac_ext <<_ACEOF
  12051. /* confdefs.h. */
  12052. _ACEOF
  12053. cat confdefs.h >>conftest.$ac_ext
  12054. cat >>conftest.$ac_ext <<_ACEOF
  12055. /* end confdefs.h. */
  12056. #ifdef __STDC__
  12057. # include <limits.h>
  12058. #else
  12059. # include <assert.h>
  12060. #endif
  12061. Syntax error
  12062. _ACEOF
  12063. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12064. case "(($ac_try" in
  12065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12066. *) ac_try_echo=$ac_try;;
  12067. esac
  12068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12070. ac_status=$?
  12071. grep -v '^ *+' conftest.er1 >conftest.err
  12072. rm -f conftest.er1
  12073. cat conftest.err >&5
  12074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12075. (exit $ac_status); } >/dev/null; then
  12076. if test -s conftest.err; then
  12077. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12078. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12079. else
  12080. ac_cpp_err=
  12081. fi
  12082. else
  12083. ac_cpp_err=yes
  12084. fi
  12085. if test -z "$ac_cpp_err"; then
  12086. :
  12087. else
  12088. echo "$as_me: failed program was:" >&5
  12089. sed 's/^/| /' conftest.$ac_ext >&5
  12090. # Broken: fails on valid input.
  12091. continue
  12092. fi
  12093. rm -f conftest.err conftest.$ac_ext
  12094. # OK, works on sane cases. Now check whether nonexistent headers
  12095. # can be detected and how.
  12096. cat >conftest.$ac_ext <<_ACEOF
  12097. /* confdefs.h. */
  12098. _ACEOF
  12099. cat confdefs.h >>conftest.$ac_ext
  12100. cat >>conftest.$ac_ext <<_ACEOF
  12101. /* end confdefs.h. */
  12102. #include <ac_nonexistent.h>
  12103. _ACEOF
  12104. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12105. case "(($ac_try" in
  12106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12107. *) ac_try_echo=$ac_try;;
  12108. esac
  12109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12110. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12111. ac_status=$?
  12112. grep -v '^ *+' conftest.er1 >conftest.err
  12113. rm -f conftest.er1
  12114. cat conftest.err >&5
  12115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12116. (exit $ac_status); } >/dev/null; then
  12117. if test -s conftest.err; then
  12118. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12119. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12120. else
  12121. ac_cpp_err=
  12122. fi
  12123. else
  12124. ac_cpp_err=yes
  12125. fi
  12126. if test -z "$ac_cpp_err"; then
  12127. # Broken: success on invalid input.
  12128. continue
  12129. else
  12130. echo "$as_me: failed program was:" >&5
  12131. sed 's/^/| /' conftest.$ac_ext >&5
  12132. # Passes both tests.
  12133. ac_preproc_ok=:
  12134. break
  12135. fi
  12136. rm -f conftest.err conftest.$ac_ext
  12137. done
  12138. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12139. rm -f conftest.err conftest.$ac_ext
  12140. if $ac_preproc_ok; then
  12141. break
  12142. fi
  12143. done
  12144. ac_cv_prog_CXXCPP=$CXXCPP
  12145. fi
  12146. CXXCPP=$ac_cv_prog_CXXCPP
  12147. else
  12148. ac_cv_prog_CXXCPP=$CXXCPP
  12149. fi
  12150. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  12151. echo "${ECHO_T}$CXXCPP" >&6; }
  12152. ac_preproc_ok=false
  12153. for ac_cxx_preproc_warn_flag in '' yes
  12154. do
  12155. # Use a header file that comes with gcc, so configuring glibc
  12156. # with a fresh cross-compiler works.
  12157. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12158. # <limits.h> exists even on freestanding compilers.
  12159. # On the NeXT, cc -E runs the code through the compiler's parser,
  12160. # not just through cpp. "Syntax error" is here to catch this case.
  12161. cat >conftest.$ac_ext <<_ACEOF
  12162. /* confdefs.h. */
  12163. _ACEOF
  12164. cat confdefs.h >>conftest.$ac_ext
  12165. cat >>conftest.$ac_ext <<_ACEOF
  12166. /* end confdefs.h. */
  12167. #ifdef __STDC__
  12168. # include <limits.h>
  12169. #else
  12170. # include <assert.h>
  12171. #endif
  12172. Syntax error
  12173. _ACEOF
  12174. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12175. case "(($ac_try" in
  12176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12177. *) ac_try_echo=$ac_try;;
  12178. esac
  12179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12180. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12181. ac_status=$?
  12182. grep -v '^ *+' conftest.er1 >conftest.err
  12183. rm -f conftest.er1
  12184. cat conftest.err >&5
  12185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12186. (exit $ac_status); } >/dev/null; then
  12187. if test -s conftest.err; then
  12188. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12189. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12190. else
  12191. ac_cpp_err=
  12192. fi
  12193. else
  12194. ac_cpp_err=yes
  12195. fi
  12196. if test -z "$ac_cpp_err"; then
  12197. :
  12198. else
  12199. echo "$as_me: failed program was:" >&5
  12200. sed 's/^/| /' conftest.$ac_ext >&5
  12201. # Broken: fails on valid input.
  12202. continue
  12203. fi
  12204. rm -f conftest.err conftest.$ac_ext
  12205. # OK, works on sane cases. Now check whether nonexistent headers
  12206. # can be detected and how.
  12207. cat >conftest.$ac_ext <<_ACEOF
  12208. /* confdefs.h. */
  12209. _ACEOF
  12210. cat confdefs.h >>conftest.$ac_ext
  12211. cat >>conftest.$ac_ext <<_ACEOF
  12212. /* end confdefs.h. */
  12213. #include <ac_nonexistent.h>
  12214. _ACEOF
  12215. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12216. case "(($ac_try" in
  12217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12218. *) ac_try_echo=$ac_try;;
  12219. esac
  12220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12221. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12222. ac_status=$?
  12223. grep -v '^ *+' conftest.er1 >conftest.err
  12224. rm -f conftest.er1
  12225. cat conftest.err >&5
  12226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12227. (exit $ac_status); } >/dev/null; then
  12228. if test -s conftest.err; then
  12229. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12230. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12231. else
  12232. ac_cpp_err=
  12233. fi
  12234. else
  12235. ac_cpp_err=yes
  12236. fi
  12237. if test -z "$ac_cpp_err"; then
  12238. # Broken: success on invalid input.
  12239. continue
  12240. else
  12241. echo "$as_me: failed program was:" >&5
  12242. sed 's/^/| /' conftest.$ac_ext >&5
  12243. # Passes both tests.
  12244. ac_preproc_ok=:
  12245. break
  12246. fi
  12247. rm -f conftest.err conftest.$ac_ext
  12248. done
  12249. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12250. rm -f conftest.err conftest.$ac_ext
  12251. if $ac_preproc_ok; then
  12252. :
  12253. else
  12254. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12255. See \`config.log' for more details." >&5
  12256. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12257. See \`config.log' for more details." >&2;}
  12258. { (exit 1); exit 1; }; }
  12259. fi
  12260. ac_ext=cpp
  12261. ac_cpp='$CXXCPP $CPPFLAGS'
  12262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12265. fi
  12266. ac_ext=f
  12267. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12268. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12269. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12270. if test -n "$ac_tool_prefix"; then
  12271. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  12272. do
  12273. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12275. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12277. if test "${ac_cv_prog_F77+set}" = set; then
  12278. echo $ECHO_N "(cached) $ECHO_C" >&6
  12279. else
  12280. if test -n "$F77"; then
  12281. ac_cv_prog_F77="$F77" # Let the user override the test.
  12282. else
  12283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12284. for as_dir in $PATH
  12285. do
  12286. IFS=$as_save_IFS
  12287. test -z "$as_dir" && as_dir=.
  12288. for ac_exec_ext in '' $ac_executable_extensions; do
  12289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12290. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  12291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12292. break 2
  12293. fi
  12294. done
  12295. done
  12296. IFS=$as_save_IFS
  12297. fi
  12298. fi
  12299. F77=$ac_cv_prog_F77
  12300. if test -n "$F77"; then
  12301. { echo "$as_me:$LINENO: result: $F77" >&5
  12302. echo "${ECHO_T}$F77" >&6; }
  12303. else
  12304. { echo "$as_me:$LINENO: result: no" >&5
  12305. echo "${ECHO_T}no" >&6; }
  12306. fi
  12307. test -n "$F77" && break
  12308. done
  12309. fi
  12310. if test -z "$F77"; then
  12311. ac_ct_F77=$F77
  12312. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  12313. do
  12314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12315. set dummy $ac_prog; ac_word=$2
  12316. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12317. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12318. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  12319. echo $ECHO_N "(cached) $ECHO_C" >&6
  12320. else
  12321. if test -n "$ac_ct_F77"; then
  12322. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  12323. else
  12324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12325. for as_dir in $PATH
  12326. do
  12327. IFS=$as_save_IFS
  12328. test -z "$as_dir" && as_dir=.
  12329. for ac_exec_ext in '' $ac_executable_extensions; do
  12330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12331. ac_cv_prog_ac_ct_F77="$ac_prog"
  12332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12333. break 2
  12334. fi
  12335. done
  12336. done
  12337. IFS=$as_save_IFS
  12338. fi
  12339. fi
  12340. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  12341. if test -n "$ac_ct_F77"; then
  12342. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  12343. echo "${ECHO_T}$ac_ct_F77" >&6; }
  12344. else
  12345. { echo "$as_me:$LINENO: result: no" >&5
  12346. echo "${ECHO_T}no" >&6; }
  12347. fi
  12348. test -n "$ac_ct_F77" && break
  12349. done
  12350. if test "x$ac_ct_F77" = x; then
  12351. F77=""
  12352. else
  12353. case $cross_compiling:$ac_tool_warned in
  12354. yes:)
  12355. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12356. whose name does not start with the host triplet. If you think this
  12357. configuration is useful to you, please write to autoconf@gnu.org." >&5
  12358. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12359. whose name does not start with the host triplet. If you think this
  12360. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12361. ac_tool_warned=yes ;;
  12362. esac
  12363. F77=$ac_ct_F77
  12364. fi
  12365. fi
  12366. # Provide some information about the compiler.
  12367. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  12368. ac_compiler=`set X $ac_compile; echo $2`
  12369. { (ac_try="$ac_compiler --version >&5"
  12370. case "(($ac_try" in
  12371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12372. *) ac_try_echo=$ac_try;;
  12373. esac
  12374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12375. (eval "$ac_compiler --version >&5") 2>&5
  12376. ac_status=$?
  12377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12378. (exit $ac_status); }
  12379. { (ac_try="$ac_compiler -v >&5"
  12380. case "(($ac_try" in
  12381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12382. *) ac_try_echo=$ac_try;;
  12383. esac
  12384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12385. (eval "$ac_compiler -v >&5") 2>&5
  12386. ac_status=$?
  12387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12388. (exit $ac_status); }
  12389. { (ac_try="$ac_compiler -V >&5"
  12390. case "(($ac_try" in
  12391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12392. *) ac_try_echo=$ac_try;;
  12393. esac
  12394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12395. (eval "$ac_compiler -V >&5") 2>&5
  12396. ac_status=$?
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); }
  12399. rm -f a.out
  12400. # If we don't use `.F' as extension, the preprocessor is not run on the
  12401. # input file. (Note that this only needs to work for GNU compilers.)
  12402. ac_save_ext=$ac_ext
  12403. ac_ext=F
  12404. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  12405. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  12406. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  12407. echo $ECHO_N "(cached) $ECHO_C" >&6
  12408. else
  12409. cat >conftest.$ac_ext <<_ACEOF
  12410. program main
  12411. #ifndef __GNUC__
  12412. choke me
  12413. #endif
  12414. end
  12415. _ACEOF
  12416. rm -f conftest.$ac_objext
  12417. if { (ac_try="$ac_compile"
  12418. case "(($ac_try" in
  12419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12420. *) ac_try_echo=$ac_try;;
  12421. esac
  12422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12423. (eval "$ac_compile") 2>conftest.er1
  12424. ac_status=$?
  12425. grep -v '^ *+' conftest.er1 >conftest.err
  12426. rm -f conftest.er1
  12427. cat conftest.err >&5
  12428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12429. (exit $ac_status); } &&
  12430. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12431. { (case "(($ac_try" in
  12432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12433. *) ac_try_echo=$ac_try;;
  12434. esac
  12435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12436. (eval "$ac_try") 2>&5
  12437. ac_status=$?
  12438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12439. (exit $ac_status); }; } &&
  12440. { ac_try='test -s conftest.$ac_objext'
  12441. { (case "(($ac_try" in
  12442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12443. *) ac_try_echo=$ac_try;;
  12444. esac
  12445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12446. (eval "$ac_try") 2>&5
  12447. ac_status=$?
  12448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12449. (exit $ac_status); }; }; then
  12450. ac_compiler_gnu=yes
  12451. else
  12452. echo "$as_me: failed program was:" >&5
  12453. sed 's/^/| /' conftest.$ac_ext >&5
  12454. ac_compiler_gnu=no
  12455. fi
  12456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12457. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  12458. fi
  12459. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  12460. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  12461. ac_ext=$ac_save_ext
  12462. ac_test_FFLAGS=${FFLAGS+set}
  12463. ac_save_FFLAGS=$FFLAGS
  12464. FFLAGS=
  12465. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  12466. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  12467. if test "${ac_cv_prog_f77_g+set}" = set; then
  12468. echo $ECHO_N "(cached) $ECHO_C" >&6
  12469. else
  12470. FFLAGS=-g
  12471. cat >conftest.$ac_ext <<_ACEOF
  12472. program main
  12473. end
  12474. _ACEOF
  12475. rm -f conftest.$ac_objext
  12476. if { (ac_try="$ac_compile"
  12477. case "(($ac_try" in
  12478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12479. *) ac_try_echo=$ac_try;;
  12480. esac
  12481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12482. (eval "$ac_compile") 2>conftest.er1
  12483. ac_status=$?
  12484. grep -v '^ *+' conftest.er1 >conftest.err
  12485. rm -f conftest.er1
  12486. cat conftest.err >&5
  12487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12488. (exit $ac_status); } &&
  12489. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12490. { (case "(($ac_try" in
  12491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12492. *) ac_try_echo=$ac_try;;
  12493. esac
  12494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12495. (eval "$ac_try") 2>&5
  12496. ac_status=$?
  12497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12498. (exit $ac_status); }; } &&
  12499. { ac_try='test -s conftest.$ac_objext'
  12500. { (case "(($ac_try" in
  12501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12502. *) ac_try_echo=$ac_try;;
  12503. esac
  12504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12505. (eval "$ac_try") 2>&5
  12506. ac_status=$?
  12507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12508. (exit $ac_status); }; }; then
  12509. ac_cv_prog_f77_g=yes
  12510. else
  12511. echo "$as_me: failed program was:" >&5
  12512. sed 's/^/| /' conftest.$ac_ext >&5
  12513. ac_cv_prog_f77_g=no
  12514. fi
  12515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12516. fi
  12517. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  12518. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  12519. if test "$ac_test_FFLAGS" = set; then
  12520. FFLAGS=$ac_save_FFLAGS
  12521. elif test $ac_cv_prog_f77_g = yes; then
  12522. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12523. FFLAGS="-g -O2"
  12524. else
  12525. FFLAGS="-g"
  12526. fi
  12527. else
  12528. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12529. FFLAGS="-O2"
  12530. else
  12531. FFLAGS=
  12532. fi
  12533. fi
  12534. G77=`test $ac_compiler_gnu = yes && echo yes`
  12535. ac_ext=c
  12536. ac_cpp='$CPP $CPPFLAGS'
  12537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12540. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  12541. # find the maximum length of command line arguments
  12542. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  12543. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  12544. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  12545. echo $ECHO_N "(cached) $ECHO_C" >&6
  12546. else
  12547. i=0
  12548. teststring="ABCD"
  12549. case $build_os in
  12550. msdosdjgpp*)
  12551. # On DJGPP, this test can blow up pretty badly due to problems in libc
  12552. # (any single argument exceeding 2000 bytes causes a buffer overrun
  12553. # during glob expansion). Even if it were fixed, the result of this
  12554. # check would be larger than it should be.
  12555. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  12556. ;;
  12557. gnu*)
  12558. # Under GNU Hurd, this test is not required because there is
  12559. # no limit to the length of command line arguments.
  12560. # Libtool will interpret -1 as no limit whatsoever
  12561. lt_cv_sys_max_cmd_len=-1;
  12562. ;;
  12563. cygwin* | mingw*)
  12564. # On Win9x/ME, this test blows up -- it succeeds, but takes
  12565. # about 5 minutes as the teststring grows exponentially.
  12566. # Worse, since 9x/ME are not pre-emptively multitasking,
  12567. # you end up with a "frozen" computer, even though with patience
  12568. # the test eventually succeeds (with a max line length of 256k).
  12569. # Instead, let's just punt: use the minimum linelength reported by
  12570. # all of the supported platforms: 8192 (on NT/2K/XP).
  12571. lt_cv_sys_max_cmd_len=8192;
  12572. ;;
  12573. amigaos*)
  12574. # On AmigaOS with pdksh, this test takes hours, literally.
  12575. # So we just punt and use a minimum line length of 8192.
  12576. lt_cv_sys_max_cmd_len=8192;
  12577. ;;
  12578. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  12579. # This has been around since 386BSD, at least. Likely further.
  12580. if test -x /sbin/sysctl; then
  12581. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  12582. elif test -x /usr/sbin/sysctl; then
  12583. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  12584. else
  12585. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  12586. fi
  12587. # And add a safety zone
  12588. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  12589. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  12590. ;;
  12591. interix*)
  12592. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  12593. lt_cv_sys_max_cmd_len=196608
  12594. ;;
  12595. osf*)
  12596. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  12597. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  12598. # nice to cause kernel panics so lets avoid the loop below.
  12599. # First set a reasonable default.
  12600. lt_cv_sys_max_cmd_len=16384
  12601. #
  12602. if test -x /sbin/sysconfig; then
  12603. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  12604. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  12605. esac
  12606. fi
  12607. ;;
  12608. sco3.2v5*)
  12609. lt_cv_sys_max_cmd_len=102400
  12610. ;;
  12611. sysv5* | sco5v6* | sysv4.2uw2*)
  12612. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  12613. if test -n "$kargmax"; then
  12614. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  12615. else
  12616. lt_cv_sys_max_cmd_len=32768
  12617. fi
  12618. ;;
  12619. *)
  12620. # If test is not a shell built-in, we'll probably end up computing a
  12621. # maximum length that is only half of the actual maximum length, but
  12622. # we can't tell.
  12623. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  12624. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  12625. = "XX$teststring") >/dev/null 2>&1 &&
  12626. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  12627. lt_cv_sys_max_cmd_len=$new_result &&
  12628. test $i != 17 # 1/2 MB should be enough
  12629. do
  12630. i=`expr $i + 1`
  12631. teststring=$teststring$teststring
  12632. done
  12633. teststring=
  12634. # Add a significant safety factor because C++ compilers can tack on massive
  12635. # amounts of additional arguments before passing them to the linker.
  12636. # It appears as though 1/2 is a usable value.
  12637. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  12638. ;;
  12639. esac
  12640. fi
  12641. if test -n $lt_cv_sys_max_cmd_len ; then
  12642. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  12643. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  12644. else
  12645. { echo "$as_me:$LINENO: result: none" >&5
  12646. echo "${ECHO_T}none" >&6; }
  12647. fi
  12648. # Check for command to grab the raw symbol name followed by C symbol from nm.
  12649. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  12650. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  12651. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  12652. echo $ECHO_N "(cached) $ECHO_C" >&6
  12653. else
  12654. # These are sane defaults that work on at least a few old systems.
  12655. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  12656. # Character class describing NM global symbol codes.
  12657. symcode='[BCDEGRST]'
  12658. # Regexp to match symbols that can be accessed directly from C.
  12659. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  12660. # Transform an extracted symbol line into a proper C declaration
  12661. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  12662. # Transform an extracted symbol line into symbol name and symbol address
  12663. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  12664. # Define system-specific variables.
  12665. case $host_os in
  12666. aix*)
  12667. symcode='[BCDT]'
  12668. ;;
  12669. cygwin* | mingw* | pw32*)
  12670. symcode='[ABCDGISTW]'
  12671. ;;
  12672. hpux*) # Its linker distinguishes data from code symbols
  12673. if test "$host_cpu" = ia64; then
  12674. symcode='[ABCDEGRST]'
  12675. fi
  12676. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12677. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  12678. ;;
  12679. linux*)
  12680. if test "$host_cpu" = ia64; then
  12681. symcode='[ABCDGIRSTW]'
  12682. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12683. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  12684. fi
  12685. ;;
  12686. irix* | nonstopux*)
  12687. symcode='[BCDEGRST]'
  12688. ;;
  12689. osf*)
  12690. symcode='[BCDEGQRST]'
  12691. ;;
  12692. solaris*)
  12693. symcode='[BDRT]'
  12694. ;;
  12695. sco3.2v5*)
  12696. symcode='[DT]'
  12697. ;;
  12698. sysv4.2uw2*)
  12699. symcode='[DT]'
  12700. ;;
  12701. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  12702. symcode='[ABDT]'
  12703. ;;
  12704. sysv4)
  12705. symcode='[DFNSTU]'
  12706. ;;
  12707. esac
  12708. # Handle CRLF in mingw tool chain
  12709. opt_cr=
  12710. case $build_os in
  12711. mingw*)
  12712. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  12713. ;;
  12714. esac
  12715. # If we're using GNU nm, then use its standard symbol codes.
  12716. case `$NM -V 2>&1` in
  12717. *GNU* | *'with BFD'*)
  12718. symcode='[ABCDGIRSTW]' ;;
  12719. esac
  12720. # Try without a prefix undercore, then with it.
  12721. for ac_symprfx in "" "_"; do
  12722. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  12723. symxfrm="\\1 $ac_symprfx\\2 \\2"
  12724. # Write the raw and C identifiers.
  12725. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  12726. # Check to see that the pipe works correctly.
  12727. pipe_works=no
  12728. rm -f conftest*
  12729. cat > conftest.$ac_ext <<EOF
  12730. #ifdef __cplusplus
  12731. extern "C" {
  12732. #endif
  12733. char nm_test_var;
  12734. void nm_test_func(){}
  12735. #ifdef __cplusplus
  12736. }
  12737. #endif
  12738. int main(){nm_test_var='a';nm_test_func();return(0);}
  12739. EOF
  12740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12741. (eval $ac_compile) 2>&5
  12742. ac_status=$?
  12743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12744. (exit $ac_status); }; then
  12745. # Now try to grab the symbols.
  12746. nlist=conftest.nm
  12747. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  12748. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  12749. ac_status=$?
  12750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12751. (exit $ac_status); } && test -s "$nlist"; then
  12752. # Try sorting and uniquifying the output.
  12753. if sort "$nlist" | uniq > "$nlist"T; then
  12754. mv -f "$nlist"T "$nlist"
  12755. else
  12756. rm -f "$nlist"T
  12757. fi
  12758. # Make sure that we snagged all the symbols we need.
  12759. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  12760. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  12761. cat <<EOF > conftest.$ac_ext
  12762. #ifdef __cplusplus
  12763. extern "C" {
  12764. #endif
  12765. EOF
  12766. # Now generate the symbol file.
  12767. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  12768. cat <<EOF >> conftest.$ac_ext
  12769. #if defined (__STDC__) && __STDC__
  12770. # define lt_ptr_t void *
  12771. #else
  12772. # define lt_ptr_t char *
  12773. # define const
  12774. #endif
  12775. /* The mapping between symbol names and symbols. */
  12776. const struct {
  12777. const char *name;
  12778. lt_ptr_t address;
  12779. }
  12780. lt_preloaded_symbols[] =
  12781. {
  12782. EOF
  12783. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  12784. cat <<\EOF >> conftest.$ac_ext
  12785. {0, (lt_ptr_t) 0}
  12786. };
  12787. #ifdef __cplusplus
  12788. }
  12789. #endif
  12790. EOF
  12791. # Now try linking the two files.
  12792. mv conftest.$ac_objext conftstm.$ac_objext
  12793. lt_save_LIBS="$LIBS"
  12794. lt_save_CFLAGS="$CFLAGS"
  12795. LIBS="conftstm.$ac_objext"
  12796. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  12797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12798. (eval $ac_link) 2>&5
  12799. ac_status=$?
  12800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12801. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  12802. pipe_works=yes
  12803. fi
  12804. LIBS="$lt_save_LIBS"
  12805. CFLAGS="$lt_save_CFLAGS"
  12806. else
  12807. echo "cannot find nm_test_func in $nlist" >&5
  12808. fi
  12809. else
  12810. echo "cannot find nm_test_var in $nlist" >&5
  12811. fi
  12812. else
  12813. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  12814. fi
  12815. else
  12816. echo "$progname: failed program was:" >&5
  12817. cat conftest.$ac_ext >&5
  12818. fi
  12819. rm -f conftest* conftst*
  12820. # Do not use the global_symbol_pipe unless it works.
  12821. if test "$pipe_works" = yes; then
  12822. break
  12823. else
  12824. lt_cv_sys_global_symbol_pipe=
  12825. fi
  12826. done
  12827. fi
  12828. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  12829. lt_cv_sys_global_symbol_to_cdecl=
  12830. fi
  12831. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  12832. { echo "$as_me:$LINENO: result: failed" >&5
  12833. echo "${ECHO_T}failed" >&6; }
  12834. else
  12835. { echo "$as_me:$LINENO: result: ok" >&5
  12836. echo "${ECHO_T}ok" >&6; }
  12837. fi
  12838. { echo "$as_me:$LINENO: checking for objdir" >&5
  12839. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  12840. if test "${lt_cv_objdir+set}" = set; then
  12841. echo $ECHO_N "(cached) $ECHO_C" >&6
  12842. else
  12843. rm -f .libs 2>/dev/null
  12844. mkdir .libs 2>/dev/null
  12845. if test -d .libs; then
  12846. lt_cv_objdir=.libs
  12847. else
  12848. # MS-DOS does not allow filenames that begin with a dot.
  12849. lt_cv_objdir=_libs
  12850. fi
  12851. rmdir .libs 2>/dev/null
  12852. fi
  12853. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  12854. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  12855. objdir=$lt_cv_objdir
  12856. case $host_os in
  12857. aix3*)
  12858. # AIX sometimes has problems with the GCC collect2 program. For some
  12859. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12860. # vanish in a puff of smoke.
  12861. if test "X${COLLECT_NAMES+set}" != Xset; then
  12862. COLLECT_NAMES=
  12863. export COLLECT_NAMES
  12864. fi
  12865. ;;
  12866. esac
  12867. # Sed substitution that helps us do robust quoting. It backslashifies
  12868. # metacharacters that are still active within double-quoted strings.
  12869. Xsed='sed -e 1s/^X//'
  12870. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  12871. # Same as above, but do not quote variable references.
  12872. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  12873. # Sed substitution to delay expansion of an escaped shell variable in a
  12874. # double_quote_subst'ed string.
  12875. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  12876. # Sed substitution to avoid accidental globbing in evaled expressions
  12877. no_glob_subst='s/\*/\\\*/g'
  12878. # Constants:
  12879. rm="rm -f"
  12880. # Global variables:
  12881. default_ofile=mklib
  12882. can_build_shared=yes
  12883. # All known linkers require a `.a' archive for static linking (except MSVC,
  12884. # which needs '.lib').
  12885. libext=a
  12886. ltmain="$ac_aux_dir/ltmain.sh"
  12887. ofile="$default_ofile"
  12888. with_gnu_ld="$lt_cv_prog_gnu_ld"
  12889. if test -n "$ac_tool_prefix"; then
  12890. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  12891. set dummy ${ac_tool_prefix}ar; ac_word=$2
  12892. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12894. if test "${ac_cv_prog_AR+set}" = set; then
  12895. echo $ECHO_N "(cached) $ECHO_C" >&6
  12896. else
  12897. if test -n "$AR"; then
  12898. ac_cv_prog_AR="$AR" # Let the user override the test.
  12899. else
  12900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12901. for as_dir in $PATH
  12902. do
  12903. IFS=$as_save_IFS
  12904. test -z "$as_dir" && as_dir=.
  12905. for ac_exec_ext in '' $ac_executable_extensions; do
  12906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12907. ac_cv_prog_AR="${ac_tool_prefix}ar"
  12908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12909. break 2
  12910. fi
  12911. done
  12912. done
  12913. IFS=$as_save_IFS
  12914. fi
  12915. fi
  12916. AR=$ac_cv_prog_AR
  12917. if test -n "$AR"; then
  12918. { echo "$as_me:$LINENO: result: $AR" >&5
  12919. echo "${ECHO_T}$AR" >&6; }
  12920. else
  12921. { echo "$as_me:$LINENO: result: no" >&5
  12922. echo "${ECHO_T}no" >&6; }
  12923. fi
  12924. fi
  12925. if test -z "$ac_cv_prog_AR"; then
  12926. ac_ct_AR=$AR
  12927. # Extract the first word of "ar", so it can be a program name with args.
  12928. set dummy ar; ac_word=$2
  12929. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12930. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12931. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  12932. echo $ECHO_N "(cached) $ECHO_C" >&6
  12933. else
  12934. if test -n "$ac_ct_AR"; then
  12935. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  12936. else
  12937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12938. for as_dir in $PATH
  12939. do
  12940. IFS=$as_save_IFS
  12941. test -z "$as_dir" && as_dir=.
  12942. for ac_exec_ext in '' $ac_executable_extensions; do
  12943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12944. ac_cv_prog_ac_ct_AR="ar"
  12945. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12946. break 2
  12947. fi
  12948. done
  12949. done
  12950. IFS=$as_save_IFS
  12951. fi
  12952. fi
  12953. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  12954. if test -n "$ac_ct_AR"; then
  12955. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  12956. echo "${ECHO_T}$ac_ct_AR" >&6; }
  12957. else
  12958. { echo "$as_me:$LINENO: result: no" >&5
  12959. echo "${ECHO_T}no" >&6; }
  12960. fi
  12961. if test "x$ac_ct_AR" = x; then
  12962. AR="false"
  12963. else
  12964. case $cross_compiling:$ac_tool_warned in
  12965. yes:)
  12966. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12967. whose name does not start with the host triplet. If you think this
  12968. configuration is useful to you, please write to autoconf@gnu.org." >&5
  12969. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12970. whose name does not start with the host triplet. If you think this
  12971. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12972. ac_tool_warned=yes ;;
  12973. esac
  12974. AR=$ac_ct_AR
  12975. fi
  12976. else
  12977. AR="$ac_cv_prog_AR"
  12978. fi
  12979. if test -n "$ac_tool_prefix"; then
  12980. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  12981. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  12982. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12984. if test "${ac_cv_prog_RANLIB+set}" = set; then
  12985. echo $ECHO_N "(cached) $ECHO_C" >&6
  12986. else
  12987. if test -n "$RANLIB"; then
  12988. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  12989. else
  12990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12991. for as_dir in $PATH
  12992. do
  12993. IFS=$as_save_IFS
  12994. test -z "$as_dir" && as_dir=.
  12995. for ac_exec_ext in '' $ac_executable_extensions; do
  12996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12997. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  12998. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12999. break 2
  13000. fi
  13001. done
  13002. done
  13003. IFS=$as_save_IFS
  13004. fi
  13005. fi
  13006. RANLIB=$ac_cv_prog_RANLIB
  13007. if test -n "$RANLIB"; then
  13008. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  13009. echo "${ECHO_T}$RANLIB" >&6; }
  13010. else
  13011. { echo "$as_me:$LINENO: result: no" >&5
  13012. echo "${ECHO_T}no" >&6; }
  13013. fi
  13014. fi
  13015. if test -z "$ac_cv_prog_RANLIB"; then
  13016. ac_ct_RANLIB=$RANLIB
  13017. # Extract the first word of "ranlib", so it can be a program name with args.
  13018. set dummy ranlib; ac_word=$2
  13019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13021. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  13022. echo $ECHO_N "(cached) $ECHO_C" >&6
  13023. else
  13024. if test -n "$ac_ct_RANLIB"; then
  13025. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  13026. else
  13027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13028. for as_dir in $PATH
  13029. do
  13030. IFS=$as_save_IFS
  13031. test -z "$as_dir" && as_dir=.
  13032. for ac_exec_ext in '' $ac_executable_extensions; do
  13033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13034. ac_cv_prog_ac_ct_RANLIB="ranlib"
  13035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13036. break 2
  13037. fi
  13038. done
  13039. done
  13040. IFS=$as_save_IFS
  13041. fi
  13042. fi
  13043. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  13044. if test -n "$ac_ct_RANLIB"; then
  13045. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  13046. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  13047. else
  13048. { echo "$as_me:$LINENO: result: no" >&5
  13049. echo "${ECHO_T}no" >&6; }
  13050. fi
  13051. if test "x$ac_ct_RANLIB" = x; then
  13052. RANLIB=":"
  13053. else
  13054. case $cross_compiling:$ac_tool_warned in
  13055. yes:)
  13056. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13057. whose name does not start with the host triplet. If you think this
  13058. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13059. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13060. whose name does not start with the host triplet. If you think this
  13061. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13062. ac_tool_warned=yes ;;
  13063. esac
  13064. RANLIB=$ac_ct_RANLIB
  13065. fi
  13066. else
  13067. RANLIB="$ac_cv_prog_RANLIB"
  13068. fi
  13069. if test -n "$ac_tool_prefix"; then
  13070. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13071. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13072. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13073. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13074. if test "${ac_cv_prog_STRIP+set}" = set; then
  13075. echo $ECHO_N "(cached) $ECHO_C" >&6
  13076. else
  13077. if test -n "$STRIP"; then
  13078. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13079. else
  13080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13081. for as_dir in $PATH
  13082. do
  13083. IFS=$as_save_IFS
  13084. test -z "$as_dir" && as_dir=.
  13085. for ac_exec_ext in '' $ac_executable_extensions; do
  13086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13087. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13088. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13089. break 2
  13090. fi
  13091. done
  13092. done
  13093. IFS=$as_save_IFS
  13094. fi
  13095. fi
  13096. STRIP=$ac_cv_prog_STRIP
  13097. if test -n "$STRIP"; then
  13098. { echo "$as_me:$LINENO: result: $STRIP" >&5
  13099. echo "${ECHO_T}$STRIP" >&6; }
  13100. else
  13101. { echo "$as_me:$LINENO: result: no" >&5
  13102. echo "${ECHO_T}no" >&6; }
  13103. fi
  13104. fi
  13105. if test -z "$ac_cv_prog_STRIP"; then
  13106. ac_ct_STRIP=$STRIP
  13107. # Extract the first word of "strip", so it can be a program name with args.
  13108. set dummy strip; ac_word=$2
  13109. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13110. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13111. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  13112. echo $ECHO_N "(cached) $ECHO_C" >&6
  13113. else
  13114. if test -n "$ac_ct_STRIP"; then
  13115. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13116. else
  13117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13118. for as_dir in $PATH
  13119. do
  13120. IFS=$as_save_IFS
  13121. test -z "$as_dir" && as_dir=.
  13122. for ac_exec_ext in '' $ac_executable_extensions; do
  13123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13124. ac_cv_prog_ac_ct_STRIP="strip"
  13125. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13126. break 2
  13127. fi
  13128. done
  13129. done
  13130. IFS=$as_save_IFS
  13131. fi
  13132. fi
  13133. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13134. if test -n "$ac_ct_STRIP"; then
  13135. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  13136. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  13137. else
  13138. { echo "$as_me:$LINENO: result: no" >&5
  13139. echo "${ECHO_T}no" >&6; }
  13140. fi
  13141. if test "x$ac_ct_STRIP" = x; then
  13142. STRIP=":"
  13143. else
  13144. case $cross_compiling:$ac_tool_warned in
  13145. yes:)
  13146. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13147. whose name does not start with the host triplet. If you think this
  13148. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13149. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13150. whose name does not start with the host triplet. If you think this
  13151. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13152. ac_tool_warned=yes ;;
  13153. esac
  13154. STRIP=$ac_ct_STRIP
  13155. fi
  13156. else
  13157. STRIP="$ac_cv_prog_STRIP"
  13158. fi
  13159. old_CC="$CC"
  13160. old_CFLAGS="$CFLAGS"
  13161. # Set sane defaults for various variables
  13162. test -z "$AR" && AR=ar
  13163. test -z "$AR_FLAGS" && AR_FLAGS=cru
  13164. test -z "$AS" && AS=as
  13165. test -z "$CC" && CC=cc
  13166. test -z "$LTCC" && LTCC=$CC
  13167. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  13168. test -z "$DLLTOOL" && DLLTOOL=dlltool
  13169. test -z "$LD" && LD=ld
  13170. test -z "$LN_S" && LN_S="ln -s"
  13171. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  13172. test -z "$NM" && NM=nm
  13173. test -z "$SED" && SED=sed
  13174. test -z "$OBJDUMP" && OBJDUMP=objdump
  13175. test -z "$RANLIB" && RANLIB=:
  13176. test -z "$STRIP" && STRIP=:
  13177. test -z "$ac_objext" && ac_objext=o
  13178. # Determine commands to create old-style static archives.
  13179. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  13180. old_postinstall_cmds='chmod 644 $oldlib'
  13181. old_postuninstall_cmds=
  13182. if test -n "$RANLIB"; then
  13183. case $host_os in
  13184. openbsd*)
  13185. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  13186. ;;
  13187. *)
  13188. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  13189. ;;
  13190. esac
  13191. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  13192. fi
  13193. for cc_temp in $compiler""; do
  13194. case $cc_temp in
  13195. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13196. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13197. \-*) ;;
  13198. *) break;;
  13199. esac
  13200. done
  13201. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13202. # Only perform the check for file, if the check method requires it
  13203. case $deplibs_check_method in
  13204. file_magic*)
  13205. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  13206. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  13207. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  13208. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13209. echo $ECHO_N "(cached) $ECHO_C" >&6
  13210. else
  13211. case $MAGIC_CMD in
  13212. [\\/*] | ?:[\\/]*)
  13213. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13214. ;;
  13215. *)
  13216. lt_save_MAGIC_CMD="$MAGIC_CMD"
  13217. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13218. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13219. for ac_dir in $ac_dummy; do
  13220. IFS="$lt_save_ifs"
  13221. test -z "$ac_dir" && ac_dir=.
  13222. if test -f $ac_dir/${ac_tool_prefix}file; then
  13223. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  13224. if test -n "$file_magic_test_file"; then
  13225. case $deplibs_check_method in
  13226. "file_magic "*)
  13227. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13228. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13229. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13230. $EGREP "$file_magic_regex" > /dev/null; then
  13231. :
  13232. else
  13233. cat <<EOF 1>&2
  13234. *** Warning: the command libtool uses to detect shared libraries,
  13235. *** $file_magic_cmd, produces output that libtool cannot recognize.
  13236. *** The result is that libtool may fail to recognize shared libraries
  13237. *** as such. This will affect the creation of libtool libraries that
  13238. *** depend on shared libraries, but programs linked with such libtool
  13239. *** libraries will work regardless of this problem. Nevertheless, you
  13240. *** may want to report the problem to your system manager and/or to
  13241. *** bug-libtool@gnu.org
  13242. EOF
  13243. fi ;;
  13244. esac
  13245. fi
  13246. break
  13247. fi
  13248. done
  13249. IFS="$lt_save_ifs"
  13250. MAGIC_CMD="$lt_save_MAGIC_CMD"
  13251. ;;
  13252. esac
  13253. fi
  13254. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13255. if test -n "$MAGIC_CMD"; then
  13256. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13257. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  13258. else
  13259. { echo "$as_me:$LINENO: result: no" >&5
  13260. echo "${ECHO_T}no" >&6; }
  13261. fi
  13262. if test -z "$lt_cv_path_MAGIC_CMD"; then
  13263. if test -n "$ac_tool_prefix"; then
  13264. { echo "$as_me:$LINENO: checking for file" >&5
  13265. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  13266. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13267. echo $ECHO_N "(cached) $ECHO_C" >&6
  13268. else
  13269. case $MAGIC_CMD in
  13270. [\\/*] | ?:[\\/]*)
  13271. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13272. ;;
  13273. *)
  13274. lt_save_MAGIC_CMD="$MAGIC_CMD"
  13275. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13276. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13277. for ac_dir in $ac_dummy; do
  13278. IFS="$lt_save_ifs"
  13279. test -z "$ac_dir" && ac_dir=.
  13280. if test -f $ac_dir/file; then
  13281. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  13282. if test -n "$file_magic_test_file"; then
  13283. case $deplibs_check_method in
  13284. "file_magic "*)
  13285. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13286. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13287. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13288. $EGREP "$file_magic_regex" > /dev/null; then
  13289. :
  13290. else
  13291. cat <<EOF 1>&2
  13292. *** Warning: the command libtool uses to detect shared libraries,
  13293. *** $file_magic_cmd, produces output that libtool cannot recognize.
  13294. *** The result is that libtool may fail to recognize shared libraries
  13295. *** as such. This will affect the creation of libtool libraries that
  13296. *** depend on shared libraries, but programs linked with such libtool
  13297. *** libraries will work regardless of this problem. Nevertheless, you
  13298. *** may want to report the problem to your system manager and/or to
  13299. *** bug-libtool@gnu.org
  13300. EOF
  13301. fi ;;
  13302. esac
  13303. fi
  13304. break
  13305. fi
  13306. done
  13307. IFS="$lt_save_ifs"
  13308. MAGIC_CMD="$lt_save_MAGIC_CMD"
  13309. ;;
  13310. esac
  13311. fi
  13312. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13313. if test -n "$MAGIC_CMD"; then
  13314. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13315. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  13316. else
  13317. { echo "$as_me:$LINENO: result: no" >&5
  13318. echo "${ECHO_T}no" >&6; }
  13319. fi
  13320. else
  13321. MAGIC_CMD=:
  13322. fi
  13323. fi
  13324. fi
  13325. ;;
  13326. esac
  13327. enable_dlopen=yes
  13328. enable_win32_dll=no
  13329. # Check whether --enable-libtool-lock was given.
  13330. if test "${enable_libtool_lock+set}" = set; then
  13331. enableval=$enable_libtool_lock;
  13332. fi
  13333. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  13334. # Check whether --with-pic was given.
  13335. if test "${with_pic+set}" = set; then
  13336. withval=$with_pic; pic_mode="$withval"
  13337. else
  13338. pic_mode=default
  13339. fi
  13340. test -z "$pic_mode" && pic_mode=default
  13341. # Use C for the default configuration in the libtool script
  13342. tagname=
  13343. lt_save_CC="$CC"
  13344. ac_ext=c
  13345. ac_cpp='$CPP $CPPFLAGS'
  13346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13349. # Source file extension for C test sources.
  13350. ac_ext=c
  13351. # Object file extension for compiled C test sources.
  13352. objext=o
  13353. objext=$objext
  13354. # Code to be used in simple compile tests
  13355. lt_simple_compile_test_code="int some_variable = 0;\n"
  13356. # Code to be used in simple link tests
  13357. lt_simple_link_test_code='int main(){return(0);}\n'
  13358. # If no C compiler was specified, use CC.
  13359. LTCC=${LTCC-"$CC"}
  13360. # If no C compiler flags were specified, use CFLAGS.
  13361. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13362. # Allow CC to be a program name with arguments.
  13363. compiler=$CC
  13364. # save warnings/boilerplate of simple test code
  13365. ac_outfile=conftest.$ac_objext
  13366. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13367. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13368. _lt_compiler_boilerplate=`cat conftest.err`
  13369. $rm conftest*
  13370. ac_outfile=conftest.$ac_objext
  13371. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13372. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13373. _lt_linker_boilerplate=`cat conftest.err`
  13374. $rm conftest*
  13375. lt_prog_compiler_no_builtin_flag=
  13376. if test "$GCC" = yes; then
  13377. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  13378. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13379. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  13380. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13381. echo $ECHO_N "(cached) $ECHO_C" >&6
  13382. else
  13383. lt_cv_prog_compiler_rtti_exceptions=no
  13384. ac_outfile=conftest.$ac_objext
  13385. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13386. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13387. # Insert the option either (1) after the last *FLAGS variable, or
  13388. # (2) before a word containing "conftest.", or (3) at the end.
  13389. # Note that $ac_compile itself does not contain backslashes and begins
  13390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13391. # The option is referenced via a variable to avoid confusing sed.
  13392. lt_compile=`echo "$ac_compile" | $SED \
  13393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13395. -e 's:$: $lt_compiler_flag:'`
  13396. (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
  13397. (eval "$lt_compile" 2>conftest.err)
  13398. ac_status=$?
  13399. cat conftest.err >&5
  13400. echo "$as_me:14857: \$? = $ac_status" >&5
  13401. if (exit $ac_status) && test -s "$ac_outfile"; then
  13402. # The compiler can only warn and ignore the option if not recognized
  13403. # So say no if there are warnings other than the usual output.
  13404. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13405. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13406. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13407. lt_cv_prog_compiler_rtti_exceptions=yes
  13408. fi
  13409. fi
  13410. $rm conftest*
  13411. fi
  13412. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13413. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  13414. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13415. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  13416. else
  13417. :
  13418. fi
  13419. fi
  13420. lt_prog_compiler_wl=
  13421. lt_prog_compiler_pic=
  13422. lt_prog_compiler_static=
  13423. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13424. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13425. if test "$GCC" = yes; then
  13426. lt_prog_compiler_wl='-Wl,'
  13427. lt_prog_compiler_static='-static'
  13428. case $host_os in
  13429. aix*)
  13430. # All AIX code is PIC.
  13431. if test "$host_cpu" = ia64; then
  13432. # AIX 5 now supports IA64 processor
  13433. lt_prog_compiler_static='-Bstatic'
  13434. fi
  13435. ;;
  13436. amigaos*)
  13437. # FIXME: we need at least 68020 code to build shared libraries, but
  13438. # adding the `-m68020' flag to GCC prevents building anything better,
  13439. # like `-m68040'.
  13440. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  13441. ;;
  13442. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13443. # PIC is the default for these OSes.
  13444. ;;
  13445. mingw* | pw32* | os2*)
  13446. # This hack is so that the source file can tell whether it is being
  13447. # built for inclusion in a dll (and should export symbols for example).
  13448. lt_prog_compiler_pic='-DDLL_EXPORT'
  13449. ;;
  13450. darwin* | rhapsody*)
  13451. # PIC is the default on this platform
  13452. # Common symbols not allowed in MH_DYLIB files
  13453. lt_prog_compiler_pic='-fno-common'
  13454. ;;
  13455. interix3*)
  13456. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13457. # Instead, we relocate shared libraries at runtime.
  13458. ;;
  13459. msdosdjgpp*)
  13460. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13461. # on systems that don't support them.
  13462. lt_prog_compiler_can_build_shared=no
  13463. enable_shared=no
  13464. ;;
  13465. sysv4*MP*)
  13466. if test -d /usr/nec; then
  13467. lt_prog_compiler_pic=-Kconform_pic
  13468. fi
  13469. ;;
  13470. hpux*)
  13471. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13472. # not for PA HP-UX.
  13473. case $host_cpu in
  13474. hppa*64*|ia64*)
  13475. # +Z the default
  13476. ;;
  13477. *)
  13478. lt_prog_compiler_pic='-fPIC'
  13479. ;;
  13480. esac
  13481. ;;
  13482. *)
  13483. lt_prog_compiler_pic='-fPIC'
  13484. ;;
  13485. esac
  13486. else
  13487. # PORTME Check for flag to pass linker flags through the system compiler.
  13488. case $host_os in
  13489. aix*)
  13490. lt_prog_compiler_wl='-Wl,'
  13491. if test "$host_cpu" = ia64; then
  13492. # AIX 5 now supports IA64 processor
  13493. lt_prog_compiler_static='-Bstatic'
  13494. else
  13495. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  13496. fi
  13497. ;;
  13498. darwin*)
  13499. # PIC is the default on this platform
  13500. # Common symbols not allowed in MH_DYLIB files
  13501. case $cc_basename in
  13502. xlc*)
  13503. lt_prog_compiler_pic='-qnocommon'
  13504. lt_prog_compiler_wl='-Wl,'
  13505. ;;
  13506. esac
  13507. ;;
  13508. mingw* | pw32* | os2*)
  13509. # This hack is so that the source file can tell whether it is being
  13510. # built for inclusion in a dll (and should export symbols for example).
  13511. lt_prog_compiler_pic='-DDLL_EXPORT'
  13512. ;;
  13513. hpux9* | hpux10* | hpux11*)
  13514. lt_prog_compiler_wl='-Wl,'
  13515. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13516. # not for PA HP-UX.
  13517. case $host_cpu in
  13518. hppa*64*|ia64*)
  13519. # +Z the default
  13520. ;;
  13521. *)
  13522. lt_prog_compiler_pic='+Z'
  13523. ;;
  13524. esac
  13525. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13526. lt_prog_compiler_static='${wl}-a ${wl}archive'
  13527. ;;
  13528. irix5* | irix6* | nonstopux*)
  13529. lt_prog_compiler_wl='-Wl,'
  13530. # PIC (with -KPIC) is the default.
  13531. lt_prog_compiler_static='-non_shared'
  13532. ;;
  13533. newsos6)
  13534. lt_prog_compiler_pic='-KPIC'
  13535. lt_prog_compiler_static='-Bstatic'
  13536. ;;
  13537. linux*)
  13538. case $cc_basename in
  13539. icc* | ecc*)
  13540. lt_prog_compiler_wl='-Wl,'
  13541. lt_prog_compiler_pic='-KPIC'
  13542. lt_prog_compiler_static='-static'
  13543. ;;
  13544. pgcc* | pgf77* | pgf90* | pgf95*)
  13545. # Portland Group compilers (*not* the Pentium gcc compiler,
  13546. # which looks to be a dead project)
  13547. lt_prog_compiler_wl='-Wl,'
  13548. lt_prog_compiler_pic='-fpic'
  13549. lt_prog_compiler_static='-Bstatic'
  13550. ;;
  13551. ccc*)
  13552. lt_prog_compiler_wl='-Wl,'
  13553. # All Alpha code is PIC.
  13554. lt_prog_compiler_static='-non_shared'
  13555. ;;
  13556. esac
  13557. ;;
  13558. osf3* | osf4* | osf5*)
  13559. lt_prog_compiler_wl='-Wl,'
  13560. # All OSF/1 code is PIC.
  13561. lt_prog_compiler_static='-non_shared'
  13562. ;;
  13563. solaris*)
  13564. lt_prog_compiler_pic='-KPIC'
  13565. lt_prog_compiler_static='-Bstatic'
  13566. case $cc_basename in
  13567. f77* | f90* | f95*)
  13568. lt_prog_compiler_wl='-Qoption ld ';;
  13569. *)
  13570. lt_prog_compiler_wl='-Wl,';;
  13571. esac
  13572. ;;
  13573. sunos4*)
  13574. lt_prog_compiler_wl='-Qoption ld '
  13575. lt_prog_compiler_pic='-PIC'
  13576. lt_prog_compiler_static='-Bstatic'
  13577. ;;
  13578. sysv4 | sysv4.2uw2* | sysv4.3*)
  13579. lt_prog_compiler_wl='-Wl,'
  13580. lt_prog_compiler_pic='-KPIC'
  13581. lt_prog_compiler_static='-Bstatic'
  13582. ;;
  13583. sysv4*MP*)
  13584. if test -d /usr/nec ;then
  13585. lt_prog_compiler_pic='-Kconform_pic'
  13586. lt_prog_compiler_static='-Bstatic'
  13587. fi
  13588. ;;
  13589. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13590. lt_prog_compiler_wl='-Wl,'
  13591. lt_prog_compiler_pic='-KPIC'
  13592. lt_prog_compiler_static='-Bstatic'
  13593. ;;
  13594. unicos*)
  13595. lt_prog_compiler_wl='-Wl,'
  13596. lt_prog_compiler_can_build_shared=no
  13597. ;;
  13598. uts4*)
  13599. lt_prog_compiler_pic='-pic'
  13600. lt_prog_compiler_static='-Bstatic'
  13601. ;;
  13602. *)
  13603. lt_prog_compiler_can_build_shared=no
  13604. ;;
  13605. esac
  13606. fi
  13607. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  13608. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  13609. #
  13610. # Check to make sure the PIC flag actually works.
  13611. #
  13612. if test -n "$lt_prog_compiler_pic"; then
  13613. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  13614. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  13615. if test "${lt_prog_compiler_pic_works+set}" = set; then
  13616. echo $ECHO_N "(cached) $ECHO_C" >&6
  13617. else
  13618. lt_prog_compiler_pic_works=no
  13619. ac_outfile=conftest.$ac_objext
  13620. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13621. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  13622. # Insert the option either (1) after the last *FLAGS variable, or
  13623. # (2) before a word containing "conftest.", or (3) at the end.
  13624. # Note that $ac_compile itself does not contain backslashes and begins
  13625. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13626. # The option is referenced via a variable to avoid confusing sed.
  13627. lt_compile=`echo "$ac_compile" | $SED \
  13628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13630. -e 's:$: $lt_compiler_flag:'`
  13631. (eval echo "\"\$as_me:15121: $lt_compile\"" >&5)
  13632. (eval "$lt_compile" 2>conftest.err)
  13633. ac_status=$?
  13634. cat conftest.err >&5
  13635. echo "$as_me:15125: \$? = $ac_status" >&5
  13636. if (exit $ac_status) && test -s "$ac_outfile"; then
  13637. # The compiler can only warn and ignore the option if not recognized
  13638. # So say no if there are warnings other than the usual output.
  13639. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13641. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13642. lt_prog_compiler_pic_works=yes
  13643. fi
  13644. fi
  13645. $rm conftest*
  13646. fi
  13647. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  13648. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  13649. if test x"$lt_prog_compiler_pic_works" = xyes; then
  13650. case $lt_prog_compiler_pic in
  13651. "" | " "*) ;;
  13652. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  13653. esac
  13654. else
  13655. lt_prog_compiler_pic=
  13656. lt_prog_compiler_can_build_shared=no
  13657. fi
  13658. fi
  13659. case $host_os in
  13660. # For platforms which do not support PIC, -DPIC is meaningless:
  13661. *djgpp*)
  13662. lt_prog_compiler_pic=
  13663. ;;
  13664. *)
  13665. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  13666. ;;
  13667. esac
  13668. #
  13669. # Check to make sure the static flag actually works.
  13670. #
  13671. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  13672. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13673. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  13674. if test "${lt_prog_compiler_static_works+set}" = set; then
  13675. echo $ECHO_N "(cached) $ECHO_C" >&6
  13676. else
  13677. lt_prog_compiler_static_works=no
  13678. save_LDFLAGS="$LDFLAGS"
  13679. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13680. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  13681. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13682. # The linker can only warn and ignore the option if not recognized
  13683. # So say no if there are warnings
  13684. if test -s conftest.err; then
  13685. # Append any errors to the config.log.
  13686. cat conftest.err 1>&5
  13687. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13688. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13689. if diff conftest.exp conftest.er2 >/dev/null; then
  13690. lt_prog_compiler_static_works=yes
  13691. fi
  13692. else
  13693. lt_prog_compiler_static_works=yes
  13694. fi
  13695. fi
  13696. $rm conftest*
  13697. LDFLAGS="$save_LDFLAGS"
  13698. fi
  13699. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  13700. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  13701. if test x"$lt_prog_compiler_static_works" = xyes; then
  13702. :
  13703. else
  13704. lt_prog_compiler_static=
  13705. fi
  13706. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13707. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13708. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  13709. echo $ECHO_N "(cached) $ECHO_C" >&6
  13710. else
  13711. lt_cv_prog_compiler_c_o=no
  13712. $rm -r conftest 2>/dev/null
  13713. mkdir conftest
  13714. cd conftest
  13715. mkdir out
  13716. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13717. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13718. # Insert the option either (1) after the last *FLAGS variable, or
  13719. # (2) before a word containing "conftest.", or (3) at the end.
  13720. # Note that $ac_compile itself does not contain backslashes and begins
  13721. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13722. lt_compile=`echo "$ac_compile" | $SED \
  13723. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13724. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13725. -e 's:$: $lt_compiler_flag:'`
  13726. (eval echo "\"\$as_me:15225: $lt_compile\"" >&5)
  13727. (eval "$lt_compile" 2>out/conftest.err)
  13728. ac_status=$?
  13729. cat out/conftest.err >&5
  13730. echo "$as_me:15229: \$? = $ac_status" >&5
  13731. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13732. then
  13733. # The compiler can only warn and ignore the option if not recognized
  13734. # So say no if there are warnings
  13735. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13736. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13737. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13738. lt_cv_prog_compiler_c_o=yes
  13739. fi
  13740. fi
  13741. chmod u+w . 2>&5
  13742. $rm conftest*
  13743. # SGI C++ compiler will create directory out/ii_files/ for
  13744. # template instantiation
  13745. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13746. $rm out/* && rmdir out
  13747. cd ..
  13748. rmdir conftest
  13749. $rm conftest*
  13750. fi
  13751. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  13752. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  13753. hard_links="nottested"
  13754. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  13755. # do not overwrite the value of need_locks provided by the user
  13756. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13757. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13758. hard_links=yes
  13759. $rm conftest*
  13760. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13761. touch conftest.a
  13762. ln conftest.a conftest.b 2>&5 || hard_links=no
  13763. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13764. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13765. echo "${ECHO_T}$hard_links" >&6; }
  13766. if test "$hard_links" = no; then
  13767. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13768. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13769. need_locks=warn
  13770. fi
  13771. else
  13772. need_locks=no
  13773. fi
  13774. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13775. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13776. runpath_var=
  13777. allow_undefined_flag=
  13778. enable_shared_with_static_runtimes=no
  13779. archive_cmds=
  13780. archive_expsym_cmds=
  13781. old_archive_From_new_cmds=
  13782. old_archive_from_expsyms_cmds=
  13783. export_dynamic_flag_spec=
  13784. whole_archive_flag_spec=
  13785. thread_safe_flag_spec=
  13786. hardcode_libdir_flag_spec=
  13787. hardcode_libdir_flag_spec_ld=
  13788. hardcode_libdir_separator=
  13789. hardcode_direct=no
  13790. hardcode_minus_L=no
  13791. hardcode_shlibpath_var=unsupported
  13792. link_all_deplibs=unknown
  13793. hardcode_automatic=no
  13794. module_cmds=
  13795. module_expsym_cmds=
  13796. always_export_symbols=no
  13797. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13798. # include_expsyms should be a list of space-separated symbols to be *always*
  13799. # included in the symbol list
  13800. include_expsyms=
  13801. # exclude_expsyms can be an extended regexp of symbols to exclude
  13802. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13803. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13804. # as well as any symbol that contains `d'.
  13805. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  13806. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13807. # platforms (ab)use it in PIC code, but their linkers get confused if
  13808. # the symbol is explicitly referenced. Since portable code cannot
  13809. # rely on this symbol name, it's probably fine to never include it in
  13810. # preloaded symbol tables.
  13811. extract_expsyms_cmds=
  13812. # Just being paranoid about ensuring that cc_basename is set.
  13813. for cc_temp in $compiler""; do
  13814. case $cc_temp in
  13815. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13816. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13817. \-*) ;;
  13818. *) break;;
  13819. esac
  13820. done
  13821. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13822. case $host_os in
  13823. cygwin* | mingw* | pw32*)
  13824. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13825. # When not using gcc, we currently assume that we are using
  13826. # Microsoft Visual C++.
  13827. if test "$GCC" != yes; then
  13828. with_gnu_ld=no
  13829. fi
  13830. ;;
  13831. interix*)
  13832. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13833. with_gnu_ld=yes
  13834. ;;
  13835. openbsd*)
  13836. with_gnu_ld=no
  13837. ;;
  13838. esac
  13839. ld_shlibs=yes
  13840. if test "$with_gnu_ld" = yes; then
  13841. # If archive_cmds runs LD, not CC, wlarc should be empty
  13842. wlarc='${wl}'
  13843. # Set some defaults for GNU ld with shared library support. These
  13844. # are reset later if shared libraries are not supported. Putting them
  13845. # here allows them to be overridden if necessary.
  13846. runpath_var=LD_RUN_PATH
  13847. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  13848. export_dynamic_flag_spec='${wl}--export-dynamic'
  13849. # ancient GNU ld didn't support --whole-archive et. al.
  13850. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13851. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13852. else
  13853. whole_archive_flag_spec=
  13854. fi
  13855. supports_anon_versioning=no
  13856. case `$LD -v 2>/dev/null` in
  13857. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13858. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13859. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13860. *\ 2.11.*) ;; # other 2.11 versions
  13861. *) supports_anon_versioning=yes ;;
  13862. esac
  13863. # See if GNU ld supports shared libraries.
  13864. case $host_os in
  13865. aix3* | aix4* | aix5*)
  13866. # On AIX/PPC, the GNU linker is very broken
  13867. if test "$host_cpu" != ia64; then
  13868. ld_shlibs=no
  13869. cat <<EOF 1>&2
  13870. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13871. *** to be unable to reliably create shared libraries on AIX.
  13872. *** Therefore, libtool is disabling shared libraries support. If you
  13873. *** really care for shared libraries, you may want to modify your PATH
  13874. *** so that a non-GNU linker is found, and then restart.
  13875. EOF
  13876. fi
  13877. ;;
  13878. amigaos*)
  13879. 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)'
  13880. hardcode_libdir_flag_spec='-L$libdir'
  13881. hardcode_minus_L=yes
  13882. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13883. # that the semantics of dynamic libraries on AmigaOS, at least up
  13884. # to version 4, is to share data among multiple programs linked
  13885. # with the same dynamic library. Since this doesn't match the
  13886. # behavior of shared libraries on other platforms, we can't use
  13887. # them.
  13888. ld_shlibs=no
  13889. ;;
  13890. beos*)
  13891. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13892. allow_undefined_flag=unsupported
  13893. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13894. # support --undefined. This deserves some investigation. FIXME
  13895. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13896. else
  13897. ld_shlibs=no
  13898. fi
  13899. ;;
  13900. cygwin* | mingw* | pw32*)
  13901. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  13902. # as there is no search path for DLLs.
  13903. hardcode_libdir_flag_spec='-L$libdir'
  13904. allow_undefined_flag=unsupported
  13905. always_export_symbols=no
  13906. enable_shared_with_static_runtimes=yes
  13907. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13908. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13909. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13910. # If the export-symbols file already is a .def file (1st line
  13911. # is EXPORTS), use it as is; otherwise, prepend...
  13912. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13913. cp $export_symbols $output_objdir/$soname.def;
  13914. else
  13915. echo EXPORTS > $output_objdir/$soname.def;
  13916. cat $export_symbols >> $output_objdir/$soname.def;
  13917. fi~
  13918. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13919. else
  13920. ld_shlibs=no
  13921. fi
  13922. ;;
  13923. interix3*)
  13924. hardcode_direct=no
  13925. hardcode_shlibpath_var=no
  13926. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13927. export_dynamic_flag_spec='${wl}-E'
  13928. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13929. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13930. # default) and relocated if they conflict, which is a slow very memory
  13931. # consuming and fragmenting process. To avoid this, we pick a random,
  13932. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13933. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13934. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13935. 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'
  13936. ;;
  13937. linux*)
  13938. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13939. tmp_addflag=
  13940. case $cc_basename,$host_cpu in
  13941. pgcc*) # Portland Group C compiler
  13942. 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'
  13943. tmp_addflag=' $pic_flag'
  13944. ;;
  13945. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13946. 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'
  13947. tmp_addflag=' $pic_flag -Mnomain' ;;
  13948. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13949. tmp_addflag=' -i_dynamic' ;;
  13950. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13951. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13952. ifc* | ifort*) # Intel Fortran compiler
  13953. tmp_addflag=' -nofor_main' ;;
  13954. esac
  13955. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13956. if test $supports_anon_versioning = yes; then
  13957. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  13958. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13959. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13960. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13961. fi
  13962. else
  13963. ld_shlibs=no
  13964. fi
  13965. ;;
  13966. netbsd*)
  13967. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13968. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13969. wlarc=
  13970. else
  13971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13972. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13973. fi
  13974. ;;
  13975. solaris*)
  13976. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13977. ld_shlibs=no
  13978. cat <<EOF 1>&2
  13979. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13980. *** create shared libraries on Solaris systems. Therefore, libtool
  13981. *** is disabling shared libraries support. We urge you to upgrade GNU
  13982. *** binutils to release 2.9.1 or newer. Another option is to modify
  13983. *** your PATH or compiler configuration so that the native linker is
  13984. *** used, and then restart.
  13985. EOF
  13986. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13987. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13988. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13989. else
  13990. ld_shlibs=no
  13991. fi
  13992. ;;
  13993. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13994. case `$LD -v 2>&1` in
  13995. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13996. ld_shlibs=no
  13997. cat <<_LT_EOF 1>&2
  13998. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13999. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14000. *** is disabling shared libraries support. We urge you to upgrade GNU
  14001. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14002. *** your PATH or compiler configuration so that the native linker is
  14003. *** used, and then restart.
  14004. _LT_EOF
  14005. ;;
  14006. *)
  14007. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14008. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14009. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14010. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14011. else
  14012. ld_shlibs=no
  14013. fi
  14014. ;;
  14015. esac
  14016. ;;
  14017. sunos4*)
  14018. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14019. wlarc=
  14020. hardcode_direct=yes
  14021. hardcode_shlibpath_var=no
  14022. ;;
  14023. *)
  14024. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14025. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14026. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14027. else
  14028. ld_shlibs=no
  14029. fi
  14030. ;;
  14031. esac
  14032. if test "$ld_shlibs" = no; then
  14033. runpath_var=
  14034. hardcode_libdir_flag_spec=
  14035. export_dynamic_flag_spec=
  14036. whole_archive_flag_spec=
  14037. fi
  14038. else
  14039. # PORTME fill in a description of your system's linker (not GNU ld)
  14040. case $host_os in
  14041. aix3*)
  14042. allow_undefined_flag=unsupported
  14043. always_export_symbols=yes
  14044. 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'
  14045. # Note: this linker hardcodes the directories in LIBPATH if there
  14046. # are no directories specified by -L.
  14047. hardcode_minus_L=yes
  14048. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14049. # Neither direct hardcoding nor static linking is supported with a
  14050. # broken collect2.
  14051. hardcode_direct=unsupported
  14052. fi
  14053. ;;
  14054. aix4* | aix5*)
  14055. if test "$host_cpu" = ia64; then
  14056. # On IA64, the linker does run time linking by default, so we don't
  14057. # have to do anything special.
  14058. aix_use_runtimelinking=no
  14059. exp_sym_flag='-Bexport'
  14060. no_entry_flag=""
  14061. else
  14062. # If we're using GNU nm, then we don't want the "-C" option.
  14063. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14064. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14065. 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'
  14066. else
  14067. 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'
  14068. fi
  14069. aix_use_runtimelinking=no
  14070. # Test if we are trying to use run time linking or normal
  14071. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14072. # need to do runtime linking.
  14073. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14074. for ld_flag in $LDFLAGS; do
  14075. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14076. aix_use_runtimelinking=yes
  14077. break
  14078. fi
  14079. done
  14080. ;;
  14081. esac
  14082. exp_sym_flag='-bexport'
  14083. no_entry_flag='-bnoentry'
  14084. fi
  14085. # When large executables or shared objects are built, AIX ld can
  14086. # have problems creating the table of contents. If linking a library
  14087. # or program results in "error TOC overflow" add -mminimal-toc to
  14088. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14089. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14090. archive_cmds=''
  14091. hardcode_direct=yes
  14092. hardcode_libdir_separator=':'
  14093. link_all_deplibs=yes
  14094. if test "$GCC" = yes; then
  14095. case $host_os in aix4.[012]|aix4.[012].*)
  14096. # We only want to do this on AIX 4.2 and lower, the check
  14097. # below for broken collect2 doesn't work under 4.3+
  14098. collect2name=`${CC} -print-prog-name=collect2`
  14099. if test -f "$collect2name" && \
  14100. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14101. then
  14102. # We have reworked collect2
  14103. hardcode_direct=yes
  14104. else
  14105. # We have old collect2
  14106. hardcode_direct=unsupported
  14107. # It fails to find uninstalled libraries when the uninstalled
  14108. # path is not listed in the libpath. Setting hardcode_minus_L
  14109. # to unsupported forces relinking
  14110. hardcode_minus_L=yes
  14111. hardcode_libdir_flag_spec='-L$libdir'
  14112. hardcode_libdir_separator=
  14113. fi
  14114. ;;
  14115. esac
  14116. shared_flag='-shared'
  14117. if test "$aix_use_runtimelinking" = yes; then
  14118. shared_flag="$shared_flag "'${wl}-G'
  14119. fi
  14120. else
  14121. # not using gcc
  14122. if test "$host_cpu" = ia64; then
  14123. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14124. # chokes on -Wl,-G. The following line is correct:
  14125. shared_flag='-G'
  14126. else
  14127. if test "$aix_use_runtimelinking" = yes; then
  14128. shared_flag='${wl}-G'
  14129. else
  14130. shared_flag='${wl}-bM:SRE'
  14131. fi
  14132. fi
  14133. fi
  14134. # It seems that -bexpall does not export symbols beginning with
  14135. # underscore (_), so it is better to generate a list of symbols to export.
  14136. always_export_symbols=yes
  14137. if test "$aix_use_runtimelinking" = yes; then
  14138. # Warning - without using the other runtime loading flags (-brtl),
  14139. # -berok will link without error, but may produce a broken library.
  14140. allow_undefined_flag='-berok'
  14141. # Determine the default libpath from the value encoded in an empty executable.
  14142. cat >conftest.$ac_ext <<_ACEOF
  14143. /* confdefs.h. */
  14144. _ACEOF
  14145. cat confdefs.h >>conftest.$ac_ext
  14146. cat >>conftest.$ac_ext <<_ACEOF
  14147. /* end confdefs.h. */
  14148. int
  14149. main ()
  14150. {
  14151. ;
  14152. return 0;
  14153. }
  14154. _ACEOF
  14155. rm -f conftest.$ac_objext conftest$ac_exeext
  14156. if { (ac_try="$ac_link"
  14157. case "(($ac_try" in
  14158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14159. *) ac_try_echo=$ac_try;;
  14160. esac
  14161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14162. (eval "$ac_link") 2>conftest.er1
  14163. ac_status=$?
  14164. grep -v '^ *+' conftest.er1 >conftest.err
  14165. rm -f conftest.er1
  14166. cat conftest.err >&5
  14167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14168. (exit $ac_status); } &&
  14169. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14170. { (case "(($ac_try" in
  14171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14172. *) ac_try_echo=$ac_try;;
  14173. esac
  14174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14175. (eval "$ac_try") 2>&5
  14176. ac_status=$?
  14177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14178. (exit $ac_status); }; } &&
  14179. { ac_try='test -s conftest$ac_exeext'
  14180. { (case "(($ac_try" in
  14181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14182. *) ac_try_echo=$ac_try;;
  14183. esac
  14184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14185. (eval "$ac_try") 2>&5
  14186. ac_status=$?
  14187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14188. (exit $ac_status); }; }; then
  14189. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14190. }'`
  14191. # Check for a 64-bit object if we didn't find anything.
  14192. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14193. }'`; fi
  14194. else
  14195. echo "$as_me: failed program was:" >&5
  14196. sed 's/^/| /' conftest.$ac_ext >&5
  14197. fi
  14198. rm -f core conftest.err conftest.$ac_objext \
  14199. conftest$ac_exeext conftest.$ac_ext
  14200. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14201. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  14202. 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14203. else
  14204. if test "$host_cpu" = ia64; then
  14205. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  14206. allow_undefined_flag="-z nodefs"
  14207. 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"
  14208. else
  14209. # Determine the default libpath from the value encoded in an empty executable.
  14210. cat >conftest.$ac_ext <<_ACEOF
  14211. /* confdefs.h. */
  14212. _ACEOF
  14213. cat confdefs.h >>conftest.$ac_ext
  14214. cat >>conftest.$ac_ext <<_ACEOF
  14215. /* end confdefs.h. */
  14216. int
  14217. main ()
  14218. {
  14219. ;
  14220. return 0;
  14221. }
  14222. _ACEOF
  14223. rm -f conftest.$ac_objext conftest$ac_exeext
  14224. if { (ac_try="$ac_link"
  14225. case "(($ac_try" in
  14226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14227. *) ac_try_echo=$ac_try;;
  14228. esac
  14229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14230. (eval "$ac_link") 2>conftest.er1
  14231. ac_status=$?
  14232. grep -v '^ *+' conftest.er1 >conftest.err
  14233. rm -f conftest.er1
  14234. cat conftest.err >&5
  14235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14236. (exit $ac_status); } &&
  14237. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14238. { (case "(($ac_try" in
  14239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14240. *) ac_try_echo=$ac_try;;
  14241. esac
  14242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14243. (eval "$ac_try") 2>&5
  14244. ac_status=$?
  14245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14246. (exit $ac_status); }; } &&
  14247. { ac_try='test -s conftest$ac_exeext'
  14248. { (case "(($ac_try" in
  14249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14250. *) ac_try_echo=$ac_try;;
  14251. esac
  14252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14253. (eval "$ac_try") 2>&5
  14254. ac_status=$?
  14255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14256. (exit $ac_status); }; }; then
  14257. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14258. }'`
  14259. # Check for a 64-bit object if we didn't find anything.
  14260. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14261. }'`; fi
  14262. else
  14263. echo "$as_me: failed program was:" >&5
  14264. sed 's/^/| /' conftest.$ac_ext >&5
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext \
  14267. conftest$ac_exeext conftest.$ac_ext
  14268. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14269. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  14270. # Warning - without using the other run time loading flags,
  14271. # -berok will link without error, but may produce a broken library.
  14272. no_undefined_flag=' ${wl}-bernotok'
  14273. allow_undefined_flag=' ${wl}-berok'
  14274. # Exported symbols can be pulled into shared objects from archives
  14275. whole_archive_flag_spec='$convenience'
  14276. archive_cmds_need_lc=yes
  14277. # This is similar to how AIX traditionally builds its shared libraries.
  14278. 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'
  14279. fi
  14280. fi
  14281. ;;
  14282. amigaos*)
  14283. 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)'
  14284. hardcode_libdir_flag_spec='-L$libdir'
  14285. hardcode_minus_L=yes
  14286. # see comment about different semantics on the GNU ld section
  14287. ld_shlibs=no
  14288. ;;
  14289. bsdi[45]*)
  14290. export_dynamic_flag_spec=-rdynamic
  14291. ;;
  14292. cygwin* | mingw* | pw32*)
  14293. # When not using gcc, we currently assume that we are using
  14294. # Microsoft Visual C++.
  14295. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14296. # no search path for DLLs.
  14297. hardcode_libdir_flag_spec=' '
  14298. allow_undefined_flag=unsupported
  14299. # Tell ltmain to make .lib files, not .a files.
  14300. libext=lib
  14301. # Tell ltmain to make .dll files, not .so files.
  14302. shrext_cmds=".dll"
  14303. # FIXME: Setting linknames here is a bad hack.
  14304. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14305. # The linker will automatically build a .lib file if we build a DLL.
  14306. old_archive_From_new_cmds='true'
  14307. # FIXME: Should let the user specify the lib program.
  14308. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14309. fix_srcfile_path='`cygpath -w "$srcfile"`'
  14310. enable_shared_with_static_runtimes=yes
  14311. ;;
  14312. darwin* | rhapsody*)
  14313. case $host_os in
  14314. rhapsody* | darwin1.[012])
  14315. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  14316. ;;
  14317. *) # Darwin 1.3 on
  14318. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14319. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14320. else
  14321. case ${MACOSX_DEPLOYMENT_TARGET} in
  14322. 10.[012])
  14323. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14324. ;;
  14325. 10.*)
  14326. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  14327. ;;
  14328. esac
  14329. fi
  14330. ;;
  14331. esac
  14332. archive_cmds_need_lc=no
  14333. hardcode_direct=no
  14334. hardcode_automatic=yes
  14335. hardcode_shlibpath_var=unsupported
  14336. whole_archive_flag_spec=''
  14337. link_all_deplibs=yes
  14338. if test "$GCC" = yes ; then
  14339. output_verbose_link_cmd='echo'
  14340. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14341. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14342. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14343. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14344. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14345. else
  14346. case $cc_basename in
  14347. xlc*)
  14348. output_verbose_link_cmd='echo'
  14349. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14350. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14351. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14352. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14353. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14354. ;;
  14355. *)
  14356. ld_shlibs=no
  14357. ;;
  14358. esac
  14359. fi
  14360. ;;
  14361. dgux*)
  14362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14363. hardcode_libdir_flag_spec='-L$libdir'
  14364. hardcode_shlibpath_var=no
  14365. ;;
  14366. freebsd1*)
  14367. ld_shlibs=no
  14368. ;;
  14369. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14370. # support. Future versions do this automatically, but an explicit c++rt0.o
  14371. # does not break anything, and helps significantly (at the cost of a little
  14372. # extra space).
  14373. freebsd2.2*)
  14374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14375. hardcode_libdir_flag_spec='-R$libdir'
  14376. hardcode_direct=yes
  14377. hardcode_shlibpath_var=no
  14378. ;;
  14379. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14380. freebsd2*)
  14381. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14382. hardcode_direct=yes
  14383. hardcode_minus_L=yes
  14384. hardcode_shlibpath_var=no
  14385. ;;
  14386. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14387. freebsd* | kfreebsd*-gnu | dragonfly*)
  14388. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14389. hardcode_libdir_flag_spec='-R$libdir'
  14390. hardcode_direct=yes
  14391. hardcode_shlibpath_var=no
  14392. ;;
  14393. hpux9*)
  14394. if test "$GCC" = yes; then
  14395. 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'
  14396. else
  14397. 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'
  14398. fi
  14399. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14400. hardcode_libdir_separator=:
  14401. hardcode_direct=yes
  14402. # hardcode_minus_L: Not really in the search PATH,
  14403. # but as the default location of the library.
  14404. hardcode_minus_L=yes
  14405. export_dynamic_flag_spec='${wl}-E'
  14406. ;;
  14407. hpux10*)
  14408. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14409. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14410. else
  14411. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14412. fi
  14413. if test "$with_gnu_ld" = no; then
  14414. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14415. hardcode_libdir_separator=:
  14416. hardcode_direct=yes
  14417. export_dynamic_flag_spec='${wl}-E'
  14418. # hardcode_minus_L: Not really in the search PATH,
  14419. # but as the default location of the library.
  14420. hardcode_minus_L=yes
  14421. fi
  14422. ;;
  14423. hpux11*)
  14424. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14425. case $host_cpu in
  14426. hppa*64*)
  14427. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14428. ;;
  14429. ia64*)
  14430. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14431. ;;
  14432. *)
  14433. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14434. ;;
  14435. esac
  14436. else
  14437. case $host_cpu in
  14438. hppa*64*)
  14439. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14440. ;;
  14441. ia64*)
  14442. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14443. ;;
  14444. *)
  14445. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14446. ;;
  14447. esac
  14448. fi
  14449. if test "$with_gnu_ld" = no; then
  14450. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14451. hardcode_libdir_separator=:
  14452. case $host_cpu in
  14453. hppa*64*|ia64*)
  14454. hardcode_libdir_flag_spec_ld='+b $libdir'
  14455. hardcode_direct=no
  14456. hardcode_shlibpath_var=no
  14457. ;;
  14458. *)
  14459. hardcode_direct=yes
  14460. export_dynamic_flag_spec='${wl}-E'
  14461. # hardcode_minus_L: Not really in the search PATH,
  14462. # but as the default location of the library.
  14463. hardcode_minus_L=yes
  14464. ;;
  14465. esac
  14466. fi
  14467. ;;
  14468. irix5* | irix6* | nonstopux*)
  14469. if test "$GCC" = yes; then
  14470. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14471. else
  14472. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14473. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  14474. fi
  14475. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14476. hardcode_libdir_separator=:
  14477. link_all_deplibs=yes
  14478. ;;
  14479. netbsd*)
  14480. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14481. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14482. else
  14483. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14484. fi
  14485. hardcode_libdir_flag_spec='-R$libdir'
  14486. hardcode_direct=yes
  14487. hardcode_shlibpath_var=no
  14488. ;;
  14489. newsos6)
  14490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14491. hardcode_direct=yes
  14492. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14493. hardcode_libdir_separator=:
  14494. hardcode_shlibpath_var=no
  14495. ;;
  14496. openbsd*)
  14497. hardcode_direct=yes
  14498. hardcode_shlibpath_var=no
  14499. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14500. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14501. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14502. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14503. export_dynamic_flag_spec='${wl}-E'
  14504. else
  14505. case $host_os in
  14506. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14507. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14508. hardcode_libdir_flag_spec='-R$libdir'
  14509. ;;
  14510. *)
  14511. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14512. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14513. ;;
  14514. esac
  14515. fi
  14516. ;;
  14517. os2*)
  14518. hardcode_libdir_flag_spec='-L$libdir'
  14519. hardcode_minus_L=yes
  14520. allow_undefined_flag=unsupported
  14521. 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'
  14522. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14523. ;;
  14524. osf3*)
  14525. if test "$GCC" = yes; then
  14526. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14527. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14528. else
  14529. allow_undefined_flag=' -expect_unresolved \*'
  14530. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14531. fi
  14532. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14533. hardcode_libdir_separator=:
  14534. ;;
  14535. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14536. if test "$GCC" = yes; then
  14537. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14538. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14539. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14540. else
  14541. allow_undefined_flag=' -expect_unresolved \*'
  14542. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14543. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14544. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  14545. # Both c and cxx compiler support -rpath directly
  14546. hardcode_libdir_flag_spec='-rpath $libdir'
  14547. fi
  14548. hardcode_libdir_separator=:
  14549. ;;
  14550. solaris*)
  14551. no_undefined_flag=' -z text'
  14552. if test "$GCC" = yes; then
  14553. wlarc='${wl}'
  14554. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14555. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14556. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14557. else
  14558. wlarc=''
  14559. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14560. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14561. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14562. fi
  14563. hardcode_libdir_flag_spec='-R$libdir'
  14564. hardcode_shlibpath_var=no
  14565. case $host_os in
  14566. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14567. *)
  14568. # The compiler driver will combine linker options so we
  14569. # cannot just pass the convience library names through
  14570. # without $wl, iff we do not link with $LD.
  14571. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14572. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14573. case $wlarc in
  14574. '')
  14575. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  14576. *)
  14577. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14578. esac ;;
  14579. esac
  14580. link_all_deplibs=yes
  14581. ;;
  14582. sunos4*)
  14583. if test "x$host_vendor" = xsequent; then
  14584. # Use $CC to link under sequent, because it throws in some extra .o
  14585. # files that make .init and .fini sections work.
  14586. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14587. else
  14588. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14589. fi
  14590. hardcode_libdir_flag_spec='-L$libdir'
  14591. hardcode_direct=yes
  14592. hardcode_minus_L=yes
  14593. hardcode_shlibpath_var=no
  14594. ;;
  14595. sysv4)
  14596. case $host_vendor in
  14597. sni)
  14598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14599. hardcode_direct=yes # is this really true???
  14600. ;;
  14601. siemens)
  14602. ## LD is ld it makes a PLAMLIB
  14603. ## CC just makes a GrossModule.
  14604. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14605. reload_cmds='$CC -r -o $output$reload_objs'
  14606. hardcode_direct=no
  14607. ;;
  14608. motorola)
  14609. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14610. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  14611. ;;
  14612. esac
  14613. runpath_var='LD_RUN_PATH'
  14614. hardcode_shlibpath_var=no
  14615. ;;
  14616. sysv4.3*)
  14617. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14618. hardcode_shlibpath_var=no
  14619. export_dynamic_flag_spec='-Bexport'
  14620. ;;
  14621. sysv4*MP*)
  14622. if test -d /usr/nec; then
  14623. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14624. hardcode_shlibpath_var=no
  14625. runpath_var=LD_RUN_PATH
  14626. hardcode_runpath_var=yes
  14627. ld_shlibs=yes
  14628. fi
  14629. ;;
  14630. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  14631. no_undefined_flag='${wl}-z,text'
  14632. archive_cmds_need_lc=no
  14633. hardcode_shlibpath_var=no
  14634. runpath_var='LD_RUN_PATH'
  14635. if test "$GCC" = yes; then
  14636. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14637. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14638. else
  14639. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14640. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14641. fi
  14642. ;;
  14643. sysv5* | sco3.2v5* | sco5v6*)
  14644. # Note: We can NOT use -z defs as we might desire, because we do not
  14645. # link with -lc, and that would cause any symbols used from libc to
  14646. # always be unresolved, which means just about no library would
  14647. # ever link correctly. If we're not using GNU ld we use -z text
  14648. # though, which does catch some bad symbols but isn't as heavy-handed
  14649. # as -z defs.
  14650. no_undefined_flag='${wl}-z,text'
  14651. allow_undefined_flag='${wl}-z,nodefs'
  14652. archive_cmds_need_lc=no
  14653. hardcode_shlibpath_var=no
  14654. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14655. hardcode_libdir_separator=':'
  14656. link_all_deplibs=yes
  14657. export_dynamic_flag_spec='${wl}-Bexport'
  14658. runpath_var='LD_RUN_PATH'
  14659. if test "$GCC" = yes; then
  14660. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14661. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14662. else
  14663. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14664. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14665. fi
  14666. ;;
  14667. uts4*)
  14668. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14669. hardcode_libdir_flag_spec='-L$libdir'
  14670. hardcode_shlibpath_var=no
  14671. ;;
  14672. *)
  14673. ld_shlibs=no
  14674. ;;
  14675. esac
  14676. fi
  14677. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  14678. echo "${ECHO_T}$ld_shlibs" >&6; }
  14679. test "$ld_shlibs" = no && can_build_shared=no
  14680. #
  14681. # Do we need to explicitly link libc?
  14682. #
  14683. case "x$archive_cmds_need_lc" in
  14684. x|xyes)
  14685. # Assume -lc should be added
  14686. archive_cmds_need_lc=yes
  14687. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14688. case $archive_cmds in
  14689. *'~'*)
  14690. # FIXME: we may have to deal with multi-command sequences.
  14691. ;;
  14692. '$CC '*)
  14693. # Test whether the compiler implicitly links with -lc since on some
  14694. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14695. # to ld, don't add -lc before -lgcc.
  14696. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14697. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  14698. $rm conftest*
  14699. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14701. (eval $ac_compile) 2>&5
  14702. ac_status=$?
  14703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14704. (exit $ac_status); } 2>conftest.err; then
  14705. soname=conftest
  14706. lib=conftest
  14707. libobjs=conftest.$ac_objext
  14708. deplibs=
  14709. wl=$lt_prog_compiler_wl
  14710. pic_flag=$lt_prog_compiler_pic
  14711. compiler_flags=-v
  14712. linker_flags=-v
  14713. verstring=
  14714. output_objdir=.
  14715. libname=conftest
  14716. lt_save_allow_undefined_flag=$allow_undefined_flag
  14717. allow_undefined_flag=
  14718. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14719. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14720. ac_status=$?
  14721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14722. (exit $ac_status); }
  14723. then
  14724. archive_cmds_need_lc=no
  14725. else
  14726. archive_cmds_need_lc=yes
  14727. fi
  14728. allow_undefined_flag=$lt_save_allow_undefined_flag
  14729. else
  14730. cat conftest.err 1>&5
  14731. fi
  14732. $rm conftest*
  14733. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  14734. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  14735. ;;
  14736. esac
  14737. fi
  14738. ;;
  14739. esac
  14740. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14741. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14742. library_names_spec=
  14743. libname_spec='lib$name'
  14744. soname_spec=
  14745. shrext_cmds=".so"
  14746. postinstall_cmds=
  14747. postuninstall_cmds=
  14748. finish_cmds=
  14749. finish_eval=
  14750. shlibpath_var=
  14751. shlibpath_overrides_runpath=unknown
  14752. version_type=none
  14753. dynamic_linker="$host_os ld.so"
  14754. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14755. if test "$GCC" = yes; then
  14756. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14757. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14758. # if the path contains ";" then we assume it to be the separator
  14759. # otherwise default to the standard path separator (i.e. ":") - it is
  14760. # assumed that no part of a normal pathname contains ";" but that should
  14761. # okay in the real world where ";" in dirpaths is itself problematic.
  14762. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14763. else
  14764. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14765. fi
  14766. else
  14767. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14768. fi
  14769. need_lib_prefix=unknown
  14770. hardcode_into_libs=no
  14771. # when you set need_version to no, make sure it does not cause -set_version
  14772. # flags to be left without arguments
  14773. need_version=unknown
  14774. case $host_os in
  14775. aix3*)
  14776. version_type=linux
  14777. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14778. shlibpath_var=LIBPATH
  14779. # AIX 3 has no versioning support, so we append a major version to the name.
  14780. soname_spec='${libname}${release}${shared_ext}$major'
  14781. ;;
  14782. aix4* | aix5*)
  14783. version_type=linux
  14784. need_lib_prefix=no
  14785. need_version=no
  14786. hardcode_into_libs=yes
  14787. if test "$host_cpu" = ia64; then
  14788. # AIX 5 supports IA64
  14789. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14790. shlibpath_var=LD_LIBRARY_PATH
  14791. else
  14792. # With GCC up to 2.95.x, collect2 would create an import file
  14793. # for dependence libraries. The import file would start with
  14794. # the line `#! .'. This would cause the generated library to
  14795. # depend on `.', always an invalid library. This was fixed in
  14796. # development snapshots of GCC prior to 3.0.
  14797. case $host_os in
  14798. aix4 | aix4.[01] | aix4.[01].*)
  14799. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14800. echo ' yes '
  14801. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14802. :
  14803. else
  14804. can_build_shared=no
  14805. fi
  14806. ;;
  14807. esac
  14808. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14809. # soname into executable. Probably we can add versioning support to
  14810. # collect2, so additional links can be useful in future.
  14811. if test "$aix_use_runtimelinking" = yes; then
  14812. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14813. # instead of lib<name>.a to let people know that these are not
  14814. # typical AIX shared libraries.
  14815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14816. else
  14817. # We preserve .a as extension for shared libraries through AIX4.2
  14818. # and later when we are not doing run time linking.
  14819. library_names_spec='${libname}${release}.a $libname.a'
  14820. soname_spec='${libname}${release}${shared_ext}$major'
  14821. fi
  14822. shlibpath_var=LIBPATH
  14823. fi
  14824. ;;
  14825. amigaos*)
  14826. library_names_spec='$libname.ixlibrary $libname.a'
  14827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14828. 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'
  14829. ;;
  14830. beos*)
  14831. library_names_spec='${libname}${shared_ext}'
  14832. dynamic_linker="$host_os ld.so"
  14833. shlibpath_var=LIBRARY_PATH
  14834. ;;
  14835. bsdi[45]*)
  14836. version_type=linux
  14837. need_version=no
  14838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14839. soname_spec='${libname}${release}${shared_ext}$major'
  14840. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14843. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14844. # the default ld.so.conf also contains /usr/contrib/lib and
  14845. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14846. # libtool to hard-code these into programs
  14847. ;;
  14848. cygwin* | mingw* | pw32*)
  14849. version_type=windows
  14850. shrext_cmds=".dll"
  14851. need_version=no
  14852. need_lib_prefix=no
  14853. case $GCC,$host_os in
  14854. yes,cygwin* | yes,mingw* | yes,pw32*)
  14855. library_names_spec='$libname.dll.a'
  14856. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14857. postinstall_cmds='base_file=`basename \${file}`~
  14858. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14859. dldir=$destdir/`dirname \$dlpath`~
  14860. test -d \$dldir || mkdir -p \$dldir~
  14861. $install_prog $dir/$dlname \$dldir/$dlname~
  14862. chmod a+x \$dldir/$dlname'
  14863. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14864. dlpath=$dir/\$dldll~
  14865. $rm \$dlpath'
  14866. shlibpath_overrides_runpath=yes
  14867. case $host_os in
  14868. cygwin*)
  14869. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14870. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14871. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14872. ;;
  14873. mingw*)
  14874. # MinGW DLLs use traditional 'lib' prefix
  14875. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14876. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14877. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14878. # It is most probably a Windows format PATH printed by
  14879. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14880. # path with ; separators, and with drive letters. We can handle the
  14881. # drive letters (cygwin fileutils understands them), so leave them,
  14882. # especially as we might pass files found there to a mingw objdump,
  14883. # which wouldn't understand a cygwinified path. Ahh.
  14884. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14885. else
  14886. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14887. fi
  14888. ;;
  14889. pw32*)
  14890. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14891. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14892. ;;
  14893. esac
  14894. ;;
  14895. *)
  14896. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14897. ;;
  14898. esac
  14899. dynamic_linker='Win32 ld.exe'
  14900. # FIXME: first we should search . and the directory the executable is in
  14901. shlibpath_var=PATH
  14902. ;;
  14903. darwin* | rhapsody*)
  14904. dynamic_linker="$host_os dyld"
  14905. version_type=darwin
  14906. need_lib_prefix=no
  14907. need_version=no
  14908. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14909. soname_spec='${libname}${release}${major}$shared_ext'
  14910. shlibpath_overrides_runpath=yes
  14911. shlibpath_var=DYLD_LIBRARY_PATH
  14912. shrext_cmds='.dylib'
  14913. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14914. if test "$GCC" = yes; then
  14915. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14916. else
  14917. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14918. fi
  14919. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14920. ;;
  14921. dgux*)
  14922. version_type=linux
  14923. need_lib_prefix=no
  14924. need_version=no
  14925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14926. soname_spec='${libname}${release}${shared_ext}$major'
  14927. shlibpath_var=LD_LIBRARY_PATH
  14928. ;;
  14929. freebsd1*)
  14930. dynamic_linker=no
  14931. ;;
  14932. kfreebsd*-gnu)
  14933. version_type=linux
  14934. need_lib_prefix=no
  14935. need_version=no
  14936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14937. soname_spec='${libname}${release}${shared_ext}$major'
  14938. shlibpath_var=LD_LIBRARY_PATH
  14939. shlibpath_overrides_runpath=no
  14940. hardcode_into_libs=yes
  14941. dynamic_linker='GNU ld.so'
  14942. ;;
  14943. freebsd* | dragonfly*)
  14944. # DragonFly does not have aout. When/if they implement a new
  14945. # versioning mechanism, adjust this.
  14946. if test -x /usr/bin/objformat; then
  14947. objformat=`/usr/bin/objformat`
  14948. else
  14949. case $host_os in
  14950. freebsd[123]*) objformat=aout ;;
  14951. *) objformat=elf ;;
  14952. esac
  14953. fi
  14954. version_type=freebsd-$objformat
  14955. case $version_type in
  14956. freebsd-elf*)
  14957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14958. need_version=no
  14959. need_lib_prefix=no
  14960. ;;
  14961. freebsd-*)
  14962. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14963. need_version=yes
  14964. ;;
  14965. esac
  14966. shlibpath_var=LD_LIBRARY_PATH
  14967. case $host_os in
  14968. freebsd2*)
  14969. shlibpath_overrides_runpath=yes
  14970. ;;
  14971. freebsd3.[01]* | freebsdelf3.[01]*)
  14972. shlibpath_overrides_runpath=yes
  14973. hardcode_into_libs=yes
  14974. ;;
  14975. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14976. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14977. shlibpath_overrides_runpath=no
  14978. hardcode_into_libs=yes
  14979. ;;
  14980. freebsd*) # from 4.6 on
  14981. shlibpath_overrides_runpath=yes
  14982. hardcode_into_libs=yes
  14983. ;;
  14984. esac
  14985. ;;
  14986. gnu*)
  14987. version_type=linux
  14988. need_lib_prefix=no
  14989. need_version=no
  14990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14991. soname_spec='${libname}${release}${shared_ext}$major'
  14992. shlibpath_var=LD_LIBRARY_PATH
  14993. hardcode_into_libs=yes
  14994. ;;
  14995. hpux9* | hpux10* | hpux11*)
  14996. # Give a soname corresponding to the major version so that dld.sl refuses to
  14997. # link against other versions.
  14998. version_type=sunos
  14999. need_lib_prefix=no
  15000. need_version=no
  15001. case $host_cpu in
  15002. ia64*)
  15003. shrext_cmds='.so'
  15004. hardcode_into_libs=yes
  15005. dynamic_linker="$host_os dld.so"
  15006. shlibpath_var=LD_LIBRARY_PATH
  15007. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15009. soname_spec='${libname}${release}${shared_ext}$major'
  15010. if test "X$HPUX_IA64_MODE" = X32; then
  15011. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15012. else
  15013. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15014. fi
  15015. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15016. ;;
  15017. hppa*64*)
  15018. shrext_cmds='.sl'
  15019. hardcode_into_libs=yes
  15020. dynamic_linker="$host_os dld.sl"
  15021. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15022. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15024. soname_spec='${libname}${release}${shared_ext}$major'
  15025. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15026. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15027. ;;
  15028. *)
  15029. shrext_cmds='.sl'
  15030. dynamic_linker="$host_os dld.sl"
  15031. shlibpath_var=SHLIB_PATH
  15032. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15034. soname_spec='${libname}${release}${shared_ext}$major'
  15035. ;;
  15036. esac
  15037. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15038. postinstall_cmds='chmod 555 $lib'
  15039. ;;
  15040. interix3*)
  15041. version_type=linux
  15042. need_lib_prefix=no
  15043. need_version=no
  15044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15045. soname_spec='${libname}${release}${shared_ext}$major'
  15046. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15047. shlibpath_var=LD_LIBRARY_PATH
  15048. shlibpath_overrides_runpath=no
  15049. hardcode_into_libs=yes
  15050. ;;
  15051. irix5* | irix6* | nonstopux*)
  15052. case $host_os in
  15053. nonstopux*) version_type=nonstopux ;;
  15054. *)
  15055. if test "$lt_cv_prog_gnu_ld" = yes; then
  15056. version_type=linux
  15057. else
  15058. version_type=irix
  15059. fi ;;
  15060. esac
  15061. need_lib_prefix=no
  15062. need_version=no
  15063. soname_spec='${libname}${release}${shared_ext}$major'
  15064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15065. case $host_os in
  15066. irix5* | nonstopux*)
  15067. libsuff= shlibsuff=
  15068. ;;
  15069. *)
  15070. case $LD in # libtool.m4 will add one of these switches to LD
  15071. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15072. libsuff= shlibsuff= libmagic=32-bit;;
  15073. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15074. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15075. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15076. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15077. *) libsuff= shlibsuff= libmagic=never-match;;
  15078. esac
  15079. ;;
  15080. esac
  15081. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15082. shlibpath_overrides_runpath=no
  15083. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15084. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15085. hardcode_into_libs=yes
  15086. ;;
  15087. # No shared lib support for Linux oldld, aout, or coff.
  15088. linux*oldld* | linux*aout* | linux*coff*)
  15089. dynamic_linker=no
  15090. ;;
  15091. # This must be Linux ELF.
  15092. linux*)
  15093. version_type=linux
  15094. need_lib_prefix=no
  15095. need_version=no
  15096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15097. soname_spec='${libname}${release}${shared_ext}$major'
  15098. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15099. shlibpath_var=LD_LIBRARY_PATH
  15100. shlibpath_overrides_runpath=no
  15101. # This implies no fast_install, which is unacceptable.
  15102. # Some rework will be needed to allow for fast_install
  15103. # before this can be enabled.
  15104. hardcode_into_libs=yes
  15105. # Append ld.so.conf contents to the search path
  15106. if test -f /etc/ld.so.conf; then
  15107. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15108. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15109. fi
  15110. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15111. # powerpc, because MkLinux only supported shared libraries with the
  15112. # GNU dynamic linker. Since this was broken with cross compilers,
  15113. # most powerpc-linux boxes support dynamic linking these days and
  15114. # people can always --disable-shared, the test was removed, and we
  15115. # assume the GNU/Linux dynamic linker is in use.
  15116. dynamic_linker='GNU/Linux ld.so'
  15117. ;;
  15118. knetbsd*-gnu)
  15119. version_type=linux
  15120. need_lib_prefix=no
  15121. need_version=no
  15122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15123. soname_spec='${libname}${release}${shared_ext}$major'
  15124. shlibpath_var=LD_LIBRARY_PATH
  15125. shlibpath_overrides_runpath=no
  15126. hardcode_into_libs=yes
  15127. dynamic_linker='GNU ld.so'
  15128. ;;
  15129. netbsd*)
  15130. version_type=sunos
  15131. need_lib_prefix=no
  15132. need_version=no
  15133. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15136. dynamic_linker='NetBSD (a.out) ld.so'
  15137. else
  15138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15139. soname_spec='${libname}${release}${shared_ext}$major'
  15140. dynamic_linker='NetBSD ld.elf_so'
  15141. fi
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. shlibpath_overrides_runpath=yes
  15144. hardcode_into_libs=yes
  15145. ;;
  15146. newsos6)
  15147. version_type=linux
  15148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15149. shlibpath_var=LD_LIBRARY_PATH
  15150. shlibpath_overrides_runpath=yes
  15151. ;;
  15152. nto-qnx*)
  15153. version_type=linux
  15154. need_lib_prefix=no
  15155. need_version=no
  15156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15157. soname_spec='${libname}${release}${shared_ext}$major'
  15158. shlibpath_var=LD_LIBRARY_PATH
  15159. shlibpath_overrides_runpath=yes
  15160. ;;
  15161. openbsd*)
  15162. version_type=sunos
  15163. sys_lib_dlsearch_path_spec="/usr/lib"
  15164. need_lib_prefix=no
  15165. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15166. case $host_os in
  15167. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15168. *) need_version=no ;;
  15169. esac
  15170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15174. case $host_os in
  15175. openbsd2.[89] | openbsd2.[89].*)
  15176. shlibpath_overrides_runpath=no
  15177. ;;
  15178. *)
  15179. shlibpath_overrides_runpath=yes
  15180. ;;
  15181. esac
  15182. else
  15183. shlibpath_overrides_runpath=yes
  15184. fi
  15185. ;;
  15186. os2*)
  15187. libname_spec='$name'
  15188. shrext_cmds=".dll"
  15189. need_lib_prefix=no
  15190. library_names_spec='$libname${shared_ext} $libname.a'
  15191. dynamic_linker='OS/2 ld.exe'
  15192. shlibpath_var=LIBPATH
  15193. ;;
  15194. osf3* | osf4* | osf5*)
  15195. version_type=osf
  15196. need_lib_prefix=no
  15197. need_version=no
  15198. soname_spec='${libname}${release}${shared_ext}$major'
  15199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15200. shlibpath_var=LD_LIBRARY_PATH
  15201. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15202. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15203. ;;
  15204. solaris*)
  15205. version_type=linux
  15206. need_lib_prefix=no
  15207. need_version=no
  15208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15209. soname_spec='${libname}${release}${shared_ext}$major'
  15210. shlibpath_var=LD_LIBRARY_PATH
  15211. shlibpath_overrides_runpath=yes
  15212. hardcode_into_libs=yes
  15213. # ldd complains unless libraries are executable
  15214. postinstall_cmds='chmod +x $lib'
  15215. ;;
  15216. sunos4*)
  15217. version_type=sunos
  15218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15219. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15220. shlibpath_var=LD_LIBRARY_PATH
  15221. shlibpath_overrides_runpath=yes
  15222. if test "$with_gnu_ld" = yes; then
  15223. need_lib_prefix=no
  15224. fi
  15225. need_version=yes
  15226. ;;
  15227. sysv4 | sysv4.3*)
  15228. version_type=linux
  15229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15230. soname_spec='${libname}${release}${shared_ext}$major'
  15231. shlibpath_var=LD_LIBRARY_PATH
  15232. case $host_vendor in
  15233. sni)
  15234. shlibpath_overrides_runpath=no
  15235. need_lib_prefix=no
  15236. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15237. runpath_var=LD_RUN_PATH
  15238. ;;
  15239. siemens)
  15240. need_lib_prefix=no
  15241. ;;
  15242. motorola)
  15243. need_lib_prefix=no
  15244. need_version=no
  15245. shlibpath_overrides_runpath=no
  15246. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15247. ;;
  15248. esac
  15249. ;;
  15250. sysv4*MP*)
  15251. if test -d /usr/nec ;then
  15252. version_type=linux
  15253. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15254. soname_spec='$libname${shared_ext}.$major'
  15255. shlibpath_var=LD_LIBRARY_PATH
  15256. fi
  15257. ;;
  15258. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15259. version_type=freebsd-elf
  15260. need_lib_prefix=no
  15261. need_version=no
  15262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15263. soname_spec='${libname}${release}${shared_ext}$major'
  15264. shlibpath_var=LD_LIBRARY_PATH
  15265. hardcode_into_libs=yes
  15266. if test "$with_gnu_ld" = yes; then
  15267. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15268. shlibpath_overrides_runpath=no
  15269. else
  15270. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15271. shlibpath_overrides_runpath=yes
  15272. case $host_os in
  15273. sco3.2v5*)
  15274. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15275. ;;
  15276. esac
  15277. fi
  15278. sys_lib_dlsearch_path_spec='/usr/lib'
  15279. ;;
  15280. uts4*)
  15281. version_type=linux
  15282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15283. soname_spec='${libname}${release}${shared_ext}$major'
  15284. shlibpath_var=LD_LIBRARY_PATH
  15285. ;;
  15286. *)
  15287. dynamic_linker=no
  15288. ;;
  15289. esac
  15290. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15291. echo "${ECHO_T}$dynamic_linker" >&6; }
  15292. test "$dynamic_linker" = no && can_build_shared=no
  15293. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15294. if test "$GCC" = yes; then
  15295. variables_saved_for_relink="$variables_s