PageRenderTime 133ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 3ms

/configure

https://bitbucket.org/libusbandroid/libusb-compat-android
Shell | 13945 lines | 11838 code | 1147 blank | 960 comment | 862 complexity | f1799eae87e7a459942113c62b0ba798 MD5 | raw file
Possible License(s): LGPL-2.1
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libusb-compat 0.1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='libusb-compat'
  647. PACKAGE_TARNAME='libusb-compat'
  648. PACKAGE_VERSION='0.1.0'
  649. PACKAGE_STRING='libusb-compat 0.1.0'
  650. PACKAGE_BUGREPORT=''
  651. ac_unique_file="libusb/core.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. LIBOBJS
  689. AM_CFLAGS
  690. BUILD_EXAMPLES_FALSE
  691. BUILD_EXAMPLES_TRUE
  692. LIBUSB_1_0_LIBS
  693. LIBUSB_1_0_CFLAGS
  694. PKG_CONFIG
  695. LIBUSB01_VERSION
  696. LT_AGE
  697. LT_REVISION
  698. LT_MAJOR
  699. CPP
  700. OTOOL64
  701. OTOOL
  702. LIPO
  703. NMEDIT
  704. DSYMUTIL
  705. lt_ECHO
  706. RANLIB
  707. AR
  708. OBJDUMP
  709. LN_S
  710. NM
  711. ac_ct_DUMPBIN
  712. DUMPBIN
  713. LD
  714. FGREP
  715. EGREP
  716. GREP
  717. SED
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. am__fastdepCC_FALSE
  728. am__fastdepCC_TRUE
  729. CCDEPMODE
  730. AMDEPBACKSLASH
  731. AMDEP_FALSE
  732. AMDEP_TRUE
  733. am__quote
  734. am__include
  735. DEPDIR
  736. OBJEXT
  737. EXEEXT
  738. ac_ct_CC
  739. CPPFLAGS
  740. LDFLAGS
  741. CFLAGS
  742. CC
  743. am__untar
  744. am__tar
  745. AMTAR
  746. am__leading_dot
  747. SET_MAKE
  748. AWK
  749. mkdir_p
  750. MKDIR_P
  751. INSTALL_STRIP_PROGRAM
  752. STRIP
  753. install_sh
  754. MAKEINFO
  755. AUTOHEADER
  756. AUTOMAKE
  757. AUTOCONF
  758. ACLOCAL
  759. VERSION
  760. PACKAGE
  761. CYGPATH_W
  762. am__isrc
  763. INSTALL_DATA
  764. INSTALL_SCRIPT
  765. INSTALL_PROGRAM
  766. target_alias
  767. host_alias
  768. build_alias
  769. LIBS
  770. ECHO_T
  771. ECHO_N
  772. ECHO_C
  773. DEFS
  774. mandir
  775. localedir
  776. libdir
  777. psdir
  778. pdfdir
  779. dvidir
  780. htmldir
  781. infodir
  782. docdir
  783. oldincludedir
  784. includedir
  785. localstatedir
  786. sharedstatedir
  787. sysconfdir
  788. datadir
  789. datarootdir
  790. libexecdir
  791. sbindir
  792. bindir
  793. program_transform_name
  794. prefix
  795. exec_prefix
  796. PACKAGE_BUGREPORT
  797. PACKAGE_STRING
  798. PACKAGE_VERSION
  799. PACKAGE_TARNAME
  800. PACKAGE_NAME
  801. PATH_SEPARATOR
  802. SHELL'
  803. ac_subst_files=''
  804. ac_user_opts='
  805. enable_option_checking
  806. enable_dependency_tracking
  807. enable_shared
  808. enable_static
  809. with_pic
  810. enable_fast_install
  811. with_gnu_ld
  812. enable_libtool_lock
  813. enable_log
  814. enable_debug_log
  815. enable_examples_build
  816. '
  817. ac_precious_vars='build_alias
  818. host_alias
  819. target_alias
  820. CC
  821. CFLAGS
  822. LDFLAGS
  823. LIBS
  824. CPPFLAGS
  825. CPP
  826. PKG_CONFIG
  827. LIBUSB_1_0_CFLAGS
  828. LIBUSB_1_0_LIBS'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. ac_unrecognized_opts=
  833. ac_unrecognized_sep=
  834. # The variables have the same names as the options, with
  835. # dashes changed to underlines.
  836. cache_file=/dev/null
  837. exec_prefix=NONE
  838. no_create=
  839. no_recursion=
  840. prefix=NONE
  841. program_prefix=NONE
  842. program_suffix=NONE
  843. program_transform_name=s,x,x,
  844. silent=
  845. site=
  846. srcdir=
  847. verbose=
  848. x_includes=NONE
  849. x_libraries=NONE
  850. # Installation directory options.
  851. # These are left unexpanded so users can "make install exec_prefix=/foo"
  852. # and all the variables that are supposed to be based on exec_prefix
  853. # by default will actually change.
  854. # Use braces instead of parens because sh, perl, etc. also accept them.
  855. # (The list follows the same order as the GNU Coding Standards.)
  856. bindir='${exec_prefix}/bin'
  857. sbindir='${exec_prefix}/sbin'
  858. libexecdir='${exec_prefix}/libexec'
  859. datarootdir='${prefix}/share'
  860. datadir='${datarootdir}'
  861. sysconfdir='${prefix}/etc'
  862. sharedstatedir='${prefix}/com'
  863. localstatedir='${prefix}/var'
  864. includedir='${prefix}/include'
  865. oldincludedir='/usr/include'
  866. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  867. infodir='${datarootdir}/info'
  868. htmldir='${docdir}'
  869. dvidir='${docdir}'
  870. pdfdir='${docdir}'
  871. psdir='${docdir}'
  872. libdir='${exec_prefix}/lib'
  873. localedir='${datarootdir}/locale'
  874. mandir='${datarootdir}/man'
  875. ac_prev=
  876. ac_dashdash=
  877. for ac_option
  878. do
  879. # If the previous option needs an argument, assign it.
  880. if test -n "$ac_prev"; then
  881. eval $ac_prev=\$ac_option
  882. ac_prev=
  883. continue
  884. fi
  885. case $ac_option in
  886. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  887. *) ac_optarg=yes ;;
  888. esac
  889. # Accept the important Cygnus configure options, so we can diagnose typos.
  890. case $ac_dashdash$ac_option in
  891. --)
  892. ac_dashdash=yes ;;
  893. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  894. ac_prev=bindir ;;
  895. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  896. bindir=$ac_optarg ;;
  897. -build | --build | --buil | --bui | --bu)
  898. ac_prev=build_alias ;;
  899. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  900. build_alias=$ac_optarg ;;
  901. -cache-file | --cache-file | --cache-fil | --cache-fi \
  902. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  903. ac_prev=cache_file ;;
  904. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  905. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  906. cache_file=$ac_optarg ;;
  907. --config-cache | -C)
  908. cache_file=config.cache ;;
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  914. | --dataroo | --dataro | --datar)
  915. ac_prev=datarootdir ;;
  916. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  917. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  918. datarootdir=$ac_optarg ;;
  919. -disable-* | --disable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  924. { (exit 1); exit 1; }; }
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=no ;;
  935. -docdir | --docdir | --docdi | --doc | --do)
  936. ac_prev=docdir ;;
  937. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  938. docdir=$ac_optarg ;;
  939. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  940. ac_prev=dvidir ;;
  941. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  942. dvidir=$ac_optarg ;;
  943. -enable-* | --enable-*)
  944. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  945. # Reject names that are not valid shell variable names.
  946. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  947. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  948. { (exit 1); exit 1; }; }
  949. ac_useropt_orig=$ac_useropt
  950. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  951. case $ac_user_opts in
  952. *"
  953. "enable_$ac_useropt"
  954. "*) ;;
  955. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  956. ac_unrecognized_sep=', ';;
  957. esac
  958. eval enable_$ac_useropt=\$ac_optarg ;;
  959. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  960. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  961. | --exec | --exe | --ex)
  962. ac_prev=exec_prefix ;;
  963. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  964. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  965. | --exec=* | --exe=* | --ex=*)
  966. exec_prefix=$ac_optarg ;;
  967. -gas | --gas | --ga | --g)
  968. # Obsolete; use --with-gas.
  969. with_gas=yes ;;
  970. -help | --help | --hel | --he | -h)
  971. ac_init_help=long ;;
  972. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  973. ac_init_help=recursive ;;
  974. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  975. ac_init_help=short ;;
  976. -host | --host | --hos | --ho)
  977. ac_prev=host_alias ;;
  978. -host=* | --host=* | --hos=* | --ho=*)
  979. host_alias=$ac_optarg ;;
  980. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  981. ac_prev=htmldir ;;
  982. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  983. | --ht=*)
  984. htmldir=$ac_optarg ;;
  985. -includedir | --includedir | --includedi | --included | --include \
  986. | --includ | --inclu | --incl | --inc)
  987. ac_prev=includedir ;;
  988. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  989. | --includ=* | --inclu=* | --incl=* | --inc=*)
  990. includedir=$ac_optarg ;;
  991. -infodir | --infodir | --infodi | --infod | --info | --inf)
  992. ac_prev=infodir ;;
  993. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  994. infodir=$ac_optarg ;;
  995. -libdir | --libdir | --libdi | --libd)
  996. ac_prev=libdir ;;
  997. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  998. libdir=$ac_optarg ;;
  999. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1000. | --libexe | --libex | --libe)
  1001. ac_prev=libexecdir ;;
  1002. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1003. | --libexe=* | --libex=* | --libe=*)
  1004. libexecdir=$ac_optarg ;;
  1005. -localedir | --localedir | --localedi | --localed | --locale)
  1006. ac_prev=localedir ;;
  1007. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1008. localedir=$ac_optarg ;;
  1009. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1010. | --localstate | --localstat | --localsta | --localst | --locals)
  1011. ac_prev=localstatedir ;;
  1012. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1013. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1014. localstatedir=$ac_optarg ;;
  1015. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1016. ac_prev=mandir ;;
  1017. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1018. mandir=$ac_optarg ;;
  1019. -nfp | --nfp | --nf)
  1020. # Obsolete; use --without-fp.
  1021. with_fp=no ;;
  1022. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1023. | --no-cr | --no-c | -n)
  1024. no_create=yes ;;
  1025. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1026. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1027. no_recursion=yes ;;
  1028. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1029. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1030. | --oldin | --oldi | --old | --ol | --o)
  1031. ac_prev=oldincludedir ;;
  1032. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1033. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1034. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1035. oldincludedir=$ac_optarg ;;
  1036. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1037. ac_prev=prefix ;;
  1038. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1039. prefix=$ac_optarg ;;
  1040. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1041. | --program-pre | --program-pr | --program-p)
  1042. ac_prev=program_prefix ;;
  1043. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1044. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1045. program_prefix=$ac_optarg ;;
  1046. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1047. | --program-suf | --program-su | --program-s)
  1048. ac_prev=program_suffix ;;
  1049. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1050. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1051. program_suffix=$ac_optarg ;;
  1052. -program-transform-name | --program-transform-name \
  1053. | --program-transform-nam | --program-transform-na \
  1054. | --program-transform-n | --program-transform- \
  1055. | --program-transform | --program-transfor \
  1056. | --program-transfo | --program-transf \
  1057. | --program-trans | --program-tran \
  1058. | --progr-tra | --program-tr | --program-t)
  1059. ac_prev=program_transform_name ;;
  1060. -program-transform-name=* | --program-transform-name=* \
  1061. | --program-transform-nam=* | --program-transform-na=* \
  1062. | --program-transform-n=* | --program-transform-=* \
  1063. | --program-transform=* | --program-transfor=* \
  1064. | --program-transfo=* | --program-transf=* \
  1065. | --program-trans=* | --program-tran=* \
  1066. | --progr-tra=* | --program-tr=* | --program-t=*)
  1067. program_transform_name=$ac_optarg ;;
  1068. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1069. ac_prev=pdfdir ;;
  1070. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1071. pdfdir=$ac_optarg ;;
  1072. -psdir | --psdir | --psdi | --psd | --ps)
  1073. ac_prev=psdir ;;
  1074. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1075. psdir=$ac_optarg ;;
  1076. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1077. | -silent | --silent | --silen | --sile | --sil)
  1078. silent=yes ;;
  1079. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1080. ac_prev=sbindir ;;
  1081. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1082. | --sbi=* | --sb=*)
  1083. sbindir=$ac_optarg ;;
  1084. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1085. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1086. | --sharedst | --shareds | --shared | --share | --shar \
  1087. | --sha | --sh)
  1088. ac_prev=sharedstatedir ;;
  1089. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1090. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1091. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1092. | --sha=* | --sh=*)
  1093. sharedstatedir=$ac_optarg ;;
  1094. -site | --site | --sit)
  1095. ac_prev=site ;;
  1096. -site=* | --site=* | --sit=*)
  1097. site=$ac_optarg ;;
  1098. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1099. ac_prev=srcdir ;;
  1100. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1101. srcdir=$ac_optarg ;;
  1102. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1103. | --syscon | --sysco | --sysc | --sys | --sy)
  1104. ac_prev=sysconfdir ;;
  1105. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1106. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1107. sysconfdir=$ac_optarg ;;
  1108. -target | --target | --targe | --targ | --tar | --ta | --t)
  1109. ac_prev=target_alias ;;
  1110. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1111. target_alias=$ac_optarg ;;
  1112. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1113. verbose=yes ;;
  1114. -version | --version | --versio | --versi | --vers | -V)
  1115. ac_init_version=: ;;
  1116. -with-* | --with-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1121. { (exit 1); exit 1; }; }
  1122. ac_useropt_orig=$ac_useropt
  1123. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124. case $ac_user_opts in
  1125. *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1129. ac_unrecognized_sep=', ';;
  1130. esac
  1131. eval with_$ac_useropt=\$ac_optarg ;;
  1132. -without-* | --without-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1137. { (exit 1); exit 1; }; }
  1138. ac_useropt_orig=$ac_useropt
  1139. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1140. case $ac_user_opts in
  1141. *"
  1142. "with_$ac_useropt"
  1143. "*) ;;
  1144. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1145. ac_unrecognized_sep=', ';;
  1146. esac
  1147. eval with_$ac_useropt=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1164. Try \`$0 --help' for more information." >&2
  1165. { (exit 1); exit 1; }; }
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1171. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1172. { (exit 1); exit 1; }; }
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1187. { (exit 1); exit 1; }; }
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1193. { (exit 1); exit 1; }; } ;;
  1194. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1195. esac
  1196. fi
  1197. # Check all directory arguments for consistency.
  1198. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1199. datadir sysconfdir sharedstatedir localstatedir includedir \
  1200. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1201. libdir localedir mandir
  1202. do
  1203. eval ac_val=\$$ac_var
  1204. # Remove trailing slashes.
  1205. case $ac_val in
  1206. */ )
  1207. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1208. eval $ac_var=\$ac_val;;
  1209. esac
  1210. # Be sure to have absolute directory names.
  1211. case $ac_val in
  1212. [\\/$]* | ?:[\\/]* ) continue;;
  1213. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1214. esac
  1215. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1216. { (exit 1); exit 1; }; }
  1217. done
  1218. # There might be people who depend on the old broken behavior: `$host'
  1219. # used to hold the argument of --host etc.
  1220. # FIXME: To remove some day.
  1221. build=$build_alias
  1222. host=$host_alias
  1223. target=$target_alias
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1229. If a cross compiler is detected then cross compile mode will be used." >&2
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1241. { (exit 1); exit 1; }; }
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1244. { (exit 1); exit 1; }; }
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1282. { (exit 1); exit 1; }; }
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1287. { (exit 1); exit 1; }; }
  1288. pwd)`
  1289. # When building in place, set srcdir=.
  1290. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1291. srcdir=.
  1292. fi
  1293. # Remove unnecessary trailing slashes from srcdir.
  1294. # Double slashes in file names in object file debugging info
  1295. # mess up M-x gdb in Emacs.
  1296. case $srcdir in
  1297. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1298. esac
  1299. for ac_var in $ac_precious_vars; do
  1300. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_env_${ac_var}_value=\$${ac_var}
  1302. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1304. done
  1305. #
  1306. # Report the --help message.
  1307. #
  1308. if test "$ac_init_help" = "long"; then
  1309. # Omit some internal or obsolete options to make the list less imposing.
  1310. # This message is too long to be a string in the A/UX 3.1 sh.
  1311. cat <<_ACEOF
  1312. \`configure' configures libusb-compat 0.1.0 to adapt to many kinds of systems.
  1313. Usage: $0 [OPTION]... [VAR=VALUE]...
  1314. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1315. VAR=VALUE. See below for descriptions of some of the useful variables.
  1316. Defaults for the options are specified in brackets.
  1317. Configuration:
  1318. -h, --help display this help and exit
  1319. --help=short display options specific to this package
  1320. --help=recursive display the short help of all the included packages
  1321. -V, --version display version information and exit
  1322. -q, --quiet, --silent do not print \`checking...' messages
  1323. --cache-file=FILE cache test results in FILE [disabled]
  1324. -C, --config-cache alias for \`--cache-file=config.cache'
  1325. -n, --no-create do not create output files
  1326. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1327. Installation directories:
  1328. --prefix=PREFIX install architecture-independent files in PREFIX
  1329. [$ac_default_prefix]
  1330. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1331. [PREFIX]
  1332. By default, \`make install' will install all the files in
  1333. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1334. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1335. for instance \`--prefix=\$HOME'.
  1336. For better control, use the options below.
  1337. Fine tuning of the installation directories:
  1338. --bindir=DIR user executables [EPREFIX/bin]
  1339. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1340. --libexecdir=DIR program executables [EPREFIX/libexec]
  1341. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1342. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1343. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1344. --libdir=DIR object code libraries [EPREFIX/lib]
  1345. --includedir=DIR C header files [PREFIX/include]
  1346. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1347. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1348. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1349. --infodir=DIR info documentation [DATAROOTDIR/info]
  1350. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1351. --mandir=DIR man documentation [DATAROOTDIR/man]
  1352. --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat]
  1353. --htmldir=DIR html documentation [DOCDIR]
  1354. --dvidir=DIR dvi documentation [DOCDIR]
  1355. --pdfdir=DIR pdf documentation [DOCDIR]
  1356. --psdir=DIR ps documentation [DOCDIR]
  1357. _ACEOF
  1358. cat <<\_ACEOF
  1359. Program names:
  1360. --program-prefix=PREFIX prepend PREFIX to installed program names
  1361. --program-suffix=SUFFIX append SUFFIX to installed program names
  1362. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1363. System types:
  1364. --build=BUILD configure for building on BUILD [guessed]
  1365. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1366. _ACEOF
  1367. fi
  1368. if test -n "$ac_init_help"; then
  1369. case $ac_init_help in
  1370. short | recursive ) echo "Configuration of libusb-compat 0.1.0:";;
  1371. esac
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --disable-dependency-tracking speeds up one-time build
  1378. --enable-dependency-tracking do not reject slow dependency extractors
  1379. --enable-shared[=PKGS] build shared libraries [default=yes]
  1380. --enable-static[=PKGS] build static libraries [default=yes]
  1381. --enable-fast-install[=PKGS]
  1382. optimize for fast installation [default=yes]
  1383. --disable-libtool-lock avoid locking (might break parallel builds)
  1384. --disable-log disable all logging
  1385. --enable-debug-log enable debug logging (default n)
  1386. --enable-examples-build build example applications (default n)
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-pic try to use only PIC/non-PIC objects [default=use
  1391. both]
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. Some influential environment variables:
  1394. CC C compiler command
  1395. CFLAGS C compiler flags
  1396. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1397. nonstandard directory <lib dir>
  1398. LIBS libraries to pass to the linker, e.g. -l<library>
  1399. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1400. you have headers in a nonstandard directory <include dir>
  1401. CPP C preprocessor
  1402. PKG_CONFIG path to pkg-config utility
  1403. LIBUSB_1_0_CFLAGS
  1404. C compiler flags for LIBUSB_1_0, overriding pkg-config
  1405. LIBUSB_1_0_LIBS
  1406. linker flags for LIBUSB_1_0, overriding pkg-config
  1407. Use these variables to override the choices made by `configure' or to help
  1408. it to find libraries and programs with nonstandard names/locations.
  1409. _ACEOF
  1410. ac_status=$?
  1411. fi
  1412. if test "$ac_init_help" = "recursive"; then
  1413. # If there are subdirs, report their specific --help.
  1414. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1415. test -d "$ac_dir" ||
  1416. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1417. continue
  1418. ac_builddir=.
  1419. case "$ac_dir" in
  1420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1421. *)
  1422. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1423. # A ".." for each directory in $ac_dir_suffix.
  1424. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1425. case $ac_top_builddir_sub in
  1426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1428. esac ;;
  1429. esac
  1430. ac_abs_top_builddir=$ac_pwd
  1431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1432. # for backward compatibility:
  1433. ac_top_builddir=$ac_top_build_prefix
  1434. case $srcdir in
  1435. .) # We are building in place.
  1436. ac_srcdir=.
  1437. ac_top_srcdir=$ac_top_builddir_sub
  1438. ac_abs_top_srcdir=$ac_pwd ;;
  1439. [\\/]* | ?:[\\/]* ) # Absolute name.
  1440. ac_srcdir=$srcdir$ac_dir_suffix;
  1441. ac_top_srcdir=$srcdir
  1442. ac_abs_top_srcdir=$srcdir ;;
  1443. *) # Relative name.
  1444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1447. esac
  1448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1449. cd "$ac_dir" || { ac_status=$?; continue; }
  1450. # Check for guested configure.
  1451. if test -f "$ac_srcdir/configure.gnu"; then
  1452. echo &&
  1453. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1454. elif test -f "$ac_srcdir/configure"; then
  1455. echo &&
  1456. $SHELL "$ac_srcdir/configure" --help=recursive
  1457. else
  1458. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1459. fi || ac_status=$?
  1460. cd "$ac_pwd" || { ac_status=$?; break; }
  1461. done
  1462. fi
  1463. test -n "$ac_init_help" && exit $ac_status
  1464. if $ac_init_version; then
  1465. cat <<\_ACEOF
  1466. libusb-compat configure 0.1.0
  1467. generated by GNU Autoconf 2.63
  1468. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1469. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1470. This configure script is free software; the Free Software Foundation
  1471. gives unlimited permission to copy, distribute and modify it.
  1472. _ACEOF
  1473. exit
  1474. fi
  1475. cat >config.log <<_ACEOF
  1476. This file contains any messages produced by compilers while
  1477. running configure, to aid debugging if configure makes a mistake.
  1478. It was created by libusb-compat $as_me 0.1.0, which was
  1479. generated by GNU Autoconf 2.63. Invocation command line was
  1480. $ $0 $@
  1481. _ACEOF
  1482. exec 5>>config.log
  1483. {
  1484. cat <<_ASUNAME
  1485. ## --------- ##
  1486. ## Platform. ##
  1487. ## --------- ##
  1488. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1489. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1490. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1491. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1492. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1493. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1494. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1495. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1496. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1497. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1498. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1499. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1500. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1501. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1502. _ASUNAME
  1503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1504. for as_dir in $PATH
  1505. do
  1506. IFS=$as_save_IFS
  1507. test -z "$as_dir" && as_dir=.
  1508. $as_echo "PATH: $as_dir"
  1509. done
  1510. IFS=$as_save_IFS
  1511. } >&5
  1512. cat >&5 <<_ACEOF
  1513. ## ----------- ##
  1514. ## Core tests. ##
  1515. ## ----------- ##
  1516. _ACEOF
  1517. # Keep a trace of the command line.
  1518. # Strip out --no-create and --no-recursion so they do not pile up.
  1519. # Strip out --silent because we don't want to record it for future runs.
  1520. # Also quote any args containing shell meta-characters.
  1521. # Make two passes to allow for proper duplicate-argument suppression.
  1522. ac_configure_args=
  1523. ac_configure_args0=
  1524. ac_configure_args1=
  1525. ac_must_keep_next=false
  1526. for ac_pass in 1 2
  1527. do
  1528. for ac_arg
  1529. do
  1530. case $ac_arg in
  1531. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1532. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1533. | -silent | --silent | --silen | --sile | --sil)
  1534. continue ;;
  1535. *\'*)
  1536. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1537. esac
  1538. case $ac_pass in
  1539. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1540. 2)
  1541. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1542. if test $ac_must_keep_next = true; then
  1543. ac_must_keep_next=false # Got value, back to normal.
  1544. else
  1545. case $ac_arg in
  1546. *=* | --config-cache | -C | -disable-* | --disable-* \
  1547. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1548. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1549. | -with-* | --with-* | -without-* | --without-* | --x)
  1550. case "$ac_configure_args0 " in
  1551. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1552. esac
  1553. ;;
  1554. -* ) ac_must_keep_next=true ;;
  1555. esac
  1556. fi
  1557. ac_configure_args="$ac_configure_args '$ac_arg'"
  1558. ;;
  1559. esac
  1560. done
  1561. done
  1562. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1563. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1564. # When interrupted or exit'd, cleanup temporary files, and complete
  1565. # config.log. We remove comments because anyway the quotes in there
  1566. # would cause problems or look ugly.
  1567. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1568. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1569. trap 'exit_status=$?
  1570. # Save into config.log some information that might help in debugging.
  1571. {
  1572. echo
  1573. cat <<\_ASBOX
  1574. ## ---------------- ##
  1575. ## Cache variables. ##
  1576. ## ---------------- ##
  1577. _ASBOX
  1578. echo
  1579. # The following way of writing the cache mishandles newlines in values,
  1580. (
  1581. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1582. eval ac_val=\$$ac_var
  1583. case $ac_val in #(
  1584. *${as_nl}*)
  1585. case $ac_var in #(
  1586. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1587. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1588. esac
  1589. case $ac_var in #(
  1590. _ | IFS | as_nl) ;; #(
  1591. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1592. *) $as_unset $ac_var ;;
  1593. esac ;;
  1594. esac
  1595. done
  1596. (set) 2>&1 |
  1597. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1598. *${as_nl}ac_space=\ *)
  1599. sed -n \
  1600. "s/'\''/'\''\\\\'\'''\''/g;
  1601. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1602. ;; #(
  1603. *)
  1604. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1605. ;;
  1606. esac |
  1607. sort
  1608. )
  1609. echo
  1610. cat <<\_ASBOX
  1611. ## ----------------- ##
  1612. ## Output variables. ##
  1613. ## ----------------- ##
  1614. _ASBOX
  1615. echo
  1616. for ac_var in $ac_subst_vars
  1617. do
  1618. eval ac_val=\$$ac_var
  1619. case $ac_val in
  1620. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1621. esac
  1622. $as_echo "$ac_var='\''$ac_val'\''"
  1623. done | sort
  1624. echo
  1625. if test -n "$ac_subst_files"; then
  1626. cat <<\_ASBOX
  1627. ## ------------------- ##
  1628. ## File substitutions. ##
  1629. ## ------------------- ##
  1630. _ASBOX
  1631. echo
  1632. for ac_var in $ac_subst_files
  1633. do
  1634. eval ac_val=\$$ac_var
  1635. case $ac_val in
  1636. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1637. esac
  1638. $as_echo "$ac_var='\''$ac_val'\''"
  1639. done | sort
  1640. echo
  1641. fi
  1642. if test -s confdefs.h; then
  1643. cat <<\_ASBOX
  1644. ## ----------- ##
  1645. ## confdefs.h. ##
  1646. ## ----------- ##
  1647. _ASBOX
  1648. echo
  1649. cat confdefs.h
  1650. echo
  1651. fi
  1652. test "$ac_signal" != 0 &&
  1653. $as_echo "$as_me: caught signal $ac_signal"
  1654. $as_echo "$as_me: exit $exit_status"
  1655. } >&5
  1656. rm -f core *.core core.conftest.* &&
  1657. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1658. exit $exit_status
  1659. ' 0
  1660. for ac_signal in 1 2 13 15; do
  1661. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1662. done
  1663. ac_signal=0
  1664. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1665. rm -f -r conftest* confdefs.h
  1666. # Predefined preprocessor variables.
  1667. cat >>confdefs.h <<_ACEOF
  1668. #define PACKAGE_NAME "$PACKAGE_NAME"
  1669. _ACEOF
  1670. cat >>confdefs.h <<_ACEOF
  1671. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1672. _ACEOF
  1673. cat >>confdefs.h <<_ACEOF
  1674. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1675. _ACEOF
  1676. cat >>confdefs.h <<_ACEOF
  1677. #define PACKAGE_STRING "$PACKAGE_STRING"
  1678. _ACEOF
  1679. cat >>confdefs.h <<_ACEOF
  1680. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1681. _ACEOF
  1682. # Let the site file select an alternate cache file if it wants to.
  1683. # Prefer an explicitly selected file to automatically selected ones.
  1684. ac_site_file1=NONE
  1685. ac_site_file2=NONE
  1686. if test -n "$CONFIG_SITE"; then
  1687. ac_site_file1=$CONFIG_SITE
  1688. elif test "x$prefix" != xNONE; then
  1689. ac_site_file1=$prefix/share/config.site
  1690. ac_site_file2=$prefix/etc/config.site
  1691. else
  1692. ac_site_file1=$ac_default_prefix/share/config.site
  1693. ac_site_file2=$ac_default_prefix/etc/config.site
  1694. fi
  1695. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1696. do
  1697. test "x$ac_site_file" = xNONE && continue
  1698. if test -r "$ac_site_file"; then
  1699. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1700. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1701. sed 's/^/| /' "$ac_site_file" >&5
  1702. . "$ac_site_file"
  1703. fi
  1704. done
  1705. if test -r "$cache_file"; then
  1706. # Some versions of bash will fail to source /dev/null (special
  1707. # files actually), so we avoid doing that.
  1708. if test -f "$cache_file"; then
  1709. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1710. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1711. case $cache_file in
  1712. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1713. *) . "./$cache_file";;
  1714. esac
  1715. fi
  1716. else
  1717. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1718. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1719. >$cache_file
  1720. fi
  1721. # Check that the precious variables saved in the cache have kept the same
  1722. # value.
  1723. ac_cache_corrupted=false
  1724. for ac_var in $ac_precious_vars; do
  1725. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1726. eval ac_new_set=\$ac_env_${ac_var}_set
  1727. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1728. eval ac_new_val=\$ac_env_${ac_var}_value
  1729. case $ac_old_set,$ac_new_set in
  1730. set,)
  1731. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1732. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1733. ac_cache_corrupted=: ;;
  1734. ,set)
  1735. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1736. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1737. ac_cache_corrupted=: ;;
  1738. ,);;
  1739. *)
  1740. if test "x$ac_old_val" != "x$ac_new_val"; then
  1741. # differences in whitespace do not lead to failure.
  1742. ac_old_val_w=`echo x $ac_old_val`
  1743. ac_new_val_w=`echo x $ac_new_val`
  1744. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1745. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1746. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1747. ac_cache_corrupted=:
  1748. else
  1749. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1750. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1751. eval $ac_var=\$ac_old_val
  1752. fi
  1753. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1754. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1755. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1756. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1757. fi;;
  1758. esac
  1759. # Pass precious variables to config.status.
  1760. if test "$ac_new_set" = set; then
  1761. case $ac_new_val in
  1762. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1763. *) ac_arg=$ac_var=$ac_new_val ;;
  1764. esac
  1765. case " $ac_configure_args " in
  1766. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1767. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1768. esac
  1769. fi
  1770. done
  1771. if $ac_cache_corrupted; then
  1772. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1774. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1775. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1776. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1777. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1778. { (exit 1); exit 1; }; }
  1779. fi
  1780. ac_ext=c
  1781. ac_cpp='$CPP $CPPFLAGS'
  1782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1785. am__api_version='1.10'
  1786. ac_aux_dir=
  1787. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1788. if test -f "$ac_dir/install-sh"; then
  1789. ac_aux_dir=$ac_dir
  1790. ac_install_sh="$ac_aux_dir/install-sh -c"
  1791. break
  1792. elif test -f "$ac_dir/install.sh"; then
  1793. ac_aux_dir=$ac_dir
  1794. ac_install_sh="$ac_aux_dir/install.sh -c"
  1795. break
  1796. elif test -f "$ac_dir/shtool"; then
  1797. ac_aux_dir=$ac_dir
  1798. ac_install_sh="$ac_aux_dir/shtool install -c"
  1799. break
  1800. fi
  1801. done
  1802. if test -z "$ac_aux_dir"; then
  1803. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1804. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. fi
  1807. # These three variables are undocumented and unsupported,
  1808. # and are intended to be withdrawn in a future Autoconf release.
  1809. # They can cause serious problems if a builder's source tree is in a directory
  1810. # whose full name contains unusual characters.
  1811. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1812. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1813. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1814. # Find a good install program. We prefer a C program (faster),
  1815. # so one script is as good as another. But avoid the broken or
  1816. # incompatible versions:
  1817. # SysV /etc/install, /usr/sbin/install
  1818. # SunOS /usr/etc/install
  1819. # IRIX /sbin/install
  1820. # AIX /bin/install
  1821. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1822. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1823. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1824. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1825. # OS/2's system install, which has a completely different semantic
  1826. # ./install, which can be erroneously created by make from ./install.sh.
  1827. # Reject install programs that cannot install multiple files.
  1828. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1829. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1830. if test -z "$INSTALL"; then
  1831. if test "${ac_cv_path_install+set}" = set; then
  1832. $as_echo_n "(cached) " >&6
  1833. else
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. for as_dir in $PATH
  1836. do
  1837. IFS=$as_save_IFS
  1838. test -z "$as_dir" && as_dir=.
  1839. # Account for people who put trailing slashes in PATH elements.
  1840. case $as_dir/ in
  1841. ./ | .// | /cC/* | \
  1842. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1843. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1844. /usr/ucb/* ) ;;
  1845. *)
  1846. # OSF1 and SCO ODT 3.0 have their own names for install.
  1847. # Don't use installbsd from OSF since it installs stuff as root
  1848. # by default.
  1849. for ac_prog in ginstall scoinst install; do
  1850. for ac_exec_ext in '' $ac_executable_extensions; do
  1851. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1852. if test $ac_prog = install &&
  1853. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1854. # AIX install. It has an incompatible calling convention.
  1855. :
  1856. elif test $ac_prog = install &&
  1857. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1858. # program-specific install script used by HP pwplus--don't use.
  1859. :
  1860. else
  1861. rm -rf conftest.one conftest.two conftest.dir
  1862. echo one > conftest.one
  1863. echo two > conftest.two
  1864. mkdir conftest.dir
  1865. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1866. test -s conftest.one && test -s conftest.two &&
  1867. test -s conftest.dir/conftest.one &&
  1868. test -s conftest.dir/conftest.two
  1869. then
  1870. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1871. break 3
  1872. fi
  1873. fi
  1874. fi
  1875. done
  1876. done
  1877. ;;
  1878. esac
  1879. done
  1880. IFS=$as_save_IFS
  1881. rm -rf conftest.one conftest.two conftest.dir
  1882. fi
  1883. if test "${ac_cv_path_install+set}" = set; then
  1884. INSTALL=$ac_cv_path_install
  1885. else
  1886. # As a last resort, use the slow shell script. Don't cache a
  1887. # value for INSTALL within a source directory, because that will
  1888. # break other packages using the cache if that directory is
  1889. # removed, or if the value is a relative name.
  1890. INSTALL=$ac_install_sh
  1891. fi
  1892. fi
  1893. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1894. $as_echo "$INSTALL" >&6; }
  1895. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1896. # It thinks the first close brace ends the variable substitution.
  1897. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1898. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1899. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1900. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1901. $as_echo_n "checking whether build environment is sane... " >&6; }
  1902. # Just in case
  1903. sleep 1
  1904. echo timestamp > conftest.file
  1905. # Do `set' in a subshell so we don't clobber the current shell's
  1906. # arguments. Must try -L first in case configure is actually a
  1907. # symlink; some systems play weird games with the mod time of symlinks
  1908. # (eg FreeBSD returns the mod time of the symlink's containing
  1909. # directory).
  1910. if (
  1911. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1912. if test "$*" = "X"; then
  1913. # -L didn't work.
  1914. set X `ls -t $srcdir/configure conftest.file`
  1915. fi
  1916. rm -f conftest.file
  1917. if test "$*" != "X $srcdir/configure conftest.file" \
  1918. && test "$*" != "X conftest.file $srcdir/configure"; then
  1919. # If neither matched, then we have a broken ls. This can happen
  1920. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1921. # broken ls alias from the environment. This has actually
  1922. # happened. Such a system could not be considered "sane".
  1923. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1924. alias in your environment" >&5
  1925. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1926. alias in your environment" >&2;}
  1927. { (exit 1); exit 1; }; }
  1928. fi
  1929. test "$2" = conftest.file
  1930. )
  1931. then
  1932. # Ok.
  1933. :
  1934. else
  1935. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1936. Check your system clock" >&5
  1937. $as_echo "$as_me: error: newly created file is older than distributed files!
  1938. Check your system clock" >&2;}
  1939. { (exit 1); exit 1; }; }
  1940. fi
  1941. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1942. $as_echo "yes" >&6; }
  1943. test "$program_prefix" != NONE &&
  1944. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1945. # Use a double $ so make ignores it.
  1946. test "$program_suffix" != NONE &&
  1947. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1948. # Double any \ or $.
  1949. # By default was `s,x,x', remove it if useless.
  1950. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1951. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1952. # expand $ac_aux_dir to an absolute path
  1953. am_aux_dir=`cd $ac_aux_dir && pwd`
  1954. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1955. # Use eval to expand $SHELL
  1956. if eval "$MISSING --run true"; then
  1957. am_missing_run="$MISSING --run "
  1958. else
  1959. am_missing_run=
  1960. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1961. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1962. fi
  1963. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1964. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1965. if test -z "$MKDIR_P"; then
  1966. if test "${ac_cv_path_mkdir+set}" = set; then
  1967. $as_echo_n "(cached) " >&6
  1968. else
  1969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1970. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1971. do
  1972. IFS=$as_save_IFS
  1973. test -z "$as_dir" && as_dir=.
  1974. for ac_prog in mkdir gmkdir; do
  1975. for ac_exec_ext in '' $ac_executable_extensions; do
  1976. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1977. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1978. 'mkdir (GNU coreutils) '* | \
  1979. 'mkdir (coreutils) '* | \
  1980. 'mkdir (fileutils) '4.1*)
  1981. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1982. break 3;;
  1983. esac
  1984. done
  1985. done
  1986. done
  1987. IFS=$as_save_IFS
  1988. fi
  1989. if test "${ac_cv_path_mkdir+set}" = set; then
  1990. MKDIR_P="$ac_cv_path_mkdir -p"
  1991. else
  1992. # As a last resort, use the slow shell script. Don't cache a
  1993. # value for MKDIR_P within a source directory, because that will
  1994. # break other packages using the cache if that directory is
  1995. # removed, or if the value is a relative name.
  1996. test -d ./--version && rmdir ./--version
  1997. MKDIR_P="$ac_install_sh -d"
  1998. fi
  1999. fi
  2000. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2001. $as_echo "$MKDIR_P" >&6; }
  2002. mkdir_p="$MKDIR_P"
  2003. case $mkdir_p in
  2004. [\\/$]* | ?:[\\/]*) ;;
  2005. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2006. esac
  2007. for ac_prog in gawk mawk nawk awk
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. $as_echo_n "checking for $ac_word... " >&6; }
  2013. if test "${ac_cv_prog_AWK+set}" = set; then
  2014. $as_echo_n "(cached) " >&6
  2015. else
  2016. if test -n "$AWK"; then
  2017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2026. ac_cv_prog_AWK="$ac_prog"
  2027. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. IFS=$as_save_IFS
  2033. fi
  2034. fi
  2035. AWK=$ac_cv_prog_AWK
  2036. if test -n "$AWK"; then
  2037. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2038. $as_echo "$AWK" >&6; }
  2039. else
  2040. { $as_echo "$as_me:$LINENO: result: no" >&5
  2041. $as_echo "no" >&6; }
  2042. fi
  2043. test -n "$AWK" && break
  2044. done
  2045. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2046. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2047. set x ${MAKE-make}
  2048. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2049. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2050. $as_echo_n "(cached) " >&6
  2051. else
  2052. cat >conftest.make <<\_ACEOF
  2053. SHELL = /bin/sh
  2054. all:
  2055. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2056. _ACEOF
  2057. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2058. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2059. *@@@%%%=?*=@@@%%%*)
  2060. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2061. *)
  2062. eval ac_cv_prog_make_${ac_make}_set=no;;
  2063. esac
  2064. rm -f conftest.make
  2065. fi
  2066. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2067. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2068. $as_echo "yes" >&6; }
  2069. SET_MAKE=
  2070. else
  2071. { $as_echo "$as_me:$LINENO: result: no" >&5
  2072. $as_echo "no" >&6; }
  2073. SET_MAKE="MAKE=${MAKE-make}"
  2074. fi
  2075. rm -rf .tst 2>/dev/null
  2076. mkdir .tst 2>/dev/null
  2077. if test -d .tst; then
  2078. am__leading_dot=.
  2079. else
  2080. am__leading_dot=_
  2081. fi
  2082. rmdir .tst 2>/dev/null
  2083. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2084. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2085. # is not polluted with repeated "-I."
  2086. am__isrc=' -I$(srcdir)'
  2087. # test to see if srcdir already configured
  2088. if test -f $srcdir/config.status; then
  2089. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2090. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2091. { (exit 1); exit 1; }; }
  2092. fi
  2093. fi
  2094. # test whether we have cygpath
  2095. if test -z "$CYGPATH_W"; then
  2096. if (cygpath --version) >/dev/null 2>/dev/null; then
  2097. CYGPATH_W='cygpath -w'
  2098. else
  2099. CYGPATH_W=echo
  2100. fi
  2101. fi
  2102. # Define the identity of the package.
  2103. PACKAGE='libusb-compat'
  2104. VERSION='0.1.0'
  2105. cat >>confdefs.h <<_ACEOF
  2106. #define PACKAGE "$PACKAGE"
  2107. _ACEOF
  2108. cat >>confdefs.h <<_ACEOF
  2109. #define VERSION "$VERSION"
  2110. _ACEOF
  2111. # Some tools Automake needs.
  2112. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2113. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2114. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2115. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2116. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2117. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2118. # Installed binaries are usually stripped using `strip' when the user
  2119. # run `make install-strip'. However `strip' might not be the right
  2120. # tool to use in cross-compilation environments, therefore Automake
  2121. # will honor the `STRIP' environment variable to overrule this program.
  2122. if test "$cross_compiling" != no; then
  2123. if test -n "$ac_tool_prefix"; then
  2124. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2125. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2126. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2127. $as_echo_n "checking for $ac_word... " >&6; }
  2128. if test "${ac_cv_prog_STRIP+set}" = set; then
  2129. $as_echo_n "(cached) " >&6
  2130. else
  2131. if test -n "$STRIP"; then
  2132. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2133. else
  2134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2135. for as_dir in $PATH
  2136. do
  2137. IFS=$as_save_IFS
  2138. test -z "$as_dir" && as_dir=.
  2139. for ac_exec_ext in '' $ac_executable_extensions; do
  2140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2141. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2142. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2143. break 2
  2144. fi
  2145. done
  2146. done
  2147. IFS=$as_save_IFS
  2148. fi
  2149. fi
  2150. STRIP=$ac_cv_prog_STRIP
  2151. if test -n "$STRIP"; then
  2152. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2153. $as_echo "$STRIP" >&6; }
  2154. else
  2155. { $as_echo "$as_me:$LINENO: result: no" >&5
  2156. $as_echo "no" >&6; }
  2157. fi
  2158. fi
  2159. if test -z "$ac_cv_prog_STRIP"; then
  2160. ac_ct_STRIP=$STRIP
  2161. # Extract the first word of "strip", so it can be a program name with args.
  2162. set dummy strip; ac_word=$2
  2163. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2164. $as_echo_n "checking for $ac_word... " >&6; }
  2165. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2166. $as_echo_n "(cached) " >&6
  2167. else
  2168. if test -n "$ac_ct_STRIP"; then
  2169. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2170. else
  2171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172. for as_dir in $PATH
  2173. do
  2174. IFS=$as_save_IFS
  2175. test -z "$as_dir" && as_dir=.
  2176. for ac_exec_ext in '' $ac_executable_extensions; do
  2177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2178. ac_cv_prog_ac_ct_STRIP="strip"
  2179. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180. break 2
  2181. fi
  2182. done
  2183. done
  2184. IFS=$as_save_IFS
  2185. fi
  2186. fi
  2187. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2188. if test -n "$ac_ct_STRIP"; then
  2189. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2190. $as_echo "$ac_ct_STRIP" >&6; }
  2191. else
  2192. { $as_echo "$as_me:$LINENO: result: no" >&5
  2193. $as_echo "no" >&6; }
  2194. fi
  2195. if test "x$ac_ct_STRIP" = x; then
  2196. STRIP=":"
  2197. else
  2198. case $cross_compiling:$ac_tool_warned in
  2199. yes:)
  2200. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2202. ac_tool_warned=yes ;;
  2203. esac
  2204. STRIP=$ac_ct_STRIP
  2205. fi
  2206. else
  2207. STRIP="$ac_cv_prog_STRIP"
  2208. fi
  2209. fi
  2210. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2211. # We need awk for the "check" target. The system "awk" is bad on
  2212. # some platforms.
  2213. # Always define AMTAR for backward compatibility.
  2214. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2215. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2216. ac_config_headers="$ac_config_headers config.h"
  2217. ac_ext=c
  2218. ac_cpp='$CPP $CPPFLAGS'
  2219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2222. if test -n "$ac_tool_prefix"; then
  2223. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2224. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2225. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2226. $as_echo_n "checking for $ac_word... " >&6; }
  2227. if test "${ac_cv_prog_CC+set}" = set; then
  2228. $as_echo_n "(cached) " >&6
  2229. else
  2230. if test -n "$CC"; then
  2231. ac_cv_prog_CC="$CC" # Let the user override the test.
  2232. else
  2233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2234. for as_dir in $PATH
  2235. do
  2236. IFS=$as_save_IFS
  2237. test -z "$as_dir" && as_dir=.
  2238. for ac_exec_ext in '' $ac_executable_extensions; do
  2239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2240. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2241. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2242. break 2
  2243. fi
  2244. done
  2245. done
  2246. IFS=$as_save_IFS
  2247. fi
  2248. fi
  2249. CC=$ac_cv_prog_CC
  2250. if test -n "$CC"; then
  2251. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2252. $as_echo "$CC" >&6; }
  2253. else
  2254. { $as_echo "$as_me:$LINENO: result: no" >&5
  2255. $as_echo "no" >&6; }
  2256. fi
  2257. fi
  2258. if test -z "$ac_cv_prog_CC"; then
  2259. ac_ct_CC=$CC
  2260. # Extract the first word of "gcc", so it can be a program name with args.
  2261. set dummy gcc; ac_word=$2
  2262. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2263. $as_echo_n "checking for $ac_word... " >&6; }
  2264. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2265. $as_echo_n "(cached) " >&6
  2266. else
  2267. if test -n "$ac_ct_CC"; then
  2268. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2269. else
  2270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2271. for as_dir in $PATH
  2272. do
  2273. IFS=$as_save_IFS
  2274. test -z "$as_dir" && as_dir=.
  2275. for ac_exec_ext in '' $ac_executable_extensions; do
  2276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2277. ac_cv_prog_ac_ct_CC="gcc"
  2278. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2279. break 2
  2280. fi
  2281. done
  2282. done
  2283. IFS=$as_save_IFS
  2284. fi
  2285. fi
  2286. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2287. if test -n "$ac_ct_CC"; then
  2288. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2289. $as_echo "$ac_ct_CC" >&6; }
  2290. else
  2291. { $as_echo "$as_me:$LINENO: result: no" >&5
  2292. $as_echo "no" >&6; }
  2293. fi
  2294. if test "x$ac_ct_CC" = x; then
  2295. CC=""
  2296. else
  2297. case $cross_compiling:$ac_tool_warned in
  2298. yes:)
  2299. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2301. ac_tool_warned=yes ;;
  2302. esac
  2303. CC=$ac_ct_CC
  2304. fi
  2305. else
  2306. CC="$ac_cv_prog_CC"
  2307. fi
  2308. if test -z "$CC"; then
  2309. if test -n "$ac_tool_prefix"; then
  2310. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2311. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2312. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2313. $as_echo_n "checking for $ac_word... " >&6; }
  2314. if test "${ac_cv_prog_CC+set}" = set; then
  2315. $as_echo_n "(cached) " >&6
  2316. else
  2317. if test -n "$CC"; then
  2318. ac_cv_prog_CC="$CC" # Let the user override the test.
  2319. else
  2320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2321. for as_dir in $PATH
  2322. do
  2323. IFS=$as_save_IFS
  2324. test -z "$as_dir" && as_dir=.
  2325. for ac_exec_ext in '' $ac_executable_extensions; do
  2326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2327. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2328. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2329. break 2
  2330. fi
  2331. done
  2332. done
  2333. IFS=$as_save_IFS
  2334. fi
  2335. fi
  2336. CC=$ac_cv_prog_CC
  2337. if test -n "$CC"; then
  2338. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2339. $as_echo "$CC" >&6; }
  2340. else
  2341. { $as_echo "$as_me:$LINENO: result: no" >&5
  2342. $as_echo "no" >&6; }
  2343. fi
  2344. fi
  2345. fi
  2346. if test -z "$CC"; then
  2347. # Extract the first word of "cc", so it can be a program name with args.
  2348. set dummy cc; ac_word=$2
  2349. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2350. $as_echo_n "checking for $ac_word... " >&6; }
  2351. if test "${ac_cv_prog_CC+set}" = set; then
  2352. $as_echo_n "(cached) " >&6
  2353. else
  2354. if test -n "$CC"; then
  2355. ac_cv_prog_CC="$CC" # Let the user override the test.
  2356. else
  2357. ac_prog_rejected=no
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2365. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2366. ac_prog_rejected=yes
  2367. continue
  2368. fi
  2369. ac_cv_prog_CC="cc"
  2370. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2371. break 2
  2372. fi
  2373. done
  2374. done
  2375. IFS=$as_save_IFS
  2376. if test $ac_prog_rejected = yes; then
  2377. # We found a bogon in the path, so make sure we never use it.
  2378. set dummy $ac_cv_prog_CC
  2379. shift
  2380. if test $# != 0; then
  2381. # We chose a different compiler from the bogus one.
  2382. # However, it has the same basename, so the bogon will be chosen
  2383. # first if we set CC to just the basename; use the full file name.
  2384. shift
  2385. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2386. fi
  2387. fi
  2388. fi
  2389. fi
  2390. CC=$ac_cv_prog_CC
  2391. if test -n "$CC"; then
  2392. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2393. $as_echo "$CC" >&6; }
  2394. else
  2395. { $as_echo "$as_me:$LINENO: result: no" >&5
  2396. $as_echo "no" >&6; }
  2397. fi
  2398. fi
  2399. if test -z "$CC"; then
  2400. if test -n "$ac_tool_prefix"; then
  2401. for ac_prog in cl.exe
  2402. do
  2403. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2404. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2405. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if test "${ac_cv_prog_CC+set}" = set; then
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$CC"; then
  2411. ac_cv_prog_CC="$CC" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2421. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. CC=$ac_cv_prog_CC
  2430. if test -n "$CC"; then
  2431. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2432. $as_echo "$CC" >&6; }
  2433. else
  2434. { $as_echo "$as_me:$LINENO: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. test -n "$CC" && break
  2438. done
  2439. fi
  2440. if test -z "$CC"; then
  2441. ac_ct_CC=$CC
  2442. for ac_prog in cl.exe
  2443. do
  2444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2445. set dummy $ac_prog; ac_word=$2
  2446. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2447. $as_echo_n "checking for $ac_word... " >&6; }
  2448. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2449. $as_echo_n "(cached) " >&6
  2450. else
  2451. if test -n "$ac_ct_CC"; then
  2452. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2453. else
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461. ac_cv_prog_ac_ct_CC="$ac_prog"
  2462. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2463. break 2
  2464. fi
  2465. done
  2466. done
  2467. IFS=$as_save_IFS
  2468. fi
  2469. fi
  2470. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2471. if test -n "$ac_ct_CC"; then
  2472. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2473. $as_echo "$ac_ct_CC" >&6; }
  2474. else
  2475. { $as_echo "$as_me:$LINENO: result: no" >&5
  2476. $as_echo "no" >&6; }
  2477. fi
  2478. test -n "$ac_ct_CC" && break
  2479. done
  2480. if test "x$ac_ct_CC" = x; then
  2481. CC=""
  2482. else
  2483. case $cross_compiling:$ac_tool_warned in
  2484. yes:)
  2485. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2487. ac_tool_warned=yes ;;
  2488. esac
  2489. CC=$ac_ct_CC
  2490. fi
  2491. fi
  2492. fi
  2493. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2495. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2496. See \`config.log' for more details." >&5
  2497. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2498. See \`config.log' for more details." >&2;}
  2499. { (exit 1); exit 1; }; }; }
  2500. # Provide some information about the compiler.
  2501. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2502. set X $ac_compile
  2503. ac_compiler=$2
  2504. { (ac_try="$ac_compiler --version >&5"
  2505. case "(($ac_try" in
  2506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2507. *) ac_try_echo=$ac_try;;
  2508. esac
  2509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2510. $as_echo "$ac_try_echo") >&5
  2511. (eval "$ac_compiler --version >&5") 2>&5
  2512. ac_status=$?
  2513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2514. (exit $ac_status); }
  2515. { (ac_try="$ac_compiler -v >&5"
  2516. case "(($ac_try" in
  2517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2518. *) ac_try_echo=$ac_try;;
  2519. esac
  2520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2521. $as_echo "$ac_try_echo") >&5
  2522. (eval "$ac_compiler -v >&5") 2>&5
  2523. ac_status=$?
  2524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2525. (exit $ac_status); }
  2526. { (ac_try="$ac_compiler -V >&5"
  2527. case "(($ac_try" in
  2528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2529. *) ac_try_echo=$ac_try;;
  2530. esac
  2531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2532. $as_echo "$ac_try_echo") >&5
  2533. (eval "$ac_compiler -V >&5") 2>&5
  2534. ac_status=$?
  2535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); }
  2537. cat >conftest.$ac_ext <<_ACEOF
  2538. /* confdefs.h. */
  2539. _ACEOF
  2540. cat confdefs.h >>conftest.$ac_ext
  2541. cat >>conftest.$ac_ext <<_ACEOF
  2542. /* end confdefs.h. */
  2543. int
  2544. main ()
  2545. {
  2546. ;
  2547. return 0;
  2548. }
  2549. _ACEOF
  2550. ac_clean_files_save=$ac_clean_files
  2551. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2552. # Try to create an executable without -o first, disregard a.out.
  2553. # It will help us diagnose broken compilers, and finding out an intuition
  2554. # of exeext.
  2555. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2556. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2557. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2558. # The possible output files:
  2559. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2560. ac_rmfiles=
  2561. for ac_file in $ac_files
  2562. do
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2565. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2566. esac
  2567. done
  2568. rm -f $ac_rmfiles
  2569. if { (ac_try="$ac_link_default"
  2570. case "(($ac_try" in
  2571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2572. *) ac_try_echo=$ac_try;;
  2573. esac
  2574. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2575. $as_echo "$ac_try_echo") >&5
  2576. (eval "$ac_link_default") 2>&5
  2577. ac_status=$?
  2578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2579. (exit $ac_status); }; then
  2580. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2581. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2582. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2583. # so that the user can short-circuit this test for compilers unknown to
  2584. # Autoconf.
  2585. for ac_file in $ac_files ''
  2586. do
  2587. test -f "$ac_file" || continue
  2588. case $ac_file in
  2589. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2590. ;;
  2591. [ab].out )
  2592. # We found the default executable, but exeext='' is most
  2593. # certainly right.
  2594. break;;
  2595. *.* )
  2596. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2597. then :; else
  2598. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2599. fi
  2600. # We set ac_cv_exeext here because the later test for it is not
  2601. # safe: cross compilers may not add the suffix if given an `-o'
  2602. # argument, so we may need to know it at that point already.
  2603. # Even if this section looks crufty: it has the advantage of
  2604. # actually working.
  2605. break;;
  2606. * )
  2607. break;;
  2608. esac
  2609. done
  2610. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2611. else
  2612. ac_file=''
  2613. fi
  2614. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2615. $as_echo "$ac_file" >&6; }
  2616. if test -z "$ac_file"; then
  2617. $as_echo "$as_me: failed program was:" >&5
  2618. sed 's/^/| /' conftest.$ac_ext >&5
  2619. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2621. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2622. See \`config.log' for more details." >&5
  2623. $as_echo "$as_me: error: C compiler cannot create executables
  2624. See \`config.log' for more details." >&2;}
  2625. { (exit 77); exit 77; }; }; }
  2626. fi
  2627. ac_exeext=$ac_cv_exeext
  2628. # Check that the compiler produces executables we can run. If not, either
  2629. # the compiler is broken, or we cross compile.
  2630. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2631. $as_echo_n "checking whether the C compiler works... " >&6; }
  2632. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2633. # If not cross compiling, check that we can run a simple program.
  2634. if test "$cross_compiling" != yes; then
  2635. if { ac_try='./$ac_file'
  2636. { (case "(($ac_try" in
  2637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2638. *) ac_try_echo=$ac_try;;
  2639. esac
  2640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2641. $as_echo "$ac_try_echo") >&5
  2642. (eval "$ac_try") 2>&5
  2643. ac_status=$?
  2644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2645. (exit $ac_status); }; }; then
  2646. cross_compiling=no
  2647. else
  2648. if test "$cross_compiling" = maybe; then
  2649. cross_compiling=yes
  2650. else
  2651. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2652. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2653. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2654. If you meant to cross compile, use \`--host'.
  2655. See \`config.log' for more details." >&5
  2656. $as_echo "$as_me: error: cannot run C compiled programs.
  2657. If you meant to cross compile, use \`--host'.
  2658. See \`config.log' for more details." >&2;}
  2659. { (exit 1); exit 1; }; }; }
  2660. fi
  2661. fi
  2662. fi
  2663. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2664. $as_echo "yes" >&6; }
  2665. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2666. ac_clean_files=$ac_clean_files_save
  2667. # Check that the compiler produces executables we can run. If not, either
  2668. # the compiler is broken, or we cross compile.
  2669. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2670. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2671. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2672. $as_echo "$cross_compiling" >&6; }
  2673. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2674. $as_echo_n "checking for suffix of executables... " >&6; }
  2675. if { (ac_try="$ac_link"
  2676. case "(($ac_try" in
  2677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2678. *) ac_try_echo=$ac_try;;
  2679. esac
  2680. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2681. $as_echo "$ac_try_echo") >&5
  2682. (eval "$ac_link") 2>&5
  2683. ac_status=$?
  2684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685. (exit $ac_status); }; then
  2686. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2687. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2688. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2689. # `rm'.
  2690. for ac_file in conftest.exe conftest conftest.*; do
  2691. test -f "$ac_file" || continue
  2692. case $ac_file in
  2693. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2694. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2695. break;;
  2696. * ) break;;
  2697. esac
  2698. done
  2699. else
  2700. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2702. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2703. See \`config.log' for more details." >&5
  2704. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2705. See \`config.log' for more details." >&2;}
  2706. { (exit 1); exit 1; }; }; }
  2707. fi
  2708. rm -f conftest$ac_cv_exeext
  2709. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2710. $as_echo "$ac_cv_exeext" >&6; }
  2711. rm -f conftest.$ac_ext
  2712. EXEEXT=$ac_cv_exeext
  2713. ac_exeext=$EXEEXT
  2714. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2715. $as_echo_n "checking for suffix of object files... " >&6; }
  2716. if test "${ac_cv_objext+set}" = set; then
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. cat >conftest.$ac_ext <<_ACEOF
  2720. /* confdefs.h. */
  2721. _ACEOF
  2722. cat confdefs.h >>conftest.$ac_ext
  2723. cat >>conftest.$ac_ext <<_ACEOF
  2724. /* end confdefs.h. */
  2725. int
  2726. main ()
  2727. {
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. rm -f conftest.o conftest.obj
  2733. if { (ac_try="$ac_compile"
  2734. case "(($ac_try" in
  2735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2736. *) ac_try_echo=$ac_try;;
  2737. esac
  2738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2739. $as_echo "$ac_try_echo") >&5
  2740. (eval "$ac_compile") 2>&5
  2741. ac_status=$?
  2742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2743. (exit $ac_status); }; then
  2744. for ac_file in conftest.o conftest.obj conftest.*; do
  2745. test -f "$ac_file" || continue;
  2746. case $ac_file in
  2747. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2748. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2749. break;;
  2750. esac
  2751. done
  2752. else
  2753. $as_echo "$as_me: failed program was:" >&5
  2754. sed 's/^/| /' conftest.$ac_ext >&5
  2755. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2757. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2758. See \`config.log' for more details." >&5
  2759. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2760. See \`config.log' for more details." >&2;}
  2761. { (exit 1); exit 1; }; }; }
  2762. fi
  2763. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2764. fi
  2765. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2766. $as_echo "$ac_cv_objext" >&6; }
  2767. OBJEXT=$ac_cv_objext
  2768. ac_objext=$OBJEXT
  2769. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2770. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2771. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. cat >conftest.$ac_ext <<_ACEOF
  2775. /* confdefs.h. */
  2776. _ACEOF
  2777. cat confdefs.h >>conftest.$ac_ext
  2778. cat >>conftest.$ac_ext <<_ACEOF
  2779. /* end confdefs.h. */
  2780. int
  2781. main ()
  2782. {
  2783. #ifndef __GNUC__
  2784. choke me
  2785. #endif
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (ac_try="$ac_compile"
  2792. case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo") >&5
  2798. (eval "$ac_compile") 2>conftest.er1
  2799. ac_status=$?
  2800. grep -v '^ *+' conftest.er1 >conftest.err
  2801. rm -f conftest.er1
  2802. cat conftest.err >&5
  2803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); } && {
  2805. test -z "$ac_c_werror_flag" ||
  2806. test ! -s conftest.err
  2807. } && test -s conftest.$ac_objext; then
  2808. ac_compiler_gnu=yes
  2809. else
  2810. $as_echo "$as_me: failed program was:" >&5
  2811. sed 's/^/| /' conftest.$ac_ext >&5
  2812. ac_compiler_gnu=no
  2813. fi
  2814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2815. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2816. fi
  2817. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2818. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2819. if test $ac_compiler_gnu = yes; then
  2820. GCC=yes
  2821. else
  2822. GCC=
  2823. fi
  2824. ac_test_CFLAGS=${CFLAGS+set}
  2825. ac_save_CFLAGS=$CFLAGS
  2826. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2827. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2828. if test "${ac_cv_prog_cc_g+set}" = set; then
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. ac_save_c_werror_flag=$ac_c_werror_flag
  2832. ac_c_werror_flag=yes
  2833. ac_cv_prog_cc_g=no
  2834. CFLAGS="-g"
  2835. cat >conftest.$ac_ext <<_ACEOF
  2836. /* confdefs.h. */
  2837. _ACEOF
  2838. cat confdefs.h >>conftest.$ac_ext
  2839. cat >>conftest.$ac_ext <<_ACEOF
  2840. /* end confdefs.h. */
  2841. int
  2842. main ()
  2843. {
  2844. ;
  2845. return 0;
  2846. }
  2847. _ACEOF
  2848. rm -f conftest.$ac_objext
  2849. if { (ac_try="$ac_compile"
  2850. case "(($ac_try" in
  2851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2852. *) ac_try_echo=$ac_try;;
  2853. esac
  2854. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2855. $as_echo "$ac_try_echo") >&5
  2856. (eval "$ac_compile") 2>conftest.er1
  2857. ac_status=$?
  2858. grep -v '^ *+' conftest.er1 >conftest.err
  2859. rm -f conftest.er1
  2860. cat conftest.err >&5
  2861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2862. (exit $ac_status); } && {
  2863. test -z "$ac_c_werror_flag" ||
  2864. test ! -s conftest.err
  2865. } && test -s conftest.$ac_objext; then
  2866. ac_cv_prog_cc_g=yes
  2867. else
  2868. $as_echo "$as_me: failed program was:" >&5
  2869. sed 's/^/| /' conftest.$ac_ext >&5
  2870. CFLAGS=""
  2871. cat >conftest.$ac_ext <<_ACEOF
  2872. /* confdefs.h. */
  2873. _ACEOF
  2874. cat confdefs.h >>conftest.$ac_ext
  2875. cat >>conftest.$ac_ext <<_ACEOF
  2876. /* end confdefs.h. */
  2877. int
  2878. main ()
  2879. {
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. rm -f conftest.$ac_objext
  2885. if { (ac_try="$ac_compile"
  2886. case "(($ac_try" in
  2887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2888. *) ac_try_echo=$ac_try;;
  2889. esac
  2890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2891. $as_echo "$ac_try_echo") >&5
  2892. (eval "$ac_compile") 2>conftest.er1
  2893. ac_status=$?
  2894. grep -v '^ *+' conftest.er1 >conftest.err
  2895. rm -f conftest.er1
  2896. cat conftest.err >&5
  2897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2898. (exit $ac_status); } && {
  2899. test -z "$ac_c_werror_flag" ||
  2900. test ! -s conftest.err
  2901. } && test -s conftest.$ac_objext; then
  2902. :
  2903. else
  2904. $as_echo "$as_me: failed program was:" >&5
  2905. sed 's/^/| /' conftest.$ac_ext >&5
  2906. ac_c_werror_flag=$ac_save_c_werror_flag
  2907. CFLAGS="-g"
  2908. cat >conftest.$ac_ext <<_ACEOF
  2909. /* confdefs.h. */
  2910. _ACEOF
  2911. cat confdefs.h >>conftest.$ac_ext
  2912. cat >>conftest.$ac_ext <<_ACEOF
  2913. /* end confdefs.h. */
  2914. int
  2915. main ()
  2916. {
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. rm -f conftest.$ac_objext
  2922. if { (ac_try="$ac_compile"
  2923. case "(($ac_try" in
  2924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925. *) ac_try_echo=$ac_try;;
  2926. esac
  2927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2928. $as_echo "$ac_try_echo") >&5
  2929. (eval "$ac_compile") 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } && {
  2936. test -z "$ac_c_werror_flag" ||
  2937. test ! -s conftest.err
  2938. } && test -s conftest.$ac_objext; then
  2939. ac_cv_prog_cc_g=yes
  2940. else
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. ac_c_werror_flag=$ac_save_c_werror_flag
  2950. fi
  2951. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2952. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2953. if test "$ac_test_CFLAGS" = set; then
  2954. CFLAGS=$ac_save_CFLAGS
  2955. elif test $ac_cv_prog_cc_g = yes; then
  2956. if test "$GCC" = yes; then
  2957. CFLAGS="-g -O2"
  2958. else
  2959. CFLAGS="-g"
  2960. fi
  2961. else
  2962. if test "$GCC" = yes; then
  2963. CFLAGS="-O2"
  2964. else
  2965. CFLAGS=
  2966. fi
  2967. fi
  2968. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2969. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2970. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. ac_cv_prog_cc_c89=no
  2974. ac_save_CC=$CC
  2975. cat >conftest.$ac_ext <<_ACEOF
  2976. /* confdefs.h. */
  2977. _ACEOF
  2978. cat confdefs.h >>conftest.$ac_ext
  2979. cat >>conftest.$ac_ext <<_ACEOF
  2980. /* end confdefs.h. */
  2981. #include <stdarg.h>
  2982. #include <stdio.h>
  2983. #include <sys/types.h>
  2984. #include <sys/stat.h>
  2985. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2986. struct buf { int x; };
  2987. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2988. static char *e (p, i)
  2989. char **p;
  2990. int i;
  2991. {
  2992. return p[i];
  2993. }
  2994. static char *f (char * (*g) (char **, int), char **p, ...)
  2995. {
  2996. char *s;
  2997. va_list v;
  2998. va_start (v,p);
  2999. s = g (p, va_arg (v,int));
  3000. va_end (v);
  3001. return s;
  3002. }
  3003. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3004. function prototypes and stuff, but not '\xHH' hex character constants.
  3005. These don't provoke an error unfortunately, instead are silently treated
  3006. as 'x'. The following induces an error, until -std is added to get
  3007. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3008. array size at least. It's necessary to write '\x00'==0 to get something
  3009. that's true only with -std. */
  3010. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3011. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3012. inside strings and character constants. */
  3013. #define FOO(x) 'x'
  3014. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3015. int test (int i, double x);
  3016. struct s1 {int (*f) (int a);};
  3017. struct s2 {int (*f) (double a);};
  3018. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3019. int argc;
  3020. char **argv;
  3021. int
  3022. main ()
  3023. {
  3024. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3030. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3031. do
  3032. CC="$ac_save_CC $ac_arg"
  3033. rm -f conftest.$ac_objext
  3034. if { (ac_try="$ac_compile"
  3035. case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3040. $as_echo "$ac_try_echo") >&5
  3041. (eval "$ac_compile") 2>conftest.er1
  3042. ac_status=$?
  3043. grep -v '^ *+' conftest.er1 >conftest.err
  3044. rm -f conftest.er1
  3045. cat conftest.err >&5
  3046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. (exit $ac_status); } && {
  3048. test -z "$ac_c_werror_flag" ||
  3049. test ! -s conftest.err
  3050. } && test -s conftest.$ac_objext; then
  3051. ac_cv_prog_cc_c89=$ac_arg
  3052. else
  3053. $as_echo "$as_me: failed program was:" >&5
  3054. sed 's/^/| /' conftest.$ac_ext >&5
  3055. fi
  3056. rm -f core conftest.err conftest.$ac_objext
  3057. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3058. done
  3059. rm -f conftest.$ac_ext
  3060. CC=$ac_save_CC
  3061. fi
  3062. # AC_CACHE_VAL
  3063. case "x$ac_cv_prog_cc_c89" in
  3064. x)
  3065. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3066. $as_echo "none needed" >&6; } ;;
  3067. xno)
  3068. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3069. $as_echo "unsupported" >&6; } ;;
  3070. *)
  3071. CC="$CC $ac_cv_prog_cc_c89"
  3072. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3073. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3074. esac
  3075. ac_ext=c
  3076. ac_cpp='$CPP $CPPFLAGS'
  3077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3080. DEPDIR="${am__leading_dot}deps"
  3081. ac_config_commands="$ac_config_commands depfiles"
  3082. am_make=${MAKE-make}
  3083. cat > confinc << 'END'
  3084. am__doit:
  3085. @echo done
  3086. .PHONY: am__doit
  3087. END
  3088. # If we don't find an include directive, just comment out the code.
  3089. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3090. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3091. am__include="#"
  3092. am__quote=
  3093. _am_result=none
  3094. # First try GNU make style include.
  3095. echo "include confinc" > confmf
  3096. # We grep out `Entering directory' and `Leaving directory'
  3097. # messages which can occur if `w' ends up in MAKEFLAGS.
  3098. # In particular we don't look at `^make:' because GNU make might
  3099. # be invoked under some other name (usually "gmake"), in which
  3100. # case it prints its new name instead of `make'.
  3101. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3102. am__include=include
  3103. am__quote=
  3104. _am_result=GNU
  3105. fi
  3106. # Now try BSD make style include.
  3107. if test "$am__include" = "#"; then
  3108. echo '.include "confinc"' > confmf
  3109. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3110. am__include=.include
  3111. am__quote="\""
  3112. _am_result=BSD
  3113. fi
  3114. fi
  3115. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3116. $as_echo "$_am_result" >&6; }
  3117. rm -f confinc confmf
  3118. # Check whether --enable-dependency-tracking was given.
  3119. if test "${enable_dependency_tracking+set}" = set; then
  3120. enableval=$enable_dependency_tracking;
  3121. fi
  3122. if test "x$enable_dependency_tracking" != xno; then
  3123. am_depcomp="$ac_aux_dir/depcomp"
  3124. AMDEPBACKSLASH='\'
  3125. fi
  3126. if test "x$enable_dependency_tracking" != xno; then
  3127. AMDEP_TRUE=
  3128. AMDEP_FALSE='#'
  3129. else
  3130. AMDEP_TRUE='#'
  3131. AMDEP_FALSE=
  3132. fi
  3133. depcc="$CC" am_compiler_list=
  3134. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3135. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3136. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3140. # We make a subdir and do the tests there. Otherwise we can end up
  3141. # making bogus files that we don't know about and never remove. For
  3142. # instance it was reported that on HP-UX the gcc test will end up
  3143. # making a dummy file named `D' -- because `-MD' means `put the output
  3144. # in D'.
  3145. mkdir conftest.dir
  3146. # Copy depcomp to subdir because otherwise we won't find it if we're
  3147. # using a relative directory.
  3148. cp "$am_depcomp" conftest.dir
  3149. cd conftest.dir
  3150. # We will build objects and dependencies in a subdirectory because
  3151. # it helps to detect inapplicable dependency modes. For instance
  3152. # both Tru64's cc and ICC support -MD to output dependencies as a
  3153. # side effect of compilation, but ICC will put the dependencies in
  3154. # the current directory while Tru64 will put them in the object
  3155. # directory.
  3156. mkdir sub
  3157. am_cv_CC_dependencies_compiler_type=none
  3158. if test "$am_compiler_list" = ""; then
  3159. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3160. fi
  3161. for depmode in $am_compiler_list; do
  3162. # Setup a source with many dependencies, because some compilers
  3163. # like to wrap large dependency lists on column 80 (with \), and
  3164. # we should not choose a depcomp mode which is confused by this.
  3165. #
  3166. # We need to recreate these files for each test, as the compiler may
  3167. # overwrite some of them when testing with obscure command lines.
  3168. # This happens at least with the AIX C compiler.
  3169. : > sub/conftest.c
  3170. for i in 1 2 3 4 5 6; do
  3171. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3172. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3173. # Solaris 8's {/usr,}/bin/sh.
  3174. touch sub/conftst$i.h
  3175. done
  3176. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3177. case $depmode in
  3178. nosideeffect)
  3179. # after this tag, mechanisms are not by side-effect, so they'll
  3180. # only be used when explicitly requested
  3181. if test "x$enable_dependency_tracking" = xyes; then
  3182. continue
  3183. else
  3184. break
  3185. fi
  3186. ;;
  3187. none) break ;;
  3188. esac
  3189. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3190. # mode. It turns out that the SunPro C++ compiler does not properly
  3191. # handle `-M -o', and we need to detect this.
  3192. if depmode=$depmode \
  3193. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3194. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3195. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3196. >/dev/null 2>conftest.err &&
  3197. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3198. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3199. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3200. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3201. # icc doesn't choke on unknown options, it will just issue warnings
  3202. # or remarks (even with -Werror). So we grep stderr for any message
  3203. # that says an option was ignored or not supported.
  3204. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3205. # icc: Command line warning: ignoring option '-M'; no argument required
  3206. # The diagnosis changed in icc 8.0:
  3207. # icc: Command line remark: option '-MP' not supported
  3208. if (grep 'ignoring option' conftest.err ||
  3209. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3210. am_cv_CC_dependencies_compiler_type=$depmode
  3211. break
  3212. fi
  3213. fi
  3214. done
  3215. cd ..
  3216. rm -rf conftest.dir
  3217. else
  3218. am_cv_CC_dependencies_compiler_type=none
  3219. fi
  3220. fi
  3221. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3222. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3223. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3224. if
  3225. test "x$enable_dependency_tracking" != xno \
  3226. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3227. am__fastdepCC_TRUE=
  3228. am__fastdepCC_FALSE='#'
  3229. else
  3230. am__fastdepCC_TRUE='#'
  3231. am__fastdepCC_FALSE=
  3232. fi
  3233. case `pwd` in
  3234. *\ * | *\ *)
  3235. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3236. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3237. esac
  3238. macro_version='2.2.6'
  3239. macro_revision='1.3012'
  3240. ltmain="$ac_aux_dir/ltmain.sh"
  3241. # Make sure we can run config.sub.
  3242. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3243. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3244. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3245. { (exit 1); exit 1; }; }
  3246. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3247. $as_echo_n "checking build system type... " >&6; }
  3248. if test "${ac_cv_build+set}" = set; then
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. ac_build_alias=$build_alias
  3252. test "x$ac_build_alias" = x &&
  3253. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3254. test "x$ac_build_alias" = x &&
  3255. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3256. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3257. { (exit 1); exit 1; }; }
  3258. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3259. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3260. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3261. { (exit 1); exit 1; }; }
  3262. fi
  3263. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3264. $as_echo "$ac_cv_build" >&6; }
  3265. case $ac_cv_build in
  3266. *-*-*) ;;
  3267. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3268. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3269. { (exit 1); exit 1; }; };;
  3270. esac
  3271. build=$ac_cv_build
  3272. ac_save_IFS=$IFS; IFS='-'
  3273. set x $ac_cv_build
  3274. shift
  3275. build_cpu=$1
  3276. build_vendor=$2
  3277. shift; shift
  3278. # Remember, the first character of IFS is used to create $*,
  3279. # except with old shells:
  3280. build_os=$*
  3281. IFS=$ac_save_IFS
  3282. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3283. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3284. $as_echo_n "checking host system type... " >&6; }
  3285. if test "${ac_cv_host+set}" = set; then
  3286. $as_echo_n "(cached) " >&6
  3287. else
  3288. if test "x$host_alias" = x; then
  3289. ac_cv_host=$ac_cv_build
  3290. else
  3291. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3292. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3293. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3294. { (exit 1); exit 1; }; }
  3295. fi
  3296. fi
  3297. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3298. $as_echo "$ac_cv_host" >&6; }
  3299. case $ac_cv_host in
  3300. *-*-*) ;;
  3301. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3302. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3303. { (exit 1); exit 1; }; };;
  3304. esac
  3305. host=$ac_cv_host
  3306. ac_save_IFS=$IFS; IFS='-'
  3307. set x $ac_cv_host
  3308. shift
  3309. host_cpu=$1
  3310. host_vendor=$2
  3311. shift; shift
  3312. # Remember, the first character of IFS is used to create $*,
  3313. # except with old shells:
  3314. host_os=$*
  3315. IFS=$ac_save_IFS
  3316. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3317. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3318. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3319. if test "${ac_cv_path_SED+set}" = set; then
  3320. $as_echo_n "(cached) " >&6
  3321. else
  3322. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3323. for ac_i in 1 2 3 4 5 6 7; do
  3324. ac_script="$ac_script$as_nl$ac_script"
  3325. done
  3326. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3327. $as_unset ac_script || ac_script=
  3328. if test -z "$SED"; then
  3329. ac_path_SED_found=false
  3330. # Loop through the user's path and test for each of PROGNAME-LIST
  3331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3332. for as_dir in $PATH
  3333. do
  3334. IFS=$as_save_IFS
  3335. test -z "$as_dir" && as_dir=.
  3336. for ac_prog in sed gsed; do
  3337. for ac_exec_ext in '' $ac_executable_extensions; do
  3338. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3339. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3340. # Check for GNU ac_path_SED and select it if it is found.
  3341. # Check for GNU $ac_path_SED
  3342. case `"$ac_path_SED" --version 2>&1` in
  3343. *GNU*)
  3344. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3345. *)
  3346. ac_count=0
  3347. $as_echo_n 0123456789 >"conftest.in"
  3348. while :
  3349. do
  3350. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3351. mv "conftest.tmp" "conftest.in"
  3352. cp "conftest.in" "conftest.nl"
  3353. $as_echo '' >> "conftest.nl"
  3354. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3355. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3356. ac_count=`expr $ac_count + 1`
  3357. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3358. # Best one so far, save it but keep looking for a better one
  3359. ac_cv_path_SED="$ac_path_SED"
  3360. ac_path_SED_max=$ac_count
  3361. fi
  3362. # 10*(2^10) chars as input seems more than enough
  3363. test $ac_count -gt 10 && break
  3364. done
  3365. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3366. esac
  3367. $ac_path_SED_found && break 3
  3368. done
  3369. done
  3370. done
  3371. IFS=$as_save_IFS
  3372. if test -z "$ac_cv_path_SED"; then
  3373. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3374. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3375. { (exit 1); exit 1; }; }
  3376. fi
  3377. else
  3378. ac_cv_path_SED=$SED
  3379. fi
  3380. fi
  3381. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3382. $as_echo "$ac_cv_path_SED" >&6; }
  3383. SED="$ac_cv_path_SED"
  3384. rm -f conftest.sed
  3385. test -z "$SED" && SED=sed
  3386. Xsed="$SED -e 1s/^X//"
  3387. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3388. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3389. if test "${ac_cv_path_GREP+set}" = set; then
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -z "$GREP"; then
  3393. ac_path_GREP_found=false
  3394. # Loop through the user's path and test for each of PROGNAME-LIST
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_prog in grep ggrep; do
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3403. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3404. # Check for GNU ac_path_GREP and select it if it is found.
  3405. # Check for GNU $ac_path_GREP
  3406. case `"$ac_path_GREP" --version 2>&1` in
  3407. *GNU*)
  3408. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3409. *)
  3410. ac_count=0
  3411. $as_echo_n 0123456789 >"conftest.in"
  3412. while :
  3413. do
  3414. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3415. mv "conftest.tmp" "conftest.in"
  3416. cp "conftest.in" "conftest.nl"
  3417. $as_echo 'GREP' >> "conftest.nl"
  3418. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3419. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3420. ac_count=`expr $ac_count + 1`
  3421. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3422. # Best one so far, save it but keep looking for a better one
  3423. ac_cv_path_GREP="$ac_path_GREP"
  3424. ac_path_GREP_max=$ac_count
  3425. fi
  3426. # 10*(2^10) chars as input seems more than enough
  3427. test $ac_count -gt 10 && break
  3428. done
  3429. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3430. esac
  3431. $ac_path_GREP_found && break 3
  3432. done
  3433. done
  3434. done
  3435. IFS=$as_save_IFS
  3436. if test -z "$ac_cv_path_GREP"; then
  3437. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3438. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3439. { (exit 1); exit 1; }; }
  3440. fi
  3441. else
  3442. ac_cv_path_GREP=$GREP
  3443. fi
  3444. fi
  3445. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3446. $as_echo "$ac_cv_path_GREP" >&6; }
  3447. GREP="$ac_cv_path_GREP"
  3448. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3449. $as_echo_n "checking for egrep... " >&6; }
  3450. if test "${ac_cv_path_EGREP+set}" = set; then
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3454. then ac_cv_path_EGREP="$GREP -E"
  3455. else
  3456. if test -z "$EGREP"; then
  3457. ac_path_EGREP_found=false
  3458. # Loop through the user's path and test for each of PROGNAME-LIST
  3459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3460. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3461. do
  3462. IFS=$as_save_IFS
  3463. test -z "$as_dir" && as_dir=.
  3464. for ac_prog in egrep; do
  3465. for ac_exec_ext in '' $ac_executable_extensions; do
  3466. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3467. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3468. # Check for GNU ac_path_EGREP and select it if it is found.
  3469. # Check for GNU $ac_path_EGREP
  3470. case `"$ac_path_EGREP" --version 2>&1` in
  3471. *GNU*)
  3472. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3473. *)
  3474. ac_count=0
  3475. $as_echo_n 0123456789 >"conftest.in"
  3476. while :
  3477. do
  3478. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3479. mv "conftest.tmp" "conftest.in"
  3480. cp "conftest.in" "conftest.nl"
  3481. $as_echo 'EGREP' >> "conftest.nl"
  3482. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3483. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3484. ac_count=`expr $ac_count + 1`
  3485. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3486. # Best one so far, save it but keep looking for a better one
  3487. ac_cv_path_EGREP="$ac_path_EGREP"
  3488. ac_path_EGREP_max=$ac_count
  3489. fi
  3490. # 10*(2^10) chars as input seems more than enough
  3491. test $ac_count -gt 10 && break
  3492. done
  3493. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3494. esac
  3495. $ac_path_EGREP_found && break 3
  3496. done
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. if test -z "$ac_cv_path_EGREP"; then
  3501. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3502. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3503. { (exit 1); exit 1; }; }
  3504. fi
  3505. else
  3506. ac_cv_path_EGREP=$EGREP
  3507. fi
  3508. fi
  3509. fi
  3510. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3511. $as_echo "$ac_cv_path_EGREP" >&6; }
  3512. EGREP="$ac_cv_path_EGREP"
  3513. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3514. $as_echo_n "checking for fgrep... " >&6; }
  3515. if test "${ac_cv_path_FGREP+set}" = set; then
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3519. then ac_cv_path_FGREP="$GREP -F"
  3520. else
  3521. if test -z "$FGREP"; then
  3522. ac_path_FGREP_found=false
  3523. # Loop through the user's path and test for each of PROGNAME-LIST
  3524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3525. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3526. do
  3527. IFS=$as_save_IFS
  3528. test -z "$as_dir" && as_dir=.
  3529. for ac_prog in fgrep; do
  3530. for ac_exec_ext in '' $ac_executable_extensions; do
  3531. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3532. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3533. # Check for GNU ac_path_FGREP and select it if it is found.
  3534. # Check for GNU $ac_path_FGREP
  3535. case `"$ac_path_FGREP" --version 2>&1` in
  3536. *GNU*)
  3537. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3538. *)
  3539. ac_count=0
  3540. $as_echo_n 0123456789 >"conftest.in"
  3541. while :
  3542. do
  3543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3544. mv "conftest.tmp" "conftest.in"
  3545. cp "conftest.in" "conftest.nl"
  3546. $as_echo 'FGREP' >> "conftest.nl"
  3547. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3549. ac_count=`expr $ac_count + 1`
  3550. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3551. # Best one so far, save it but keep looking for a better one
  3552. ac_cv_path_FGREP="$ac_path_FGREP"
  3553. ac_path_FGREP_max=$ac_count
  3554. fi
  3555. # 10*(2^10) chars as input seems more than enough
  3556. test $ac_count -gt 10 && break
  3557. done
  3558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3559. esac
  3560. $ac_path_FGREP_found && break 3
  3561. done
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. if test -z "$ac_cv_path_FGREP"; then
  3566. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3567. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3568. { (exit 1); exit 1; }; }
  3569. fi
  3570. else
  3571. ac_cv_path_FGREP=$FGREP
  3572. fi
  3573. fi
  3574. fi
  3575. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3576. $as_echo "$ac_cv_path_FGREP" >&6; }
  3577. FGREP="$ac_cv_path_FGREP"
  3578. test -z "$GREP" && GREP=grep
  3579. # Check whether --with-gnu-ld was given.
  3580. if test "${with_gnu_ld+set}" = set; then
  3581. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3582. else
  3583. with_gnu_ld=no
  3584. fi
  3585. ac_prog=ld
  3586. if test "$GCC" = yes; then
  3587. # Check if gcc -print-prog-name=ld gives a path.
  3588. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3589. $as_echo_n "checking for ld used by $CC... " >&6; }
  3590. case $host in
  3591. *-*-mingw*)
  3592. # gcc leaves a trailing carriage return which upsets mingw
  3593. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3594. *)
  3595. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3596. esac
  3597. case $ac_prog in
  3598. # Accept absolute paths.
  3599. [\\/]* | ?:[\\/]*)
  3600. re_direlt='/[^/][^/]*/\.\./'
  3601. # Canonicalize the pathname of ld
  3602. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3603. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3604. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3605. done
  3606. test -z "$LD" && LD="$ac_prog"
  3607. ;;
  3608. "")
  3609. # If it fails, then pretend we aren't using GCC.
  3610. ac_prog=ld
  3611. ;;
  3612. *)
  3613. # If it is relative, then search for the first ld in PATH.
  3614. with_gnu_ld=unknown
  3615. ;;
  3616. esac
  3617. elif test "$with_gnu_ld" = yes; then
  3618. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3619. $as_echo_n "checking for GNU ld... " >&6; }
  3620. else
  3621. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3622. $as_echo_n "checking for non-GNU ld... " >&6; }
  3623. fi
  3624. if test "${lt_cv_path_LD+set}" = set; then
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. if test -z "$LD"; then
  3628. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3629. for ac_dir in $PATH; do
  3630. IFS="$lt_save_ifs"
  3631. test -z "$ac_dir" && ac_dir=.
  3632. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3633. lt_cv_path_LD="$ac_dir/$ac_prog"
  3634. # Check to see if the program is GNU ld. I'd rather use --version,
  3635. # but apparently some variants of GNU ld only accept -v.
  3636. # Break only if it was the GNU/non-GNU ld that we prefer.
  3637. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3638. *GNU* | *'with BFD'*)
  3639. test "$with_gnu_ld" != no && break
  3640. ;;
  3641. *)
  3642. test "$with_gnu_ld" != yes && break
  3643. ;;
  3644. esac
  3645. fi
  3646. done
  3647. IFS="$lt_save_ifs"
  3648. else
  3649. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3650. fi
  3651. fi
  3652. LD="$lt_cv_path_LD"
  3653. if test -n "$LD"; then
  3654. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3655. $as_echo "$LD" >&6; }
  3656. else
  3657. { $as_echo "$as_me:$LINENO: result: no" >&5
  3658. $as_echo "no" >&6; }
  3659. fi
  3660. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3661. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3662. { (exit 1); exit 1; }; }
  3663. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3664. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3665. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3669. case `$LD -v 2>&1 </dev/null` in
  3670. *GNU* | *'with BFD'*)
  3671. lt_cv_prog_gnu_ld=yes
  3672. ;;
  3673. *)
  3674. lt_cv_prog_gnu_ld=no
  3675. ;;
  3676. esac
  3677. fi
  3678. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3679. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3680. with_gnu_ld=$lt_cv_prog_gnu_ld
  3681. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3682. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3683. if test "${lt_cv_path_NM+set}" = set; then
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if test -n "$NM"; then
  3687. # Let the user override the test.
  3688. lt_cv_path_NM="$NM"
  3689. else
  3690. lt_nm_to_check="${ac_tool_prefix}nm"
  3691. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3692. lt_nm_to_check="$lt_nm_to_check nm"
  3693. fi
  3694. for lt_tmp_nm in $lt_nm_to_check; do
  3695. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3696. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3697. IFS="$lt_save_ifs"
  3698. test -z "$ac_dir" && ac_dir=.
  3699. tmp_nm="$ac_dir/$lt_tmp_nm"
  3700. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3701. # Check to see if the nm accepts a BSD-compat flag.
  3702. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3703. # nm: unknown option "B" ignored
  3704. # Tru64's nm complains that /dev/null is an invalid object file
  3705. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3706. */dev/null* | *'Invalid file or object type'*)
  3707. lt_cv_path_NM="$tmp_nm -B"
  3708. break
  3709. ;;
  3710. *)
  3711. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3712. */dev/null*)
  3713. lt_cv_path_NM="$tmp_nm -p"
  3714. break
  3715. ;;
  3716. *)
  3717. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3718. continue # so that we can try to find one that supports BSD flags
  3719. ;;
  3720. esac
  3721. ;;
  3722. esac
  3723. fi
  3724. done
  3725. IFS="$lt_save_ifs"
  3726. done
  3727. : ${lt_cv_path_NM=no}
  3728. fi
  3729. fi
  3730. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3731. $as_echo "$lt_cv_path_NM" >&6; }
  3732. if test "$lt_cv_path_NM" != "no"; then
  3733. NM="$lt_cv_path_NM"
  3734. else
  3735. # Didn't find any BSD compatible name lister, look for dumpbin.
  3736. if test -n "$ac_tool_prefix"; then
  3737. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3738. do
  3739. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3740. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3741. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3742. $as_echo_n "checking for $ac_word... " >&6; }
  3743. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. if test -n "$DUMPBIN"; then
  3747. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3748. else
  3749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3750. for as_dir in $PATH
  3751. do
  3752. IFS=$as_save_IFS
  3753. test -z "$as_dir" && as_dir=.
  3754. for ac_exec_ext in '' $ac_executable_extensions; do
  3755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3756. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3757. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3758. break 2
  3759. fi
  3760. done
  3761. done
  3762. IFS=$as_save_IFS
  3763. fi
  3764. fi
  3765. DUMPBIN=$ac_cv_prog_DUMPBIN
  3766. if test -n "$DUMPBIN"; then
  3767. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3768. $as_echo "$DUMPBIN" >&6; }
  3769. else
  3770. { $as_echo "$as_me:$LINENO: result: no" >&5
  3771. $as_echo "no" >&6; }
  3772. fi
  3773. test -n "$DUMPBIN" && break
  3774. done
  3775. fi
  3776. if test -z "$DUMPBIN"; then
  3777. ac_ct_DUMPBIN=$DUMPBIN
  3778. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3779. do
  3780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3781. set dummy $ac_prog; ac_word=$2
  3782. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$ac_ct_DUMPBIN"; then
  3788. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3797. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3798. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3807. if test -n "$ac_ct_DUMPBIN"; then
  3808. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3809. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3810. else
  3811. { $as_echo "$as_me:$LINENO: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. test -n "$ac_ct_DUMPBIN" && break
  3815. done
  3816. if test "x$ac_ct_DUMPBIN" = x; then
  3817. DUMPBIN=":"
  3818. else
  3819. case $cross_compiling:$ac_tool_warned in
  3820. yes:)
  3821. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3823. ac_tool_warned=yes ;;
  3824. esac
  3825. DUMPBIN=$ac_ct_DUMPBIN
  3826. fi
  3827. fi
  3828. if test "$DUMPBIN" != ":"; then
  3829. NM="$DUMPBIN"
  3830. fi
  3831. fi
  3832. test -z "$NM" && NM=nm
  3833. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3834. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3835. if test "${lt_cv_nm_interface+set}" = set; then
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. lt_cv_nm_interface="BSD nm"
  3839. echo "int some_variable = 0;" > conftest.$ac_ext
  3840. (eval echo "\"\$as_me:4339: $ac_compile\"" >&5)
  3841. (eval "$ac_compile" 2>conftest.err)
  3842. cat conftest.err >&5
  3843. (eval echo "\"\$as_me:4342: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3844. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3845. cat conftest.err >&5
  3846. (eval echo "\"\$as_me:4345: output\"" >&5)
  3847. cat conftest.out >&5
  3848. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3849. lt_cv_nm_interface="MS dumpbin"
  3850. fi
  3851. rm -f conftest*
  3852. fi
  3853. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3854. $as_echo "$lt_cv_nm_interface" >&6; }
  3855. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3856. $as_echo_n "checking whether ln -s works... " >&6; }
  3857. LN_S=$as_ln_s
  3858. if test "$LN_S" = "ln -s"; then
  3859. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3860. $as_echo "yes" >&6; }
  3861. else
  3862. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3863. $as_echo "no, using $LN_S" >&6; }
  3864. fi
  3865. # find the maximum length of command line arguments
  3866. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3867. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3868. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. i=0
  3872. teststring="ABCD"
  3873. case $build_os in
  3874. msdosdjgpp*)
  3875. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3876. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3877. # during glob expansion). Even if it were fixed, the result of this
  3878. # check would be larger than it should be.
  3879. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3880. ;;
  3881. gnu*)
  3882. # Under GNU Hurd, this test is not required because there is
  3883. # no limit to the length of command line arguments.
  3884. # Libtool will interpret -1 as no limit whatsoever
  3885. lt_cv_sys_max_cmd_len=-1;
  3886. ;;
  3887. cygwin* | mingw* | cegcc*)
  3888. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3889. # about 5 minutes as the teststring grows exponentially.
  3890. # Worse, since 9x/ME are not pre-emptively multitasking,
  3891. # you end up with a "frozen" computer, even though with patience
  3892. # the test eventually succeeds (with a max line length of 256k).
  3893. # Instead, let's just punt: use the minimum linelength reported by
  3894. # all of the supported platforms: 8192 (on NT/2K/XP).
  3895. lt_cv_sys_max_cmd_len=8192;
  3896. ;;
  3897. amigaos*)
  3898. # On AmigaOS with pdksh, this test takes hours, literally.
  3899. # So we just punt and use a minimum line length of 8192.
  3900. lt_cv_sys_max_cmd_len=8192;
  3901. ;;
  3902. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3903. # This has been around since 386BSD, at least. Likely further.
  3904. if test -x /sbin/sysctl; then
  3905. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3906. elif test -x /usr/sbin/sysctl; then
  3907. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3908. else
  3909. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3910. fi
  3911. # And add a safety zone
  3912. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3914. ;;
  3915. interix*)
  3916. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3917. lt_cv_sys_max_cmd_len=196608
  3918. ;;
  3919. osf*)
  3920. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3921. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3922. # nice to cause kernel panics so lets avoid the loop below.
  3923. # First set a reasonable default.
  3924. lt_cv_sys_max_cmd_len=16384
  3925. #
  3926. if test -x /sbin/sysconfig; then
  3927. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3928. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3929. esac
  3930. fi
  3931. ;;
  3932. sco3.2v5*)
  3933. lt_cv_sys_max_cmd_len=102400
  3934. ;;
  3935. sysv5* | sco5v6* | sysv4.2uw2*)
  3936. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3937. if test -n "$kargmax"; then
  3938. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3939. else
  3940. lt_cv_sys_max_cmd_len=32768
  3941. fi
  3942. ;;
  3943. *)
  3944. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3945. if test -n "$lt_cv_sys_max_cmd_len"; then
  3946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3948. else
  3949. # Make teststring a little bigger before we do anything with it.
  3950. # a 1K string should be a reasonable start.
  3951. for i in 1 2 3 4 5 6 7 8 ; do
  3952. teststring=$teststring$teststring
  3953. done
  3954. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3955. # If test is not a shell built-in, we'll probably end up computing a
  3956. # maximum length that is only half of the actual maximum length, but
  3957. # we can't tell.
  3958. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3959. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3960. test $i != 17 # 1/2 MB should be enough
  3961. do
  3962. i=`expr $i + 1`
  3963. teststring=$teststring$teststring
  3964. done
  3965. # Only check the string length outside the loop.
  3966. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3967. teststring=
  3968. # Add a significant safety factor because C++ compilers can tack on
  3969. # massive amounts of additional arguments before passing them to the
  3970. # linker. It appears as though 1/2 is a usable value.
  3971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3972. fi
  3973. ;;
  3974. esac
  3975. fi
  3976. if test -n $lt_cv_sys_max_cmd_len ; then
  3977. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  3978. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3979. else
  3980. { $as_echo "$as_me:$LINENO: result: none" >&5
  3981. $as_echo "none" >&6; }
  3982. fi
  3983. max_cmd_len=$lt_cv_sys_max_cmd_len
  3984. : ${CP="cp -f"}
  3985. : ${MV="mv -f"}
  3986. : ${RM="rm -f"}
  3987. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  3988. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3989. # Try some XSI features
  3990. xsi_shell=no
  3991. ( _lt_dummy="a/b/c"
  3992. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  3993. = c,a/b,, \
  3994. && eval 'test $(( 1 + 1 )) -eq 2 \
  3995. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3996. && xsi_shell=yes
  3997. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  3998. $as_echo "$xsi_shell" >&6; }
  3999. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4000. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4001. lt_shell_append=no
  4002. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4003. >/dev/null 2>&1 \
  4004. && lt_shell_append=yes
  4005. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4006. $as_echo "$lt_shell_append" >&6; }
  4007. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4008. lt_unset=unset
  4009. else
  4010. lt_unset=false
  4011. fi
  4012. # test EBCDIC or ASCII
  4013. case `echo X|tr X '\101'` in
  4014. A) # ASCII based system
  4015. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4016. lt_SP2NL='tr \040 \012'
  4017. lt_NL2SP='tr \015\012 \040\040'
  4018. ;;
  4019. *) # EBCDIC based system
  4020. lt_SP2NL='tr \100 \n'
  4021. lt_NL2SP='tr \r\n \100\100'
  4022. ;;
  4023. esac
  4024. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4025. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4026. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. lt_cv_ld_reload_flag='-r'
  4030. fi
  4031. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4032. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4033. reload_flag=$lt_cv_ld_reload_flag
  4034. case $reload_flag in
  4035. "" | " "*) ;;
  4036. *) reload_flag=" $reload_flag" ;;
  4037. esac
  4038. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4039. case $host_os in
  4040. darwin*)
  4041. if test "$GCC" = yes; then
  4042. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4043. else
  4044. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4045. fi
  4046. ;;
  4047. esac
  4048. if test -n "$ac_tool_prefix"; then
  4049. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4050. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4051. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4052. $as_echo_n "checking for $ac_word... " >&6; }
  4053. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4054. $as_echo_n "(cached) " >&6
  4055. else
  4056. if test -n "$OBJDUMP"; then
  4057. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4058. else
  4059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4060. for as_dir in $PATH
  4061. do
  4062. IFS=$as_save_IFS
  4063. test -z "$as_dir" && as_dir=.
  4064. for ac_exec_ext in '' $ac_executable_extensions; do
  4065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4066. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4067. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4068. break 2
  4069. fi
  4070. done
  4071. done
  4072. IFS=$as_save_IFS
  4073. fi
  4074. fi
  4075. OBJDUMP=$ac_cv_prog_OBJDUMP
  4076. if test -n "$OBJDUMP"; then
  4077. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4078. $as_echo "$OBJDUMP" >&6; }
  4079. else
  4080. { $as_echo "$as_me:$LINENO: result: no" >&5
  4081. $as_echo "no" >&6; }
  4082. fi
  4083. fi
  4084. if test -z "$ac_cv_prog_OBJDUMP"; then
  4085. ac_ct_OBJDUMP=$OBJDUMP
  4086. # Extract the first word of "objdump", so it can be a program name with args.
  4087. set dummy objdump; ac_word=$2
  4088. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4089. $as_echo_n "checking for $ac_word... " >&6; }
  4090. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. if test -n "$ac_ct_OBJDUMP"; then
  4094. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4095. else
  4096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4097. for as_dir in $PATH
  4098. do
  4099. IFS=$as_save_IFS
  4100. test -z "$as_dir" && as_dir=.
  4101. for ac_exec_ext in '' $ac_executable_extensions; do
  4102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4103. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4104. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4105. break 2
  4106. fi
  4107. done
  4108. done
  4109. IFS=$as_save_IFS
  4110. fi
  4111. fi
  4112. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4113. if test -n "$ac_ct_OBJDUMP"; then
  4114. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4115. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4116. else
  4117. { $as_echo "$as_me:$LINENO: result: no" >&5
  4118. $as_echo "no" >&6; }
  4119. fi
  4120. if test "x$ac_ct_OBJDUMP" = x; then
  4121. OBJDUMP="false"
  4122. else
  4123. case $cross_compiling:$ac_tool_warned in
  4124. yes:)
  4125. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4127. ac_tool_warned=yes ;;
  4128. esac
  4129. OBJDUMP=$ac_ct_OBJDUMP
  4130. fi
  4131. else
  4132. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4133. fi
  4134. test -z "$OBJDUMP" && OBJDUMP=objdump
  4135. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4136. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4137. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4138. $as_echo_n "(cached) " >&6
  4139. else
  4140. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4141. lt_cv_file_magic_test_file=
  4142. lt_cv_deplibs_check_method='unknown'
  4143. # Need to set the preceding variable on all platforms that support
  4144. # interlibrary dependencies.
  4145. # 'none' -- dependencies not supported.
  4146. # `unknown' -- same as none, but documents that we really don't know.
  4147. # 'pass_all' -- all dependencies passed with no checks.
  4148. # 'test_compile' -- check by making test program.
  4149. # 'file_magic [[regex]]' -- check by looking for files in library path
  4150. # which responds to the $file_magic_cmd with a given extended regex.
  4151. # If you have `file' or equivalent on your system and you're not sure
  4152. # whether `pass_all' will *always* work, you probably want this one.
  4153. case $host_os in
  4154. aix[4-9]*)
  4155. lt_cv_deplibs_check_method=pass_all
  4156. ;;
  4157. beos*)
  4158. lt_cv_deplibs_check_method=pass_all
  4159. ;;
  4160. bsdi[45]*)
  4161. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4162. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4163. lt_cv_file_magic_test_file=/shlib/libc.so
  4164. ;;
  4165. cygwin*)
  4166. # func_win32_libid is a shell function defined in ltmain.sh
  4167. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4168. lt_cv_file_magic_cmd='func_win32_libid'
  4169. ;;
  4170. mingw* | pw32*)
  4171. # Base MSYS/MinGW do not provide the 'file' command needed by
  4172. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4173. # unless we find 'file', for example because we are cross-compiling.
  4174. if ( file / ) >/dev/null 2>&1; then
  4175. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4176. lt_cv_file_magic_cmd='func_win32_libid'
  4177. else
  4178. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4179. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4180. fi
  4181. ;;
  4182. cegcc)
  4183. # use the weaker test based on 'objdump'. See mingw*.
  4184. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4185. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4186. ;;
  4187. darwin* | rhapsody*)
  4188. lt_cv_deplibs_check_method=pass_all
  4189. ;;
  4190. freebsd* | dragonfly*)
  4191. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4192. case $host_cpu in
  4193. i*86 )
  4194. # Not sure whether the presence of OpenBSD here was a mistake.
  4195. # Let's accept both of them until this is cleared up.
  4196. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4197. lt_cv_file_magic_cmd=/usr/bin/file
  4198. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4199. ;;
  4200. esac
  4201. else
  4202. lt_cv_deplibs_check_method=pass_all
  4203. fi
  4204. ;;
  4205. gnu*)
  4206. lt_cv_deplibs_check_method=pass_all
  4207. ;;
  4208. hpux10.20* | hpux11*)
  4209. lt_cv_file_magic_cmd=/usr/bin/file
  4210. case $host_cpu in
  4211. ia64*)
  4212. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4213. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4214. ;;
  4215. hppa*64*)
  4216. 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]'
  4217. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4218. ;;
  4219. *)
  4220. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4221. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4222. ;;
  4223. esac
  4224. ;;
  4225. interix[3-9]*)
  4226. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4227. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4228. ;;
  4229. irix5* | irix6* | nonstopux*)
  4230. case $LD in
  4231. *-32|*"-32 ") libmagic=32-bit;;
  4232. *-n32|*"-n32 ") libmagic=N32;;
  4233. *-64|*"-64 ") libmagic=64-bit;;
  4234. *) libmagic=never-match;;
  4235. esac
  4236. lt_cv_deplibs_check_method=pass_all
  4237. ;;
  4238. # This must be Linux ELF.
  4239. linux* | k*bsd*-gnu)
  4240. lt_cv_deplibs_check_method=pass_all
  4241. ;;
  4242. netbsd*)
  4243. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4244. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4245. else
  4246. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4247. fi
  4248. ;;
  4249. newos6*)
  4250. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4251. lt_cv_file_magic_cmd=/usr/bin/file
  4252. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4253. ;;
  4254. *nto* | *qnx*)
  4255. lt_cv_deplibs_check_method=pass_all
  4256. ;;
  4257. openbsd*)
  4258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4259. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4260. else
  4261. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4262. fi
  4263. ;;
  4264. osf3* | osf4* | osf5*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. rdos*)
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. solaris*)
  4271. lt_cv_deplibs_check_method=pass_all
  4272. ;;
  4273. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4274. lt_cv_deplibs_check_method=pass_all
  4275. ;;
  4276. sysv4 | sysv4.3*)
  4277. case $host_vendor in
  4278. motorola)
  4279. 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]'
  4280. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4281. ;;
  4282. ncr)
  4283. lt_cv_deplibs_check_method=pass_all
  4284. ;;
  4285. sequent)
  4286. lt_cv_file_magic_cmd='/bin/file'
  4287. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4288. ;;
  4289. sni)
  4290. lt_cv_file_magic_cmd='/bin/file'
  4291. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4292. lt_cv_file_magic_test_file=/lib/libc.so
  4293. ;;
  4294. siemens)
  4295. lt_cv_deplibs_check_method=pass_all
  4296. ;;
  4297. pc)
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. esac
  4301. ;;
  4302. tpf*)
  4303. lt_cv_deplibs_check_method=pass_all
  4304. ;;
  4305. esac
  4306. fi
  4307. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4308. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4309. file_magic_cmd=$lt_cv_file_magic_cmd
  4310. deplibs_check_method=$lt_cv_deplibs_check_method
  4311. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4312. if test -n "$ac_tool_prefix"; then
  4313. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4314. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4315. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4316. $as_echo_n "checking for $ac_word... " >&6; }
  4317. if test "${ac_cv_prog_AR+set}" = set; then
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. if test -n "$AR"; then
  4321. ac_cv_prog_AR="$AR" # Let the user override the test.
  4322. else
  4323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4324. for as_dir in $PATH
  4325. do
  4326. IFS=$as_save_IFS
  4327. test -z "$as_dir" && as_dir=.
  4328. for ac_exec_ext in '' $ac_executable_extensions; do
  4329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4330. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4331. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4332. break 2
  4333. fi
  4334. done
  4335. done
  4336. IFS=$as_save_IFS
  4337. fi
  4338. fi
  4339. AR=$ac_cv_prog_AR
  4340. if test -n "$AR"; then
  4341. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4342. $as_echo "$AR" >&6; }
  4343. else
  4344. { $as_echo "$as_me:$LINENO: result: no" >&5
  4345. $as_echo "no" >&6; }
  4346. fi
  4347. fi
  4348. if test -z "$ac_cv_prog_AR"; then
  4349. ac_ct_AR=$AR
  4350. # Extract the first word of "ar", so it can be a program name with args.
  4351. set dummy ar; ac_word=$2
  4352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4353. $as_echo_n "checking for $ac_word... " >&6; }
  4354. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. if test -n "$ac_ct_AR"; then
  4358. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4359. else
  4360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4361. for as_dir in $PATH
  4362. do
  4363. IFS=$as_save_IFS
  4364. test -z "$as_dir" && as_dir=.
  4365. for ac_exec_ext in '' $ac_executable_extensions; do
  4366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4367. ac_cv_prog_ac_ct_AR="ar"
  4368. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4369. break 2
  4370. fi
  4371. done
  4372. done
  4373. IFS=$as_save_IFS
  4374. fi
  4375. fi
  4376. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4377. if test -n "$ac_ct_AR"; then
  4378. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4379. $as_echo "$ac_ct_AR" >&6; }
  4380. else
  4381. { $as_echo "$as_me:$LINENO: result: no" >&5
  4382. $as_echo "no" >&6; }
  4383. fi
  4384. if test "x$ac_ct_AR" = x; then
  4385. AR="false"
  4386. else
  4387. case $cross_compiling:$ac_tool_warned in
  4388. yes:)
  4389. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4391. ac_tool_warned=yes ;;
  4392. esac
  4393. AR=$ac_ct_AR
  4394. fi
  4395. else
  4396. AR="$ac_cv_prog_AR"
  4397. fi
  4398. test -z "$AR" && AR=ar
  4399. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4400. if test -n "$ac_tool_prefix"; then
  4401. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4402. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4403. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4404. $as_echo_n "checking for $ac_word... " >&6; }
  4405. if test "${ac_cv_prog_STRIP+set}" = set; then
  4406. $as_echo_n "(cached) " >&6
  4407. else
  4408. if test -n "$STRIP"; then
  4409. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4410. else
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH
  4413. do
  4414. IFS=$as_save_IFS
  4415. test -z "$as_dir" && as_dir=.
  4416. for ac_exec_ext in '' $ac_executable_extensions; do
  4417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4418. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4419. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4420. break 2
  4421. fi
  4422. done
  4423. done
  4424. IFS=$as_save_IFS
  4425. fi
  4426. fi
  4427. STRIP=$ac_cv_prog_STRIP
  4428. if test -n "$STRIP"; then
  4429. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4430. $as_echo "$STRIP" >&6; }
  4431. else
  4432. { $as_echo "$as_me:$LINENO: result: no" >&5
  4433. $as_echo "no" >&6; }
  4434. fi
  4435. fi
  4436. if test -z "$ac_cv_prog_STRIP"; then
  4437. ac_ct_STRIP=$STRIP
  4438. # Extract the first word of "strip", so it can be a program name with args.
  4439. set dummy strip; ac_word=$2
  4440. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4441. $as_echo_n "checking for $ac_word... " >&6; }
  4442. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -n "$ac_ct_STRIP"; then
  4446. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4447. else
  4448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4449. for as_dir in $PATH
  4450. do
  4451. IFS=$as_save_IFS
  4452. test -z "$as_dir" && as_dir=.
  4453. for ac_exec_ext in '' $ac_executable_extensions; do
  4454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4455. ac_cv_prog_ac_ct_STRIP="strip"
  4456. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4457. break 2
  4458. fi
  4459. done
  4460. done
  4461. IFS=$as_save_IFS
  4462. fi
  4463. fi
  4464. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4465. if test -n "$ac_ct_STRIP"; then
  4466. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4467. $as_echo "$ac_ct_STRIP" >&6; }
  4468. else
  4469. { $as_echo "$as_me:$LINENO: result: no" >&5
  4470. $as_echo "no" >&6; }
  4471. fi
  4472. if test "x$ac_ct_STRIP" = x; then
  4473. STRIP=":"
  4474. else
  4475. case $cross_compiling:$ac_tool_warned in
  4476. yes:)
  4477. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4479. ac_tool_warned=yes ;;
  4480. esac
  4481. STRIP=$ac_ct_STRIP
  4482. fi
  4483. else
  4484. STRIP="$ac_cv_prog_STRIP"
  4485. fi
  4486. test -z "$STRIP" && STRIP=:
  4487. if test -n "$ac_tool_prefix"; then
  4488. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4489. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4490. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4491. $as_echo_n "checking for $ac_word... " >&6; }
  4492. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. if test -n "$RANLIB"; then
  4496. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4497. else
  4498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499. for as_dir in $PATH
  4500. do
  4501. IFS=$as_save_IFS
  4502. test -z "$as_dir" && as_dir=.
  4503. for ac_exec_ext in '' $ac_executable_extensions; do
  4504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4505. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4506. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4507. break 2
  4508. fi
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. fi
  4513. fi
  4514. RANLIB=$ac_cv_prog_RANLIB
  4515. if test -n "$RANLIB"; then
  4516. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4517. $as_echo "$RANLIB" >&6; }
  4518. else
  4519. { $as_echo "$as_me:$LINENO: result: no" >&5
  4520. $as_echo "no" >&6; }
  4521. fi
  4522. fi
  4523. if test -z "$ac_cv_prog_RANLIB"; then
  4524. ac_ct_RANLIB=$RANLIB
  4525. # Extract the first word of "ranlib", so it can be a program name with args.
  4526. set dummy ranlib; ac_word=$2
  4527. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4528. $as_echo_n "checking for $ac_word... " >&6; }
  4529. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. if test -n "$ac_ct_RANLIB"; then
  4533. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4534. else
  4535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4536. for as_dir in $PATH
  4537. do
  4538. IFS=$as_save_IFS
  4539. test -z "$as_dir" && as_dir=.
  4540. for ac_exec_ext in '' $ac_executable_extensions; do
  4541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4542. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4543. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4544. break 2
  4545. fi
  4546. done
  4547. done
  4548. IFS=$as_save_IFS
  4549. fi
  4550. fi
  4551. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4552. if test -n "$ac_ct_RANLIB"; then
  4553. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4554. $as_echo "$ac_ct_RANLIB" >&6; }
  4555. else
  4556. { $as_echo "$as_me:$LINENO: result: no" >&5
  4557. $as_echo "no" >&6; }
  4558. fi
  4559. if test "x$ac_ct_RANLIB" = x; then
  4560. RANLIB=":"
  4561. else
  4562. case $cross_compiling:$ac_tool_warned in
  4563. yes:)
  4564. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4565. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4566. ac_tool_warned=yes ;;
  4567. esac
  4568. RANLIB=$ac_ct_RANLIB
  4569. fi
  4570. else
  4571. RANLIB="$ac_cv_prog_RANLIB"
  4572. fi
  4573. test -z "$RANLIB" && RANLIB=:
  4574. # Determine commands to create old-style static archives.
  4575. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4576. old_postinstall_cmds='chmod 644 $oldlib'
  4577. old_postuninstall_cmds=
  4578. if test -n "$RANLIB"; then
  4579. case $host_os in
  4580. openbsd*)
  4581. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4582. ;;
  4583. *)
  4584. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4585. ;;
  4586. esac
  4587. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4588. fi
  4589. # If no C compiler was specified, use CC.
  4590. LTCC=${LTCC-"$CC"}
  4591. # If no C compiler flags were specified, use CFLAGS.
  4592. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4593. # Allow CC to be a program name with arguments.
  4594. compiler=$CC
  4595. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4596. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4597. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4598. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. # These are sane defaults that work on at least a few old systems.
  4602. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4603. # Character class describing NM global symbol codes.
  4604. symcode='[BCDEGRST]'
  4605. # Regexp to match symbols that can be accessed directly from C.
  4606. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4607. # Define system-specific variables.
  4608. case $host_os in
  4609. aix*)
  4610. symcode='[BCDT]'
  4611. ;;
  4612. cygwin* | mingw* | pw32* | cegcc*)
  4613. symcode='[ABCDGISTW]'
  4614. ;;
  4615. hpux*)
  4616. if test "$host_cpu" = ia64; then
  4617. symcode='[ABCDEGRST]'
  4618. fi
  4619. ;;
  4620. irix* | nonstopux*)
  4621. symcode='[BCDEGRST]'
  4622. ;;
  4623. osf*)
  4624. symcode='[BCDEGQRST]'
  4625. ;;
  4626. solaris*)
  4627. symcode='[BDRT]'
  4628. ;;
  4629. sco3.2v5*)
  4630. symcode='[DT]'
  4631. ;;
  4632. sysv4.2uw2*)
  4633. symcode='[DT]'
  4634. ;;
  4635. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4636. symcode='[ABDT]'
  4637. ;;
  4638. sysv4)
  4639. symcode='[DFNSTU]'
  4640. ;;
  4641. esac
  4642. # If we're using GNU nm, then use its standard symbol codes.
  4643. case `$NM -V 2>&1` in
  4644. *GNU* | *'with BFD'*)
  4645. symcode='[ABCDGIRSTW]' ;;
  4646. esac
  4647. # Transform an extracted symbol line into a proper C declaration.
  4648. # Some systems (esp. on ia64) link data and code symbols differently,
  4649. # so use this general approach.
  4650. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4651. # Transform an extracted symbol line into symbol name and symbol address
  4652. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4653. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4654. # Handle CRLF in mingw tool chain
  4655. opt_cr=
  4656. case $build_os in
  4657. mingw*)
  4658. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4659. ;;
  4660. esac
  4661. # Try without a prefix underscore, then with it.
  4662. for ac_symprfx in "" "_"; do
  4663. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4664. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4665. # Write the raw and C identifiers.
  4666. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4667. # Fake it for dumpbin and say T for any non-static function
  4668. # and D for any global variable.
  4669. # Also find C++ and __fastcall symbols from MSVC++,
  4670. # which start with @ or ?.
  4671. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4672. " {last_section=section; section=\$ 3};"\
  4673. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4674. " \$ 0!~/External *\|/{next};"\
  4675. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4676. " {if(hide[section]) next};"\
  4677. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4678. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4679. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4680. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4681. " ' prfx=^$ac_symprfx"
  4682. else
  4683. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4684. fi
  4685. # Check to see that the pipe works correctly.
  4686. pipe_works=no
  4687. rm -f conftest*
  4688. cat > conftest.$ac_ext <<_LT_EOF
  4689. #ifdef __cplusplus
  4690. extern "C" {
  4691. #endif
  4692. char nm_test_var;
  4693. void nm_test_func(void);
  4694. void nm_test_func(void){}
  4695. #ifdef __cplusplus
  4696. }
  4697. #endif
  4698. int main(){nm_test_var='a';nm_test_func();return(0);}
  4699. _LT_EOF
  4700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4701. (eval $ac_compile) 2>&5
  4702. ac_status=$?
  4703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; then
  4705. # Now try to grab the symbols.
  4706. nlist=conftest.nm
  4707. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4708. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4709. ac_status=$?
  4710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); } && test -s "$nlist"; then
  4712. # Try sorting and uniquifying the output.
  4713. if sort "$nlist" | uniq > "$nlist"T; then
  4714. mv -f "$nlist"T "$nlist"
  4715. else
  4716. rm -f "$nlist"T
  4717. fi
  4718. # Make sure that we snagged all the symbols we need.
  4719. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4720. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4721. cat <<_LT_EOF > conftest.$ac_ext
  4722. #ifdef __cplusplus
  4723. extern "C" {
  4724. #endif
  4725. _LT_EOF
  4726. # Now generate the symbol file.
  4727. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4728. cat <<_LT_EOF >> conftest.$ac_ext
  4729. /* The mapping between symbol names and symbols. */
  4730. const struct {
  4731. const char *name;
  4732. void *address;
  4733. }
  4734. lt__PROGRAM__LTX_preloaded_symbols[] =
  4735. {
  4736. { "@PROGRAM@", (void *) 0 },
  4737. _LT_EOF
  4738. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4739. cat <<\_LT_EOF >> conftest.$ac_ext
  4740. {0, (void *) 0}
  4741. };
  4742. /* This works around a problem in FreeBSD linker */
  4743. #ifdef FREEBSD_WORKAROUND
  4744. static const void *lt_preloaded_setup() {
  4745. return lt__PROGRAM__LTX_preloaded_symbols;
  4746. }
  4747. #endif
  4748. #ifdef __cplusplus
  4749. }
  4750. #endif
  4751. _LT_EOF
  4752. # Now try linking the two files.
  4753. mv conftest.$ac_objext conftstm.$ac_objext
  4754. lt_save_LIBS="$LIBS"
  4755. lt_save_CFLAGS="$CFLAGS"
  4756. LIBS="conftstm.$ac_objext"
  4757. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4758. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4759. (eval $ac_link) 2>&5
  4760. ac_status=$?
  4761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4762. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4763. pipe_works=yes
  4764. fi
  4765. LIBS="$lt_save_LIBS"
  4766. CFLAGS="$lt_save_CFLAGS"
  4767. else
  4768. echo "cannot find nm_test_func in $nlist" >&5
  4769. fi
  4770. else
  4771. echo "cannot find nm_test_var in $nlist" >&5
  4772. fi
  4773. else
  4774. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4775. fi
  4776. else
  4777. echo "$progname: failed program was:" >&5
  4778. cat conftest.$ac_ext >&5
  4779. fi
  4780. rm -rf conftest* conftst*
  4781. # Do not use the global_symbol_pipe unless it works.
  4782. if test "$pipe_works" = yes; then
  4783. break
  4784. else
  4785. lt_cv_sys_global_symbol_pipe=
  4786. fi
  4787. done
  4788. fi
  4789. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4790. lt_cv_sys_global_symbol_to_cdecl=
  4791. fi
  4792. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4793. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4794. $as_echo "failed" >&6; }
  4795. else
  4796. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4797. $as_echo "ok" >&6; }
  4798. fi
  4799. # Check whether --enable-libtool-lock was given.
  4800. if test "${enable_libtool_lock+set}" = set; then
  4801. enableval=$enable_libtool_lock;
  4802. fi
  4803. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4804. # Some flags need to be propagated to the compiler or linker for good
  4805. # libtool support.
  4806. case $host in
  4807. ia64-*-hpux*)
  4808. # Find out which ABI we are using.
  4809. echo 'int i;' > conftest.$ac_ext
  4810. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4811. (eval $ac_compile) 2>&5
  4812. ac_status=$?
  4813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); }; then
  4815. case `/usr/bin/file conftest.$ac_objext` in
  4816. *ELF-32*)
  4817. HPUX_IA64_MODE="32"
  4818. ;;
  4819. *ELF-64*)
  4820. HPUX_IA64_MODE="64"
  4821. ;;
  4822. esac
  4823. fi
  4824. rm -rf conftest*
  4825. ;;
  4826. *-*-irix6*)
  4827. # Find out which ABI we are using.
  4828. echo '#line 5551 "configure"' > conftest.$ac_ext
  4829. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4830. (eval $ac_compile) 2>&5
  4831. ac_status=$?
  4832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833. (exit $ac_status); }; then
  4834. if test "$lt_cv_prog_gnu_ld" = yes; then
  4835. case `/usr/bin/file conftest.$ac_objext` in
  4836. *32-bit*)
  4837. LD="${LD-ld} -melf32bsmip"
  4838. ;;
  4839. *N32*)
  4840. LD="${LD-ld} -melf32bmipn32"
  4841. ;;
  4842. *64-bit*)
  4843. LD="${LD-ld} -melf64bmip"
  4844. ;;
  4845. esac
  4846. else
  4847. case `/usr/bin/file conftest.$ac_objext` in
  4848. *32-bit*)
  4849. LD="${LD-ld} -32"
  4850. ;;
  4851. *N32*)
  4852. LD="${LD-ld} -n32"
  4853. ;;
  4854. *64-bit*)
  4855. LD="${LD-ld} -64"
  4856. ;;
  4857. esac
  4858. fi
  4859. fi
  4860. rm -rf conftest*
  4861. ;;
  4862. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4863. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4864. # Find out which ABI we are using.
  4865. echo 'int i;' > conftest.$ac_ext
  4866. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4867. (eval $ac_compile) 2>&5
  4868. ac_status=$?
  4869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870. (exit $ac_status); }; then
  4871. case `/usr/bin/file conftest.o` in
  4872. *32-bit*)
  4873. case $host in
  4874. x86_64-*kfreebsd*-gnu)
  4875. LD="${LD-ld} -m elf_i386_fbsd"
  4876. ;;
  4877. x86_64-*linux*)
  4878. LD="${LD-ld} -m elf_i386"
  4879. ;;
  4880. ppc64-*linux*|powerpc64-*linux*)
  4881. LD="${LD-ld} -m elf32ppclinux"
  4882. ;;
  4883. s390x-*linux*)
  4884. LD="${LD-ld} -m elf_s390"
  4885. ;;
  4886. sparc64-*linux*)
  4887. LD="${LD-ld} -m elf32_sparc"
  4888. ;;
  4889. esac
  4890. ;;
  4891. *64-bit*)
  4892. case $host in
  4893. x86_64-*kfreebsd*-gnu)
  4894. LD="${LD-ld} -m elf_x86_64_fbsd"
  4895. ;;
  4896. x86_64-*linux*)
  4897. LD="${LD-ld} -m elf_x86_64"
  4898. ;;
  4899. ppc*-*linux*|powerpc*-*linux*)
  4900. LD="${LD-ld} -m elf64ppc"
  4901. ;;
  4902. s390*-*linux*|s390*-*tpf*)
  4903. LD="${LD-ld} -m elf64_s390"
  4904. ;;
  4905. sparc*-*linux*)
  4906. LD="${LD-ld} -m elf64_sparc"
  4907. ;;
  4908. esac
  4909. ;;
  4910. esac
  4911. fi
  4912. rm -rf conftest*
  4913. ;;
  4914. *-*-sco3.2v5*)
  4915. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4916. SAVE_CFLAGS="$CFLAGS"
  4917. CFLAGS="$CFLAGS -belf"
  4918. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4919. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4920. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. ac_ext=c
  4924. ac_cpp='$CPP $CPPFLAGS'
  4925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4928. cat >conftest.$ac_ext <<_ACEOF
  4929. /* confdefs.h. */
  4930. _ACEOF
  4931. cat confdefs.h >>conftest.$ac_ext
  4932. cat >>conftest.$ac_ext <<_ACEOF
  4933. /* end confdefs.h. */
  4934. int
  4935. main ()
  4936. {
  4937. ;
  4938. return 0;
  4939. }
  4940. _ACEOF
  4941. rm -f conftest.$ac_objext conftest$ac_exeext
  4942. if { (ac_try="$ac_link"
  4943. case "(($ac_try" in
  4944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4945. *) ac_try_echo=$ac_try;;
  4946. esac
  4947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4948. $as_echo "$ac_try_echo") >&5
  4949. (eval "$ac_link") 2>conftest.er1
  4950. ac_status=$?
  4951. grep -v '^ *+' conftest.er1 >conftest.err
  4952. rm -f conftest.er1
  4953. cat conftest.err >&5
  4954. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4955. (exit $ac_status); } && {
  4956. test -z "$ac_c_werror_flag" ||
  4957. test ! -s conftest.err
  4958. } && test -s conftest$ac_exeext && {
  4959. test "$cross_compiling" = yes ||
  4960. $as_test_x conftest$ac_exeext
  4961. }; then
  4962. lt_cv_cc_needs_belf=yes
  4963. else
  4964. $as_echo "$as_me: failed program was:" >&5
  4965. sed 's/^/| /' conftest.$ac_ext >&5
  4966. lt_cv_cc_needs_belf=no
  4967. fi
  4968. rm -rf conftest.dSYM
  4969. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4970. conftest$ac_exeext conftest.$ac_ext
  4971. ac_ext=c
  4972. ac_cpp='$CPP $CPPFLAGS'
  4973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4976. fi
  4977. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4978. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4979. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4980. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4981. CFLAGS="$SAVE_CFLAGS"
  4982. fi
  4983. ;;
  4984. sparc*-*solaris*)
  4985. # Find out which ABI we are using.
  4986. echo 'int i;' > conftest.$ac_ext
  4987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4988. (eval $ac_compile) 2>&5
  4989. ac_status=$?
  4990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. (exit $ac_status); }; then
  4992. case `/usr/bin/file conftest.o` in
  4993. *64-bit*)
  4994. case $lt_cv_prog_gnu_ld in
  4995. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4996. *)
  4997. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4998. LD="${LD-ld} -64"
  4999. fi
  5000. ;;
  5001. esac
  5002. ;;
  5003. esac
  5004. fi
  5005. rm -rf conftest*
  5006. ;;
  5007. esac
  5008. need_locks="$enable_libtool_lock"
  5009. case $host_os in
  5010. rhapsody* | darwin*)
  5011. if test -n "$ac_tool_prefix"; then
  5012. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5013. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5014. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5015. $as_echo_n "checking for $ac_word... " >&6; }
  5016. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. if test -n "$DSYMUTIL"; then
  5020. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5021. else
  5022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5023. for as_dir in $PATH
  5024. do
  5025. IFS=$as_save_IFS
  5026. test -z "$as_dir" && as_dir=.
  5027. for ac_exec_ext in '' $ac_executable_extensions; do
  5028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5029. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5030. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5031. break 2
  5032. fi
  5033. done
  5034. done
  5035. IFS=$as_save_IFS
  5036. fi
  5037. fi
  5038. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5039. if test -n "$DSYMUTIL"; then
  5040. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5041. $as_echo "$DSYMUTIL" >&6; }
  5042. else
  5043. { $as_echo "$as_me:$LINENO: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. fi
  5046. fi
  5047. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5048. ac_ct_DSYMUTIL=$DSYMUTIL
  5049. # Extract the first word of "dsymutil", so it can be a program name with args.
  5050. set dummy dsymutil; ac_word=$2
  5051. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5052. $as_echo_n "checking for $ac_word... " >&6; }
  5053. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. if test -n "$ac_ct_DSYMUTIL"; then
  5057. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5058. else
  5059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5060. for as_dir in $PATH
  5061. do
  5062. IFS=$as_save_IFS
  5063. test -z "$as_dir" && as_dir=.
  5064. for ac_exec_ext in '' $ac_executable_extensions; do
  5065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5066. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5067. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5068. break 2
  5069. fi
  5070. done
  5071. done
  5072. IFS=$as_save_IFS
  5073. fi
  5074. fi
  5075. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5076. if test -n "$ac_ct_DSYMUTIL"; then
  5077. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5078. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5079. else
  5080. { $as_echo "$as_me:$LINENO: result: no" >&5
  5081. $as_echo "no" >&6; }
  5082. fi
  5083. if test "x$ac_ct_DSYMUTIL" = x; then
  5084. DSYMUTIL=":"
  5085. else
  5086. case $cross_compiling:$ac_tool_warned in
  5087. yes:)
  5088. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5090. ac_tool_warned=yes ;;
  5091. esac
  5092. DSYMUTIL=$ac_ct_DSYMUTIL
  5093. fi
  5094. else
  5095. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5096. fi
  5097. if test -n "$ac_tool_prefix"; then
  5098. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5099. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5100. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5101. $as_echo_n "checking for $ac_word... " >&6; }
  5102. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5103. $as_echo_n "(cached) " >&6
  5104. else
  5105. if test -n "$NMEDIT"; then
  5106. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5107. else
  5108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5109. for as_dir in $PATH
  5110. do
  5111. IFS=$as_save_IFS
  5112. test -z "$as_dir" && as_dir=.
  5113. for ac_exec_ext in '' $ac_executable_extensions; do
  5114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5115. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5116. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5117. break 2
  5118. fi
  5119. done
  5120. done
  5121. IFS=$as_save_IFS
  5122. fi
  5123. fi
  5124. NMEDIT=$ac_cv_prog_NMEDIT
  5125. if test -n "$NMEDIT"; then
  5126. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5127. $as_echo "$NMEDIT" >&6; }
  5128. else
  5129. { $as_echo "$as_me:$LINENO: result: no" >&5
  5130. $as_echo "no" >&6; }
  5131. fi
  5132. fi
  5133. if test -z "$ac_cv_prog_NMEDIT"; then
  5134. ac_ct_NMEDIT=$NMEDIT
  5135. # Extract the first word of "nmedit", so it can be a program name with args.
  5136. set dummy nmedit; ac_word=$2
  5137. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5138. $as_echo_n "checking for $ac_word... " >&6; }
  5139. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5140. $as_echo_n "(cached) " >&6
  5141. else
  5142. if test -n "$ac_ct_NMEDIT"; then
  5143. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5144. else
  5145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5146. for as_dir in $PATH
  5147. do
  5148. IFS=$as_save_IFS
  5149. test -z "$as_dir" && as_dir=.
  5150. for ac_exec_ext in '' $ac_executable_extensions; do
  5151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5152. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5153. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5154. break 2
  5155. fi
  5156. done
  5157. done
  5158. IFS=$as_save_IFS
  5159. fi
  5160. fi
  5161. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5162. if test -n "$ac_ct_NMEDIT"; then
  5163. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5164. $as_echo "$ac_ct_NMEDIT" >&6; }
  5165. else
  5166. { $as_echo "$as_me:$LINENO: result: no" >&5
  5167. $as_echo "no" >&6; }
  5168. fi
  5169. if test "x$ac_ct_NMEDIT" = x; then
  5170. NMEDIT=":"
  5171. else
  5172. case $cross_compiling:$ac_tool_warned in
  5173. yes:)
  5174. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5176. ac_tool_warned=yes ;;
  5177. esac
  5178. NMEDIT=$ac_ct_NMEDIT
  5179. fi
  5180. else
  5181. NMEDIT="$ac_cv_prog_NMEDIT"
  5182. fi
  5183. if test -n "$ac_tool_prefix"; then
  5184. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5185. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5186. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5187. $as_echo_n "checking for $ac_word... " >&6; }
  5188. if test "${ac_cv_prog_LIPO+set}" = set; then
  5189. $as_echo_n "(cached) " >&6
  5190. else
  5191. if test -n "$LIPO"; then
  5192. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5193. else
  5194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5195. for as_dir in $PATH
  5196. do
  5197. IFS=$as_save_IFS
  5198. test -z "$as_dir" && as_dir=.
  5199. for ac_exec_ext in '' $ac_executable_extensions; do
  5200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5201. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5202. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5203. break 2
  5204. fi
  5205. done
  5206. done
  5207. IFS=$as_save_IFS
  5208. fi
  5209. fi
  5210. LIPO=$ac_cv_prog_LIPO
  5211. if test -n "$LIPO"; then
  5212. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5213. $as_echo "$LIPO" >&6; }
  5214. else
  5215. { $as_echo "$as_me:$LINENO: result: no" >&5
  5216. $as_echo "no" >&6; }
  5217. fi
  5218. fi
  5219. if test -z "$ac_cv_prog_LIPO"; then
  5220. ac_ct_LIPO=$LIPO
  5221. # Extract the first word of "lipo", so it can be a program name with args.
  5222. set dummy lipo; ac_word=$2
  5223. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5224. $as_echo_n "checking for $ac_word... " >&6; }
  5225. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5226. $as_echo_n "(cached) " >&6
  5227. else
  5228. if test -n "$ac_ct_LIPO"; then
  5229. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5230. else
  5231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5232. for as_dir in $PATH
  5233. do
  5234. IFS=$as_save_IFS
  5235. test -z "$as_dir" && as_dir=.
  5236. for ac_exec_ext in '' $ac_executable_extensions; do
  5237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5238. ac_cv_prog_ac_ct_LIPO="lipo"
  5239. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5240. break 2
  5241. fi
  5242. done
  5243. done
  5244. IFS=$as_save_IFS
  5245. fi
  5246. fi
  5247. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5248. if test -n "$ac_ct_LIPO"; then
  5249. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5250. $as_echo "$ac_ct_LIPO" >&6; }
  5251. else
  5252. { $as_echo "$as_me:$LINENO: result: no" >&5
  5253. $as_echo "no" >&6; }
  5254. fi
  5255. if test "x$ac_ct_LIPO" = x; then
  5256. LIPO=":"
  5257. else
  5258. case $cross_compiling:$ac_tool_warned in
  5259. yes:)
  5260. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5262. ac_tool_warned=yes ;;
  5263. esac
  5264. LIPO=$ac_ct_LIPO
  5265. fi
  5266. else
  5267. LIPO="$ac_cv_prog_LIPO"
  5268. fi
  5269. if test -n "$ac_tool_prefix"; then
  5270. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5271. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5272. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5273. $as_echo_n "checking for $ac_word... " >&6; }
  5274. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. if test -n "$OTOOL"; then
  5278. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5279. else
  5280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5281. for as_dir in $PATH
  5282. do
  5283. IFS=$as_save_IFS
  5284. test -z "$as_dir" && as_dir=.
  5285. for ac_exec_ext in '' $ac_executable_extensions; do
  5286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5287. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5288. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5289. break 2
  5290. fi
  5291. done
  5292. done
  5293. IFS=$as_save_IFS
  5294. fi
  5295. fi
  5296. OTOOL=$ac_cv_prog_OTOOL
  5297. if test -n "$OTOOL"; then
  5298. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5299. $as_echo "$OTOOL" >&6; }
  5300. else
  5301. { $as_echo "$as_me:$LINENO: result: no" >&5
  5302. $as_echo "no" >&6; }
  5303. fi
  5304. fi
  5305. if test -z "$ac_cv_prog_OTOOL"; then
  5306. ac_ct_OTOOL=$OTOOL
  5307. # Extract the first word of "otool", so it can be a program name with args.
  5308. set dummy otool; ac_word=$2
  5309. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5310. $as_echo_n "checking for $ac_word... " >&6; }
  5311. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. if test -n "$ac_ct_OTOOL"; then
  5315. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5316. else
  5317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. test -z "$as_dir" && as_dir=.
  5322. for ac_exec_ext in '' $ac_executable_extensions; do
  5323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5324. ac_cv_prog_ac_ct_OTOOL="otool"
  5325. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5326. break 2
  5327. fi
  5328. done
  5329. done
  5330. IFS=$as_save_IFS
  5331. fi
  5332. fi
  5333. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5334. if test -n "$ac_ct_OTOOL"; then
  5335. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5336. $as_echo "$ac_ct_OTOOL" >&6; }
  5337. else
  5338. { $as_echo "$as_me:$LINENO: result: no" >&5
  5339. $as_echo "no" >&6; }
  5340. fi
  5341. if test "x$ac_ct_OTOOL" = x; then
  5342. OTOOL=":"
  5343. else
  5344. case $cross_compiling:$ac_tool_warned in
  5345. yes:)
  5346. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5348. ac_tool_warned=yes ;;
  5349. esac
  5350. OTOOL=$ac_ct_OTOOL
  5351. fi
  5352. else
  5353. OTOOL="$ac_cv_prog_OTOOL"
  5354. fi
  5355. if test -n "$ac_tool_prefix"; then
  5356. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5357. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5358. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5359. $as_echo_n "checking for $ac_word... " >&6; }
  5360. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. if test -n "$OTOOL64"; then
  5364. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5365. else
  5366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5367. for as_dir in $PATH
  5368. do
  5369. IFS=$as_save_IFS
  5370. test -z "$as_dir" && as_dir=.
  5371. for ac_exec_ext in '' $ac_executable_extensions; do
  5372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5373. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5374. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5375. break 2
  5376. fi
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. fi
  5381. fi
  5382. OTOOL64=$ac_cv_prog_OTOOL64
  5383. if test -n "$OTOOL64"; then
  5384. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5385. $as_echo "$OTOOL64" >&6; }
  5386. else
  5387. { $as_echo "$as_me:$LINENO: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390. fi
  5391. if test -z "$ac_cv_prog_OTOOL64"; then
  5392. ac_ct_OTOOL64=$OTOOL64
  5393. # Extract the first word of "otool64", so it can be a program name with args.
  5394. set dummy otool64; ac_word=$2
  5395. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5396. $as_echo_n "checking for $ac_word... " >&6; }
  5397. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. if test -n "$ac_ct_OTOOL64"; then
  5401. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5402. else
  5403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5404. for as_dir in $PATH
  5405. do
  5406. IFS=$as_save_IFS
  5407. test -z "$as_dir" && as_dir=.
  5408. for ac_exec_ext in '' $ac_executable_extensions; do
  5409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5410. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5411. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5412. break 2
  5413. fi
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. fi
  5419. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5420. if test -n "$ac_ct_OTOOL64"; then
  5421. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5422. $as_echo "$ac_ct_OTOOL64" >&6; }
  5423. else
  5424. { $as_echo "$as_me:$LINENO: result: no" >&5
  5425. $as_echo "no" >&6; }
  5426. fi
  5427. if test "x$ac_ct_OTOOL64" = x; then
  5428. OTOOL64=":"
  5429. else
  5430. case $cross_compiling:$ac_tool_warned in
  5431. yes:)
  5432. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5434. ac_tool_warned=yes ;;
  5435. esac
  5436. OTOOL64=$ac_ct_OTOOL64
  5437. fi
  5438. else
  5439. OTOOL64="$ac_cv_prog_OTOOL64"
  5440. fi
  5441. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5442. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5443. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. lt_cv_apple_cc_single_mod=no
  5447. if test -z "${LT_MULTI_MODULE}"; then
  5448. # By default we will add the -single_module flag. You can override
  5449. # by either setting the environment variable LT_MULTI_MODULE
  5450. # non-empty at configure time, or by adding -multi_module to the
  5451. # link flags.
  5452. rm -rf libconftest.dylib*
  5453. echo "int foo(void){return 1;}" > conftest.c
  5454. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5455. -dynamiclib -Wl,-single_module conftest.c" >&5
  5456. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5457. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5458. _lt_result=$?
  5459. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5460. lt_cv_apple_cc_single_mod=yes
  5461. else
  5462. cat conftest.err >&5
  5463. fi
  5464. rm -rf libconftest.dylib*
  5465. rm -f conftest.*
  5466. fi
  5467. fi
  5468. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5469. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5470. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5471. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5472. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5473. $as_echo_n "(cached) " >&6
  5474. else
  5475. lt_cv_ld_exported_symbols_list=no
  5476. save_LDFLAGS=$LDFLAGS
  5477. echo "_main" > conftest.sym
  5478. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5479. cat >conftest.$ac_ext <<_ACEOF
  5480. /* confdefs.h. */
  5481. _ACEOF
  5482. cat confdefs.h >>conftest.$ac_ext
  5483. cat >>conftest.$ac_ext <<_ACEOF
  5484. /* end confdefs.h. */
  5485. int
  5486. main ()
  5487. {
  5488. ;
  5489. return 0;
  5490. }
  5491. _ACEOF
  5492. rm -f conftest.$ac_objext conftest$ac_exeext
  5493. if { (ac_try="$ac_link"
  5494. case "(($ac_try" in
  5495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5496. *) ac_try_echo=$ac_try;;
  5497. esac
  5498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5499. $as_echo "$ac_try_echo") >&5
  5500. (eval "$ac_link") 2>conftest.er1
  5501. ac_status=$?
  5502. grep -v '^ *+' conftest.er1 >conftest.err
  5503. rm -f conftest.er1
  5504. cat conftest.err >&5
  5505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5506. (exit $ac_status); } && {
  5507. test -z "$ac_c_werror_flag" ||
  5508. test ! -s conftest.err
  5509. } && test -s conftest$ac_exeext && {
  5510. test "$cross_compiling" = yes ||
  5511. $as_test_x conftest$ac_exeext
  5512. }; then
  5513. lt_cv_ld_exported_symbols_list=yes
  5514. else
  5515. $as_echo "$as_me: failed program was:" >&5
  5516. sed 's/^/| /' conftest.$ac_ext >&5
  5517. lt_cv_ld_exported_symbols_list=no
  5518. fi
  5519. rm -rf conftest.dSYM
  5520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5521. conftest$ac_exeext conftest.$ac_ext
  5522. LDFLAGS="$save_LDFLAGS"
  5523. fi
  5524. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5525. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5526. case $host_os in
  5527. rhapsody* | darwin1.[012])
  5528. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5529. darwin1.*)
  5530. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5531. darwin*) # darwin 5.x on
  5532. # if running on 10.5 or later, the deployment target defaults
  5533. # to the OS version, if on x86, and 10.4, the deployment
  5534. # target defaults to 10.4. Don't you love it?
  5535. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5536. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5537. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5538. 10.[012]*)
  5539. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5540. 10.*)
  5541. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5542. esac
  5543. ;;
  5544. esac
  5545. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5546. _lt_dar_single_mod='$single_module'
  5547. fi
  5548. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5549. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5550. else
  5551. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5552. fi
  5553. if test "$DSYMUTIL" != ":"; then
  5554. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5555. else
  5556. _lt_dsymutil=
  5557. fi
  5558. ;;
  5559. esac
  5560. ac_ext=c
  5561. ac_cpp='$CPP $CPPFLAGS'
  5562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5565. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5566. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5567. # On Suns, sometimes $CPP names a directory.
  5568. if test -n "$CPP" && test -d "$CPP"; then
  5569. CPP=
  5570. fi
  5571. if test -z "$CPP"; then
  5572. if test "${ac_cv_prog_CPP+set}" = set; then
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. # Double quotes because CPP needs to be expanded
  5576. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5577. do
  5578. ac_preproc_ok=false
  5579. for ac_c_preproc_warn_flag in '' yes
  5580. do
  5581. # Use a header file that comes with gcc, so configuring glibc
  5582. # with a fresh cross-compiler works.
  5583. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5584. # <limits.h> exists even on freestanding compilers.
  5585. # On the NeXT, cc -E runs the code through the compiler's parser,
  5586. # not just through cpp. "Syntax error" is here to catch this case.
  5587. cat >conftest.$ac_ext <<_ACEOF
  5588. /* confdefs.h. */
  5589. _ACEOF
  5590. cat confdefs.h >>conftest.$ac_ext
  5591. cat >>conftest.$ac_ext <<_ACEOF
  5592. /* end confdefs.h. */
  5593. #ifdef __STDC__
  5594. # include <limits.h>
  5595. #else
  5596. # include <assert.h>
  5597. #endif
  5598. Syntax error
  5599. _ACEOF
  5600. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5601. case "(($ac_try" in
  5602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5603. *) ac_try_echo=$ac_try;;
  5604. esac
  5605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5606. $as_echo "$ac_try_echo") >&5
  5607. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5608. ac_status=$?
  5609. grep -v '^ *+' conftest.er1 >conftest.err
  5610. rm -f conftest.er1
  5611. cat conftest.err >&5
  5612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); } >/dev/null && {
  5614. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5615. test ! -s conftest.err
  5616. }; then
  5617. :
  5618. else
  5619. $as_echo "$as_me: failed program was:" >&5
  5620. sed 's/^/| /' conftest.$ac_ext >&5
  5621. # Broken: fails on valid input.
  5622. continue
  5623. fi
  5624. rm -f conftest.err conftest.$ac_ext
  5625. # OK, works on sane cases. Now check whether nonexistent headers
  5626. # can be detected and how.
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. #include <ac_nonexistent.h>
  5634. _ACEOF
  5635. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5636. case "(($ac_try" in
  5637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5638. *) ac_try_echo=$ac_try;;
  5639. esac
  5640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5641. $as_echo "$ac_try_echo") >&5
  5642. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5643. ac_status=$?
  5644. grep -v '^ *+' conftest.er1 >conftest.err
  5645. rm -f conftest.er1
  5646. cat conftest.err >&5
  5647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5648. (exit $ac_status); } >/dev/null && {
  5649. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5650. test ! -s conftest.err
  5651. }; then
  5652. # Broken: success on invalid input.
  5653. continue
  5654. else
  5655. $as_echo "$as_me: failed program was:" >&5
  5656. sed 's/^/| /' conftest.$ac_ext >&5
  5657. # Passes both tests.
  5658. ac_preproc_ok=:
  5659. break
  5660. fi
  5661. rm -f conftest.err conftest.$ac_ext
  5662. done
  5663. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5664. rm -f conftest.err conftest.$ac_ext
  5665. if $ac_preproc_ok; then
  5666. break
  5667. fi
  5668. done
  5669. ac_cv_prog_CPP=$CPP
  5670. fi
  5671. CPP=$ac_cv_prog_CPP
  5672. else
  5673. ac_cv_prog_CPP=$CPP
  5674. fi
  5675. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5676. $as_echo "$CPP" >&6; }
  5677. ac_preproc_ok=false
  5678. for ac_c_preproc_warn_flag in '' yes
  5679. do
  5680. # Use a header file that comes with gcc, so configuring glibc
  5681. # with a fresh cross-compiler works.
  5682. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5683. # <limits.h> exists even on freestanding compilers.
  5684. # On the NeXT, cc -E runs the code through the compiler's parser,
  5685. # not just through cpp. "Syntax error" is here to catch this case.
  5686. cat >conftest.$ac_ext <<_ACEOF
  5687. /* confdefs.h. */
  5688. _ACEOF
  5689. cat confdefs.h >>conftest.$ac_ext
  5690. cat >>conftest.$ac_ext <<_ACEOF
  5691. /* end confdefs.h. */
  5692. #ifdef __STDC__
  5693. # include <limits.h>
  5694. #else
  5695. # include <assert.h>
  5696. #endif
  5697. Syntax error
  5698. _ACEOF
  5699. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5700. case "(($ac_try" in
  5701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5702. *) ac_try_echo=$ac_try;;
  5703. esac
  5704. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5705. $as_echo "$ac_try_echo") >&5
  5706. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5707. ac_status=$?
  5708. grep -v '^ *+' conftest.er1 >conftest.err
  5709. rm -f conftest.er1
  5710. cat conftest.err >&5
  5711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5712. (exit $ac_status); } >/dev/null && {
  5713. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5714. test ! -s conftest.err
  5715. }; then
  5716. :
  5717. else
  5718. $as_echo "$as_me: failed program was:" >&5
  5719. sed 's/^/| /' conftest.$ac_ext >&5
  5720. # Broken: fails on valid input.
  5721. continue
  5722. fi
  5723. rm -f conftest.err conftest.$ac_ext
  5724. # OK, works on sane cases. Now check whether nonexistent headers
  5725. # can be detected and how.
  5726. cat >conftest.$ac_ext <<_ACEOF
  5727. /* confdefs.h. */
  5728. _ACEOF
  5729. cat confdefs.h >>conftest.$ac_ext
  5730. cat >>conftest.$ac_ext <<_ACEOF
  5731. /* end confdefs.h. */
  5732. #include <ac_nonexistent.h>
  5733. _ACEOF
  5734. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5735. case "(($ac_try" in
  5736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5737. *) ac_try_echo=$ac_try;;
  5738. esac
  5739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5740. $as_echo "$ac_try_echo") >&5
  5741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5742. ac_status=$?
  5743. grep -v '^ *+' conftest.er1 >conftest.err
  5744. rm -f conftest.er1
  5745. cat conftest.err >&5
  5746. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5747. (exit $ac_status); } >/dev/null && {
  5748. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5749. test ! -s conftest.err
  5750. }; then
  5751. # Broken: success on invalid input.
  5752. continue
  5753. else
  5754. $as_echo "$as_me: failed program was:" >&5
  5755. sed 's/^/| /' conftest.$ac_ext >&5
  5756. # Passes both tests.
  5757. ac_preproc_ok=:
  5758. break
  5759. fi
  5760. rm -f conftest.err conftest.$ac_ext
  5761. done
  5762. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5763. rm -f conftest.err conftest.$ac_ext
  5764. if $ac_preproc_ok; then
  5765. :
  5766. else
  5767. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5768. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5769. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5770. See \`config.log' for more details." >&5
  5771. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5772. See \`config.log' for more details." >&2;}
  5773. { (exit 1); exit 1; }; }; }
  5774. fi
  5775. ac_ext=c
  5776. ac_cpp='$CPP $CPPFLAGS'
  5777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5780. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5781. $as_echo_n "checking for ANSI C header files... " >&6; }
  5782. if test "${ac_cv_header_stdc+set}" = set; then
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. cat >conftest.$ac_ext <<_ACEOF
  5786. /* confdefs.h. */
  5787. _ACEOF
  5788. cat confdefs.h >>conftest.$ac_ext
  5789. cat >>conftest.$ac_ext <<_ACEOF
  5790. /* end confdefs.h. */
  5791. #include <stdlib.h>
  5792. #include <stdarg.h>
  5793. #include <string.h>
  5794. #include <float.h>
  5795. int
  5796. main ()
  5797. {
  5798. ;
  5799. return 0;
  5800. }
  5801. _ACEOF
  5802. rm -f conftest.$ac_objext
  5803. if { (ac_try="$ac_compile"
  5804. case "(($ac_try" in
  5805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5806. *) ac_try_echo=$ac_try;;
  5807. esac
  5808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5809. $as_echo "$ac_try_echo") >&5
  5810. (eval "$ac_compile") 2>conftest.er1
  5811. ac_status=$?
  5812. grep -v '^ *+' conftest.er1 >conftest.err
  5813. rm -f conftest.er1
  5814. cat conftest.err >&5
  5815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5816. (exit $ac_status); } && {
  5817. test -z "$ac_c_werror_flag" ||
  5818. test ! -s conftest.err
  5819. } && test -s conftest.$ac_objext; then
  5820. ac_cv_header_stdc=yes
  5821. else
  5822. $as_echo "$as_me: failed program was:" >&5
  5823. sed 's/^/| /' conftest.$ac_ext >&5
  5824. ac_cv_header_stdc=no
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5827. if test $ac_cv_header_stdc = yes; then
  5828. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5829. cat >conftest.$ac_ext <<_ACEOF
  5830. /* confdefs.h. */
  5831. _ACEOF
  5832. cat confdefs.h >>conftest.$ac_ext
  5833. cat >>conftest.$ac_ext <<_ACEOF
  5834. /* end confdefs.h. */
  5835. #include <string.h>
  5836. _ACEOF
  5837. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5838. $EGREP "memchr" >/dev/null 2>&1; then
  5839. :
  5840. else
  5841. ac_cv_header_stdc=no
  5842. fi
  5843. rm -f conftest*
  5844. fi
  5845. if test $ac_cv_header_stdc = yes; then
  5846. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5847. cat >conftest.$ac_ext <<_ACEOF
  5848. /* confdefs.h. */
  5849. _ACEOF
  5850. cat confdefs.h >>conftest.$ac_ext
  5851. cat >>conftest.$ac_ext <<_ACEOF
  5852. /* end confdefs.h. */
  5853. #include <stdlib.h>
  5854. _ACEOF
  5855. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5856. $EGREP "free" >/dev/null 2>&1; then
  5857. :
  5858. else
  5859. ac_cv_header_stdc=no
  5860. fi
  5861. rm -f conftest*
  5862. fi
  5863. if test $ac_cv_header_stdc = yes; then
  5864. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5865. if test "$cross_compiling" = yes; then
  5866. :
  5867. else
  5868. cat >conftest.$ac_ext <<_ACEOF
  5869. /* confdefs.h. */
  5870. _ACEOF
  5871. cat confdefs.h >>conftest.$ac_ext
  5872. cat >>conftest.$ac_ext <<_ACEOF
  5873. /* end confdefs.h. */
  5874. #include <ctype.h>
  5875. #include <stdlib.h>
  5876. #if ((' ' & 0x0FF) == 0x020)
  5877. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5878. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5879. #else
  5880. # define ISLOWER(c) \
  5881. (('a' <= (c) && (c) <= 'i') \
  5882. || ('j' <= (c) && (c) <= 'r') \
  5883. || ('s' <= (c) && (c) <= 'z'))
  5884. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5885. #endif
  5886. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5887. int
  5888. main ()
  5889. {
  5890. int i;
  5891. for (i = 0; i < 256; i++)
  5892. if (XOR (islower (i), ISLOWER (i))
  5893. || toupper (i) != TOUPPER (i))
  5894. return 2;
  5895. return 0;
  5896. }
  5897. _ACEOF
  5898. rm -f conftest$ac_exeext
  5899. if { (ac_try="$ac_link"
  5900. case "(($ac_try" in
  5901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5902. *) ac_try_echo=$ac_try;;
  5903. esac
  5904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5905. $as_echo "$ac_try_echo") >&5
  5906. (eval "$ac_link") 2>&5
  5907. ac_status=$?
  5908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5910. { (case "(($ac_try" in
  5911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5912. *) ac_try_echo=$ac_try;;
  5913. esac
  5914. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5915. $as_echo "$ac_try_echo") >&5
  5916. (eval "$ac_try") 2>&5
  5917. ac_status=$?
  5918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919. (exit $ac_status); }; }; then
  5920. :
  5921. else
  5922. $as_echo "$as_me: program exited with status $ac_status" >&5
  5923. $as_echo "$as_me: failed program was:" >&5
  5924. sed 's/^/| /' conftest.$ac_ext >&5
  5925. ( exit $ac_status )
  5926. ac_cv_header_stdc=no
  5927. fi
  5928. rm -rf conftest.dSYM
  5929. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5930. fi
  5931. fi
  5932. fi
  5933. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5934. $as_echo "$ac_cv_header_stdc" >&6; }
  5935. if test $ac_cv_header_stdc = yes; then
  5936. cat >>confdefs.h <<\_ACEOF
  5937. #define STDC_HEADERS 1
  5938. _ACEOF
  5939. fi
  5940. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5941. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5942. inttypes.h stdint.h unistd.h
  5943. do
  5944. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5945. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5946. $as_echo_n "checking for $ac_header... " >&6; }
  5947. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5948. $as_echo_n "(cached) " >&6
  5949. else
  5950. cat >conftest.$ac_ext <<_ACEOF
  5951. /* confdefs.h. */
  5952. _ACEOF
  5953. cat confdefs.h >>conftest.$ac_ext
  5954. cat >>conftest.$ac_ext <<_ACEOF
  5955. /* end confdefs.h. */
  5956. $ac_includes_default
  5957. #include <$ac_header>
  5958. _ACEOF
  5959. rm -f conftest.$ac_objext
  5960. if { (ac_try="$ac_compile"
  5961. case "(($ac_try" in
  5962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5963. *) ac_try_echo=$ac_try;;
  5964. esac
  5965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5966. $as_echo "$ac_try_echo") >&5
  5967. (eval "$ac_compile") 2>conftest.er1
  5968. ac_status=$?
  5969. grep -v '^ *+' conftest.er1 >conftest.err
  5970. rm -f conftest.er1
  5971. cat conftest.err >&5
  5972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); } && {
  5974. test -z "$ac_c_werror_flag" ||
  5975. test ! -s conftest.err
  5976. } && test -s conftest.$ac_objext; then
  5977. eval "$as_ac_Header=yes"
  5978. else
  5979. $as_echo "$as_me: failed program was:" >&5
  5980. sed 's/^/| /' conftest.$ac_ext >&5
  5981. eval "$as_ac_Header=no"
  5982. fi
  5983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5984. fi
  5985. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5986. $as_echo "$as_val"'`
  5987. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5988. $as_echo "$ac_res" >&6; }
  5989. as_val=`eval 'as_val=${'$as_ac_Header'}
  5990. $as_echo "$as_val"'`
  5991. if test "x$as_val" = x""yes; then
  5992. cat >>confdefs.h <<_ACEOF
  5993. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5994. _ACEOF
  5995. fi
  5996. done
  5997. for ac_header in dlfcn.h
  5998. do
  5999. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6000. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6001. $as_echo_n "checking for $ac_header... " >&6; }
  6002. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. cat >conftest.$ac_ext <<_ACEOF
  6006. /* confdefs.h. */
  6007. _ACEOF
  6008. cat confdefs.h >>conftest.$ac_ext
  6009. cat >>conftest.$ac_ext <<_ACEOF
  6010. /* end confdefs.h. */
  6011. $ac_includes_default
  6012. #include <$ac_header>
  6013. _ACEOF
  6014. rm -f conftest.$ac_objext
  6015. if { (ac_try="$ac_compile"
  6016. case "(($ac_try" in
  6017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6018. *) ac_try_echo=$ac_try;;
  6019. esac
  6020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6021. $as_echo "$ac_try_echo") >&5
  6022. (eval "$ac_compile") 2>conftest.er1
  6023. ac_status=$?
  6024. grep -v '^ *+' conftest.er1 >conftest.err
  6025. rm -f conftest.er1
  6026. cat conftest.err >&5
  6027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); } && {
  6029. test -z "$ac_c_werror_flag" ||
  6030. test ! -s conftest.err
  6031. } && test -s conftest.$ac_objext; then
  6032. eval "$as_ac_Header=yes"
  6033. else
  6034. $as_echo "$as_me: failed program was:" >&5
  6035. sed 's/^/| /' conftest.$ac_ext >&5
  6036. eval "$as_ac_Header=no"
  6037. fi
  6038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6039. fi
  6040. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6041. $as_echo "$as_val"'`
  6042. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6043. $as_echo "$ac_res" >&6; }
  6044. as_val=`eval 'as_val=${'$as_ac_Header'}
  6045. $as_echo "$as_val"'`
  6046. if test "x$as_val" = x""yes; then
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6049. _ACEOF
  6050. fi
  6051. done
  6052. # Set options
  6053. enable_dlopen=no
  6054. enable_win32_dll=no
  6055. # Check whether --enable-shared was given.
  6056. if test "${enable_shared+set}" = set; then
  6057. enableval=$enable_shared; p=${PACKAGE-default}
  6058. case $enableval in
  6059. yes) enable_shared=yes ;;
  6060. no) enable_shared=no ;;
  6061. *)
  6062. enable_shared=no
  6063. # Look at the argument we got. We use all the common list separators.
  6064. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6065. for pkg in $enableval; do
  6066. IFS="$lt_save_ifs"
  6067. if test "X$pkg" = "X$p"; then
  6068. enable_shared=yes
  6069. fi
  6070. done
  6071. IFS="$lt_save_ifs"
  6072. ;;
  6073. esac
  6074. else
  6075. enable_shared=yes
  6076. fi
  6077. # Check whether --enable-static was given.
  6078. if test "${enable_static+set}" = set; then
  6079. enableval=$enable_static; p=${PACKAGE-default}
  6080. case $enableval in
  6081. yes) enable_static=yes ;;
  6082. no) enable_static=no ;;
  6083. *)
  6084. enable_static=no
  6085. # Look at the argument we got. We use all the common list separators.
  6086. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6087. for pkg in $enableval; do
  6088. IFS="$lt_save_ifs"
  6089. if test "X$pkg" = "X$p"; then
  6090. enable_static=yes
  6091. fi
  6092. done
  6093. IFS="$lt_save_ifs"
  6094. ;;
  6095. esac
  6096. else
  6097. enable_static=yes
  6098. fi
  6099. # Check whether --with-pic was given.
  6100. if test "${with_pic+set}" = set; then
  6101. withval=$with_pic; pic_mode="$withval"
  6102. else
  6103. pic_mode=default
  6104. fi
  6105. test -z "$pic_mode" && pic_mode=default
  6106. # Check whether --enable-fast-install was given.
  6107. if test "${enable_fast_install+set}" = set; then
  6108. enableval=$enable_fast_install; p=${PACKAGE-default}
  6109. case $enableval in
  6110. yes) enable_fast_install=yes ;;
  6111. no) enable_fast_install=no ;;
  6112. *)
  6113. enable_fast_install=no
  6114. # Look at the argument we got. We use all the common list separators.
  6115. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6116. for pkg in $enableval; do
  6117. IFS="$lt_save_ifs"
  6118. if test "X$pkg" = "X$p"; then
  6119. enable_fast_install=yes
  6120. fi
  6121. done
  6122. IFS="$lt_save_ifs"
  6123. ;;
  6124. esac
  6125. else
  6126. enable_fast_install=yes
  6127. fi
  6128. # This can be used to rebuild libtool when needed
  6129. LIBTOOL_DEPS="$ltmain"
  6130. # Always use our own libtool.
  6131. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6132. test -z "$LN_S" && LN_S="ln -s"
  6133. if test -n "${ZSH_VERSION+set}" ; then
  6134. setopt NO_GLOB_SUBST
  6135. fi
  6136. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6137. $as_echo_n "checking for objdir... " >&6; }
  6138. if test "${lt_cv_objdir+set}" = set; then
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. rm -f .libs 2>/dev/null
  6142. mkdir .libs 2>/dev/null
  6143. if test -d .libs; then
  6144. lt_cv_objdir=.libs
  6145. else
  6146. # MS-DOS does not allow filenames that begin with a dot.
  6147. lt_cv_objdir=_libs
  6148. fi
  6149. rmdir .libs 2>/dev/null
  6150. fi
  6151. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6152. $as_echo "$lt_cv_objdir" >&6; }
  6153. objdir=$lt_cv_objdir
  6154. cat >>confdefs.h <<_ACEOF
  6155. #define LT_OBJDIR "$lt_cv_objdir/"
  6156. _ACEOF
  6157. case $host_os in
  6158. aix3*)
  6159. # AIX sometimes has problems with the GCC collect2 program. For some
  6160. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6161. # vanish in a puff of smoke.
  6162. if test "X${COLLECT_NAMES+set}" != Xset; then
  6163. COLLECT_NAMES=
  6164. export COLLECT_NAMES
  6165. fi
  6166. ;;
  6167. esac
  6168. # Sed substitution that helps us do robust quoting. It backslashifies
  6169. # metacharacters that are still active within double-quoted strings.
  6170. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6171. # Same as above, but do not quote variable references.
  6172. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6173. # Sed substitution to delay expansion of an escaped shell variable in a
  6174. # double_quote_subst'ed string.
  6175. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6176. # Sed substitution to delay expansion of an escaped single quote.
  6177. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6178. # Sed substitution to avoid accidental globbing in evaled expressions
  6179. no_glob_subst='s/\*/\\\*/g'
  6180. # Global variables:
  6181. ofile=libtool
  6182. can_build_shared=yes
  6183. # All known linkers require a `.a' archive for static linking (except MSVC,
  6184. # which needs '.lib').
  6185. libext=a
  6186. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6187. old_CC="$CC"
  6188. old_CFLAGS="$CFLAGS"
  6189. # Set sane defaults for various variables
  6190. test -z "$CC" && CC=cc
  6191. test -z "$LTCC" && LTCC=$CC
  6192. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6193. test -z "$LD" && LD=ld
  6194. test -z "$ac_objext" && ac_objext=o
  6195. for cc_temp in $compiler""; do
  6196. case $cc_temp in
  6197. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6198. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6199. \-*) ;;
  6200. *) break;;
  6201. esac
  6202. done
  6203. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6204. # Only perform the check for file, if the check method requires it
  6205. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6206. case $deplibs_check_method in
  6207. file_magic*)
  6208. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6209. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6210. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6211. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. case $MAGIC_CMD in
  6215. [\\/*] | ?:[\\/]*)
  6216. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6217. ;;
  6218. *)
  6219. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6220. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6221. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6222. for ac_dir in $ac_dummy; do
  6223. IFS="$lt_save_ifs"
  6224. test -z "$ac_dir" && ac_dir=.
  6225. if test -f $ac_dir/${ac_tool_prefix}file; then
  6226. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6227. if test -n "$file_magic_test_file"; then
  6228. case $deplibs_check_method in
  6229. "file_magic "*)
  6230. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6231. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6232. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6233. $EGREP "$file_magic_regex" > /dev/null; then
  6234. :
  6235. else
  6236. cat <<_LT_EOF 1>&2
  6237. *** Warning: the command libtool uses to detect shared libraries,
  6238. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6239. *** The result is that libtool may fail to recognize shared libraries
  6240. *** as such. This will affect the creation of libtool libraries that
  6241. *** depend on shared libraries, but programs linked with such libtool
  6242. *** libraries will work regardless of this problem. Nevertheless, you
  6243. *** may want to report the problem to your system manager and/or to
  6244. *** bug-libtool@gnu.org
  6245. _LT_EOF
  6246. fi ;;
  6247. esac
  6248. fi
  6249. break
  6250. fi
  6251. done
  6252. IFS="$lt_save_ifs"
  6253. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6254. ;;
  6255. esac
  6256. fi
  6257. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6258. if test -n "$MAGIC_CMD"; then
  6259. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6260. $as_echo "$MAGIC_CMD" >&6; }
  6261. else
  6262. { $as_echo "$as_me:$LINENO: result: no" >&5
  6263. $as_echo "no" >&6; }
  6264. fi
  6265. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6266. if test -n "$ac_tool_prefix"; then
  6267. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6268. $as_echo_n "checking for file... " >&6; }
  6269. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6270. $as_echo_n "(cached) " >&6
  6271. else
  6272. case $MAGIC_CMD in
  6273. [\\/*] | ?:[\\/]*)
  6274. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6275. ;;
  6276. *)
  6277. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6278. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6279. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6280. for ac_dir in $ac_dummy; do
  6281. IFS="$lt_save_ifs"
  6282. test -z "$ac_dir" && ac_dir=.
  6283. if test -f $ac_dir/file; then
  6284. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6285. if test -n "$file_magic_test_file"; then
  6286. case $deplibs_check_method in
  6287. "file_magic "*)
  6288. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6289. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6290. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6291. $EGREP "$file_magic_regex" > /dev/null; then
  6292. :
  6293. else
  6294. cat <<_LT_EOF 1>&2
  6295. *** Warning: the command libtool uses to detect shared libraries,
  6296. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6297. *** The result is that libtool may fail to recognize shared libraries
  6298. *** as such. This will affect the creation of libtool libraries that
  6299. *** depend on shared libraries, but programs linked with such libtool
  6300. *** libraries will work regardless of this problem. Nevertheless, you
  6301. *** may want to report the problem to your system manager and/or to
  6302. *** bug-libtool@gnu.org
  6303. _LT_EOF
  6304. fi ;;
  6305. esac
  6306. fi
  6307. break
  6308. fi
  6309. done
  6310. IFS="$lt_save_ifs"
  6311. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6312. ;;
  6313. esac
  6314. fi
  6315. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6316. if test -n "$MAGIC_CMD"; then
  6317. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6318. $as_echo "$MAGIC_CMD" >&6; }
  6319. else
  6320. { $as_echo "$as_me:$LINENO: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. else
  6324. MAGIC_CMD=:
  6325. fi
  6326. fi
  6327. fi
  6328. ;;
  6329. esac
  6330. # Use C for the default configuration in the libtool script
  6331. lt_save_CC="$CC"
  6332. ac_ext=c
  6333. ac_cpp='$CPP $CPPFLAGS'
  6334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6337. # Source file extension for C test sources.
  6338. ac_ext=c
  6339. # Object file extension for compiled C test sources.
  6340. objext=o
  6341. objext=$objext
  6342. # Code to be used in simple compile tests
  6343. lt_simple_compile_test_code="int some_variable = 0;"
  6344. # Code to be used in simple link tests
  6345. lt_simple_link_test_code='int main(){return(0);}'
  6346. # If no C compiler was specified, use CC.
  6347. LTCC=${LTCC-"$CC"}
  6348. # If no C compiler flags were specified, use CFLAGS.
  6349. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6350. # Allow CC to be a program name with arguments.
  6351. compiler=$CC
  6352. # Save the default compiler, since it gets overwritten when the other
  6353. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6354. compiler_DEFAULT=$CC
  6355. # save warnings/boilerplate of simple test code
  6356. ac_outfile=conftest.$ac_objext
  6357. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6358. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6359. _lt_compiler_boilerplate=`cat conftest.err`
  6360. $RM conftest*
  6361. ac_outfile=conftest.$ac_objext
  6362. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6363. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6364. _lt_linker_boilerplate=`cat conftest.err`
  6365. $RM -r conftest*
  6366. if test -n "$compiler"; then
  6367. lt_prog_compiler_no_builtin_flag=
  6368. if test "$GCC" = yes; then
  6369. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6370. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6371. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6372. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. lt_cv_prog_compiler_rtti_exceptions=no
  6376. ac_outfile=conftest.$ac_objext
  6377. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6378. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6379. # Insert the option either (1) after the last *FLAGS variable, or
  6380. # (2) before a word containing "conftest.", or (3) at the end.
  6381. # Note that $ac_compile itself does not contain backslashes and begins
  6382. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6383. # The option is referenced via a variable to avoid confusing sed.
  6384. lt_compile=`echo "$ac_compile" | $SED \
  6385. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6386. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6387. -e 's:$: $lt_compiler_flag:'`
  6388. (eval echo "\"\$as_me:7404: $lt_compile\"" >&5)
  6389. (eval "$lt_compile" 2>conftest.err)
  6390. ac_status=$?
  6391. cat conftest.err >&5
  6392. echo "$as_me:7408: \$? = $ac_status" >&5
  6393. if (exit $ac_status) && test -s "$ac_outfile"; then
  6394. # The compiler can only warn and ignore the option if not recognized
  6395. # So say no if there are warnings other than the usual output.
  6396. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6397. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6398. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6399. lt_cv_prog_compiler_rtti_exceptions=yes
  6400. fi
  6401. fi
  6402. $RM conftest*
  6403. fi
  6404. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6405. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6406. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6407. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6408. else
  6409. :
  6410. fi
  6411. fi
  6412. lt_prog_compiler_wl=
  6413. lt_prog_compiler_pic=
  6414. lt_prog_compiler_static=
  6415. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6416. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6417. if test "$GCC" = yes; then
  6418. lt_prog_compiler_wl='-Wl,'
  6419. lt_prog_compiler_static='-static'
  6420. case $host_os in
  6421. aix*)
  6422. # All AIX code is PIC.
  6423. if test "$host_cpu" = ia64; then
  6424. # AIX 5 now supports IA64 processor
  6425. lt_prog_compiler_static='-Bstatic'
  6426. fi
  6427. ;;
  6428. amigaos*)
  6429. case $host_cpu in
  6430. powerpc)
  6431. # see comment about AmigaOS4 .so support
  6432. lt_prog_compiler_pic='-fPIC'
  6433. ;;
  6434. m68k)
  6435. # FIXME: we need at least 68020 code to build shared libraries, but
  6436. # adding the `-m68020' flag to GCC prevents building anything better,
  6437. # like `-m68040'.
  6438. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6439. ;;
  6440. esac
  6441. ;;
  6442. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6443. # PIC is the default for these OSes.
  6444. ;;
  6445. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6446. # This hack is so that the source file can tell whether it is being
  6447. # built for inclusion in a dll (and should export symbols for example).
  6448. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6449. # (--disable-auto-import) libraries
  6450. lt_prog_compiler_pic='-DDLL_EXPORT'
  6451. ;;
  6452. darwin* | rhapsody*)
  6453. # PIC is the default on this platform
  6454. # Common symbols not allowed in MH_DYLIB files
  6455. lt_prog_compiler_pic='-fno-common'
  6456. ;;
  6457. hpux*)
  6458. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6459. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6460. # sets the default TLS model and affects inlining.
  6461. case $host_cpu in
  6462. hppa*64*)
  6463. # +Z the default
  6464. ;;
  6465. *)
  6466. lt_prog_compiler_pic='-fPIC'
  6467. ;;
  6468. esac
  6469. ;;
  6470. interix[3-9]*)
  6471. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6472. # Instead, we relocate shared libraries at runtime.
  6473. ;;
  6474. msdosdjgpp*)
  6475. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6476. # on systems that don't support them.
  6477. lt_prog_compiler_can_build_shared=no
  6478. enable_shared=no
  6479. ;;
  6480. *nto* | *qnx*)
  6481. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6482. # it will coredump.
  6483. lt_prog_compiler_pic='-fPIC -shared'
  6484. ;;
  6485. sysv4*MP*)
  6486. if test -d /usr/nec; then
  6487. lt_prog_compiler_pic=-Kconform_pic
  6488. fi
  6489. ;;
  6490. *)
  6491. lt_prog_compiler_pic='-fPIC'
  6492. ;;
  6493. esac
  6494. else
  6495. # PORTME Check for flag to pass linker flags through the system compiler.
  6496. case $host_os in
  6497. aix*)
  6498. lt_prog_compiler_wl='-Wl,'
  6499. if test "$host_cpu" = ia64; then
  6500. # AIX 5 now supports IA64 processor
  6501. lt_prog_compiler_static='-Bstatic'
  6502. else
  6503. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6504. fi
  6505. ;;
  6506. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6507. # This hack is so that the source file can tell whether it is being
  6508. # built for inclusion in a dll (and should export symbols for example).
  6509. lt_prog_compiler_pic='-DDLL_EXPORT'
  6510. ;;
  6511. hpux9* | hpux10* | hpux11*)
  6512. lt_prog_compiler_wl='-Wl,'
  6513. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6514. # not for PA HP-UX.
  6515. case $host_cpu in
  6516. hppa*64*|ia64*)
  6517. # +Z the default
  6518. ;;
  6519. *)
  6520. lt_prog_compiler_pic='+Z'
  6521. ;;
  6522. esac
  6523. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6524. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6525. ;;
  6526. irix5* | irix6* | nonstopux*)
  6527. lt_prog_compiler_wl='-Wl,'
  6528. # PIC (with -KPIC) is the default.
  6529. lt_prog_compiler_static='-non_shared'
  6530. ;;
  6531. linux* | k*bsd*-gnu)
  6532. case $cc_basename in
  6533. # old Intel for x86_64 which still supported -KPIC.
  6534. ecc*)
  6535. lt_prog_compiler_wl='-Wl,'
  6536. lt_prog_compiler_pic='-KPIC'
  6537. lt_prog_compiler_static='-static'
  6538. ;;
  6539. # icc used to be incompatible with GCC.
  6540. # ICC 10 doesn't accept -KPIC any more.
  6541. icc* | ifort*)
  6542. lt_prog_compiler_wl='-Wl,'
  6543. lt_prog_compiler_pic='-fPIC'
  6544. lt_prog_compiler_static='-static'
  6545. ;;
  6546. # Lahey Fortran 8.1.
  6547. lf95*)
  6548. lt_prog_compiler_wl='-Wl,'
  6549. lt_prog_compiler_pic='--shared'
  6550. lt_prog_compiler_static='--static'
  6551. ;;
  6552. pgcc* | pgf77* | pgf90* | pgf95*)
  6553. # Portland Group compilers (*not* the Pentium gcc compiler,
  6554. # which looks to be a dead project)
  6555. lt_prog_compiler_wl='-Wl,'
  6556. lt_prog_compiler_pic='-fpic'
  6557. lt_prog_compiler_static='-Bstatic'
  6558. ;;
  6559. ccc*)
  6560. lt_prog_compiler_wl='-Wl,'
  6561. # All Alpha code is PIC.
  6562. lt_prog_compiler_static='-non_shared'
  6563. ;;
  6564. xl*)
  6565. # IBM XL C 8.0/Fortran 10.1 on PPC
  6566. lt_prog_compiler_wl='-Wl,'
  6567. lt_prog_compiler_pic='-qpic'
  6568. lt_prog_compiler_static='-qstaticlink'
  6569. ;;
  6570. *)
  6571. case `$CC -V 2>&1 | sed 5q` in
  6572. *Sun\ C*)
  6573. # Sun C 5.9
  6574. lt_prog_compiler_pic='-KPIC'
  6575. lt_prog_compiler_static='-Bstatic'
  6576. lt_prog_compiler_wl='-Wl,'
  6577. ;;
  6578. *Sun\ F*)
  6579. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6580. lt_prog_compiler_pic='-KPIC'
  6581. lt_prog_compiler_static='-Bstatic'
  6582. lt_prog_compiler_wl=''
  6583. ;;
  6584. esac
  6585. ;;
  6586. esac
  6587. ;;
  6588. newsos6)
  6589. lt_prog_compiler_pic='-KPIC'
  6590. lt_prog_compiler_static='-Bstatic'
  6591. ;;
  6592. *nto* | *qnx*)
  6593. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6594. # it will coredump.
  6595. lt_prog_compiler_pic='-fPIC -shared'
  6596. ;;
  6597. osf3* | osf4* | osf5*)
  6598. lt_prog_compiler_wl='-Wl,'
  6599. # All OSF/1 code is PIC.
  6600. lt_prog_compiler_static='-non_shared'
  6601. ;;
  6602. rdos*)
  6603. lt_prog_compiler_static='-non_shared'
  6604. ;;
  6605. solaris*)
  6606. lt_prog_compiler_pic='-KPIC'
  6607. lt_prog_compiler_static='-Bstatic'
  6608. case $cc_basename in
  6609. f77* | f90* | f95*)
  6610. lt_prog_compiler_wl='-Qoption ld ';;
  6611. *)
  6612. lt_prog_compiler_wl='-Wl,';;
  6613. esac
  6614. ;;
  6615. sunos4*)
  6616. lt_prog_compiler_wl='-Qoption ld '
  6617. lt_prog_compiler_pic='-PIC'
  6618. lt_prog_compiler_static='-Bstatic'
  6619. ;;
  6620. sysv4 | sysv4.2uw2* | sysv4.3*)
  6621. lt_prog_compiler_wl='-Wl,'
  6622. lt_prog_compiler_pic='-KPIC'
  6623. lt_prog_compiler_static='-Bstatic'
  6624. ;;
  6625. sysv4*MP*)
  6626. if test -d /usr/nec ;then
  6627. lt_prog_compiler_pic='-Kconform_pic'
  6628. lt_prog_compiler_static='-Bstatic'
  6629. fi
  6630. ;;
  6631. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6632. lt_prog_compiler_wl='-Wl,'
  6633. lt_prog_compiler_pic='-KPIC'
  6634. lt_prog_compiler_static='-Bstatic'
  6635. ;;
  6636. unicos*)
  6637. lt_prog_compiler_wl='-Wl,'
  6638. lt_prog_compiler_can_build_shared=no
  6639. ;;
  6640. uts4*)
  6641. lt_prog_compiler_pic='-pic'
  6642. lt_prog_compiler_static='-Bstatic'
  6643. ;;
  6644. *)
  6645. lt_prog_compiler_can_build_shared=no
  6646. ;;
  6647. esac
  6648. fi
  6649. case $host_os in
  6650. # For platforms which do not support PIC, -DPIC is meaningless:
  6651. *djgpp*)
  6652. lt_prog_compiler_pic=
  6653. ;;
  6654. *)
  6655. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6656. ;;
  6657. esac
  6658. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6659. $as_echo "$lt_prog_compiler_pic" >&6; }
  6660. #
  6661. # Check to make sure the PIC flag actually works.
  6662. #
  6663. if test -n "$lt_prog_compiler_pic"; then
  6664. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6665. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6666. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. lt_cv_prog_compiler_pic_works=no
  6670. ac_outfile=conftest.$ac_objext
  6671. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6672. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6673. # Insert the option either (1) after the last *FLAGS variable, or
  6674. # (2) before a word containing "conftest.", or (3) at the end.
  6675. # Note that $ac_compile itself does not contain backslashes and begins
  6676. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6677. # The option is referenced via a variable to avoid confusing sed.
  6678. lt_compile=`echo "$ac_compile" | $SED \
  6679. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6680. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6681. -e 's:$: $lt_compiler_flag:'`
  6682. (eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
  6683. (eval "$lt_compile" 2>conftest.err)
  6684. ac_status=$?
  6685. cat conftest.err >&5
  6686. echo "$as_me:7747: \$? = $ac_status" >&5
  6687. if (exit $ac_status) && test -s "$ac_outfile"; then
  6688. # The compiler can only warn and ignore the option if not recognized
  6689. # So say no if there are warnings other than the usual output.
  6690. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6691. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6692. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6693. lt_cv_prog_compiler_pic_works=yes
  6694. fi
  6695. fi
  6696. $RM conftest*
  6697. fi
  6698. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6699. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6700. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6701. case $lt_prog_compiler_pic in
  6702. "" | " "*) ;;
  6703. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6704. esac
  6705. else
  6706. lt_prog_compiler_pic=
  6707. lt_prog_compiler_can_build_shared=no
  6708. fi
  6709. fi
  6710. #
  6711. # Check to make sure the static flag actually works.
  6712. #
  6713. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6714. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6715. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6716. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. lt_cv_prog_compiler_static_works=no
  6720. save_LDFLAGS="$LDFLAGS"
  6721. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6722. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6723. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6724. # The linker can only warn and ignore the option if not recognized
  6725. # So say no if there are warnings
  6726. if test -s conftest.err; then
  6727. # Append any errors to the config.log.
  6728. cat conftest.err 1>&5
  6729. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6730. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6731. if diff conftest.exp conftest.er2 >/dev/null; then
  6732. lt_cv_prog_compiler_static_works=yes
  6733. fi
  6734. else
  6735. lt_cv_prog_compiler_static_works=yes
  6736. fi
  6737. fi
  6738. $RM -r conftest*
  6739. LDFLAGS="$save_LDFLAGS"
  6740. fi
  6741. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6742. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6743. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6744. :
  6745. else
  6746. lt_prog_compiler_static=
  6747. fi
  6748. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6749. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6750. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. lt_cv_prog_compiler_c_o=no
  6754. $RM -r conftest 2>/dev/null
  6755. mkdir conftest
  6756. cd conftest
  6757. mkdir out
  6758. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6759. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6760. # Insert the option either (1) after the last *FLAGS variable, or
  6761. # (2) before a word containing "conftest.", or (3) at the end.
  6762. # Note that $ac_compile itself does not contain backslashes and begins
  6763. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6764. lt_compile=`echo "$ac_compile" | $SED \
  6765. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6766. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6767. -e 's:$: $lt_compiler_flag:'`
  6768. (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
  6769. (eval "$lt_compile" 2>out/conftest.err)
  6770. ac_status=$?
  6771. cat out/conftest.err >&5
  6772. echo "$as_me:7852: \$? = $ac_status" >&5
  6773. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6774. then
  6775. # The compiler can only warn and ignore the option if not recognized
  6776. # So say no if there are warnings
  6777. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6778. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6779. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6780. lt_cv_prog_compiler_c_o=yes
  6781. fi
  6782. fi
  6783. chmod u+w . 2>&5
  6784. $RM conftest*
  6785. # SGI C++ compiler will create directory out/ii_files/ for
  6786. # template instantiation
  6787. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6788. $RM out/* && rmdir out
  6789. cd ..
  6790. $RM -r conftest
  6791. $RM conftest*
  6792. fi
  6793. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6794. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6795. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6796. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6797. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6798. $as_echo_n "(cached) " >&6
  6799. else
  6800. lt_cv_prog_compiler_c_o=no
  6801. $RM -r conftest 2>/dev/null
  6802. mkdir conftest
  6803. cd conftest
  6804. mkdir out
  6805. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6806. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6807. # Insert the option either (1) after the last *FLAGS variable, or
  6808. # (2) before a word containing "conftest.", or (3) at the end.
  6809. # Note that $ac_compile itself does not contain backslashes and begins
  6810. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6811. lt_compile=`echo "$ac_compile" | $SED \
  6812. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6813. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6814. -e 's:$: $lt_compiler_flag:'`
  6815. (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
  6816. (eval "$lt_compile" 2>out/conftest.err)
  6817. ac_status=$?
  6818. cat out/conftest.err >&5
  6819. echo "$as_me:7907: \$? = $ac_status" >&5
  6820. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6821. then
  6822. # The compiler can only warn and ignore the option if not recognized
  6823. # So say no if there are warnings
  6824. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6825. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6826. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6827. lt_cv_prog_compiler_c_o=yes
  6828. fi
  6829. fi
  6830. chmod u+w . 2>&5
  6831. $RM conftest*
  6832. # SGI C++ compiler will create directory out/ii_files/ for
  6833. # template instantiation
  6834. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6835. $RM out/* && rmdir out
  6836. cd ..
  6837. $RM -r conftest
  6838. $RM conftest*
  6839. fi
  6840. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6841. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6842. hard_links="nottested"
  6843. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6844. # do not overwrite the value of need_locks provided by the user
  6845. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6846. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6847. hard_links=yes
  6848. $RM conftest*
  6849. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6850. touch conftest.a
  6851. ln conftest.a conftest.b 2>&5 || hard_links=no
  6852. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6853. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6854. $as_echo "$hard_links" >&6; }
  6855. if test "$hard_links" = no; then
  6856. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6857. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6858. need_locks=warn
  6859. fi
  6860. else
  6861. need_locks=no
  6862. fi
  6863. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6864. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6865. runpath_var=
  6866. allow_undefined_flag=
  6867. always_export_symbols=no
  6868. archive_cmds=
  6869. archive_expsym_cmds=
  6870. compiler_needs_object=no
  6871. enable_shared_with_static_runtimes=no
  6872. export_dynamic_flag_spec=
  6873. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6874. hardcode_automatic=no
  6875. hardcode_direct=no
  6876. hardcode_direct_absolute=no
  6877. hardcode_libdir_flag_spec=
  6878. hardcode_libdir_flag_spec_ld=
  6879. hardcode_libdir_separator=
  6880. hardcode_minus_L=no
  6881. hardcode_shlibpath_var=unsupported
  6882. inherit_rpath=no
  6883. link_all_deplibs=unknown
  6884. module_cmds=
  6885. module_expsym_cmds=
  6886. old_archive_from_new_cmds=
  6887. old_archive_from_expsyms_cmds=
  6888. thread_safe_flag_spec=
  6889. whole_archive_flag_spec=
  6890. # include_expsyms should be a list of space-separated symbols to be *always*
  6891. # included in the symbol list
  6892. include_expsyms=
  6893. # exclude_expsyms can be an extended regexp of symbols to exclude
  6894. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6895. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6896. # as well as any symbol that contains `d'.
  6897. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6898. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6899. # platforms (ab)use it in PIC code, but their linkers get confused if
  6900. # the symbol is explicitly referenced. Since portable code cannot
  6901. # rely on this symbol name, it's probably fine to never include it in
  6902. # preloaded symbol tables.
  6903. # Exclude shared library initialization/finalization symbols.
  6904. extract_expsyms_cmds=
  6905. case $host_os in
  6906. cygwin* | mingw* | pw32* | cegcc*)
  6907. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6908. # When not using gcc, we currently assume that we are using
  6909. # Microsoft Visual C++.
  6910. if test "$GCC" != yes; then
  6911. with_gnu_ld=no
  6912. fi
  6913. ;;
  6914. interix*)
  6915. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6916. with_gnu_ld=yes
  6917. ;;
  6918. openbsd*)
  6919. with_gnu_ld=no
  6920. ;;
  6921. esac
  6922. ld_shlibs=yes
  6923. if test "$with_gnu_ld" = yes; then
  6924. # If archive_cmds runs LD, not CC, wlarc should be empty
  6925. wlarc='${wl}'
  6926. # Set some defaults for GNU ld with shared library support. These
  6927. # are reset later if shared libraries are not supported. Putting them
  6928. # here allows them to be overridden if necessary.
  6929. runpath_var=LD_RUN_PATH
  6930. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6931. export_dynamic_flag_spec='${wl}--export-dynamic'
  6932. # ancient GNU ld didn't support --whole-archive et. al.
  6933. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6934. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6935. else
  6936. whole_archive_flag_spec=
  6937. fi
  6938. supports_anon_versioning=no
  6939. case `$LD -v 2>&1` in
  6940. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6941. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6942. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6943. *\ 2.11.*) ;; # other 2.11 versions
  6944. *) supports_anon_versioning=yes ;;
  6945. esac
  6946. # See if GNU ld supports shared libraries.
  6947. case $host_os in
  6948. aix[3-9]*)
  6949. # On AIX/PPC, the GNU linker is very broken
  6950. if test "$host_cpu" != ia64; then
  6951. ld_shlibs=no
  6952. cat <<_LT_EOF 1>&2
  6953. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6954. *** to be unable to reliably create shared libraries on AIX.
  6955. *** Therefore, libtool is disabling shared libraries support. If you
  6956. *** really care for shared libraries, you may want to modify your PATH
  6957. *** so that a non-GNU linker is found, and then restart.
  6958. _LT_EOF
  6959. fi
  6960. ;;
  6961. amigaos*)
  6962. case $host_cpu in
  6963. powerpc)
  6964. # see comment about AmigaOS4 .so support
  6965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6966. archive_expsym_cmds=''
  6967. ;;
  6968. m68k)
  6969. 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)'
  6970. hardcode_libdir_flag_spec='-L$libdir'
  6971. hardcode_minus_L=yes
  6972. ;;
  6973. esac
  6974. ;;
  6975. beos*)
  6976. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6977. allow_undefined_flag=unsupported
  6978. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6979. # support --undefined. This deserves some investigation. FIXME
  6980. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6981. else
  6982. ld_shlibs=no
  6983. fi
  6984. ;;
  6985. cygwin* | mingw* | pw32* | cegcc*)
  6986. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6987. # as there is no search path for DLLs.
  6988. hardcode_libdir_flag_spec='-L$libdir'
  6989. allow_undefined_flag=unsupported
  6990. always_export_symbols=no
  6991. enable_shared_with_static_runtimes=yes
  6992. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6993. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6994. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6995. # If the export-symbols file already is a .def file (1st line
  6996. # is EXPORTS), use it as is; otherwise, prepend...
  6997. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6998. cp $export_symbols $output_objdir/$soname.def;
  6999. else
  7000. echo EXPORTS > $output_objdir/$soname.def;
  7001. cat $export_symbols >> $output_objdir/$soname.def;
  7002. fi~
  7003. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7004. else
  7005. ld_shlibs=no
  7006. fi
  7007. ;;
  7008. interix[3-9]*)
  7009. hardcode_direct=no
  7010. hardcode_shlibpath_var=no
  7011. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7012. export_dynamic_flag_spec='${wl}-E'
  7013. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7014. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7015. # default) and relocated if they conflict, which is a slow very memory
  7016. # consuming and fragmenting process. To avoid this, we pick a random,
  7017. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7018. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7019. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7020. 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'
  7021. ;;
  7022. gnu* | linux* | tpf* | k*bsd*-gnu)
  7023. tmp_diet=no
  7024. if test "$host_os" = linux-dietlibc; then
  7025. case $cc_basename in
  7026. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7027. esac
  7028. fi
  7029. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7030. && test "$tmp_diet" = no
  7031. then
  7032. tmp_addflag=
  7033. tmp_sharedflag='-shared'
  7034. case $cc_basename,$host_cpu in
  7035. pgcc*) # Portland Group C compiler
  7036. 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'
  7037. tmp_addflag=' $pic_flag'
  7038. ;;
  7039. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7040. 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'
  7041. tmp_addflag=' $pic_flag -Mnomain' ;;
  7042. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7043. tmp_addflag=' -i_dynamic' ;;
  7044. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7045. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7046. ifc* | ifort*) # Intel Fortran compiler
  7047. tmp_addflag=' -nofor_main' ;;
  7048. lf95*) # Lahey Fortran 8.1
  7049. whole_archive_flag_spec=
  7050. tmp_sharedflag='--shared' ;;
  7051. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7052. tmp_sharedflag='-qmkshrobj'
  7053. tmp_addflag= ;;
  7054. esac
  7055. case `$CC -V 2>&1 | sed 5q` in
  7056. *Sun\ C*) # Sun C 5.9
  7057. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7058. compiler_needs_object=yes
  7059. tmp_sharedflag='-G' ;;
  7060. *Sun\ F*) # Sun Fortran 8.3
  7061. tmp_sharedflag='-G' ;;
  7062. esac
  7063. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7064. if test "x$supports_anon_versioning" = xyes; then
  7065. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7066. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7067. echo "local: *; };" >> $output_objdir/$libname.ver~
  7068. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7069. fi
  7070. case $cc_basename in
  7071. xlf*)
  7072. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7073. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7074. hardcode_libdir_flag_spec=
  7075. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7076. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7077. if test "x$supports_anon_versioning" = xyes; then
  7078. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7079. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7080. echo "local: *; };" >> $output_objdir/$libname.ver~
  7081. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7082. fi
  7083. ;;
  7084. esac
  7085. else
  7086. ld_shlibs=no
  7087. fi
  7088. ;;
  7089. netbsd*)
  7090. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7091. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7092. wlarc=
  7093. else
  7094. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7095. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7096. fi
  7097. ;;
  7098. solaris*)
  7099. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7100. ld_shlibs=no
  7101. cat <<_LT_EOF 1>&2
  7102. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7103. *** create shared libraries on Solaris systems. Therefore, libtool
  7104. *** is disabling shared libraries support. We urge you to upgrade GNU
  7105. *** binutils to release 2.9.1 or newer. Another option is to modify
  7106. *** your PATH or compiler configuration so that the native linker is
  7107. *** used, and then restart.
  7108. _LT_EOF
  7109. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7111. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7112. else
  7113. ld_shlibs=no
  7114. fi
  7115. ;;
  7116. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7117. case `$LD -v 2>&1` in
  7118. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7119. ld_shlibs=no
  7120. cat <<_LT_EOF 1>&2
  7121. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7122. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7123. *** is disabling shared libraries support. We urge you to upgrade GNU
  7124. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7125. *** your PATH or compiler configuration so that the native linker is
  7126. *** used, and then restart.
  7127. _LT_EOF
  7128. ;;
  7129. *)
  7130. # For security reasons, it is highly recommended that you always
  7131. # use absolute paths for naming shared libraries, and exclude the
  7132. # DT_RUNPATH tag from executables and libraries. But doing so
  7133. # requires that you compile everything twice, which is a pain.
  7134. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7135. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7136. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7137. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7138. else
  7139. ld_shlibs=no
  7140. fi
  7141. ;;
  7142. esac
  7143. ;;
  7144. sunos4*)
  7145. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7146. wlarc=
  7147. hardcode_direct=yes
  7148. hardcode_shlibpath_var=no
  7149. ;;
  7150. *)
  7151. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7152. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7153. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7154. else
  7155. ld_shlibs=no
  7156. fi
  7157. ;;
  7158. esac
  7159. if test "$ld_shlibs" = no; then
  7160. runpath_var=
  7161. hardcode_libdir_flag_spec=
  7162. export_dynamic_flag_spec=
  7163. whole_archive_flag_spec=
  7164. fi
  7165. else
  7166. # PORTME fill in a description of your system's linker (not GNU ld)
  7167. case $host_os in
  7168. aix3*)
  7169. allow_undefined_flag=unsupported
  7170. always_export_symbols=yes
  7171. 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'
  7172. # Note: this linker hardcodes the directories in LIBPATH if there
  7173. # are no directories specified by -L.
  7174. hardcode_minus_L=yes
  7175. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7176. # Neither direct hardcoding nor static linking is supported with a
  7177. # broken collect2.
  7178. hardcode_direct=unsupported
  7179. fi
  7180. ;;
  7181. aix[4-9]*)
  7182. if test "$host_cpu" = ia64; then
  7183. # On IA64, the linker does run time linking by default, so we don't
  7184. # have to do anything special.
  7185. aix_use_runtimelinking=no
  7186. exp_sym_flag='-Bexport'
  7187. no_entry_flag=""
  7188. else
  7189. # If we're using GNU nm, then we don't want the "-C" option.
  7190. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7191. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7192. 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'
  7193. else
  7194. 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'
  7195. fi
  7196. aix_use_runtimelinking=no
  7197. # Test if we are trying to use run time linking or normal
  7198. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7199. # need to do runtime linking.
  7200. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7201. for ld_flag in $LDFLAGS; do
  7202. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7203. aix_use_runtimelinking=yes
  7204. break
  7205. fi
  7206. done
  7207. ;;
  7208. esac
  7209. exp_sym_flag='-bexport'
  7210. no_entry_flag='-bnoentry'
  7211. fi
  7212. # When large executables or shared objects are built, AIX ld can
  7213. # have problems creating the table of contents. If linking a library
  7214. # or program results in "error TOC overflow" add -mminimal-toc to
  7215. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7216. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7217. archive_cmds=''
  7218. hardcode_direct=yes
  7219. hardcode_direct_absolute=yes
  7220. hardcode_libdir_separator=':'
  7221. link_all_deplibs=yes
  7222. file_list_spec='${wl}-f,'
  7223. if test "$GCC" = yes; then
  7224. case $host_os in aix4.[012]|aix4.[012].*)
  7225. # We only want to do this on AIX 4.2 and lower, the check
  7226. # below for broken collect2 doesn't work under 4.3+
  7227. collect2name=`${CC} -print-prog-name=collect2`
  7228. if test -f "$collect2name" &&
  7229. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7230. then
  7231. # We have reworked collect2
  7232. :
  7233. else
  7234. # We have old collect2
  7235. hardcode_direct=unsupported
  7236. # It fails to find uninstalled libraries when the uninstalled
  7237. # path is not listed in the libpath. Setting hardcode_minus_L
  7238. # to unsupported forces relinking
  7239. hardcode_minus_L=yes
  7240. hardcode_libdir_flag_spec='-L$libdir'
  7241. hardcode_libdir_separator=
  7242. fi
  7243. ;;
  7244. esac
  7245. shared_flag='-shared'
  7246. if test "$aix_use_runtimelinking" = yes; then
  7247. shared_flag="$shared_flag "'${wl}-G'
  7248. fi
  7249. else
  7250. # not using gcc
  7251. if test "$host_cpu" = ia64; then
  7252. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7253. # chokes on -Wl,-G. The following line is correct:
  7254. shared_flag='-G'
  7255. else
  7256. if test "$aix_use_runtimelinking" = yes; then
  7257. shared_flag='${wl}-G'
  7258. else
  7259. shared_flag='${wl}-bM:SRE'
  7260. fi
  7261. fi
  7262. fi
  7263. export_dynamic_flag_spec='${wl}-bexpall'
  7264. # It seems that -bexpall does not export symbols beginning with
  7265. # underscore (_), so it is better to generate a list of symbols to export.
  7266. always_export_symbols=yes
  7267. if test "$aix_use_runtimelinking" = yes; then
  7268. # Warning - without using the other runtime loading flags (-brtl),
  7269. # -berok will link without error, but may produce a broken library.
  7270. allow_undefined_flag='-berok'
  7271. # Determine the default libpath from the value encoded in an
  7272. # empty executable.
  7273. cat >conftest.$ac_ext <<_ACEOF
  7274. /* confdefs.h. */
  7275. _ACEOF
  7276. cat confdefs.h >>conftest.$ac_ext
  7277. cat >>conftest.$ac_ext <<_ACEOF
  7278. /* end confdefs.h. */
  7279. int
  7280. main ()
  7281. {
  7282. ;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext conftest$ac_exeext
  7287. if { (ac_try="$ac_link"
  7288. case "(($ac_try" in
  7289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7290. *) ac_try_echo=$ac_try;;
  7291. esac
  7292. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7293. $as_echo "$ac_try_echo") >&5
  7294. (eval "$ac_link") 2>conftest.er1
  7295. ac_status=$?
  7296. grep -v '^ *+' conftest.er1 >conftest.err
  7297. rm -f conftest.er1
  7298. cat conftest.err >&5
  7299. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7300. (exit $ac_status); } && {
  7301. test -z "$ac_c_werror_flag" ||
  7302. test ! -s conftest.err
  7303. } && test -s conftest$ac_exeext && {
  7304. test "$cross_compiling" = yes ||
  7305. $as_test_x conftest$ac_exeext
  7306. }; then
  7307. lt_aix_libpath_sed='
  7308. /Import File Strings/,/^$/ {
  7309. /^0/ {
  7310. s/^0 *\(.*\)$/\1/
  7311. p
  7312. }
  7313. }'
  7314. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7315. # Check for a 64-bit object if we didn't find anything.
  7316. if test -z "$aix_libpath"; then
  7317. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7318. fi
  7319. else
  7320. $as_echo "$as_me: failed program was:" >&5
  7321. sed 's/^/| /' conftest.$ac_ext >&5
  7322. fi
  7323. rm -rf conftest.dSYM
  7324. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7325. conftest$ac_exeext conftest.$ac_ext
  7326. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7327. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7328. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7329. else
  7330. if test "$host_cpu" = ia64; then
  7331. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7332. allow_undefined_flag="-z nodefs"
  7333. 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"
  7334. else
  7335. # Determine the default libpath from the value encoded in an
  7336. # empty executable.
  7337. cat >conftest.$ac_ext <<_ACEOF
  7338. /* confdefs.h. */
  7339. _ACEOF
  7340. cat confdefs.h >>conftest.$ac_ext
  7341. cat >>conftest.$ac_ext <<_ACEOF
  7342. /* end confdefs.h. */
  7343. int
  7344. main ()
  7345. {
  7346. ;
  7347. return 0;
  7348. }
  7349. _ACEOF
  7350. rm -f conftest.$ac_objext conftest$ac_exeext
  7351. if { (ac_try="$ac_link"
  7352. case "(($ac_try" in
  7353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7354. *) ac_try_echo=$ac_try;;
  7355. esac
  7356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7357. $as_echo "$ac_try_echo") >&5
  7358. (eval "$ac_link") 2>conftest.er1
  7359. ac_status=$?
  7360. grep -v '^ *+' conftest.er1 >conftest.err
  7361. rm -f conftest.er1
  7362. cat conftest.err >&5
  7363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); } && {
  7365. test -z "$ac_c_werror_flag" ||
  7366. test ! -s conftest.err
  7367. } && test -s conftest$ac_exeext && {
  7368. test "$cross_compiling" = yes ||
  7369. $as_test_x conftest$ac_exeext
  7370. }; then
  7371. lt_aix_libpath_sed='
  7372. /Import File Strings/,/^$/ {
  7373. /^0/ {
  7374. s/^0 *\(.*\)$/\1/
  7375. p
  7376. }
  7377. }'
  7378. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7379. # Check for a 64-bit object if we didn't find anything.
  7380. if test -z "$aix_libpath"; then
  7381. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7382. fi
  7383. else
  7384. $as_echo "$as_me: failed program was:" >&5
  7385. sed 's/^/| /' conftest.$ac_ext >&5
  7386. fi
  7387. rm -rf conftest.dSYM
  7388. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7389. conftest$ac_exeext conftest.$ac_ext
  7390. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7391. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7392. # Warning - without using the other run time loading flags,
  7393. # -berok will link without error, but may produce a broken library.
  7394. no_undefined_flag=' ${wl}-bernotok'
  7395. allow_undefined_flag=' ${wl}-berok'
  7396. # Exported symbols can be pulled into shared objects from archives
  7397. whole_archive_flag_spec='$convenience'
  7398. archive_cmds_need_lc=yes
  7399. # This is similar to how AIX traditionally builds its shared libraries.
  7400. 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'
  7401. fi
  7402. fi
  7403. ;;
  7404. amigaos*)
  7405. case $host_cpu in
  7406. powerpc)
  7407. # see comment about AmigaOS4 .so support
  7408. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7409. archive_expsym_cmds=''
  7410. ;;
  7411. m68k)
  7412. 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)'
  7413. hardcode_libdir_flag_spec='-L$libdir'
  7414. hardcode_minus_L=yes
  7415. ;;
  7416. esac
  7417. ;;
  7418. bsdi[45]*)
  7419. export_dynamic_flag_spec=-rdynamic
  7420. ;;
  7421. cygwin* | mingw* | pw32* | cegcc*)
  7422. # When not using gcc, we currently assume that we are using
  7423. # Microsoft Visual C++.
  7424. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7425. # no search path for DLLs.
  7426. hardcode_libdir_flag_spec=' '
  7427. allow_undefined_flag=unsupported
  7428. # Tell ltmain to make .lib files, not .a files.
  7429. libext=lib
  7430. # Tell ltmain to make .dll files, not .so files.
  7431. shrext_cmds=".dll"
  7432. # FIXME: Setting linknames here is a bad hack.
  7433. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7434. # The linker will automatically build a .lib file if we build a DLL.
  7435. old_archive_from_new_cmds='true'
  7436. # FIXME: Should let the user specify the lib program.
  7437. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7438. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7439. enable_shared_with_static_runtimes=yes
  7440. ;;
  7441. darwin* | rhapsody*)
  7442. archive_cmds_need_lc=no
  7443. hardcode_direct=no
  7444. hardcode_automatic=yes
  7445. hardcode_shlibpath_var=unsupported
  7446. whole_archive_flag_spec=''
  7447. link_all_deplibs=yes
  7448. allow_undefined_flag="$_lt_dar_allow_undefined"
  7449. case $cc_basename in
  7450. ifort*) _lt_dar_can_shared=yes ;;
  7451. *) _lt_dar_can_shared=$GCC ;;
  7452. esac
  7453. if test "$_lt_dar_can_shared" = "yes"; then
  7454. output_verbose_link_cmd=echo
  7455. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7456. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7457. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7458. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7459. else
  7460. ld_shlibs=no
  7461. fi
  7462. ;;
  7463. dgux*)
  7464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7465. hardcode_libdir_flag_spec='-L$libdir'
  7466. hardcode_shlibpath_var=no
  7467. ;;
  7468. freebsd1*)
  7469. ld_shlibs=no
  7470. ;;
  7471. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7472. # support. Future versions do this automatically, but an explicit c++rt0.o
  7473. # does not break anything, and helps significantly (at the cost of a little
  7474. # extra space).
  7475. freebsd2.2*)
  7476. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7477. hardcode_libdir_flag_spec='-R$libdir'
  7478. hardcode_direct=yes
  7479. hardcode_shlibpath_var=no
  7480. ;;
  7481. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7482. freebsd2*)
  7483. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7484. hardcode_direct=yes
  7485. hardcode_minus_L=yes
  7486. hardcode_shlibpath_var=no
  7487. ;;
  7488. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7489. freebsd* | dragonfly*)
  7490. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7491. hardcode_libdir_flag_spec='-R$libdir'
  7492. hardcode_direct=yes
  7493. hardcode_shlibpath_var=no
  7494. ;;
  7495. hpux9*)
  7496. if test "$GCC" = yes; then
  7497. 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'
  7498. else
  7499. 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'
  7500. fi
  7501. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7502. hardcode_libdir_separator=:
  7503. hardcode_direct=yes
  7504. # hardcode_minus_L: Not really in the search PATH,
  7505. # but as the default location of the library.
  7506. hardcode_minus_L=yes
  7507. export_dynamic_flag_spec='${wl}-E'
  7508. ;;
  7509. hpux10*)
  7510. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7511. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7512. else
  7513. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7514. fi
  7515. if test "$with_gnu_ld" = no; then
  7516. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7517. hardcode_libdir_flag_spec_ld='+b $libdir'
  7518. hardcode_libdir_separator=:
  7519. hardcode_direct=yes
  7520. hardcode_direct_absolute=yes
  7521. export_dynamic_flag_spec='${wl}-E'
  7522. # hardcode_minus_L: Not really in the search PATH,
  7523. # but as the default location of the library.
  7524. hardcode_minus_L=yes
  7525. fi
  7526. ;;
  7527. hpux11*)
  7528. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7529. case $host_cpu in
  7530. hppa*64*)
  7531. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7532. ;;
  7533. ia64*)
  7534. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7535. ;;
  7536. *)
  7537. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7538. ;;
  7539. esac
  7540. else
  7541. case $host_cpu in
  7542. hppa*64*)
  7543. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7544. ;;
  7545. ia64*)
  7546. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7547. ;;
  7548. *)
  7549. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7550. ;;
  7551. esac
  7552. fi
  7553. if test "$with_gnu_ld" = no; then
  7554. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7555. hardcode_libdir_separator=:
  7556. case $host_cpu in
  7557. hppa*64*|ia64*)
  7558. hardcode_direct=no
  7559. hardcode_shlibpath_var=no
  7560. ;;
  7561. *)
  7562. hardcode_direct=yes
  7563. hardcode_direct_absolute=yes
  7564. export_dynamic_flag_spec='${wl}-E'
  7565. # hardcode_minus_L: Not really in the search PATH,
  7566. # but as the default location of the library.
  7567. hardcode_minus_L=yes
  7568. ;;
  7569. esac
  7570. fi
  7571. ;;
  7572. irix5* | irix6* | nonstopux*)
  7573. if test "$GCC" = yes; then
  7574. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7575. # Try to use the -exported_symbol ld option, if it does not
  7576. # work, assume that -exports_file does not work either and
  7577. # implicitly export all symbols.
  7578. save_LDFLAGS="$LDFLAGS"
  7579. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7580. cat >conftest.$ac_ext <<_ACEOF
  7581. int foo(void) {}
  7582. _ACEOF
  7583. rm -f conftest.$ac_objext conftest$ac_exeext
  7584. if { (ac_try="$ac_link"
  7585. case "(($ac_try" in
  7586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7587. *) ac_try_echo=$ac_try;;
  7588. esac
  7589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7590. $as_echo "$ac_try_echo") >&5
  7591. (eval "$ac_link") 2>conftest.er1
  7592. ac_status=$?
  7593. grep -v '^ *+' conftest.er1 >conftest.err
  7594. rm -f conftest.er1
  7595. cat conftest.err >&5
  7596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); } && {
  7598. test -z "$ac_c_werror_flag" ||
  7599. test ! -s conftest.err
  7600. } && test -s conftest$ac_exeext && {
  7601. test "$cross_compiling" = yes ||
  7602. $as_test_x conftest$ac_exeext
  7603. }; then
  7604. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7605. else
  7606. $as_echo "$as_me: failed program was:" >&5
  7607. sed 's/^/| /' conftest.$ac_ext >&5
  7608. fi
  7609. rm -rf conftest.dSYM
  7610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7611. conftest$ac_exeext conftest.$ac_ext
  7612. LDFLAGS="$save_LDFLAGS"
  7613. else
  7614. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7615. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7616. fi
  7617. archive_cmds_need_lc='no'
  7618. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7619. hardcode_libdir_separator=:
  7620. inherit_rpath=yes
  7621. link_all_deplibs=yes
  7622. ;;
  7623. netbsd*)
  7624. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7625. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7626. else
  7627. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7628. fi
  7629. hardcode_libdir_flag_spec='-R$libdir'
  7630. hardcode_direct=yes
  7631. hardcode_shlibpath_var=no
  7632. ;;
  7633. newsos6)
  7634. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7635. hardcode_direct=yes
  7636. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7637. hardcode_libdir_separator=:
  7638. hardcode_shlibpath_var=no
  7639. ;;
  7640. *nto* | *qnx*)
  7641. ;;
  7642. openbsd*)
  7643. if test -f /usr/libexec/ld.so; then
  7644. hardcode_direct=yes
  7645. hardcode_shlibpath_var=no
  7646. hardcode_direct_absolute=yes
  7647. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7648. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7649. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7650. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7651. export_dynamic_flag_spec='${wl}-E'
  7652. else
  7653. case $host_os in
  7654. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7655. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7656. hardcode_libdir_flag_spec='-R$libdir'
  7657. ;;
  7658. *)
  7659. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7660. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7661. ;;
  7662. esac
  7663. fi
  7664. else
  7665. ld_shlibs=no
  7666. fi
  7667. ;;
  7668. os2*)
  7669. hardcode_libdir_flag_spec='-L$libdir'
  7670. hardcode_minus_L=yes
  7671. allow_undefined_flag=unsupported
  7672. 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'
  7673. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7674. ;;
  7675. osf3*)
  7676. if test "$GCC" = yes; then
  7677. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7678. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7679. else
  7680. allow_undefined_flag=' -expect_unresolved \*'
  7681. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7682. fi
  7683. archive_cmds_need_lc='no'
  7684. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7685. hardcode_libdir_separator=:
  7686. ;;
  7687. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7688. if test "$GCC" = yes; then
  7689. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7690. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7691. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7692. else
  7693. allow_undefined_flag=' -expect_unresolved \*'
  7694. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7695. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7696. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7697. # Both c and cxx compiler support -rpath directly
  7698. hardcode_libdir_flag_spec='-rpath $libdir'
  7699. fi
  7700. archive_cmds_need_lc='no'
  7701. hardcode_libdir_separator=:
  7702. ;;
  7703. solaris*)
  7704. no_undefined_flag=' -z defs'
  7705. if test "$GCC" = yes; then
  7706. wlarc='${wl}'
  7707. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7708. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7709. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7710. else
  7711. case `$CC -V 2>&1` in
  7712. *"Compilers 5.0"*)
  7713. wlarc=''
  7714. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7715. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7716. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7717. ;;
  7718. *)
  7719. wlarc='${wl}'
  7720. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7721. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7722. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7723. ;;
  7724. esac
  7725. fi
  7726. hardcode_libdir_flag_spec='-R$libdir'
  7727. hardcode_shlibpath_var=no
  7728. case $host_os in
  7729. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7730. *)
  7731. # The compiler driver will combine and reorder linker options,
  7732. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7733. # but is careful enough not to reorder.
  7734. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7735. if test "$GCC" = yes; then
  7736. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7737. else
  7738. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7739. fi
  7740. ;;
  7741. esac
  7742. link_all_deplibs=yes
  7743. ;;
  7744. sunos4*)
  7745. if test "x$host_vendor" = xsequent; then
  7746. # Use $CC to link under sequent, because it throws in some extra .o
  7747. # files that make .init and .fini sections work.
  7748. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7749. else
  7750. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7751. fi
  7752. hardcode_libdir_flag_spec='-L$libdir'
  7753. hardcode_direct=yes
  7754. hardcode_minus_L=yes
  7755. hardcode_shlibpath_var=no
  7756. ;;
  7757. sysv4)
  7758. case $host_vendor in
  7759. sni)
  7760. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7761. hardcode_direct=yes # is this really true???
  7762. ;;
  7763. siemens)
  7764. ## LD is ld it makes a PLAMLIB
  7765. ## CC just makes a GrossModule.
  7766. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7767. reload_cmds='$CC -r -o $output$reload_objs'
  7768. hardcode_direct=no
  7769. ;;
  7770. motorola)
  7771. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7772. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7773. ;;
  7774. esac
  7775. runpath_var='LD_RUN_PATH'
  7776. hardcode_shlibpath_var=no
  7777. ;;
  7778. sysv4.3*)
  7779. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7780. hardcode_shlibpath_var=no
  7781. export_dynamic_flag_spec='-Bexport'
  7782. ;;
  7783. sysv4*MP*)
  7784. if test -d /usr/nec; then
  7785. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7786. hardcode_shlibpath_var=no
  7787. runpath_var=LD_RUN_PATH
  7788. hardcode_runpath_var=yes
  7789. ld_shlibs=yes
  7790. fi
  7791. ;;
  7792. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7793. no_undefined_flag='${wl}-z,text'
  7794. archive_cmds_need_lc=no
  7795. hardcode_shlibpath_var=no
  7796. runpath_var='LD_RUN_PATH'
  7797. if test "$GCC" = yes; then
  7798. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7799. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7800. else
  7801. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7802. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7803. fi
  7804. ;;
  7805. sysv5* | sco3.2v5* | sco5v6*)
  7806. # Note: We can NOT use -z defs as we might desire, because we do not
  7807. # link with -lc, and that would cause any symbols used from libc to
  7808. # always be unresolved, which means just about no library would
  7809. # ever link correctly. If we're not using GNU ld we use -z text
  7810. # though, which does catch some bad symbols but isn't as heavy-handed
  7811. # as -z defs.
  7812. no_undefined_flag='${wl}-z,text'
  7813. allow_undefined_flag='${wl}-z,nodefs'
  7814. archive_cmds_need_lc=no
  7815. hardcode_shlibpath_var=no
  7816. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7817. hardcode_libdir_separator=':'
  7818. link_all_deplibs=yes
  7819. export_dynamic_flag_spec='${wl}-Bexport'
  7820. runpath_var='LD_RUN_PATH'
  7821. if test "$GCC" = yes; then
  7822. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7823. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7824. else
  7825. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7826. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7827. fi
  7828. ;;
  7829. uts4*)
  7830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7831. hardcode_libdir_flag_spec='-L$libdir'
  7832. hardcode_shlibpath_var=no
  7833. ;;
  7834. *)
  7835. ld_shlibs=no
  7836. ;;
  7837. esac
  7838. if test x$host_vendor = xsni; then
  7839. case $host in
  7840. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7841. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7842. ;;
  7843. esac
  7844. fi
  7845. fi
  7846. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7847. $as_echo "$ld_shlibs" >&6; }
  7848. test "$ld_shlibs" = no && can_build_shared=no
  7849. with_gnu_ld=$with_gnu_ld
  7850. #
  7851. # Do we need to explicitly link libc?
  7852. #
  7853. case "x$archive_cmds_need_lc" in
  7854. x|xyes)
  7855. # Assume -lc should be added
  7856. archive_cmds_need_lc=yes
  7857. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7858. case $archive_cmds in
  7859. *'~'*)
  7860. # FIXME: we may have to deal with multi-command sequences.
  7861. ;;
  7862. '$CC '*)
  7863. # Test whether the compiler implicitly links with -lc since on some
  7864. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7865. # to ld, don't add -lc before -lgcc.
  7866. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7867. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7868. $RM conftest*
  7869. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7870. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7871. (eval $ac_compile) 2>&5
  7872. ac_status=$?
  7873. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7874. (exit $ac_status); } 2>conftest.err; then
  7875. soname=conftest
  7876. lib=conftest
  7877. libobjs=conftest.$ac_objext
  7878. deplibs=
  7879. wl=$lt_prog_compiler_wl
  7880. pic_flag=$lt_prog_compiler_pic
  7881. compiler_flags=-v
  7882. linker_flags=-v
  7883. verstring=
  7884. output_objdir=.
  7885. libname=conftest
  7886. lt_save_allow_undefined_flag=$allow_undefined_flag
  7887. allow_undefined_flag=
  7888. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7889. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7890. ac_status=$?
  7891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. (exit $ac_status); }
  7893. then
  7894. archive_cmds_need_lc=no
  7895. else
  7896. archive_cmds_need_lc=yes
  7897. fi
  7898. allow_undefined_flag=$lt_save_allow_undefined_flag
  7899. else
  7900. cat conftest.err 1>&5
  7901. fi
  7902. $RM conftest*
  7903. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7904. $as_echo "$archive_cmds_need_lc" >&6; }
  7905. ;;
  7906. esac
  7907. fi
  7908. ;;
  7909. esac
  7910. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7911. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7912. if test "$GCC" = yes; then
  7913. case $host_os in
  7914. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7915. *) lt_awk_arg="/^libraries:/" ;;
  7916. esac
  7917. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7918. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7919. # if the path contains ";" then we assume it to be the separator
  7920. # otherwise default to the standard path separator (i.e. ":") - it is
  7921. # assumed that no part of a normal pathname contains ";" but that should
  7922. # okay in the real world where ";" in dirpaths is itself problematic.
  7923. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7924. else
  7925. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7926. fi
  7927. # Ok, now we have the path, separated by spaces, we can step through it
  7928. # and add multilib dir if necessary.
  7929. lt_tmp_lt_search_path_spec=
  7930. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7931. for lt_sys_path in $lt_search_path_spec; do
  7932. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7933. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7934. else
  7935. test -d "$lt_sys_path" && \
  7936. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7937. fi
  7938. done
  7939. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7940. BEGIN {RS=" "; FS="/|\n";} {
  7941. lt_foo="";
  7942. lt_count=0;
  7943. for (lt_i = NF; lt_i > 0; lt_i--) {
  7944. if ($lt_i != "" && $lt_i != ".") {
  7945. if ($lt_i == "..") {
  7946. lt_count++;
  7947. } else {
  7948. if (lt_count == 0) {
  7949. lt_foo="/" $lt_i lt_foo;
  7950. } else {
  7951. lt_count--;
  7952. }
  7953. }
  7954. }
  7955. }
  7956. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7957. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7958. }'`
  7959. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7960. else
  7961. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7962. fi
  7963. library_names_spec=
  7964. libname_spec='lib$name'
  7965. soname_spec=
  7966. shrext_cmds=".so"
  7967. postinstall_cmds=
  7968. postuninstall_cmds=
  7969. finish_cmds=
  7970. finish_eval=
  7971. shlibpath_var=
  7972. shlibpath_overrides_runpath=unknown
  7973. version_type=none
  7974. dynamic_linker="$host_os ld.so"
  7975. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7976. need_lib_prefix=unknown
  7977. hardcode_into_libs=no
  7978. # when you set need_version to no, make sure it does not cause -set_version
  7979. # flags to be left without arguments
  7980. need_version=unknown
  7981. case $host_os in
  7982. aix3*)
  7983. version_type=linux
  7984. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7985. shlibpath_var=LIBPATH
  7986. # AIX 3 has no versioning support, so we append a major version to the name.
  7987. soname_spec='${libname}${release}${shared_ext}$major'
  7988. ;;
  7989. aix[4-9]*)
  7990. version_type=linux
  7991. need_lib_prefix=no
  7992. need_version=no
  7993. hardcode_into_libs=yes
  7994. if test "$host_cpu" = ia64; then
  7995. # AIX 5 supports IA64
  7996. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7997. shlibpath_var=LD_LIBRARY_PATH
  7998. else
  7999. # With GCC up to 2.95.x, collect2 would create an import file
  8000. # for dependence libraries. The import file would start with
  8001. # the line `#! .'. This would cause the generated library to
  8002. # depend on `.', always an invalid library. This was fixed in
  8003. # development snapshots of GCC prior to 3.0.
  8004. case $host_os in
  8005. aix4 | aix4.[01] | aix4.[01].*)
  8006. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8007. echo ' yes '
  8008. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8009. :
  8010. else
  8011. can_build_shared=no
  8012. fi
  8013. ;;
  8014. esac
  8015. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8016. # soname into executable. Probably we can add versioning support to
  8017. # collect2, so additional links can be useful in future.
  8018. if test "$aix_use_runtimelinking" = yes; then
  8019. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8020. # instead of lib<name>.a to let people know that these are not
  8021. # typical AIX shared libraries.
  8022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8023. else
  8024. # We preserve .a as extension for shared libraries through AIX4.2
  8025. # and later when we are not doing run time linking.
  8026. library_names_spec='${libname}${release}.a $libname.a'
  8027. soname_spec='${libname}${release}${shared_ext}$major'
  8028. fi
  8029. shlibpath_var=LIBPATH
  8030. fi
  8031. ;;
  8032. amigaos*)
  8033. case $host_cpu in
  8034. powerpc)
  8035. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8036. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8038. ;;
  8039. m68k)
  8040. library_names_spec='$libname.ixlibrary $libname.a'
  8041. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8042. 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'
  8043. ;;
  8044. esac
  8045. ;;
  8046. beos*)
  8047. library_names_spec='${libname}${shared_ext}'
  8048. dynamic_linker="$host_os ld.so"
  8049. shlibpath_var=LIBRARY_PATH
  8050. ;;
  8051. bsdi[45]*)
  8052. version_type=linux
  8053. need_version=no
  8054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8055. soname_spec='${libname}${release}${shared_ext}$major'
  8056. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8057. shlibpath_var=LD_LIBRARY_PATH
  8058. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8059. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8060. # the default ld.so.conf also contains /usr/contrib/lib and
  8061. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8062. # libtool to hard-code these into programs
  8063. ;;
  8064. cygwin* | mingw* | pw32* | cegcc*)
  8065. version_type=windows
  8066. shrext_cmds=".dll"
  8067. need_version=no
  8068. need_lib_prefix=no
  8069. case $GCC,$host_os in
  8070. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8071. library_names_spec='$libname.dll.a'
  8072. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8073. postinstall_cmds='base_file=`basename \${file}`~
  8074. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8075. dldir=$destdir/`dirname \$dlpath`~
  8076. test -d \$dldir || mkdir -p \$dldir~
  8077. $install_prog $dir/$dlname \$dldir/$dlname~
  8078. chmod a+x \$dldir/$dlname~
  8079. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8080. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8081. fi'
  8082. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8083. dlpath=$dir/\$dldll~
  8084. $RM \$dlpath'
  8085. shlibpath_overrides_runpath=yes
  8086. case $host_os in
  8087. cygwin*)
  8088. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8089. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8090. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8091. ;;
  8092. mingw* | cegcc*)
  8093. # MinGW DLLs use traditional 'lib' prefix
  8094. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8095. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8096. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8097. # It is most probably a Windows format PATH printed by
  8098. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8099. # path with ; separators, and with drive letters. We can handle the
  8100. # drive letters (cygwin fileutils understands them), so leave them,
  8101. # especially as we might pass files found there to a mingw objdump,
  8102. # which wouldn't understand a cygwinified path. Ahh.
  8103. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8104. else
  8105. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8106. fi
  8107. ;;
  8108. pw32*)
  8109. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8110. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8111. ;;
  8112. esac
  8113. ;;
  8114. *)
  8115. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8116. ;;
  8117. esac
  8118. dynamic_linker='Win32 ld.exe'
  8119. # FIXME: first we should search . and the directory the executable is in
  8120. shlibpath_var=PATH
  8121. ;;
  8122. darwin* | rhapsody*)
  8123. dynamic_linker="$host_os dyld"
  8124. version_type=darwin
  8125. need_lib_prefix=no
  8126. need_version=no
  8127. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8128. soname_spec='${libname}${release}${major}$shared_ext'
  8129. shlibpath_overrides_runpath=yes
  8130. shlibpath_var=DYLD_LIBRARY_PATH
  8131. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8132. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8133. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8134. ;;
  8135. dgux*)
  8136. version_type=linux
  8137. need_lib_prefix=no
  8138. need_version=no
  8139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8140. soname_spec='${libname}${release}${shared_ext}$major'
  8141. shlibpath_var=LD_LIBRARY_PATH
  8142. ;;
  8143. freebsd1*)
  8144. dynamic_linker=no
  8145. ;;
  8146. freebsd* | dragonfly*)
  8147. # DragonFly does not have aout. When/if they implement a new
  8148. # versioning mechanism, adjust this.
  8149. if test -x /usr/bin/objformat; then
  8150. objformat=`/usr/bin/objformat`
  8151. else
  8152. case $host_os in
  8153. freebsd[123]*) objformat=aout ;;
  8154. *) objformat=elf ;;
  8155. esac
  8156. fi
  8157. # Handle Gentoo/FreeBSD as it was Linux
  8158. case $host_vendor in
  8159. gentoo)
  8160. version_type=linux ;;
  8161. *)
  8162. version_type=freebsd-$objformat ;;
  8163. esac
  8164. case $version_type in
  8165. freebsd-elf*)
  8166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8167. need_version=no
  8168. need_lib_prefix=no
  8169. ;;
  8170. freebsd-*)
  8171. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8172. need_version=yes
  8173. ;;
  8174. linux)
  8175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8176. soname_spec='${libname}${release}${shared_ext}$major'
  8177. need_lib_prefix=no
  8178. need_version=no
  8179. ;;
  8180. esac
  8181. shlibpath_var=LD_LIBRARY_PATH
  8182. case $host_os in
  8183. freebsd2*)
  8184. shlibpath_overrides_runpath=yes
  8185. ;;
  8186. freebsd3.[01]* | freebsdelf3.[01]*)
  8187. shlibpath_overrides_runpath=yes
  8188. hardcode_into_libs=yes
  8189. ;;
  8190. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8191. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8192. shlibpath_overrides_runpath=no
  8193. hardcode_into_libs=yes
  8194. ;;
  8195. *) # from 4.6 on, and DragonFly
  8196. shlibpath_overrides_runpath=yes
  8197. hardcode_into_libs=yes
  8198. ;;
  8199. esac
  8200. ;;
  8201. gnu*)
  8202. version_type=linux
  8203. need_lib_prefix=no
  8204. need_version=no
  8205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8206. soname_spec='${libname}${release}${shared_ext}$major'
  8207. shlibpath_var=LD_LIBRARY_PATH
  8208. hardcode_into_libs=yes
  8209. ;;
  8210. hpux9* | hpux10* | hpux11*)
  8211. # Give a soname corresponding to the major version so that dld.sl refuses to
  8212. # link against other versions.
  8213. version_type=sunos
  8214. need_lib_prefix=no
  8215. need_version=no
  8216. case $host_cpu in
  8217. ia64*)
  8218. shrext_cmds='.so'
  8219. hardcode_into_libs=yes
  8220. dynamic_linker="$host_os dld.so"
  8221. shlibpath_var=LD_LIBRARY_PATH
  8222. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8224. soname_spec='${libname}${release}${shared_ext}$major'
  8225. if test "X$HPUX_IA64_MODE" = X32; then
  8226. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8227. else
  8228. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8229. fi
  8230. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8231. ;;
  8232. hppa*64*)
  8233. shrext_cmds='.sl'
  8234. hardcode_into_libs=yes
  8235. dynamic_linker="$host_os dld.sl"
  8236. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8237. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8239. soname_spec='${libname}${release}${shared_ext}$major'
  8240. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8241. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8242. ;;
  8243. *)
  8244. shrext_cmds='.sl'
  8245. dynamic_linker="$host_os dld.sl"
  8246. shlibpath_var=SHLIB_PATH
  8247. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8249. soname_spec='${libname}${release}${shared_ext}$major'
  8250. ;;
  8251. esac
  8252. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8253. postinstall_cmds='chmod 555 $lib'
  8254. ;;
  8255. interix[3-9]*)
  8256. version_type=linux
  8257. need_lib_prefix=no
  8258. need_version=no
  8259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8260. soname_spec='${libname}${release}${shared_ext}$major'
  8261. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8262. shlibpath_var=LD_LIBRARY_PATH
  8263. shlibpath_overrides_runpath=no
  8264. hardcode_into_libs=yes
  8265. ;;
  8266. irix5* | irix6* | nonstopux*)
  8267. case $host_os in
  8268. nonstopux*) version_type=nonstopux ;;
  8269. *)
  8270. if test "$lt_cv_prog_gnu_ld" = yes; then
  8271. version_type=linux
  8272. else
  8273. version_type=irix
  8274. fi ;;
  8275. esac
  8276. need_lib_prefix=no
  8277. need_version=no
  8278. soname_spec='${libname}${release}${shared_ext}$major'
  8279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8280. case $host_os in
  8281. irix5* | nonstopux*)
  8282. libsuff= shlibsuff=
  8283. ;;
  8284. *)
  8285. case $LD in # libtool.m4 will add one of these switches to LD
  8286. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8287. libsuff= shlibsuff= libmagic=32-bit;;
  8288. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8289. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8290. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8291. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8292. *) libsuff= shlibsuff= libmagic=never-match;;
  8293. esac
  8294. ;;
  8295. esac
  8296. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8297. shlibpath_overrides_runpath=no
  8298. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8299. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8300. hardcode_into_libs=yes
  8301. ;;
  8302. # No shared lib support for Linux oldld, aout, or coff.
  8303. linux*oldld* | linux*aout* | linux*coff*)
  8304. dynamic_linker=no
  8305. ;;
  8306. # This must be Linux ELF.
  8307. linux* | k*bsd*-gnu)
  8308. version_type=linux
  8309. need_lib_prefix=no
  8310. need_version=no
  8311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8312. soname_spec='${libname}${release}${shared_ext}$major'
  8313. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8314. shlibpath_var=LD_LIBRARY_PATH
  8315. shlibpath_overrides_runpath=no
  8316. # Some binutils ld are patched to set DT_RUNPATH
  8317. save_LDFLAGS=$LDFLAGS
  8318. save_libdir=$libdir
  8319. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8320. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8321. cat >conftest.$ac_ext <<_ACEOF
  8322. /* confdefs.h. */
  8323. _ACEOF
  8324. cat confdefs.h >>conftest.$ac_ext
  8325. cat >>conftest.$ac_ext <<_ACEOF
  8326. /* end confdefs.h. */
  8327. int
  8328. main ()
  8329. {
  8330. ;
  8331. return 0;
  8332. }
  8333. _ACEOF
  8334. rm -f conftest.$ac_objext conftest$ac_exeext
  8335. if { (ac_try="$ac_link"
  8336. case "(($ac_try" in
  8337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8338. *) ac_try_echo=$ac_try;;
  8339. esac
  8340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8341. $as_echo "$ac_try_echo") >&5
  8342. (eval "$ac_link") 2>conftest.er1
  8343. ac_status=$?
  8344. grep -v '^ *+' conftest.er1 >conftest.err
  8345. rm -f conftest.er1
  8346. cat conftest.err >&5
  8347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8348. (exit $ac_status); } && {
  8349. test -z "$ac_c_werror_flag" ||
  8350. test ! -s conftest.err
  8351. } && test -s conftest$ac_exeext && {
  8352. test "$cross_compiling" = yes ||
  8353. $as_test_x conftest$ac_exeext
  8354. }; then
  8355. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8356. shlibpath_overrides_runpath=yes
  8357. fi
  8358. else
  8359. $as_echo "$as_me: failed program was:" >&5
  8360. sed 's/^/| /' conftest.$ac_ext >&5
  8361. fi
  8362. rm -rf conftest.dSYM
  8363. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8364. conftest$ac_exeext conftest.$ac_ext
  8365. LDFLAGS=$save_LDFLAGS
  8366. libdir=$save_libdir
  8367. # This implies no fast_install, which is unacceptable.
  8368. # Some rework will be needed to allow for fast_install
  8369. # before this can be enabled.
  8370. hardcode_into_libs=yes
  8371. # Append ld.so.conf contents to the search path
  8372. if test -f /etc/ld.so.conf; then
  8373. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8374. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8375. fi
  8376. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8377. # powerpc, because MkLinux only supported shared libraries with the
  8378. # GNU dynamic linker. Since this was broken with cross compilers,
  8379. # most powerpc-linux boxes support dynamic linking these days and
  8380. # people can always --disable-shared, the test was removed, and we
  8381. # assume the GNU/Linux dynamic linker is in use.
  8382. dynamic_linker='GNU/Linux ld.so'
  8383. ;;
  8384. netbsd*)
  8385. version_type=sunos
  8386. need_lib_prefix=no
  8387. need_version=no
  8388. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8390. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8391. dynamic_linker='NetBSD (a.out) ld.so'
  8392. else
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. dynamic_linker='NetBSD ld.elf_so'
  8396. fi
  8397. shlibpath_var=LD_LIBRARY_PATH
  8398. shlibpath_overrides_runpath=yes
  8399. hardcode_into_libs=yes
  8400. ;;
  8401. newsos6)
  8402. version_type=linux
  8403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8404. shlibpath_var=LD_LIBRARY_PATH
  8405. shlibpath_overrides_runpath=yes
  8406. ;;
  8407. *nto* | *qnx*)
  8408. version_type=qnx
  8409. need_lib_prefix=no
  8410. need_version=no
  8411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8412. soname_spec='${libname}${release}${shared_ext}$major'
  8413. shlibpath_var=LD_LIBRARY_PATH
  8414. shlibpath_overrides_runpath=no
  8415. hardcode_into_libs=yes
  8416. dynamic_linker='ldqnx.so'
  8417. ;;
  8418. openbsd*)
  8419. version_type=sunos
  8420. sys_lib_dlsearch_path_spec="/usr/lib"
  8421. need_lib_prefix=no
  8422. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8423. case $host_os in
  8424. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8425. *) need_version=no ;;
  8426. esac
  8427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8428. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8429. shlibpath_var=LD_LIBRARY_PATH
  8430. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8431. case $host_os in
  8432. openbsd2.[89] | openbsd2.[89].*)
  8433. shlibpath_overrides_runpath=no
  8434. ;;
  8435. *)
  8436. shlibpath_overrides_runpath=yes
  8437. ;;
  8438. esac
  8439. else
  8440. shlibpath_overrides_runpath=yes
  8441. fi
  8442. ;;
  8443. os2*)
  8444. libname_spec='$name'
  8445. shrext_cmds=".dll"
  8446. need_lib_prefix=no
  8447. library_names_spec='$libname${shared_ext} $libname.a'
  8448. dynamic_linker='OS/2 ld.exe'
  8449. shlibpath_var=LIBPATH
  8450. ;;
  8451. osf3* | osf4* | osf5*)
  8452. version_type=osf
  8453. need_lib_prefix=no
  8454. need_version=no
  8455. soname_spec='${libname}${release}${shared_ext}$major'
  8456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8457. shlibpath_var=LD_LIBRARY_PATH
  8458. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8459. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8460. ;;
  8461. rdos*)
  8462. dynamic_linker=no
  8463. ;;
  8464. solaris*)
  8465. version_type=linux
  8466. need_lib_prefix=no
  8467. need_version=no
  8468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8469. soname_spec='${libname}${release}${shared_ext}$major'
  8470. shlibpath_var=LD_LIBRARY_PATH
  8471. shlibpath_overrides_runpath=yes
  8472. hardcode_into_libs=yes
  8473. # ldd complains unless libraries are executable
  8474. postinstall_cmds='chmod +x $lib'
  8475. ;;
  8476. sunos4*)
  8477. version_type=sunos
  8478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8479. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8480. shlibpath_var=LD_LIBRARY_PATH
  8481. shlibpath_overrides_runpath=yes
  8482. if test "$with_gnu_ld" = yes; then
  8483. need_lib_prefix=no
  8484. fi
  8485. need_version=yes
  8486. ;;
  8487. sysv4 | sysv4.3*)
  8488. version_type=linux
  8489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8490. soname_spec='${libname}${release}${shared_ext}$major'
  8491. shlibpath_var=LD_LIBRARY_PATH
  8492. case $host_vendor in
  8493. sni)
  8494. shlibpath_overrides_runpath=no
  8495. need_lib_prefix=no
  8496. runpath_var=LD_RUN_PATH
  8497. ;;
  8498. siemens)
  8499. need_lib_prefix=no
  8500. ;;
  8501. motorola)
  8502. need_lib_prefix=no
  8503. need_version=no
  8504. shlibpath_overrides_runpath=no
  8505. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8506. ;;
  8507. esac
  8508. ;;
  8509. sysv4*MP*)
  8510. if test -d /usr/nec ;then
  8511. version_type=linux
  8512. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8513. soname_spec='$libname${shared_ext}.$major'
  8514. shlibpath_var=LD_LIBRARY_PATH
  8515. fi
  8516. ;;
  8517. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8518. version_type=freebsd-elf
  8519. need_lib_prefix=no
  8520. need_version=no
  8521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. shlibpath_overrides_runpath=yes
  8525. hardcode_into_libs=yes
  8526. if test "$with_gnu_ld" = yes; then
  8527. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8528. else
  8529. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8530. case $host_os in
  8531. sco3.2v5*)
  8532. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8533. ;;
  8534. esac
  8535. fi
  8536. sys_lib_dlsearch_path_spec='/usr/lib'
  8537. ;;
  8538. tpf*)
  8539. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8540. version_type=linux
  8541. need_lib_prefix=no
  8542. need_version=no
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8544. shlibpath_var=LD_LIBRARY_PATH
  8545. shlibpath_overrides_runpath=no
  8546. hardcode_into_libs=yes
  8547. ;;
  8548. uts4*)
  8549. version_type=linux
  8550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8551. soname_spec='${libname}${release}${shared_ext}$major'
  8552. shlibpath_var=LD_LIBRARY_PATH
  8553. ;;
  8554. *)
  8555. dynamic_linker=no
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8559. $as_echo "$dynamic_linker" >&6; }
  8560. test "$dynamic_linker" = no && can_build_shared=no
  8561. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8562. if test "$GCC" = yes; then
  8563. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8564. fi
  8565. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8566. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8567. fi
  8568. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8569. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8570. fi
  8571. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8572. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8573. hardcode_action=
  8574. if test -n "$hardcode_libdir_flag_spec" ||
  8575. test -n "$runpath_var" ||
  8576. test "X$hardcode_automatic" = "Xyes" ; then
  8577. # We can hardcode non-existent directories.
  8578. if test "$hardcode_direct" != no &&
  8579. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8580. # have to relink, otherwise we might link with an installed library
  8581. # when we should be linking with a yet-to-be-installed one
  8582. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8583. test "$hardcode_minus_L" != no; then
  8584. # Linking always hardcodes the temporary library directory.
  8585. hardcode_action=relink
  8586. else
  8587. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8588. hardcode_action=immediate
  8589. fi
  8590. else
  8591. # We cannot hardcode anything, or else we can only hardcode existing
  8592. # directories.
  8593. hardcode_action=unsupported
  8594. fi
  8595. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8596. $as_echo "$hardcode_action" >&6; }
  8597. if test "$hardcode_action" = relink ||
  8598. test "$inherit_rpath" = yes; then
  8599. # Fast installation is not supported
  8600. enable_fast_install=no
  8601. elif test "$shlibpath_overrides_runpath" = yes ||
  8602. test "$enable_shared" = no; then
  8603. # Fast installation is not necessary
  8604. enable_fast_install=needless
  8605. fi
  8606. if test "x$enable_dlopen" != xyes; then
  8607. enable_dlopen=unknown
  8608. enable_dlopen_self=unknown
  8609. enable_dlopen_self_static=unknown
  8610. else
  8611. lt_cv_dlopen=no
  8612. lt_cv_dlopen_libs=
  8613. case $host_os in
  8614. beos*)
  8615. lt_cv_dlopen="load_add_on"
  8616. lt_cv_dlopen_libs=
  8617. lt_cv_dlopen_self=yes
  8618. ;;
  8619. mingw* | pw32* | cegcc*)
  8620. lt_cv_dlopen="LoadLibrary"
  8621. lt_cv_dlopen_libs=
  8622. ;;
  8623. cygwin*)
  8624. lt_cv_dlopen="dlopen"
  8625. lt_cv_dlopen_libs=
  8626. ;;
  8627. darwin*)
  8628. # if libdl is installed we need to link against it
  8629. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8630. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8631. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8632. $as_echo_n "(cached) " >&6
  8633. else
  8634. ac_check_lib_save_LIBS=$LIBS
  8635. LIBS="-ldl $LIBS"
  8636. cat >conftest.$ac_ext <<_ACEOF
  8637. /* confdefs.h. */
  8638. _ACEOF
  8639. cat confdefs.h >>conftest.$ac_ext
  8640. cat >>conftest.$ac_ext <<_ACEOF
  8641. /* end confdefs.h. */
  8642. /* Override any GCC internal prototype to avoid an error.
  8643. Use char because int might match the return type of a GCC
  8644. builtin and then its argument prototype would still apply. */
  8645. #ifdef __cplusplus
  8646. extern "C"
  8647. #endif
  8648. char dlopen ();
  8649. int
  8650. main ()
  8651. {
  8652. return dlopen ();
  8653. ;
  8654. return 0;
  8655. }
  8656. _ACEOF
  8657. rm -f conftest.$ac_objext conftest$ac_exeext
  8658. if { (ac_try="$ac_link"
  8659. case "(($ac_try" in
  8660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8661. *) ac_try_echo=$ac_try;;
  8662. esac
  8663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8664. $as_echo "$ac_try_echo") >&5
  8665. (eval "$ac_link") 2>conftest.er1
  8666. ac_status=$?
  8667. grep -v '^ *+' conftest.er1 >conftest.err
  8668. rm -f conftest.er1
  8669. cat conftest.err >&5
  8670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8671. (exit $ac_status); } && {
  8672. test -z "$ac_c_werror_flag" ||
  8673. test ! -s conftest.err
  8674. } && test -s conftest$ac_exeext && {
  8675. test "$cross_compiling" = yes ||
  8676. $as_test_x conftest$ac_exeext
  8677. }; then
  8678. ac_cv_lib_dl_dlopen=yes
  8679. else
  8680. $as_echo "$as_me: failed program was:" >&5
  8681. sed 's/^/| /' conftest.$ac_ext >&5
  8682. ac_cv_lib_dl_dlopen=no
  8683. fi
  8684. rm -rf conftest.dSYM
  8685. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8686. conftest$ac_exeext conftest.$ac_ext
  8687. LIBS=$ac_check_lib_save_LIBS
  8688. fi
  8689. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8690. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8691. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8692. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8693. else
  8694. lt_cv_dlopen="dyld"
  8695. lt_cv_dlopen_libs=
  8696. lt_cv_dlopen_self=yes
  8697. fi
  8698. ;;
  8699. *)
  8700. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8701. $as_echo_n "checking for shl_load... " >&6; }
  8702. if test "${ac_cv_func_shl_load+set}" = set; then
  8703. $as_echo_n "(cached) " >&6
  8704. else
  8705. cat >conftest.$ac_ext <<_ACEOF
  8706. /* confdefs.h. */
  8707. _ACEOF
  8708. cat confdefs.h >>conftest.$ac_ext
  8709. cat >>conftest.$ac_ext <<_ACEOF
  8710. /* end confdefs.h. */
  8711. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8712. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8713. #define shl_load innocuous_shl_load
  8714. /* System header to define __stub macros and hopefully few prototypes,
  8715. which can conflict with char shl_load (); below.
  8716. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8717. <limits.h> exists even on freestanding compilers. */
  8718. #ifdef __STDC__
  8719. # include <limits.h>
  8720. #else
  8721. # include <assert.h>
  8722. #endif
  8723. #undef shl_load
  8724. /* Override any GCC internal prototype to avoid an error.
  8725. Use char because int might match the return type of a GCC
  8726. builtin and then its argument prototype would still apply. */
  8727. #ifdef __cplusplus
  8728. extern "C"
  8729. #endif
  8730. char shl_load ();
  8731. /* The GNU C library defines this for functions which it implements
  8732. to always fail with ENOSYS. Some functions are actually named
  8733. something starting with __ and the normal name is an alias. */
  8734. #if defined __stub_shl_load || defined __stub___shl_load
  8735. choke me
  8736. #endif
  8737. int
  8738. main ()
  8739. {
  8740. return shl_load ();
  8741. ;
  8742. return 0;
  8743. }
  8744. _ACEOF
  8745. rm -f conftest.$ac_objext conftest$ac_exeext
  8746. if { (ac_try="$ac_link"
  8747. case "(($ac_try" in
  8748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8749. *) ac_try_echo=$ac_try;;
  8750. esac
  8751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8752. $as_echo "$ac_try_echo") >&5
  8753. (eval "$ac_link") 2>conftest.er1
  8754. ac_status=$?
  8755. grep -v '^ *+' conftest.er1 >conftest.err
  8756. rm -f conftest.er1
  8757. cat conftest.err >&5
  8758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8759. (exit $ac_status); } && {
  8760. test -z "$ac_c_werror_flag" ||
  8761. test ! -s conftest.err
  8762. } && test -s conftest$ac_exeext && {
  8763. test "$cross_compiling" = yes ||
  8764. $as_test_x conftest$ac_exeext
  8765. }; then
  8766. ac_cv_func_shl_load=yes
  8767. else
  8768. $as_echo "$as_me: failed program was:" >&5
  8769. sed 's/^/| /' conftest.$ac_ext >&5
  8770. ac_cv_func_shl_load=no
  8771. fi
  8772. rm -rf conftest.dSYM
  8773. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8774. conftest$ac_exeext conftest.$ac_ext
  8775. fi
  8776. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8777. $as_echo "$ac_cv_func_shl_load" >&6; }
  8778. if test "x$ac_cv_func_shl_load" = x""yes; then
  8779. lt_cv_dlopen="shl_load"
  8780. else
  8781. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8782. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8783. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8784. $as_echo_n "(cached) " >&6
  8785. else
  8786. ac_check_lib_save_LIBS=$LIBS
  8787. LIBS="-ldld $LIBS"
  8788. cat >conftest.$ac_ext <<_ACEOF
  8789. /* confdefs.h. */
  8790. _ACEOF
  8791. cat confdefs.h >>conftest.$ac_ext
  8792. cat >>conftest.$ac_ext <<_ACEOF
  8793. /* end confdefs.h. */
  8794. /* Override any GCC internal prototype to avoid an error.
  8795. Use char because int might match the return type of a GCC
  8796. builtin and then its argument prototype would still apply. */
  8797. #ifdef __cplusplus
  8798. extern "C"
  8799. #endif
  8800. char shl_load ();
  8801. int
  8802. main ()
  8803. {
  8804. return shl_load ();
  8805. ;
  8806. return 0;
  8807. }
  8808. _ACEOF
  8809. rm -f conftest.$ac_objext conftest$ac_exeext
  8810. if { (ac_try="$ac_link"
  8811. case "(($ac_try" in
  8812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8813. *) ac_try_echo=$ac_try;;
  8814. esac
  8815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8816. $as_echo "$ac_try_echo") >&5
  8817. (eval "$ac_link") 2>conftest.er1
  8818. ac_status=$?
  8819. grep -v '^ *+' conftest.er1 >conftest.err
  8820. rm -f conftest.er1
  8821. cat conftest.err >&5
  8822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823. (exit $ac_status); } && {
  8824. test -z "$ac_c_werror_flag" ||
  8825. test ! -s conftest.err
  8826. } && test -s conftest$ac_exeext && {
  8827. test "$cross_compiling" = yes ||
  8828. $as_test_x conftest$ac_exeext
  8829. }; then
  8830. ac_cv_lib_dld_shl_load=yes
  8831. else
  8832. $as_echo "$as_me: failed program was:" >&5
  8833. sed 's/^/| /' conftest.$ac_ext >&5
  8834. ac_cv_lib_dld_shl_load=no
  8835. fi
  8836. rm -rf conftest.dSYM
  8837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8838. conftest$ac_exeext conftest.$ac_ext
  8839. LIBS=$ac_check_lib_save_LIBS
  8840. fi
  8841. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8842. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8843. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8844. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8845. else
  8846. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8847. $as_echo_n "checking for dlopen... " >&6; }
  8848. if test "${ac_cv_func_dlopen+set}" = set; then
  8849. $as_echo_n "(cached) " >&6
  8850. else
  8851. cat >conftest.$ac_ext <<_ACEOF
  8852. /* confdefs.h. */
  8853. _ACEOF
  8854. cat confdefs.h >>conftest.$ac_ext
  8855. cat >>conftest.$ac_ext <<_ACEOF
  8856. /* end confdefs.h. */
  8857. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8859. #define dlopen innocuous_dlopen
  8860. /* System header to define __stub macros and hopefully few prototypes,
  8861. which can conflict with char dlopen (); below.
  8862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8863. <limits.h> exists even on freestanding compilers. */
  8864. #ifdef __STDC__
  8865. # include <limits.h>
  8866. #else
  8867. # include <assert.h>
  8868. #endif
  8869. #undef dlopen
  8870. /* Override any GCC internal prototype to avoid an error.
  8871. Use char because int might match the return type of a GCC
  8872. builtin and then its argument prototype would still apply. */
  8873. #ifdef __cplusplus
  8874. extern "C"
  8875. #endif
  8876. char dlopen ();
  8877. /* The GNU C library defines this for functions which it implements
  8878. to always fail with ENOSYS. Some functions are actually named
  8879. something starting with __ and the normal name is an alias. */
  8880. #if defined __stub_dlopen || defined __stub___dlopen
  8881. choke me
  8882. #endif
  8883. int
  8884. main ()
  8885. {
  8886. return dlopen ();
  8887. ;
  8888. return 0;
  8889. }
  8890. _ACEOF
  8891. rm -f conftest.$ac_objext conftest$ac_exeext
  8892. if { (ac_try="$ac_link"
  8893. case "(($ac_try" in
  8894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8895. *) ac_try_echo=$ac_try;;
  8896. esac
  8897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8898. $as_echo "$ac_try_echo") >&5
  8899. (eval "$ac_link") 2>conftest.er1
  8900. ac_status=$?
  8901. grep -v '^ *+' conftest.er1 >conftest.err
  8902. rm -f conftest.er1
  8903. cat conftest.err >&5
  8904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905. (exit $ac_status); } && {
  8906. test -z "$ac_c_werror_flag" ||
  8907. test ! -s conftest.err
  8908. } && test -s conftest$ac_exeext && {
  8909. test "$cross_compiling" = yes ||
  8910. $as_test_x conftest$ac_exeext
  8911. }; then
  8912. ac_cv_func_dlopen=yes
  8913. else
  8914. $as_echo "$as_me: failed program was:" >&5
  8915. sed 's/^/| /' conftest.$ac_ext >&5
  8916. ac_cv_func_dlopen=no
  8917. fi
  8918. rm -rf conftest.dSYM
  8919. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8920. conftest$ac_exeext conftest.$ac_ext
  8921. fi
  8922. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8923. $as_echo "$ac_cv_func_dlopen" >&6; }
  8924. if test "x$ac_cv_func_dlopen" = x""yes; then
  8925. lt_cv_dlopen="dlopen"
  8926. else
  8927. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8928. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8929. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8930. $as_echo_n "(cached) " >&6
  8931. else
  8932. ac_check_lib_save_LIBS=$LIBS
  8933. LIBS="-ldl $LIBS"
  8934. cat >conftest.$ac_ext <<_ACEOF
  8935. /* confdefs.h. */
  8936. _ACEOF
  8937. cat confdefs.h >>conftest.$ac_ext
  8938. cat >>conftest.$ac_ext <<_ACEOF
  8939. /* end confdefs.h. */
  8940. /* Override any GCC internal prototype to avoid an error.
  8941. Use char because int might match the return type of a GCC
  8942. builtin and then its argument prototype would still apply. */
  8943. #ifdef __cplusplus
  8944. extern "C"
  8945. #endif
  8946. char dlopen ();
  8947. int
  8948. main ()
  8949. {
  8950. return dlopen ();
  8951. ;
  8952. return 0;
  8953. }
  8954. _ACEOF
  8955. rm -f conftest.$ac_objext conftest$ac_exeext
  8956. if { (ac_try="$ac_link"
  8957. case "(($ac_try" in
  8958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8959. *) ac_try_echo=$ac_try;;
  8960. esac
  8961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8962. $as_echo "$ac_try_echo") >&5
  8963. (eval "$ac_link") 2>conftest.er1
  8964. ac_status=$?
  8965. grep -v '^ *+' conftest.er1 >conftest.err
  8966. rm -f conftest.er1
  8967. cat conftest.err >&5
  8968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8969. (exit $ac_status); } && {
  8970. test -z "$ac_c_werror_flag" ||
  8971. test ! -s conftest.err
  8972. } && test -s conftest$ac_exeext && {
  8973. test "$cross_compiling" = yes ||
  8974. $as_test_x conftest$ac_exeext
  8975. }; then
  8976. ac_cv_lib_dl_dlopen=yes
  8977. else
  8978. $as_echo "$as_me: failed program was:" >&5
  8979. sed 's/^/| /' conftest.$ac_ext >&5
  8980. ac_cv_lib_dl_dlopen=no
  8981. fi
  8982. rm -rf conftest.dSYM
  8983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8984. conftest$ac_exeext conftest.$ac_ext
  8985. LIBS=$ac_check_lib_save_LIBS
  8986. fi
  8987. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8988. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8989. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8990. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8991. else
  8992. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8993. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8994. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8995. $as_echo_n "(cached) " >&6
  8996. else
  8997. ac_check_lib_save_LIBS=$LIBS
  8998. LIBS="-lsvld $LIBS"
  8999. cat >conftest.$ac_ext <<_ACEOF
  9000. /* confdefs.h. */
  9001. _ACEOF
  9002. cat confdefs.h >>conftest.$ac_ext
  9003. cat >>conftest.$ac_ext <<_ACEOF
  9004. /* end confdefs.h. */
  9005. /* Override any GCC internal prototype to avoid an error.
  9006. Use char because int might match the return type of a GCC
  9007. builtin and then its argument prototype would still apply. */
  9008. #ifdef __cplusplus
  9009. extern "C"
  9010. #endif
  9011. char dlopen ();
  9012. int
  9013. main ()
  9014. {
  9015. return dlopen ();
  9016. ;
  9017. return 0;
  9018. }
  9019. _ACEOF
  9020. rm -f conftest.$ac_objext conftest$ac_exeext
  9021. if { (ac_try="$ac_link"
  9022. case "(($ac_try" in
  9023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9024. *) ac_try_echo=$ac_try;;
  9025. esac
  9026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9027. $as_echo "$ac_try_echo") >&5
  9028. (eval "$ac_link") 2>conftest.er1
  9029. ac_status=$?
  9030. grep -v '^ *+' conftest.er1 >conftest.err
  9031. rm -f conftest.er1
  9032. cat conftest.err >&5
  9033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9034. (exit $ac_status); } && {
  9035. test -z "$ac_c_werror_flag" ||
  9036. test ! -s conftest.err
  9037. } && test -s conftest$ac_exeext && {
  9038. test "$cross_compiling" = yes ||
  9039. $as_test_x conftest$ac_exeext
  9040. }; then
  9041. ac_cv_lib_svld_dlopen=yes
  9042. else
  9043. $as_echo "$as_me: failed program was:" >&5
  9044. sed 's/^/| /' conftest.$ac_ext >&5
  9045. ac_cv_lib_svld_dlopen=no
  9046. fi
  9047. rm -rf conftest.dSYM
  9048. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. LIBS=$ac_check_lib_save_LIBS
  9051. fi
  9052. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9053. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9054. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9055. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9056. else
  9057. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9058. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9059. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9060. $as_echo_n "(cached) " >&6
  9061. else
  9062. ac_check_lib_save_LIBS=$LIBS
  9063. LIBS="-ldld $LIBS"
  9064. cat >conftest.$ac_ext <<_ACEOF
  9065. /* confdefs.h. */
  9066. _ACEOF
  9067. cat confdefs.h >>conftest.$ac_ext
  9068. cat >>conftest.$ac_ext <<_ACEOF
  9069. /* end confdefs.h. */
  9070. /* Override any GCC internal prototype to avoid an error.
  9071. Use char because int might match the return type of a GCC
  9072. builtin and then its argument prototype would still apply. */
  9073. #ifdef __cplusplus
  9074. extern "C"
  9075. #endif
  9076. char dld_link ();
  9077. int
  9078. main ()
  9079. {
  9080. return dld_link ();
  9081. ;
  9082. return 0;
  9083. }
  9084. _ACEOF
  9085. rm -f conftest.$ac_objext conftest$ac_exeext
  9086. if { (ac_try="$ac_link"
  9087. case "(($ac_try" in
  9088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9089. *) ac_try_echo=$ac_try;;
  9090. esac
  9091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9092. $as_echo "$ac_try_echo") >&5
  9093. (eval "$ac_link") 2>conftest.er1
  9094. ac_status=$?
  9095. grep -v '^ *+' conftest.er1 >conftest.err
  9096. rm -f conftest.er1
  9097. cat conftest.err >&5
  9098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); } && {
  9100. test -z "$ac_c_werror_flag" ||
  9101. test ! -s conftest.err
  9102. } && test -s conftest$ac_exeext && {
  9103. test "$cross_compiling" = yes ||
  9104. $as_test_x conftest$ac_exeext
  9105. }; then
  9106. ac_cv_lib_dld_dld_link=yes
  9107. else
  9108. $as_echo "$as_me: failed program was:" >&5
  9109. sed 's/^/| /' conftest.$ac_ext >&5
  9110. ac_cv_lib_dld_dld_link=no
  9111. fi
  9112. rm -rf conftest.dSYM
  9113. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. LIBS=$ac_check_lib_save_LIBS
  9116. fi
  9117. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9118. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9119. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9120. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9121. fi
  9122. fi
  9123. fi
  9124. fi
  9125. fi
  9126. fi
  9127. ;;
  9128. esac
  9129. if test "x$lt_cv_dlopen" != xno; then
  9130. enable_dlopen=yes
  9131. else
  9132. enable_dlopen=no
  9133. fi
  9134. case $lt_cv_dlopen in
  9135. dlopen)
  9136. save_CPPFLAGS="$CPPFLAGS"
  9137. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9138. save_LDFLAGS="$LDFLAGS"
  9139. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9140. save_LIBS="$LIBS"
  9141. LIBS="$lt_cv_dlopen_libs $LIBS"
  9142. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9143. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9144. if test "${lt_cv_dlopen_self+set}" = set; then
  9145. $as_echo_n "(cached) " >&6
  9146. else
  9147. if test "$cross_compiling" = yes; then :
  9148. lt_cv_dlopen_self=cross
  9149. else
  9150. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9151. lt_status=$lt_dlunknown
  9152. cat > conftest.$ac_ext <<_LT_EOF
  9153. #line 10716 "configure"
  9154. #include "confdefs.h"
  9155. #if HAVE_DLFCN_H
  9156. #include <dlfcn.h>
  9157. #endif
  9158. #include <stdio.h>
  9159. #ifdef RTLD_GLOBAL
  9160. # define LT_DLGLOBAL RTLD_GLOBAL
  9161. #else
  9162. # ifdef DL_GLOBAL
  9163. # define LT_DLGLOBAL DL_GLOBAL
  9164. # else
  9165. # define LT_DLGLOBAL 0
  9166. # endif
  9167. #endif
  9168. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9169. find out it does not work in some platform. */
  9170. #ifndef LT_DLLAZY_OR_NOW
  9171. # ifdef RTLD_LAZY
  9172. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9173. # else
  9174. # ifdef DL_LAZY
  9175. # define LT_DLLAZY_OR_NOW DL_LAZY
  9176. # else
  9177. # ifdef RTLD_NOW
  9178. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9179. # else
  9180. # ifdef DL_NOW
  9181. # define LT_DLLAZY_OR_NOW DL_NOW
  9182. # else
  9183. # define LT_DLLAZY_OR_NOW 0
  9184. # endif
  9185. # endif
  9186. # endif
  9187. # endif
  9188. #endif
  9189. void fnord() { int i=42;}
  9190. int main ()
  9191. {
  9192. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9193. int status = $lt_dlunknown;
  9194. if (self)
  9195. {
  9196. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9197. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9198. /* dlclose (self); */
  9199. }
  9200. else
  9201. puts (dlerror ());
  9202. return status;
  9203. }
  9204. _LT_EOF
  9205. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9206. (eval $ac_link) 2>&5
  9207. ac_status=$?
  9208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9209. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9210. (./conftest; exit; ) >&5 2>/dev/null
  9211. lt_status=$?
  9212. case x$lt_status in
  9213. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9214. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9215. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9216. esac
  9217. else :
  9218. # compilation failed
  9219. lt_cv_dlopen_self=no
  9220. fi
  9221. fi
  9222. rm -fr conftest*
  9223. fi
  9224. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9225. $as_echo "$lt_cv_dlopen_self" >&6; }
  9226. if test "x$lt_cv_dlopen_self" = xyes; then
  9227. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9228. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9229. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9230. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9231. $as_echo_n "(cached) " >&6
  9232. else
  9233. if test "$cross_compiling" = yes; then :
  9234. lt_cv_dlopen_self_static=cross
  9235. else
  9236. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9237. lt_status=$lt_dlunknown
  9238. cat > conftest.$ac_ext <<_LT_EOF
  9239. #line 10812 "configure"
  9240. #include "confdefs.h"
  9241. #if HAVE_DLFCN_H
  9242. #include <dlfcn.h>
  9243. #endif
  9244. #include <stdio.h>
  9245. #ifdef RTLD_GLOBAL
  9246. # define LT_DLGLOBAL RTLD_GLOBAL
  9247. #else
  9248. # ifdef DL_GLOBAL
  9249. # define LT_DLGLOBAL DL_GLOBAL
  9250. # else
  9251. # define LT_DLGLOBAL 0
  9252. # endif
  9253. #endif
  9254. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9255. find out it does not work in some platform. */
  9256. #ifndef LT_DLLAZY_OR_NOW
  9257. # ifdef RTLD_LAZY
  9258. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9259. # else
  9260. # ifdef DL_LAZY
  9261. # define LT_DLLAZY_OR_NOW DL_LAZY
  9262. # else
  9263. # ifdef RTLD_NOW
  9264. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9265. # else
  9266. # ifdef DL_NOW
  9267. # define LT_DLLAZY_OR_NOW DL_NOW
  9268. # else
  9269. # define LT_DLLAZY_OR_NOW 0
  9270. # endif
  9271. # endif
  9272. # endif
  9273. # endif
  9274. #endif
  9275. void fnord() { int i=42;}
  9276. int main ()
  9277. {
  9278. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9279. int status = $lt_dlunknown;
  9280. if (self)
  9281. {
  9282. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9283. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9284. /* dlclose (self); */
  9285. }
  9286. else
  9287. puts (dlerror ());
  9288. return status;
  9289. }
  9290. _LT_EOF
  9291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9292. (eval $ac_link) 2>&5
  9293. ac_status=$?
  9294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9295. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9296. (./conftest; exit; ) >&5 2>/dev/null
  9297. lt_status=$?
  9298. case x$lt_status in
  9299. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9300. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9301. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9302. esac
  9303. else :
  9304. # compilation failed
  9305. lt_cv_dlopen_self_static=no
  9306. fi
  9307. fi
  9308. rm -fr conftest*
  9309. fi
  9310. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9311. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9312. fi
  9313. CPPFLAGS="$save_CPPFLAGS"
  9314. LDFLAGS="$save_LDFLAGS"
  9315. LIBS="$save_LIBS"
  9316. ;;
  9317. esac
  9318. case $lt_cv_dlopen_self in
  9319. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9320. *) enable_dlopen_self=unknown ;;
  9321. esac
  9322. case $lt_cv_dlopen_self_static in
  9323. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9324. *) enable_dlopen_self_static=unknown ;;
  9325. esac
  9326. fi
  9327. striplib=
  9328. old_striplib=
  9329. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9330. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9331. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9332. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9333. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9334. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9335. $as_echo "yes" >&6; }
  9336. else
  9337. # FIXME - insert some real tests, host_os isn't really good enough
  9338. case $host_os in
  9339. darwin*)
  9340. if test -n "$STRIP" ; then
  9341. striplib="$STRIP -x"
  9342. old_striplib="$STRIP -S"
  9343. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9344. $as_echo "yes" >&6; }
  9345. else
  9346. { $as_echo "$as_me:$LINENO: result: no" >&5
  9347. $as_echo "no" >&6; }
  9348. fi
  9349. ;;
  9350. *)
  9351. { $as_echo "$as_me:$LINENO: result: no" >&5
  9352. $as_echo "no" >&6; }
  9353. ;;
  9354. esac
  9355. fi
  9356. # Report which library types will actually be built
  9357. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9358. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9359. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9360. $as_echo "$can_build_shared" >&6; }
  9361. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9362. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9363. test "$can_build_shared" = "no" && enable_shared=no
  9364. # On AIX, shared libraries and static libraries use the same namespace, and
  9365. # are all built from PIC.
  9366. case $host_os in
  9367. aix3*)
  9368. test "$enable_shared" = yes && enable_static=no
  9369. if test -n "$RANLIB"; then
  9370. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9371. postinstall_cmds='$RANLIB $lib'
  9372. fi
  9373. ;;
  9374. aix[4-9]*)
  9375. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9376. test "$enable_shared" = yes && enable_static=no
  9377. fi
  9378. ;;
  9379. esac
  9380. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9381. $as_echo "$enable_shared" >&6; }
  9382. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9383. $as_echo_n "checking whether to build static libraries... " >&6; }
  9384. # Make sure either enable_shared or enable_static is yes.
  9385. test "$enable_shared" = yes || enable_static=yes
  9386. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9387. $as_echo "$enable_static" >&6; }
  9388. fi
  9389. ac_ext=c
  9390. ac_cpp='$CPP $CPPFLAGS'
  9391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9394. CC="$lt_save_CC"
  9395. ac_config_commands="$ac_config_commands libtool"
  9396. # Only expand once:
  9397. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  9398. $as_echo_n "checking for inline... " >&6; }
  9399. if test "${ac_cv_c_inline+set}" = set; then
  9400. $as_echo_n "(cached) " >&6
  9401. else
  9402. ac_cv_c_inline=no
  9403. for ac_kw in inline __inline__ __inline; do
  9404. cat >conftest.$ac_ext <<_ACEOF
  9405. /* confdefs.h. */
  9406. _ACEOF
  9407. cat confdefs.h >>conftest.$ac_ext
  9408. cat >>conftest.$ac_ext <<_ACEOF
  9409. /* end confdefs.h. */
  9410. #ifndef __cplusplus
  9411. typedef int foo_t;
  9412. static $ac_kw foo_t static_foo () {return 0; }
  9413. $ac_kw foo_t foo () {return 0; }
  9414. #endif
  9415. _ACEOF
  9416. rm -f conftest.$ac_objext
  9417. if { (ac_try="$ac_compile"
  9418. case "(($ac_try" in
  9419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9420. *) ac_try_echo=$ac_try;;
  9421. esac
  9422. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9423. $as_echo "$ac_try_echo") >&5
  9424. (eval "$ac_compile") 2>conftest.er1
  9425. ac_status=$?
  9426. grep -v '^ *+' conftest.er1 >conftest.err
  9427. rm -f conftest.er1
  9428. cat conftest.err >&5
  9429. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9430. (exit $ac_status); } && {
  9431. test -z "$ac_c_werror_flag" ||
  9432. test ! -s conftest.err
  9433. } && test -s conftest.$ac_objext; then
  9434. ac_cv_c_inline=$ac_kw
  9435. else
  9436. $as_echo "$as_me: failed program was:" >&5
  9437. sed 's/^/| /' conftest.$ac_ext >&5
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9440. test "$ac_cv_c_inline" != no && break
  9441. done
  9442. fi
  9443. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  9444. $as_echo "$ac_cv_c_inline" >&6; }
  9445. case $ac_cv_c_inline in
  9446. inline | yes) ;;
  9447. *)
  9448. case $ac_cv_c_inline in
  9449. no) ac_val=;;
  9450. *) ac_val=$ac_cv_c_inline;;
  9451. esac
  9452. cat >>confdefs.h <<_ACEOF
  9453. #ifndef __cplusplus
  9454. #define inline $ac_val
  9455. #endif
  9456. _ACEOF
  9457. ;;
  9458. esac
  9459. if test "x$CC" != xcc; then
  9460. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  9461. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9462. else
  9463. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  9464. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9465. fi
  9466. set dummy $CC; ac_cc=`$as_echo "$2" |
  9467. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9468. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  9469. $as_echo_n "(cached) " >&6
  9470. else
  9471. cat >conftest.$ac_ext <<_ACEOF
  9472. /* confdefs.h. */
  9473. _ACEOF
  9474. cat confdefs.h >>conftest.$ac_ext
  9475. cat >>conftest.$ac_ext <<_ACEOF
  9476. /* end confdefs.h. */
  9477. int
  9478. main ()
  9479. {
  9480. ;
  9481. return 0;
  9482. }
  9483. _ACEOF
  9484. # Make sure it works both with $CC and with simple cc.
  9485. # We do the test twice because some compilers refuse to overwrite an
  9486. # existing .o file with -o, though they will create one.
  9487. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9488. rm -f conftest2.*
  9489. if { (case "(($ac_try" in
  9490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9491. *) ac_try_echo=$ac_try;;
  9492. esac
  9493. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9494. $as_echo "$ac_try_echo") >&5
  9495. (eval "$ac_try") 2>&5
  9496. ac_status=$?
  9497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9498. (exit $ac_status); } &&
  9499. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9501. *) ac_try_echo=$ac_try;;
  9502. esac
  9503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9504. $as_echo "$ac_try_echo") >&5
  9505. (eval "$ac_try") 2>&5
  9506. ac_status=$?
  9507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9508. (exit $ac_status); };
  9509. then
  9510. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9511. if test "x$CC" != xcc; then
  9512. # Test first that cc exists at all.
  9513. if { ac_try='cc -c conftest.$ac_ext >&5'
  9514. { (case "(($ac_try" in
  9515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9516. *) ac_try_echo=$ac_try;;
  9517. esac
  9518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9519. $as_echo "$ac_try_echo") >&5
  9520. (eval "$ac_try") 2>&5
  9521. ac_status=$?
  9522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9523. (exit $ac_status); }; }; then
  9524. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9525. rm -f conftest2.*
  9526. if { (case "(($ac_try" in
  9527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9528. *) ac_try_echo=$ac_try;;
  9529. esac
  9530. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9531. $as_echo "$ac_try_echo") >&5
  9532. (eval "$ac_try") 2>&5
  9533. ac_status=$?
  9534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9535. (exit $ac_status); } &&
  9536. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9538. *) ac_try_echo=$ac_try;;
  9539. esac
  9540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9541. $as_echo "$ac_try_echo") >&5
  9542. (eval "$ac_try") 2>&5
  9543. ac_status=$?
  9544. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9545. (exit $ac_status); };
  9546. then
  9547. # cc works too.
  9548. :
  9549. else
  9550. # cc exists but doesn't like -o.
  9551. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9552. fi
  9553. fi
  9554. fi
  9555. else
  9556. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9557. fi
  9558. rm -f core conftest*
  9559. fi
  9560. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9561. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9562. $as_echo "yes" >&6; }
  9563. else
  9564. { $as_echo "$as_me:$LINENO: result: no" >&5
  9565. $as_echo "no" >&6; }
  9566. cat >>confdefs.h <<\_ACEOF
  9567. #define NO_MINUS_C_MINUS_O 1
  9568. _ACEOF
  9569. fi
  9570. # FIXME: we rely on the cache variable name because
  9571. # there is no other way.
  9572. set dummy $CC
  9573. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9574. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9575. if test "$am_t" != yes; then
  9576. # Losing compiler, so override with the script.
  9577. # FIXME: It is wrong to rewrite CC.
  9578. # But if we don't then we get into trouble of one sort or another.
  9579. # A longer-term fix would be to have automake use am__CC in this case,
  9580. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9581. CC="$am_aux_dir/compile $CC"
  9582. fi
  9583. # Library versioning
  9584. LT_MAJOR="8"
  9585. LT_REVISION="4"
  9586. LT_AGE="4"
  9587. # The libusb-0.1 version we pretend to be
  9588. LIBUSB01_VERSION="0.1.12"
  9589. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  9590. if test -n "$ac_tool_prefix"; then
  9591. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  9592. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  9593. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9594. $as_echo_n "checking for $ac_word... " >&6; }
  9595. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  9596. $as_echo_n "(cached) " >&6
  9597. else
  9598. case $PKG_CONFIG in
  9599. [\\/]* | ?:[\\/]*)
  9600. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9601. ;;
  9602. *)
  9603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9604. for as_dir in $PATH
  9605. do
  9606. IFS=$as_save_IFS
  9607. test -z "$as_dir" && as_dir=.
  9608. for ac_exec_ext in '' $ac_executable_extensions; do
  9609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9610. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9611. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9612. break 2
  9613. fi
  9614. done
  9615. done
  9616. IFS=$as_save_IFS
  9617. ;;
  9618. esac
  9619. fi
  9620. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9621. if test -n "$PKG_CONFIG"; then
  9622. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  9623. $as_echo "$PKG_CONFIG" >&6; }
  9624. else
  9625. { $as_echo "$as_me:$LINENO: result: no" >&5
  9626. $as_echo "no" >&6; }
  9627. fi
  9628. fi
  9629. if test -z "$ac_cv_path_PKG_CONFIG"; then
  9630. ac_pt_PKG_CONFIG=$PKG_CONFIG
  9631. # Extract the first word of "pkg-config", so it can be a program name with args.
  9632. set dummy pkg-config; ac_word=$2
  9633. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9634. $as_echo_n "checking for $ac_word... " >&6; }
  9635. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  9636. $as_echo_n "(cached) " >&6
  9637. else
  9638. case $ac_pt_PKG_CONFIG in
  9639. [\\/]* | ?:[\\/]*)
  9640. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9641. ;;
  9642. *)
  9643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9644. for as_dir in $PATH
  9645. do
  9646. IFS=$as_save_IFS
  9647. test -z "$as_dir" && as_dir=.
  9648. for ac_exec_ext in '' $ac_executable_extensions; do
  9649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9650. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9651. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9652. break 2
  9653. fi
  9654. done
  9655. done
  9656. IFS=$as_save_IFS
  9657. ;;
  9658. esac
  9659. fi
  9660. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9661. if test -n "$ac_pt_PKG_CONFIG"; then
  9662. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  9663. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9664. else
  9665. { $as_echo "$as_me:$LINENO: result: no" >&5
  9666. $as_echo "no" >&6; }
  9667. fi
  9668. if test "x$ac_pt_PKG_CONFIG" = x; then
  9669. PKG_CONFIG=""
  9670. else
  9671. case $cross_compiling:$ac_tool_warned in
  9672. yes:)
  9673. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9675. ac_tool_warned=yes ;;
  9676. esac
  9677. PKG_CONFIG=$ac_pt_PKG_CONFIG
  9678. fi
  9679. else
  9680. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9681. fi
  9682. fi
  9683. if test -n "$PKG_CONFIG"; then
  9684. _pkg_min_version=0.9.0
  9685. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  9686. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9687. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9688. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9689. $as_echo "yes" >&6; }
  9690. else
  9691. { $as_echo "$as_me:$LINENO: result: no" >&5
  9692. $as_echo "no" >&6; }
  9693. PKG_CONFIG=""
  9694. fi
  9695. fi
  9696. pkg_failed=no
  9697. { $as_echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5
  9698. $as_echo_n "checking for LIBUSB_1_0... " >&6; }
  9699. if test -n "$LIBUSB_1_0_CFLAGS"; then
  9700. pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS"
  9701. elif test -n "$PKG_CONFIG"; then
  9702. if test -n "$PKG_CONFIG" && \
  9703. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
  9704. ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
  9705. ac_status=$?
  9706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9707. (exit $ac_status); }; then
  9708. pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
  9709. else
  9710. pkg_failed=yes
  9711. fi
  9712. else
  9713. pkg_failed=untried
  9714. fi
  9715. if test -n "$LIBUSB_1_0_LIBS"; then
  9716. pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS"
  9717. elif test -n "$PKG_CONFIG"; then
  9718. if test -n "$PKG_CONFIG" && \
  9719. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
  9720. ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
  9721. ac_status=$?
  9722. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9723. (exit $ac_status); }; then
  9724. pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
  9725. else
  9726. pkg_failed=yes
  9727. fi
  9728. else
  9729. pkg_failed=untried
  9730. fi
  9731. if test $pkg_failed = yes; then
  9732. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9733. _pkg_short_errors_supported=yes
  9734. else
  9735. _pkg_short_errors_supported=no
  9736. fi
  9737. if test $_pkg_short_errors_supported = yes; then
  9738. LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0 >= 0.9.1" 2>&1`
  9739. else
  9740. LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >= 0.9.1" 2>&1`
  9741. fi
  9742. # Put the nasty error message in config.log where it belongs
  9743. echo "$LIBUSB_1_0_PKG_ERRORS" >&5
  9744. { { $as_echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
  9745. $LIBUSB_1_0_PKG_ERRORS
  9746. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9747. installed software in a non-standard prefix.
  9748. Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
  9749. and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
  9750. See the pkg-config man page for more details.
  9751. " >&5
  9752. $as_echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
  9753. $LIBUSB_1_0_PKG_ERRORS
  9754. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9755. installed software in a non-standard prefix.
  9756. Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
  9757. and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
  9758. See the pkg-config man page for more details.
  9759. " >&2;}
  9760. { (exit 1); exit 1; }; }
  9761. elif test $pkg_failed = untried; then
  9762. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  9763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9764. { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  9765. is in your PATH or set the PKG_CONFIG environment variable to the full
  9766. path to pkg-config.
  9767. Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
  9768. and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
  9769. See the pkg-config man page for more details.
  9770. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9771. See \`config.log' for more details." >&5
  9772. $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  9773. is in your PATH or set the PKG_CONFIG environment variable to the full
  9774. path to pkg-config.
  9775. Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
  9776. and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
  9777. See the pkg-config man page for more details.
  9778. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9779. See \`config.log' for more details." >&2;}
  9780. { (exit 1); exit 1; }; }; }
  9781. else
  9782. LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS
  9783. LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS
  9784. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9785. $as_echo "yes" >&6; }
  9786. :
  9787. fi
  9788. # Message logging
  9789. # Check whether --enable-log was given.
  9790. if test "${enable_log+set}" = set; then
  9791. enableval=$enable_log; log_enabled=$enableval
  9792. else
  9793. log_enabled='yes'
  9794. fi
  9795. if test "x$log_enabled" != "xno"; then
  9796. cat >>confdefs.h <<\_ACEOF
  9797. #define ENABLE_LOGGING 1
  9798. _ACEOF
  9799. fi
  9800. # Check whether --enable-debug-log was given.
  9801. if test "${enable_debug_log+set}" = set; then
  9802. enableval=$enable_debug_log; debug_log_enabled=$enableval
  9803. else
  9804. debug_log_enabled='no'
  9805. fi
  9806. if test "x$debug_log_enabled" != "xno"; then
  9807. cat >>confdefs.h <<\_ACEOF
  9808. #define ENABLE_DEBUG_LOGGING 1
  9809. _ACEOF
  9810. fi
  9811. # Examples build
  9812. # Check whether --enable-examples-build was given.
  9813. if test "${enable_examples_build+set}" = set; then
  9814. enableval=$enable_examples_build; build_examples=$enableval
  9815. else
  9816. build_examples='no'
  9817. fi
  9818. if test "x$build_examples" != "xno"; then
  9819. BUILD_EXAMPLES_TRUE=
  9820. BUILD_EXAMPLES_FALSE='#'
  9821. else
  9822. BUILD_EXAMPLES_TRUE='#'
  9823. BUILD_EXAMPLES_FALSE=
  9824. fi
  9825. # Restore gnu89 inline semantics on gcc 4.3 and newer
  9826. saved_cflags="$CFLAGS"
  9827. CFLAGS="$CFLAGS -fgnu89-inline"
  9828. cat >conftest.$ac_ext <<_ACEOF
  9829. /* confdefs.h. */
  9830. _ACEOF
  9831. cat confdefs.h >>conftest.$ac_ext
  9832. cat >>conftest.$ac_ext <<_ACEOF
  9833. /* end confdefs.h. */
  9834. int
  9835. main ()
  9836. {
  9837. ;
  9838. return 0;
  9839. }
  9840. _ACEOF
  9841. rm -f conftest.$ac_objext
  9842. if { (ac_try="$ac_compile"
  9843. case "(($ac_try" in
  9844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9845. *) ac_try_echo=$ac_try;;
  9846. esac
  9847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9848. $as_echo "$ac_try_echo") >&5
  9849. (eval "$ac_compile") 2>conftest.er1
  9850. ac_status=$?
  9851. grep -v '^ *+' conftest.er1 >conftest.err
  9852. rm -f conftest.er1
  9853. cat conftest.err >&5
  9854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855. (exit $ac_status); } && {
  9856. test -z "$ac_c_werror_flag" ||
  9857. test ! -s conftest.err
  9858. } && test -s conftest.$ac_objext; then
  9859. inline_cflags="-fgnu89-inline"
  9860. else
  9861. $as_echo "$as_me: failed program was:" >&5
  9862. sed 's/^/| /' conftest.$ac_ext >&5
  9863. inline_cflags=""
  9864. fi
  9865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9866. CFLAGS="$saved_cflags"
  9867. cat >>confdefs.h <<\_ACEOF
  9868. #define API_EXPORTED __attribute__((visibility("default")))
  9869. _ACEOF
  9870. AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
  9871. ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
  9872. ac_config_commands="$ac_config_commands default"
  9873. cat >confcache <<\_ACEOF
  9874. # This file is a shell script that caches the results of configure
  9875. # tests run on this system so they can be shared between configure
  9876. # scripts and configure runs, see configure's option --config-cache.
  9877. # It is not useful on other systems. If it contains results you don't
  9878. # want to keep, you may remove or edit it.
  9879. #
  9880. # config.status only pays attention to the cache file if you give it
  9881. # the --recheck option to rerun configure.
  9882. #
  9883. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9884. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9885. # following values.
  9886. _ACEOF
  9887. # The following way of writing the cache mishandles newlines in values,
  9888. # but we know of no workaround that is simple, portable, and efficient.
  9889. # So, we kill variables containing newlines.
  9890. # Ultrix sh set writes to stderr and can't be redirected directly,
  9891. # and sets the high bit in the cache file unless we assign to the vars.
  9892. (
  9893. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9894. eval ac_val=\$$ac_var
  9895. case $ac_val in #(
  9896. *${as_nl}*)
  9897. case $ac_var in #(
  9898. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  9899. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9900. esac
  9901. case $ac_var in #(
  9902. _ | IFS | as_nl) ;; #(
  9903. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9904. *) $as_unset $ac_var ;;
  9905. esac ;;
  9906. esac
  9907. done
  9908. (set) 2>&1 |
  9909. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9910. *${as_nl}ac_space=\ *)
  9911. # `set' does not quote correctly, so add quotes (double-quote
  9912. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9913. sed -n \
  9914. "s/'/'\\\\''/g;
  9915. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9916. ;; #(
  9917. *)
  9918. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9919. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9920. ;;
  9921. esac |
  9922. sort
  9923. ) |
  9924. sed '
  9925. /^ac_cv_env_/b end
  9926. t clear
  9927. :clear
  9928. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9929. t end
  9930. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9931. :end' >>confcache
  9932. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9933. if test -w "$cache_file"; then
  9934. test "x$cache_file" != "x/dev/null" &&
  9935. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9936. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9937. cat confcache >$cache_file
  9938. else
  9939. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9940. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9941. fi
  9942. fi
  9943. rm -f confcache
  9944. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9945. # Let make expand exec_prefix.
  9946. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9947. DEFS=-DHAVE_CONFIG_H
  9948. ac_libobjs=
  9949. ac_ltlibobjs=
  9950. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9951. # 1. Remove the extension, and $U if already installed.
  9952. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9953. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9954. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9955. # will be set to the directory where LIBOBJS objects are built.
  9956. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9957. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  9958. done
  9959. LIBOBJS=$ac_libobjs
  9960. LTLIBOBJS=$ac_ltlibobjs
  9961. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9962. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  9963. Usually this means the macro was only invoked conditionally." >&5
  9964. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  9965. Usually this means the macro was only invoked conditionally." >&2;}
  9966. { (exit 1); exit 1; }; }
  9967. fi
  9968. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9969. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9970. Usually this means the macro was only invoked conditionally." >&5
  9971. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9972. Usually this means the macro was only invoked conditionally." >&2;}
  9973. { (exit 1); exit 1; }; }
  9974. fi
  9975. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  9976. { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
  9977. Usually this means the macro was only invoked conditionally." >&5
  9978. $as_echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
  9979. Usually this means the macro was only invoked conditionally." >&2;}
  9980. { (exit 1); exit 1; }; }
  9981. fi
  9982. : ${CONFIG_STATUS=./config.status}
  9983. ac_write_fail=0
  9984. ac_clean_files_save=$ac_clean_files
  9985. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9986. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9987. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9988. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9989. #! $SHELL
  9990. # Generated by $as_me.
  9991. # Run this file to recreate the current configuration.
  9992. # Compiler output produced by configure, useful for debugging
  9993. # configure, is in config.log if it exists.
  9994. debug=false
  9995. ac_cs_recheck=false
  9996. ac_cs_silent=false
  9997. SHELL=\${CONFIG_SHELL-$SHELL}
  9998. _ACEOF
  9999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10000. ## --------------------- ##
  10001. ## M4sh Initialization. ##
  10002. ## --------------------- ##
  10003. # Be more Bourne compatible
  10004. DUALCASE=1; export DUALCASE # for MKS sh
  10005. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10006. emulate sh
  10007. NULLCMD=:
  10008. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10009. # is contrary to our usage. Disable this feature.
  10010. alias -g '${1+"$@"}'='"$@"'
  10011. setopt NO_GLOB_SUBST
  10012. else
  10013. case `(set -o) 2>/dev/null` in
  10014. *posix*) set -o posix ;;
  10015. esac
  10016. fi
  10017. # PATH needs CR
  10018. # Avoid depending upon Character Ranges.
  10019. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10020. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10021. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10022. as_cr_digits='0123456789'
  10023. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10024. as_nl='
  10025. '
  10026. export as_nl
  10027. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10028. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10029. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10030. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10031. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10032. as_echo='printf %s\n'
  10033. as_echo_n='printf %s'
  10034. else
  10035. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10036. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10037. as_echo_n='/usr/ucb/echo -n'
  10038. else
  10039. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10040. as_echo_n_body='eval
  10041. arg=$1;
  10042. case $arg in
  10043. *"$as_nl"*)
  10044. expr "X$arg" : "X\\(.*\\)$as_nl";
  10045. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10046. esac;
  10047. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10048. '
  10049. export as_echo_n_body
  10050. as_echo_n='sh -c $as_echo_n_body as_echo'
  10051. fi
  10052. export as_echo_body
  10053. as_echo='sh -c $as_echo_body as_echo'
  10054. fi
  10055. # The user is always right.
  10056. if test "${PATH_SEPARATOR+set}" != set; then
  10057. PATH_SEPARATOR=:
  10058. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10059. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10060. PATH_SEPARATOR=';'
  10061. }
  10062. fi
  10063. # Support unset when possible.
  10064. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10065. as_unset=unset
  10066. else
  10067. as_unset=false
  10068. fi
  10069. # IFS
  10070. # We need space, tab and new line, in precisely that order. Quoting is
  10071. # there to prevent editors from complaining about space-tab.
  10072. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10073. # splitting by setting IFS to empty value.)
  10074. IFS=" "" $as_nl"
  10075. # Find who we are. Look in the path if we contain no directory separator.
  10076. case $0 in
  10077. *[\\/]* ) as_myself=$0 ;;
  10078. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10079. for as_dir in $PATH
  10080. do
  10081. IFS=$as_save_IFS
  10082. test -z "$as_dir" && as_dir=.
  10083. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10084. done
  10085. IFS=$as_save_IFS
  10086. ;;
  10087. esac
  10088. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10089. # in which case we are not to be found in the path.
  10090. if test "x$as_myself" = x; then
  10091. as_myself=$0
  10092. fi
  10093. if test ! -f "$as_myself"; then
  10094. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10095. { (exit 1); exit 1; }
  10096. fi
  10097. # Work around bugs in pre-3.0 UWIN ksh.
  10098. for as_var in ENV MAIL MAILPATH
  10099. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10100. done
  10101. PS1='$ '
  10102. PS2='> '
  10103. PS4='+ '
  10104. # NLS nuisances.
  10105. LC_ALL=C
  10106. export LC_ALL
  10107. LANGUAGE=C
  10108. export LANGUAGE
  10109. # Required to use basename.
  10110. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10111. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10112. as_expr=expr
  10113. else
  10114. as_expr=false
  10115. fi
  10116. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10117. as_basename=basename
  10118. else
  10119. as_basename=false
  10120. fi
  10121. # Name of the executable.
  10122. as_me=`$as_basename -- "$0" ||
  10123. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10124. X"$0" : 'X\(//\)$' \| \
  10125. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10126. $as_echo X/"$0" |
  10127. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10128. s//\1/
  10129. q
  10130. }
  10131. /^X\/\(\/\/\)$/{
  10132. s//\1/
  10133. q
  10134. }
  10135. /^X\/\(\/\).*/{
  10136. s//\1/
  10137. q
  10138. }
  10139. s/.*/./; q'`
  10140. # CDPATH.
  10141. $as_unset CDPATH
  10142. as_lineno_1=$LINENO
  10143. as_lineno_2=$LINENO
  10144. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10145. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10146. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10147. # uniformly replaced by the line number. The first 'sed' inserts a
  10148. # line-number line after each line using $LINENO; the second 'sed'
  10149. # does the real work. The second script uses 'N' to pair each
  10150. # line-number line with the line containing $LINENO, and appends
  10151. # trailing '-' during substitution so that $LINENO is not a special
  10152. # case at line end.
  10153. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10154. # scripts with optimization help from Paolo Bonzini. Blame Lee
  10155. # E. McMahon (1931-1989) for sed's syntax. :-)
  10156. sed -n '
  10157. p
  10158. /[$]LINENO/=
  10159. ' <$as_myself |
  10160. sed '
  10161. s/[$]LINENO.*/&-/
  10162. t lineno
  10163. b
  10164. :lineno
  10165. N
  10166. :loop
  10167. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10168. t loop
  10169. s/-\n.*//
  10170. ' >$as_me.lineno &&
  10171. chmod +x "$as_me.lineno" ||
  10172. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10173. { (exit 1); exit 1; }; }
  10174. # Don't try to exec as it changes $[0], causing all sort of problems
  10175. # (the dirname of $[0] is not the place where we might find the
  10176. # original and so on. Autoconf is especially sensitive to this).
  10177. . "./$as_me.lineno"
  10178. # Exit status is that of the last command.
  10179. exit
  10180. }
  10181. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10182. as_dirname=dirname
  10183. else
  10184. as_dirname=false
  10185. fi
  10186. ECHO_C= ECHO_N= ECHO_T=
  10187. case `echo -n x` in
  10188. -n*)
  10189. case `echo 'x\c'` in
  10190. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10191. *) ECHO_C='\c';;
  10192. esac;;
  10193. *)
  10194. ECHO_N='-n';;
  10195. esac
  10196. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10197. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10198. as_expr=expr
  10199. else
  10200. as_expr=false
  10201. fi
  10202. rm -f conf$$ conf$$.exe conf$$.file
  10203. if test -d conf$$.dir; then
  10204. rm -f conf$$.dir/conf$$.file
  10205. else
  10206. rm -f conf$$.dir
  10207. mkdir conf$$.dir 2>/dev/null
  10208. fi
  10209. if (echo >conf$$.file) 2>/dev/null; then
  10210. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10211. as_ln_s='ln -s'
  10212. # ... but there are two gotchas:
  10213. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10214. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10215. # In both cases, we have to default to `cp -p'.
  10216. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10217. as_ln_s='cp -p'
  10218. elif ln conf$$.file conf$$ 2>/dev/null; then
  10219. as_ln_s=ln
  10220. else
  10221. as_ln_s='cp -p'
  10222. fi
  10223. else
  10224. as_ln_s='cp -p'
  10225. fi
  10226. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10227. rmdir conf$$.dir 2>/dev/null
  10228. if mkdir -p . 2>/dev/null; then
  10229. as_mkdir_p=:
  10230. else
  10231. test -d ./-p && rmdir ./-p
  10232. as_mkdir_p=false
  10233. fi
  10234. if test -x / >/dev/null 2>&1; then
  10235. as_test_x='test -x'
  10236. else
  10237. if ls -dL / >/dev/null 2>&1; then
  10238. as_ls_L_option=L
  10239. else
  10240. as_ls_L_option=
  10241. fi
  10242. as_test_x='
  10243. eval sh -c '\''
  10244. if test -d "$1"; then
  10245. test -d "$1/.";
  10246. else
  10247. case $1 in
  10248. -*)set "./$1";;
  10249. esac;
  10250. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10251. ???[sx]*):;;*)false;;esac;fi
  10252. '\'' sh
  10253. '
  10254. fi
  10255. as_executable_p=$as_test_x
  10256. # Sed expression to map a string onto a valid CPP name.
  10257. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10258. # Sed expression to map a string onto a valid variable name.
  10259. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10260. exec 6>&1
  10261. # Save the log message, to keep $[0] and so on meaningful, and to
  10262. # report actual input values of CONFIG_FILES etc. instead of their
  10263. # values after options handling.
  10264. ac_log="
  10265. This file was extended by libusb-compat $as_me 0.1.0, which was
  10266. generated by GNU Autoconf 2.63. Invocation command line was
  10267. CONFIG_FILES = $CONFIG_FILES
  10268. CONFIG_HEADERS = $CONFIG_HEADERS
  10269. CONFIG_LINKS = $CONFIG_LINKS
  10270. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10271. $ $0 $@
  10272. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10273. "
  10274. _ACEOF
  10275. case $ac_config_files in *"
  10276. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10277. esac
  10278. case $ac_config_headers in *"
  10279. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10280. esac
  10281. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10282. # Files that config.status was made for.
  10283. config_files="$ac_config_files"
  10284. config_headers="$ac_config_headers"
  10285. config_commands="$ac_config_commands"
  10286. _ACEOF
  10287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10288. ac_cs_usage="\
  10289. \`$as_me' instantiates files from templates according to the
  10290. current configuration.
  10291. Usage: $0 [OPTION]... [FILE]...
  10292. -h, --help print this help, then exit
  10293. -V, --version print version number and configuration settings, then exit
  10294. -q, --quiet, --silent
  10295. do not print progress messages
  10296. -d, --debug don't remove temporary files
  10297. --recheck update $as_me by reconfiguring in the same conditions
  10298. --file=FILE[:TEMPLATE]
  10299. instantiate the configuration file FILE
  10300. --header=FILE[:TEMPLATE]
  10301. instantiate the configuration header FILE
  10302. Configuration files:
  10303. $config_files
  10304. Configuration headers:
  10305. $config_headers
  10306. Configuration commands:
  10307. $config_commands
  10308. Report bugs to <bug-autoconf@gnu.org>."
  10309. _ACEOF
  10310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10311. ac_cs_version="\\
  10312. libusb-compat config.status 0.1.0
  10313. configured by $0, generated by GNU Autoconf 2.63,
  10314. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10315. Copyright (C) 2008 Free Software Foundation, Inc.
  10316. This config.status script is free software; the Free Software Foundation
  10317. gives unlimited permission to copy, distribute and modify it."
  10318. ac_pwd='$ac_pwd'
  10319. srcdir='$srcdir'
  10320. INSTALL='$INSTALL'
  10321. MKDIR_P='$MKDIR_P'
  10322. AWK='$AWK'
  10323. test -n "\$AWK" || AWK=awk
  10324. _ACEOF
  10325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10326. # The default lists apply if the user does not specify any file.
  10327. ac_need_defaults=:
  10328. while test $# != 0
  10329. do
  10330. case $1 in
  10331. --*=*)
  10332. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10333. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10334. ac_shift=:
  10335. ;;
  10336. *)
  10337. ac_option=$1
  10338. ac_optarg=$2
  10339. ac_shift=shift
  10340. ;;
  10341. esac
  10342. case $ac_option in
  10343. # Handling of the options.
  10344. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10345. ac_cs_recheck=: ;;
  10346. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10347. $as_echo "$ac_cs_version"; exit ;;
  10348. --debug | --debu | --deb | --de | --d | -d )
  10349. debug=: ;;
  10350. --file | --fil | --fi | --f )
  10351. $ac_shift
  10352. case $ac_optarg in
  10353. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10354. esac
  10355. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  10356. ac_need_defaults=false;;
  10357. --header | --heade | --head | --hea )
  10358. $ac_shift
  10359. case $ac_optarg in
  10360. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10361. esac
  10362. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  10363. ac_need_defaults=false;;
  10364. --he | --h)
  10365. # Conflict between --help and --header
  10366. { $as_echo "$as_me: error: ambiguous option: $1
  10367. Try \`$0 --help' for more information." >&2
  10368. { (exit 1); exit 1; }; };;
  10369. --help | --hel | -h )
  10370. $as_echo "$ac_cs_usage"; exit ;;
  10371. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10372. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10373. ac_cs_silent=: ;;
  10374. # This is an error.
  10375. -*) { $as_echo "$as_me: error: unrecognized option: $1
  10376. Try \`$0 --help' for more information." >&2
  10377. { (exit 1); exit 1; }; } ;;
  10378. *) ac_config_targets="$ac_config_targets $1"
  10379. ac_need_defaults=false ;;
  10380. esac
  10381. shift
  10382. done
  10383. ac_configure_extra_args=
  10384. if $ac_cs_silent; then
  10385. exec 6>/dev/null
  10386. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10387. fi
  10388. _ACEOF
  10389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10390. if \$ac_cs_recheck; then
  10391. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10392. shift
  10393. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10394. CONFIG_SHELL='$SHELL'
  10395. export CONFIG_SHELL
  10396. exec "\$@"
  10397. fi
  10398. _ACEOF
  10399. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10400. exec 5>>config.log
  10401. {
  10402. echo
  10403. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10404. ## Running $as_me. ##
  10405. _ASBOX
  10406. $as_echo "$ac_log"
  10407. } >&5
  10408. _ACEOF
  10409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10410. #
  10411. # INIT-COMMANDS
  10412. #
  10413. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10414. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10415. # if CDPATH is set.
  10416. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10417. sed_quote_subst='$sed_quote_subst'
  10418. double_quote_subst='$double_quote_subst'
  10419. delay_variable_subst='$delay_variable_subst'
  10420. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  10421. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  10422. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  10423. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  10424. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  10425. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  10426. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10427. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  10428. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  10429. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10430. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  10431. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  10432. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  10433. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  10434. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  10435. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10436. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10437. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  10438. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  10439. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  10440. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  10441. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  10442. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  10443. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  10444. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  10445. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  10446. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10447. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10448. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  10449. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  10450. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  10451. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  10452. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10453. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  10454. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  10455. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10456. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10457. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10458. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  10459. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10460. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  10461. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  10462. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  10463. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  10464. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  10465. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10466. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  10467. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  10468. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  10469. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  10470. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10471. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  10472. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10473. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10474. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10475. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10476. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10477. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10478. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10479. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10480. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10481. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10482. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10483. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10484. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10485. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10486. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10487. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10488. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10489. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10490. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10491. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10492. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10493. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10494. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10495. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10496. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10497. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10498. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10499. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10500. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10501. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10502. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10503. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10504. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10505. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10506. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10507. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10508. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10509. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10510. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10511. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10512. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10513. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10514. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10515. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10516. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10517. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10518. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10519. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10520. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10521. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10522. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10523. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10524. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10525. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10526. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10527. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10528. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10529. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10530. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10531. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10532. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10533. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10534. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10535. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10536. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10537. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10538. LTCC='$LTCC'
  10539. LTCFLAGS='$LTCFLAGS'
  10540. compiler='$compiler_DEFAULT'
  10541. # Quote evaled strings.
  10542. for var in SED \
  10543. GREP \
  10544. EGREP \
  10545. FGREP \
  10546. LD \
  10547. NM \
  10548. LN_S \
  10549. lt_SP2NL \
  10550. lt_NL2SP \
  10551. reload_flag \
  10552. OBJDUMP \
  10553. deplibs_check_method \
  10554. file_magic_cmd \
  10555. AR \
  10556. AR_FLAGS \
  10557. STRIP \
  10558. RANLIB \
  10559. CC \
  10560. CFLAGS \
  10561. compiler \
  10562. lt_cv_sys_global_symbol_pipe \
  10563. lt_cv_sys_global_symbol_to_cdecl \
  10564. lt_cv_sys_global_symbol_to_c_name_address \
  10565. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10566. SHELL \
  10567. ECHO \
  10568. lt_prog_compiler_no_builtin_flag \
  10569. lt_prog_compiler_wl \
  10570. lt_prog_compiler_pic \
  10571. lt_prog_compiler_static \
  10572. lt_cv_prog_compiler_c_o \
  10573. need_locks \
  10574. DSYMUTIL \
  10575. NMEDIT \
  10576. LIPO \
  10577. OTOOL \
  10578. OTOOL64 \
  10579. shrext_cmds \
  10580. export_dynamic_flag_spec \
  10581. whole_archive_flag_spec \
  10582. compiler_needs_object \
  10583. with_gnu_ld \
  10584. allow_undefined_flag \
  10585. no_undefined_flag \
  10586. hardcode_libdir_flag_spec \
  10587. hardcode_libdir_flag_spec_ld \
  10588. hardcode_libdir_separator \
  10589. fix_srcfile_path \
  10590. exclude_expsyms \
  10591. include_expsyms \
  10592. file_list_spec \
  10593. variables_saved_for_relink \
  10594. libname_spec \
  10595. library_names_spec \
  10596. soname_spec \
  10597. finish_eval \
  10598. old_striplib \
  10599. striplib; do
  10600. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10601. *[\\\\\\\`\\"\\\$]*)
  10602. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10603. ;;
  10604. *)
  10605. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10606. ;;
  10607. esac
  10608. done
  10609. # Double-quote double-evaled strings.
  10610. for var in reload_cmds \
  10611. old_postinstall_cmds \
  10612. old_postuninstall_cmds \
  10613. old_archive_cmds \
  10614. extract_expsyms_cmds \
  10615. old_archive_from_new_cmds \
  10616. old_archive_from_expsyms_cmds \
  10617. archive_cmds \
  10618. archive_expsym_cmds \
  10619. module_cmds \
  10620. module_expsym_cmds \
  10621. export_symbols_cmds \
  10622. prelink_cmds \
  10623. postinstall_cmds \
  10624. postuninstall_cmds \
  10625. finish_cmds \
  10626. sys_lib_search_path_spec \
  10627. sys_lib_dlsearch_path_spec; do
  10628. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10629. *[\\\\\\\`\\"\\\$]*)
  10630. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10631. ;;
  10632. *)
  10633. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10634. ;;
  10635. esac
  10636. done
  10637. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10638. case \$lt_ECHO in
  10639. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10640. ;;
  10641. esac
  10642. ac_aux_dir='$ac_aux_dir'
  10643. xsi_shell='$xsi_shell'
  10644. lt_shell_append='$lt_shell_append'
  10645. # See if we are running on zsh, and set the options which allow our
  10646. # commands through without removal of \ escapes INIT.
  10647. if test -n "\${ZSH_VERSION+set}" ; then
  10648. setopt NO_GLOB_SUBST
  10649. fi
  10650. PACKAGE='$PACKAGE'
  10651. VERSION='$VERSION'
  10652. TIMESTAMP='$TIMESTAMP'
  10653. RM='$RM'
  10654. ofile='$ofile'
  10655. _ACEOF
  10656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10657. # Handling of arguments.
  10658. for ac_config_target in $ac_config_targets
  10659. do
  10660. case $ac_config_target in
  10661. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10662. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10663. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10664. "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
  10665. "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
  10666. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10667. "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
  10668. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  10669. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  10670. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10671. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10672. { (exit 1); exit 1; }; };;
  10673. esac
  10674. done
  10675. # If the user did not use the arguments to specify the items to instantiate,
  10676. # then the envvar interface is used. Set only those that are not.
  10677. # We use the long form for the default assignment because of an extremely
  10678. # bizarre bug on SunOS 4.1.3.
  10679. if $ac_need_defaults; then
  10680. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10681. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10682. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10683. fi
  10684. # Have a temporary directory for convenience. Make it in the build tree
  10685. # simply because there is no reason against having it here, and in addition,
  10686. # creating and moving files from /tmp can sometimes cause problems.
  10687. # Hook for its removal unless debugging.
  10688. # Note that there is a small window in which the directory will not be cleaned:
  10689. # after its creation but before its name has been assigned to `$tmp'.
  10690. $debug ||
  10691. {
  10692. tmp=
  10693. trap 'exit_status=$?
  10694. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10695. ' 0
  10696. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10697. }
  10698. # Create a (secure) tmp directory for tmp files.
  10699. {
  10700. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10701. test -n "$tmp" && test -d "$tmp"
  10702. } ||
  10703. {
  10704. tmp=./conf$$-$RANDOM
  10705. (umask 077 && mkdir "$tmp")
  10706. } ||
  10707. {
  10708. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  10709. { (exit 1); exit 1; }
  10710. }
  10711. # Set up the scripts for CONFIG_FILES section.
  10712. # No need to generate them if there are no CONFIG_FILES.
  10713. # This happens for instance with `./config.status config.h'.
  10714. if test -n "$CONFIG_FILES"; then
  10715. ac_cr=' '
  10716. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10717. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10718. ac_cs_awk_cr='\\r'
  10719. else
  10720. ac_cs_awk_cr=$ac_cr
  10721. fi
  10722. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10723. _ACEOF
  10724. {
  10725. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10726. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10727. echo "_ACEOF"
  10728. } >conf$$subs.sh ||
  10729. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10730. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10731. { (exit 1); exit 1; }; }
  10732. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10733. ac_delim='%!_!# '
  10734. for ac_last_try in false false false false false :; do
  10735. . ./conf$$subs.sh ||
  10736. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10737. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10738. { (exit 1); exit 1; }; }
  10739. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10740. if test $ac_delim_n = $ac_delim_num; then
  10741. break
  10742. elif $ac_last_try; then
  10743. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10744. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10745. { (exit 1); exit 1; }; }
  10746. else
  10747. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10748. fi
  10749. done
  10750. rm -f conf$$subs.sh
  10751. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10752. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10753. _ACEOF
  10754. sed -n '
  10755. h
  10756. s/^/S["/; s/!.*/"]=/
  10757. p
  10758. g
  10759. s/^[^!]*!//
  10760. :repl
  10761. t repl
  10762. s/'"$ac_delim"'$//
  10763. t delim
  10764. :nl
  10765. h
  10766. s/\(.\{148\}\).*/\1/
  10767. t more1
  10768. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10769. p
  10770. n
  10771. b repl
  10772. :more1
  10773. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10774. p
  10775. g
  10776. s/.\{148\}//
  10777. t nl
  10778. :delim
  10779. h
  10780. s/\(.\{148\}\).*/\1/
  10781. t more2
  10782. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10783. p
  10784. b
  10785. :more2
  10786. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10787. p
  10788. g
  10789. s/.\{148\}//
  10790. t delim
  10791. ' <conf$$subs.awk | sed '
  10792. /^[^""]/{
  10793. N
  10794. s/\n//
  10795. }
  10796. ' >>$CONFIG_STATUS || ac_write_fail=1
  10797. rm -f conf$$subs.awk
  10798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10799. _ACAWK
  10800. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10801. for (key in S) S_is_set[key] = 1
  10802. FS = ""
  10803. }
  10804. {
  10805. line = $ 0
  10806. nfields = split(line, field, "@")
  10807. substed = 0
  10808. len = length(field[1])
  10809. for (i = 2; i < nfields; i++) {
  10810. key = field[i]
  10811. keylen = length(key)
  10812. if (S_is_set[key]) {
  10813. value = S[key]
  10814. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10815. len += length(value) + length(field[++i])
  10816. substed = 1
  10817. } else
  10818. len += 1 + keylen
  10819. }
  10820. print line
  10821. }
  10822. _ACAWK
  10823. _ACEOF
  10824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10825. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10826. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10827. else
  10828. cat
  10829. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10830. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  10831. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  10832. { (exit 1); exit 1; }; }
  10833. _ACEOF
  10834. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10835. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10836. # trailing colons and then remove the whole line if VPATH becomes empty
  10837. # (actually we leave an empty line to preserve line numbers).
  10838. if test "x$srcdir" = x.; then
  10839. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10840. s/:*\$(srcdir):*/:/
  10841. s/:*\${srcdir}:*/:/
  10842. s/:*@srcdir@:*/:/
  10843. s/^\([^=]*=[ ]*\):*/\1/
  10844. s/:*$//
  10845. s/^[^=]*=[ ]*$//
  10846. }'
  10847. fi
  10848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10849. fi # test -n "$CONFIG_FILES"
  10850. # Set up the scripts for CONFIG_HEADERS section.
  10851. # No need to generate them if there are no CONFIG_HEADERS.
  10852. # This happens for instance with `./config.status Makefile'.
  10853. if test -n "$CONFIG_HEADERS"; then
  10854. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10855. BEGIN {
  10856. _ACEOF
  10857. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10858. # here-document in config.status, that substitutes the proper values into
  10859. # config.h.in to produce config.h.
  10860. # Create a delimiter string that does not exist in confdefs.h, to ease
  10861. # handling of long lines.
  10862. ac_delim='%!_!# '
  10863. for ac_last_try in false false :; do
  10864. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10865. if test -z "$ac_t"; then
  10866. break
  10867. elif $ac_last_try; then
  10868. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  10869. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  10870. { (exit 1); exit 1; }; }
  10871. else
  10872. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10873. fi
  10874. done
  10875. # For the awk script, D is an array of macro values keyed by name,
  10876. # likewise P contains macro parameters if any. Preserve backslash
  10877. # newline sequences.
  10878. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10879. sed -n '
  10880. s/.\{148\}/&'"$ac_delim"'/g
  10881. t rset
  10882. :rset
  10883. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10884. t def
  10885. d
  10886. :def
  10887. s/\\$//
  10888. t bsnl
  10889. s/["\\]/\\&/g
  10890. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10891. D["\1"]=" \3"/p
  10892. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10893. d
  10894. :bsnl
  10895. s/["\\]/\\&/g
  10896. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10897. D["\1"]=" \3\\\\\\n"\\/p
  10898. t cont
  10899. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10900. t cont
  10901. d
  10902. :cont
  10903. n
  10904. s/.\{148\}/&'"$ac_delim"'/g
  10905. t clear
  10906. :clear
  10907. s/\\$//
  10908. t bsnlc
  10909. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10910. d
  10911. :bsnlc
  10912. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10913. b cont
  10914. ' <confdefs.h | sed '
  10915. s/'"$ac_delim"'/"\\\
  10916. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10918. for (key in D) D_is_set[key] = 1
  10919. FS = ""
  10920. }
  10921. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10922. line = \$ 0
  10923. split(line, arg, " ")
  10924. if (arg[1] == "#") {
  10925. defundef = arg[2]
  10926. mac1 = arg[3]
  10927. } else {
  10928. defundef = substr(arg[1], 2)
  10929. mac1 = arg[2]
  10930. }
  10931. split(mac1, mac2, "(") #)
  10932. macro = mac2[1]
  10933. prefix = substr(line, 1, index(line, defundef) - 1)
  10934. if (D_is_set[macro]) {
  10935. # Preserve the white space surrounding the "#".
  10936. print prefix "define", macro P[macro] D[macro]
  10937. next
  10938. } else {
  10939. # Replace #undef with comments. This is necessary, for example,
  10940. # in the case of _POSIX_SOURCE, which is predefined and required
  10941. # on some systems where configure will not decide to define it.
  10942. if (defundef == "undef") {
  10943. print "/*", prefix defundef, macro, "*/"
  10944. next
  10945. }
  10946. }
  10947. }
  10948. { print }
  10949. _ACAWK
  10950. _ACEOF
  10951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10952. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  10953. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  10954. { (exit 1); exit 1; }; }
  10955. fi # test -n "$CONFIG_HEADERS"
  10956. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10957. shift
  10958. for ac_tag
  10959. do
  10960. case $ac_tag in
  10961. :[FHLC]) ac_mode=$ac_tag; continue;;
  10962. esac
  10963. case $ac_mode$ac_tag in
  10964. :[FHL]*:*);;
  10965. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  10966. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  10967. { (exit 1); exit 1; }; };;
  10968. :[FH]-) ac_tag=-:-;;
  10969. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10970. esac
  10971. ac_save_IFS=$IFS
  10972. IFS=:
  10973. set x $ac_tag
  10974. IFS=$ac_save_IFS
  10975. shift
  10976. ac_file=$1
  10977. shift
  10978. case $ac_mode in
  10979. :L) ac_source=$1;;
  10980. :[FH])
  10981. ac_file_inputs=
  10982. for ac_f
  10983. do
  10984. case $ac_f in
  10985. -) ac_f="$tmp/stdin";;
  10986. *) # Look for the file first in the build tree, then in the source tree
  10987. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10988. # because $ac_f cannot contain `:'.
  10989. test -f "$ac_f" ||
  10990. case $ac_f in
  10991. [\\/$]*) false;;
  10992. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10993. esac ||
  10994. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  10995. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  10996. { (exit 1); exit 1; }; };;
  10997. esac
  10998. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10999. ac_file_inputs="$ac_file_inputs '$ac_f'"
  11000. done
  11001. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11002. # use $as_me), people would be surprised to read:
  11003. # /* config.h. Generated by config.status. */
  11004. configure_input='Generated from '`
  11005. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11006. `' by configure.'
  11007. if test x"$ac_file" != x-; then
  11008. configure_input="$ac_file. $configure_input"
  11009. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  11010. $as_echo "$as_me: creating $ac_file" >&6;}
  11011. fi
  11012. # Neutralize special characters interpreted by sed in replacement strings.
  11013. case $configure_input in #(
  11014. *\&* | *\|* | *\\* )
  11015. ac_sed_conf_input=`$as_echo "$configure_input" |
  11016. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11017. *) ac_sed_conf_input=$configure_input;;
  11018. esac
  11019. case $ac_tag in
  11020. *:-:* | *:-) cat >"$tmp/stdin" \
  11021. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11022. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11023. { (exit 1); exit 1; }; } ;;
  11024. esac
  11025. ;;
  11026. esac
  11027. ac_dir=`$as_dirname -- "$ac_file" ||
  11028. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11029. X"$ac_file" : 'X\(//\)[^/]' \| \
  11030. X"$ac_file" : 'X\(//\)$' \| \
  11031. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11032. $as_echo X"$ac_file" |
  11033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11034. s//\1/
  11035. q
  11036. }
  11037. /^X\(\/\/\)[^/].*/{
  11038. s//\1/
  11039. q
  11040. }
  11041. /^X\(\/\/\)$/{
  11042. s//\1/
  11043. q
  11044. }
  11045. /^X\(\/\).*/{
  11046. s//\1/
  11047. q
  11048. }
  11049. s/.*/./; q'`
  11050. { as_dir="$ac_dir"
  11051. case $as_dir in #(
  11052. -*) as_dir=./$as_dir;;
  11053. esac
  11054. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11055. as_dirs=
  11056. while :; do
  11057. case $as_dir in #(
  11058. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11059. *) as_qdir=$as_dir;;
  11060. esac
  11061. as_dirs="'$as_qdir' $as_dirs"
  11062. as_dir=`$as_dirname -- "$as_dir" ||
  11063. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11064. X"$as_dir" : 'X\(//\)[^/]' \| \
  11065. X"$as_dir" : 'X\(//\)$' \| \
  11066. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11067. $as_echo X"$as_dir" |
  11068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11069. s//\1/
  11070. q
  11071. }
  11072. /^X\(\/\/\)[^/].*/{
  11073. s//\1/
  11074. q
  11075. }
  11076. /^X\(\/\/\)$/{
  11077. s//\1/
  11078. q
  11079. }
  11080. /^X\(\/\).*/{
  11081. s//\1/
  11082. q
  11083. }
  11084. s/.*/./; q'`
  11085. test -d "$as_dir" && break
  11086. done
  11087. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11088. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11089. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11090. { (exit 1); exit 1; }; }; }
  11091. ac_builddir=.
  11092. case "$ac_dir" in
  11093. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11094. *)
  11095. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11096. # A ".." for each directory in $ac_dir_suffix.
  11097. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11098. case $ac_top_builddir_sub in
  11099. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11100. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11101. esac ;;
  11102. esac
  11103. ac_abs_top_builddir=$ac_pwd
  11104. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11105. # for backward compatibility:
  11106. ac_top_builddir=$ac_top_build_prefix
  11107. case $srcdir in
  11108. .) # We are building in place.
  11109. ac_srcdir=.
  11110. ac_top_srcdir=$ac_top_builddir_sub
  11111. ac_abs_top_srcdir=$ac_pwd ;;
  11112. [\\/]* | ?:[\\/]* ) # Absolute name.
  11113. ac_srcdir=$srcdir$ac_dir_suffix;
  11114. ac_top_srcdir=$srcdir
  11115. ac_abs_top_srcdir=$srcdir ;;
  11116. *) # Relative name.
  11117. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11118. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11119. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11120. esac
  11121. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11122. case $ac_mode in
  11123. :F)
  11124. #
  11125. # CONFIG_FILE
  11126. #
  11127. case $INSTALL in
  11128. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11129. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11130. esac
  11131. ac_MKDIR_P=$MKDIR_P
  11132. case $MKDIR_P in
  11133. [\\/$]* | ?:[\\/]* ) ;;
  11134. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11135. esac
  11136. _ACEOF
  11137. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11138. # If the template does not know about datarootdir, expand it.
  11139. # FIXME: This hack should be removed a few years after 2.60.
  11140. ac_datarootdir_hack=; ac_datarootdir_seen=
  11141. ac_sed_dataroot='
  11142. /datarootdir/ {
  11143. p
  11144. q
  11145. }
  11146. /@datadir@/p
  11147. /@docdir@/p
  11148. /@infodir@/p
  11149. /@localedir@/p
  11150. /@mandir@/p
  11151. '
  11152. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11153. *datarootdir*) ac_datarootdir_seen=yes;;
  11154. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11155. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11156. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11157. _ACEOF
  11158. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11159. ac_datarootdir_hack='
  11160. s&@datadir@&$datadir&g
  11161. s&@docdir@&$docdir&g
  11162. s&@infodir@&$infodir&g
  11163. s&@localedir@&$localedir&g
  11164. s&@mandir@&$mandir&g
  11165. s&\\\${datarootdir}&$datarootdir&g' ;;
  11166. esac
  11167. _ACEOF
  11168. # Neutralize VPATH when `$srcdir' = `.'.
  11169. # Shell code in configure.ac might set extrasub.
  11170. # FIXME: do we really want to maintain this feature?
  11171. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11172. ac_sed_extra="$ac_vpsub
  11173. $extrasub
  11174. _ACEOF
  11175. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11176. :t
  11177. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11178. s|@configure_input@|$ac_sed_conf_input|;t t
  11179. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11180. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11181. s&@srcdir@&$ac_srcdir&;t t
  11182. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11183. s&@top_srcdir@&$ac_top_srcdir&;t t
  11184. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11185. s&@builddir@&$ac_builddir&;t t
  11186. s&@abs_builddir@&$ac_abs_builddir&;t t
  11187. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11188. s&@INSTALL@&$ac_INSTALL&;t t
  11189. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11190. $ac_datarootdir_hack
  11191. "
  11192. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11193. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11194. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11195. { (exit 1); exit 1; }; }
  11196. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11197. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11198. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11199. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11200. which seems to be undefined. Please make sure it is defined." >&5
  11201. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11202. which seems to be undefined. Please make sure it is defined." >&2;}
  11203. rm -f "$tmp/stdin"
  11204. case $ac_file in
  11205. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11206. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11207. esac \
  11208. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11209. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11210. { (exit 1); exit 1; }; }
  11211. ;;
  11212. :H)
  11213. #
  11214. # CONFIG_HEADER
  11215. #
  11216. if test x"$ac_file" != x-; then
  11217. {
  11218. $as_echo "/* $configure_input */" \
  11219. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11220. } >"$tmp/config.h" \
  11221. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11222. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11223. { (exit 1); exit 1; }; }
  11224. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11225. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11226. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11227. else
  11228. rm -f "$ac_file"
  11229. mv "$tmp/config.h" "$ac_file" \
  11230. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11231. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11232. { (exit 1); exit 1; }; }
  11233. fi
  11234. else
  11235. $as_echo "/* $configure_input */" \
  11236. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11237. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  11238. $as_echo "$as_me: error: could not create -" >&2;}
  11239. { (exit 1); exit 1; }; }
  11240. fi
  11241. # Compute "$ac_file"'s index in $config_headers.
  11242. _am_arg="$ac_file"
  11243. _am_stamp_count=1
  11244. for _am_header in $config_headers :; do
  11245. case $_am_header in
  11246. $_am_arg | $_am_arg:* )
  11247. break ;;
  11248. * )
  11249. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11250. esac
  11251. done
  11252. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11253. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11254. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11255. X"$_am_arg" : 'X\(//\)$' \| \
  11256. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11257. $as_echo X"$_am_arg" |
  11258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11259. s//\1/
  11260. q
  11261. }
  11262. /^X\(\/\/\)[^/].*/{
  11263. s//\1/
  11264. q
  11265. }
  11266. /^X\(\/\/\)$/{
  11267. s//\1/
  11268. q
  11269. }
  11270. /^X\(\/\).*/{
  11271. s//\1/
  11272. q
  11273. }
  11274. s/.*/./; q'`/stamp-h$_am_stamp_count
  11275. ;;
  11276. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  11277. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11278. ;;
  11279. esac
  11280. case $ac_file$ac_mode in
  11281. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11282. # are listed without --file. Let's play safe and only enable the eval
  11283. # if we detect the quoting.
  11284. case $CONFIG_FILES in
  11285. *\'*) eval set x "$CONFIG_FILES" ;;
  11286. *) set x $CONFIG_FILES ;;
  11287. esac
  11288. shift
  11289. for mf
  11290. do
  11291. # Strip MF so we end up with the name of the file.
  11292. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11293. # Check whether this is an Automake generated Makefile or not.
  11294. # We used to match only the files named `Makefile.in', but
  11295. # some people rename them; so instead we look at the file content.
  11296. # Grep'ing the first line is not enough: some people post-process
  11297. # each Makefile.in and add a new line on top of each file to say so.
  11298. # Grep'ing the whole file is not good either: AIX grep has a line
  11299. # limit of 2048, but all sed's we know have understand at least 4000.
  11300. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11301. dirpart=`$as_dirname -- "$mf" ||
  11302. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11303. X"$mf" : 'X\(//\)[^/]' \| \
  11304. X"$mf" : 'X\(//\)$' \| \
  11305. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11306. $as_echo X"$mf" |
  11307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11308. s//\1/
  11309. q
  11310. }
  11311. /^X\(\/\/\)[^/].*/{
  11312. s//\1/
  11313. q
  11314. }
  11315. /^X\(\/\/\)$/{
  11316. s//\1/
  11317. q
  11318. }
  11319. /^X\(\/\).*/{
  11320. s//\1/
  11321. q
  11322. }
  11323. s/.*/./; q'`
  11324. else
  11325. continue
  11326. fi
  11327. # Extract the definition of DEPDIR, am__include, and am__quote
  11328. # from the Makefile without running `make'.
  11329. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11330. test -z "$DEPDIR" && continue
  11331. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11332. test -z "am__include" && continue
  11333. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11334. # When using ansi2knr, U may be empty or an underscore; expand it
  11335. U=`sed -n 's/^U = //p' < "$mf"`
  11336. # Find all dependency output files, they are included files with
  11337. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11338. # simplest approach to changing $(DEPDIR) to its actual value in the
  11339. # expansion.
  11340. for file in `sed -n "
  11341. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11342. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11343. # Make sure the directory exists.
  11344. test -f "$dirpart/$file" && continue
  11345. fdir=`$as_dirname -- "$file" ||
  11346. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11347. X"$file" : 'X\(//\)[^/]' \| \
  11348. X"$file" : 'X\(//\)$' \| \
  11349. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11350. $as_echo X"$file" |
  11351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11352. s//\1/
  11353. q
  11354. }
  11355. /^X\(\/\/\)[^/].*/{
  11356. s//\1/
  11357. q
  11358. }
  11359. /^X\(\/\/\)$/{
  11360. s//\1/
  11361. q
  11362. }
  11363. /^X\(\/\).*/{
  11364. s//\1/
  11365. q
  11366. }
  11367. s/.*/./; q'`
  11368. { as_dir=$dirpart/$fdir
  11369. case $as_dir in #(
  11370. -*) as_dir=./$as_dir;;
  11371. esac
  11372. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11373. as_dirs=
  11374. while :; do
  11375. case $as_dir in #(
  11376. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11377. *) as_qdir=$as_dir;;
  11378. esac
  11379. as_dirs="'$as_qdir' $as_dirs"
  11380. as_dir=`$as_dirname -- "$as_dir" ||
  11381. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11382. X"$as_dir" : 'X\(//\)[^/]' \| \
  11383. X"$as_dir" : 'X\(//\)$' \| \
  11384. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11385. $as_echo X"$as_dir" |
  11386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11387. s//\1/
  11388. q
  11389. }
  11390. /^X\(\/\/\)[^/].*/{
  11391. s//\1/
  11392. q
  11393. }
  11394. /^X\(\/\/\)$/{
  11395. s//\1/
  11396. q
  11397. }
  11398. /^X\(\/\).*/{
  11399. s//\1/
  11400. q
  11401. }
  11402. s/.*/./; q'`
  11403. test -d "$as_dir" && break
  11404. done
  11405. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11406. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11407. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11408. { (exit 1); exit 1; }; }; }
  11409. # echo "creating $dirpart/$file"
  11410. echo '# dummy' > "$dirpart/$file"
  11411. done
  11412. done
  11413. ;;
  11414. "libtool":C)
  11415. # See if we are running on zsh, and set the options which allow our
  11416. # commands through without removal of \ escapes.
  11417. if test -n "${ZSH_VERSION+set}" ; then
  11418. setopt NO_GLOB_SUBST
  11419. fi
  11420. cfgfile="${ofile}T"
  11421. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11422. $RM "$cfgfile"
  11423. cat <<_LT_EOF >> "$cfgfile"
  11424. #! $SHELL
  11425. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11426. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11427. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11428. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11429. #
  11430. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11431. # 2006, 2007, 2008 Free Software Foundation, Inc.
  11432. # Written by Gordon Matzigkeit, 1996
  11433. #
  11434. # This file is part of GNU Libtool.
  11435. #
  11436. # GNU Libtool is free software; you can redistribute it and/or
  11437. # modify it under the terms of the GNU General Public License as
  11438. # published by the Free Software Foundation; either version 2 of
  11439. # the License, or (at your option) any later version.
  11440. #
  11441. # As a special exception to the GNU General Public License,
  11442. # if you distribute this file as part of a program or library that
  11443. # is built using GNU Libtool, you may include this file under the
  11444. # same distribution terms that you use for the rest of that program.
  11445. #
  11446. # GNU Libtool is distributed in the hope that it will be useful,
  11447. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11448. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11449. # GNU General Public License for more details.
  11450. #
  11451. # You should have received a copy of the GNU General Public License
  11452. # along with GNU Libtool; see the file COPYING. If not, a copy
  11453. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11454. # obtained by writing to the Free Software Foundation, Inc.,
  11455. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11456. # The names of the tagged configurations supported by this script.
  11457. available_tags=""
  11458. # ### BEGIN LIBTOOL CONFIG
  11459. # Which release of libtool.m4 was used?
  11460. macro_version=$macro_version
  11461. macro_revision=$macro_revision
  11462. # Whether or not to build shared libraries.
  11463. build_libtool_libs=$enable_shared
  11464. # Whether or not to build static libraries.
  11465. build_old_libs=$enable_static
  11466. # What type of objects to build.
  11467. pic_mode=$pic_mode
  11468. # Whether or not to optimize for fast installation.
  11469. fast_install=$enable_fast_install
  11470. # The host system.
  11471. host_alias=$host_alias
  11472. host=$host
  11473. host_os=$host_os
  11474. # The build system.
  11475. build_alias=$build_alias
  11476. build=$build
  11477. build_os=$build_os
  11478. # A sed program that does not truncate output.
  11479. SED=$lt_SED
  11480. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11481. Xsed="\$SED -e 1s/^X//"
  11482. # A grep program that handles long lines.
  11483. GREP=$lt_GREP
  11484. # An ERE matcher.
  11485. EGREP=$lt_EGREP
  11486. # A literal string matcher.
  11487. FGREP=$lt_FGREP
  11488. # A BSD- or MS-compatible name lister.
  11489. NM=$lt_NM
  11490. # Whether we need soft or hard links.
  11491. LN_S=$lt_LN_S
  11492. # What is the maximum length of a command?
  11493. max_cmd_len=$max_cmd_len
  11494. # Object file suffix (normally "o").
  11495. objext=$ac_objext
  11496. # Executable file suffix (normally "").
  11497. exeext=$exeext
  11498. # whether the shell understands "unset".
  11499. lt_unset=$lt_unset
  11500. # turn spaces into newlines.
  11501. SP2NL=$lt_lt_SP2NL
  11502. # turn newlines into spaces.
  11503. NL2SP=$lt_lt_NL2SP
  11504. # How to create reloadable object files.
  11505. reload_flag=$lt_reload_flag
  11506. reload_cmds=$lt_reload_cmds
  11507. # An object symbol dumper.
  11508. OBJDUMP=$lt_OBJDUMP
  11509. # Method to check whether dependent libraries are shared objects.
  11510. deplibs_check_method=$lt_deplibs_check_method
  11511. # Command to use when deplibs_check_method == "file_magic".
  11512. file_magic_cmd=$lt_file_magic_cmd
  11513. # The archiver.
  11514. AR=$lt_AR
  11515. AR_FLAGS=$lt_AR_FLAGS
  11516. # A symbol stripping program.
  11517. STRIP=$lt_STRIP
  11518. # Commands used to install an old-style archive.
  11519. RANLIB=$lt_RANLIB
  11520. old_postinstall_cmds=$lt_old_postinstall_cmds
  11521. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11522. # A C compiler.
  11523. LTCC=$lt_CC
  11524. # LTCC compiler flags.
  11525. LTCFLAGS=$lt_CFLAGS
  11526. # Take the output of nm and produce a listing of raw symbols and C names.
  11527. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11528. # Transform the output of nm in a proper C declaration.
  11529. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11530. # Transform the output of nm in a C name address pair.
  11531. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11532. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11533. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11534. # The name of the directory that contains temporary libtool files.
  11535. objdir=$objdir
  11536. # Shell to use when invoking shell scripts.
  11537. SHELL=$lt_SHELL
  11538. # An echo program that does not interpret backslashes.
  11539. ECHO=$lt_ECHO
  11540. # Used to examine libraries when file_magic_cmd begins with "file".
  11541. MAGIC_CMD=$MAGIC_CMD
  11542. # Must we lock files when doing compilation?
  11543. need_locks=$lt_need_locks
  11544. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11545. DSYMUTIL=$lt_DSYMUTIL
  11546. # Tool to change global to local symbols on Mac OS X.
  11547. NMEDIT=$lt_NMEDIT
  11548. # Tool to manipulate fat objects and archives on Mac OS X.
  11549. LIPO=$lt_LIPO
  11550. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11551. OTOOL=$lt_OTOOL
  11552. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11553. OTOOL64=$lt_OTOOL64
  11554. # Old archive suffix (normally "a").
  11555. libext=$libext
  11556. # Shared library suffix (normally ".so").
  11557. shrext_cmds=$lt_shrext_cmds
  11558. # The commands to extract the exported symbol list from a shared archive.
  11559. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11560. # Variables whose values should be saved in libtool wrapper scripts and
  11561. # restored at link time.
  11562. variables_saved_for_relink=$lt_variables_saved_for_relink
  11563. # Do we need the "lib" prefix for modules?
  11564. need_lib_prefix=$need_lib_prefix
  11565. # Do we need a version for libraries?
  11566. need_version=$need_version
  11567. # Library versioning type.
  11568. version_type=$version_type
  11569. # Shared library runtime path variable.
  11570. runpath_var=$runpath_var
  11571. # Shared library path variable.
  11572. shlibpath_var=$shlibpath_var
  11573. # Is shlibpath searched before the hard-coded library search path?
  11574. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11575. # Format of library name prefix.
  11576. libname_spec=$lt_libname_spec
  11577. # List of archive names. First name is the real one, the rest are links.
  11578. # The last name is the one that the linker finds with -lNAME
  11579. library_names_spec=$lt_library_names_spec
  11580. # The coded name of the library, if different from the real name.
  11581. soname_spec=$lt_soname_spec
  11582. # Command to use after installation of a shared archive.
  11583. postinstall_cmds=$lt_postinstall_cmds
  11584. # Command to use after uninstallation of a shared archive.
  11585. postuninstall_cmds=$lt_postuninstall_cmds
  11586. # Commands used to finish a libtool library installation in a directory.
  11587. finish_cmds=$lt_finish_cmds
  11588. # As "finish_cmds", except a single script fragment to be evaled but
  11589. # not shown.
  11590. finish_eval=$lt_finish_eval
  11591. # Whether we should hardcode library paths into libraries.
  11592. hardcode_into_libs=$hardcode_into_libs
  11593. # Compile-time system search path for libraries.
  11594. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11595. # Run-time system search path for libraries.
  11596. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11597. # Whether dlopen is supported.
  11598. dlopen_support=$enable_dlopen
  11599. # Whether dlopen of programs is supported.
  11600. dlopen_self=$enable_dlopen_self
  11601. # Whether dlopen of statically linked programs is supported.
  11602. dlopen_self_static=$enable_dlopen_self_static
  11603. # Commands to strip libraries.
  11604. old_striplib=$lt_old_striplib
  11605. striplib=$lt_striplib
  11606. # The linker used to build libraries.
  11607. LD=$lt_LD
  11608. # Commands used to build an old-style archive.
  11609. old_archive_cmds=$lt_old_archive_cmds
  11610. # A language specific compiler.
  11611. CC=$lt_compiler
  11612. # Is the compiler the GNU compiler?
  11613. with_gcc=$GCC
  11614. # Compiler flag to turn off builtin functions.
  11615. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11616. # How to pass a linker flag through the compiler.
  11617. wl=$lt_lt_prog_compiler_wl
  11618. # Additional compiler flags for building library objects.
  11619. pic_flag=$lt_lt_prog_compiler_pic
  11620. # Compiler flag to prevent dynamic linking.
  11621. link_static_flag=$lt_lt_prog_compiler_static
  11622. # Does compiler simultaneously support -c and -o options?
  11623. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11624. # Whether or not to add -lc for building shared libraries.
  11625. build_libtool_need_lc=$archive_cmds_need_lc
  11626. # Whether or not to disallow shared libs when runtime libs are static.
  11627. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11628. # Compiler flag to allow reflexive dlopens.
  11629. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11630. # Compiler flag to generate shared objects directly from archives.
  11631. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11632. # Whether the compiler copes with passing no objects directly.
  11633. compiler_needs_object=$lt_compiler_needs_object
  11634. # Create an old-style archive from a shared archive.
  11635. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11636. # Create a temporary old-style archive to link instead of a shared archive.
  11637. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11638. # Commands used to build a shared archive.
  11639. archive_cmds=$lt_archive_cmds
  11640. archive_expsym_cmds=$lt_archive_expsym_cmds
  11641. # Commands used to build a loadable module if different from building
  11642. # a shared archive.
  11643. module_cmds=$lt_module_cmds
  11644. module_expsym_cmds=$lt_module_expsym_cmds
  11645. # Whether we are building with GNU ld or not.
  11646. with_gnu_ld=$lt_with_gnu_ld
  11647. # Flag that allows shared libraries with undefined symbols to be built.
  11648. allow_undefined_flag=$lt_allow_undefined_flag
  11649. # Flag that enforces no undefined symbols.
  11650. no_undefined_flag=$lt_no_undefined_flag
  11651. # Flag to hardcode \$libdir into a binary during linking.
  11652. # This must work even if \$libdir does not exist
  11653. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11654. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11655. # during linking. This must work even if \$libdir does not exist.
  11656. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11657. # Whether we need a single "-rpath" flag with a separated argument.
  11658. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11659. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11660. # DIR into the resulting binary.
  11661. hardcode_direct=$hardcode_direct
  11662. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11663. # DIR into the resulting binary and the resulting library dependency is
  11664. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11665. # library is relocated.
  11666. hardcode_direct_absolute=$hardcode_direct_absolute
  11667. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11668. # into the resulting binary.
  11669. hardcode_minus_L=$hardcode_minus_L
  11670. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11671. # into the resulting binary.
  11672. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11673. # Set to "yes" if building a shared library automatically hardcodes DIR
  11674. # into the library and all subsequent libraries and executables linked
  11675. # against it.
  11676. hardcode_automatic=$hardcode_automatic
  11677. # Set to yes if linker adds runtime paths of dependent libraries
  11678. # to runtime path list.
  11679. inherit_rpath=$inherit_rpath
  11680. # Whether libtool must link a program against all its dependency libraries.
  11681. link_all_deplibs=$link_all_deplibs
  11682. # Fix the shell variable \$srcfile for the compiler.
  11683. fix_srcfile_path=$lt_fix_srcfile_path
  11684. # Set to "yes" if exported symbols are required.
  11685. always_export_symbols=$always_export_symbols
  11686. # The commands to list exported symbols.
  11687. export_symbols_cmds=$lt_export_symbols_cmds
  11688. # Symbols that should not be listed in the preloaded symbols.
  11689. exclude_expsyms=$lt_exclude_expsyms
  11690. # Symbols that must always be exported.
  11691. include_expsyms=$lt_include_expsyms
  11692. # Commands necessary for linking programs (against libraries) with templates.
  11693. prelink_cmds=$lt_prelink_cmds
  11694. # Specify filename containing input files.
  11695. file_list_spec=$lt_file_list_spec
  11696. # How to hardcode a shared library path into an executable.
  11697. hardcode_action=$hardcode_action
  11698. # ### END LIBTOOL CONFIG
  11699. _LT_EOF
  11700. case $host_os in
  11701. aix3*)
  11702. cat <<\_LT_EOF >> "$cfgfile"
  11703. # AIX sometimes has problems with the GCC collect2 program. For some
  11704. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11705. # vanish in a puff of smoke.
  11706. if test "X${COLLECT_NAMES+set}" != Xset; then
  11707. COLLECT_NAMES=
  11708. export COLLECT_NAMES
  11709. fi
  11710. _LT_EOF
  11711. ;;
  11712. esac
  11713. ltmain="$ac_aux_dir/ltmain.sh"
  11714. # We use sed instead of cat because bash on DJGPP gets confused if
  11715. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11716. # text mode, it properly converts lines to CR/LF. This bash problem
  11717. # is reportedly fixed, but why not run on old versions too?
  11718. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11719. || (rm -f "$cfgfile"; exit 1)
  11720. case $xsi_shell in
  11721. yes)
  11722. cat << \_LT_EOF >> "$cfgfile"
  11723. # func_dirname file append nondir_replacement
  11724. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11725. # otherwise set result to NONDIR_REPLACEMENT.
  11726. func_dirname ()
  11727. {
  11728. case ${1} in
  11729. */*) func_dirname_result="${1%/*}${2}" ;;
  11730. * ) func_dirname_result="${3}" ;;
  11731. esac
  11732. }
  11733. # func_basename file
  11734. func_basename ()
  11735. {
  11736. func_basename_result="${1##*/}"
  11737. }
  11738. # func_dirname_and_basename file append nondir_replacement
  11739. # perform func_basename and func_dirname in a single function
  11740. # call:
  11741. # dirname: Compute the dirname of FILE. If nonempty,
  11742. # add APPEND to the result, otherwise set result
  11743. # to NONDIR_REPLACEMENT.
  11744. # value returned in "$func_dirname_result"
  11745. # basename: Compute filename of FILE.
  11746. # value retuned in "$func_basename_result"
  11747. # Implementation must be kept synchronized with func_dirname
  11748. # and func_basename. For efficiency, we do not delegate to
  11749. # those functions but instead duplicate the functionality here.
  11750. func_dirname_and_basename ()
  11751. {
  11752. case ${1} in
  11753. */*) func_dirname_result="${1%/*}${2}" ;;
  11754. * ) func_dirname_result="${3}" ;;
  11755. esac
  11756. func_basename_result="${1##*/}"
  11757. }
  11758. # func_stripname prefix suffix name
  11759. # strip PREFIX and SUFFIX off of NAME.
  11760. # PREFIX and SUFFIX must not contain globbing or regex special
  11761. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11762. # dot (in which case that matches only a dot).
  11763. func_stripname ()
  11764. {
  11765. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11766. # positional parameters, so assign one to ordinary parameter first.
  11767. func_stripname_result=${3}
  11768. func_stripname_result=${func_stripname_result#"${1}"}
  11769. func_stripname_result=${func_stripname_result%"${2}"}
  11770. }
  11771. # func_opt_split
  11772. func_opt_split ()
  11773. {
  11774. func_opt_split_opt=${1%%=*}
  11775. func_opt_split_arg=${1#*=}
  11776. }
  11777. # func_lo2o object
  11778. func_lo2o ()
  11779. {
  11780. case ${1} in
  11781. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11782. *) func_lo2o_result=${1} ;;
  11783. esac
  11784. }
  11785. # func_xform libobj-or-source
  11786. func_xform ()
  11787. {
  11788. func_xform_result=${1%.*}.lo
  11789. }
  11790. # func_arith arithmetic-term...
  11791. func_arith ()
  11792. {
  11793. func_arith_result=$(( $* ))
  11794. }
  11795. # func_len string
  11796. # STRING may not start with a hyphen.
  11797. func_len ()
  11798. {
  11799. func_len_result=${#1}
  11800. }
  11801. _LT_EOF
  11802. ;;
  11803. *) # Bourne compatible functions.
  11804. cat << \_LT_EOF >> "$cfgfile"
  11805. # func_dirname file append nondir_replacement
  11806. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11807. # otherwise set result to NONDIR_REPLACEMENT.
  11808. func_dirname ()
  11809. {
  11810. # Extract subdirectory from the argument.
  11811. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11812. if test "X$func_dirname_result" = "X${1}"; then
  11813. func_dirname_result="${3}"
  11814. else
  11815. func_dirname_result="$func_dirname_result${2}"
  11816. fi
  11817. }
  11818. # func_basename file
  11819. func_basename ()
  11820. {
  11821. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11822. }
  11823. # func_stripname prefix suffix name
  11824. # strip PREFIX and SUFFIX off of NAME.
  11825. # PREFIX and SUFFIX must not contain globbing or regex special
  11826. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11827. # dot (in which case that matches only a dot).
  11828. # func_strip_suffix prefix name
  11829. func_stripname ()
  11830. {
  11831. case ${2} in
  11832. .*) func_stripname_result=`$ECHO "X${3}" \
  11833. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11834. *) func_stripname_result=`$ECHO "X${3}" \
  11835. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11836. esac
  11837. }
  11838. # sed scripts:
  11839. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11840. my_sed_long_arg='1s/^-[^=]*=//'
  11841. # func_opt_split
  11842. func_opt_split ()
  11843. {
  11844. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11845. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11846. }
  11847. # func_lo2o object
  11848. func_lo2o ()
  11849. {
  11850. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11851. }
  11852. # func_xform libobj-or-source
  11853. func_xform ()
  11854. {
  11855. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11856. }
  11857. # func_arith arithmetic-term...
  11858. func_arith ()
  11859. {
  11860. func_arith_result=`expr "$@"`
  11861. }
  11862. # func_len string
  11863. # STRING may not start with a hyphen.
  11864. func_len ()
  11865. {
  11866. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11867. }
  11868. _LT_EOF
  11869. esac
  11870. case $lt_shell_append in
  11871. yes)
  11872. cat << \_LT_EOF >> "$cfgfile"
  11873. # func_append var value
  11874. # Append VALUE to the end of shell variable VAR.
  11875. func_append ()
  11876. {
  11877. eval "$1+=\$2"
  11878. }
  11879. _LT_EOF
  11880. ;;
  11881. *)
  11882. cat << \_LT_EOF >> "$cfgfile"
  11883. # func_append var value
  11884. # Append VALUE to the end of shell variable VAR.
  11885. func_append ()
  11886. {
  11887. eval "$1=\$$1\$2"
  11888. }
  11889. _LT_EOF
  11890. ;;
  11891. esac
  11892. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11893. || (rm -f "$cfgfile"; exit 1)
  11894. mv -f "$cfgfile" "$ofile" ||
  11895. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11896. chmod +x "$ofile"
  11897. ;;
  11898. "default":C) chmod +x libusb-config ;;
  11899. esac
  11900. done # for ac_tag
  11901. { (exit 0); exit 0; }
  11902. _ACEOF
  11903. chmod +x $CONFIG_STATUS
  11904. ac_clean_files=$ac_clean_files_save
  11905. test $ac_write_fail = 0 ||
  11906. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  11907. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  11908. { (exit 1); exit 1; }; }
  11909. # configure is writing to config.log, and then calls config.status.
  11910. # config.status does its own redirection, appending to config.log.
  11911. # Unfortunately, on DOS this fails, as config.log is still kept open
  11912. # by configure, so config.status won't be able to write to it; its
  11913. # output is simply discarded. So we exec the FD to /dev/null,
  11914. # effectively closing config.log, so it can be properly (re)opened and
  11915. # appended to by config.status. When coming back to configure, we
  11916. # need to make the FD available again.
  11917. if test "$no_create" != yes; then
  11918. ac_cs_success=:
  11919. ac_config_status_args=
  11920. test "$silent" = yes &&
  11921. ac_config_status_args="$ac_config_status_args --quiet"
  11922. exec 5>/dev/null
  11923. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11924. exec 5>>config.log
  11925. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11926. # would make configure fail if this is the last instruction.
  11927. $ac_cs_success || { (exit 1); exit 1; }
  11928. fi
  11929. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11930. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11931. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11932. fi