PageRenderTime 73ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 1ms

/configure

https://bitbucket.org/libusbandroid/libusb-android
Shell | 13740 lines | 11636 code | 1144 blank | 960 comment | 862 complexity | 8bd3e58d27b79d89f7bbf7636950f678 MD5 | raw file
Possible License(s): LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libusb 1.0.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'
  647. PACKAGE_TARNAME='libusb'
  648. PACKAGE_VERSION='1.0.0'
  649. PACKAGE_STRING='libusb 1.0.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. lt_age
  693. lt_revision
  694. lt_major
  695. OS_LINUX_FALSE
  696. OS_LINUX_TRUE
  697. OS_LINUX
  698. CPP
  699. OTOOL64
  700. OTOOL
  701. LIPO
  702. NMEDIT
  703. DSYMUTIL
  704. lt_ECHO
  705. RANLIB
  706. AR
  707. OBJDUMP
  708. LN_S
  709. NM
  710. ac_ct_DUMPBIN
  711. DUMPBIN
  712. LD
  713. FGREP
  714. EGREP
  715. GREP
  716. SED
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. am__fastdepCC_FALSE
  727. am__fastdepCC_TRUE
  728. CCDEPMODE
  729. AMDEPBACKSLASH
  730. AMDEP_FALSE
  731. AMDEP_TRUE
  732. am__quote
  733. am__include
  734. DEPDIR
  735. OBJEXT
  736. EXEEXT
  737. ac_ct_CC
  738. CPPFLAGS
  739. LDFLAGS
  740. CFLAGS
  741. CC
  742. am__untar
  743. am__tar
  744. AMTAR
  745. am__leading_dot
  746. SET_MAKE
  747. AWK
  748. mkdir_p
  749. MKDIR_P
  750. INSTALL_STRIP_PROGRAM
  751. STRIP
  752. install_sh
  753. MAKEINFO
  754. AUTOHEADER
  755. AUTOMAKE
  756. AUTOCONF
  757. ACLOCAL
  758. VERSION
  759. PACKAGE
  760. CYGPATH_W
  761. am__isrc
  762. INSTALL_DATA
  763. INSTALL_SCRIPT
  764. INSTALL_PROGRAM
  765. target_alias
  766. host_alias
  767. build_alias
  768. LIBS
  769. ECHO_T
  770. ECHO_N
  771. ECHO_C
  772. DEFS
  773. mandir
  774. localedir
  775. libdir
  776. psdir
  777. pdfdir
  778. dvidir
  779. htmldir
  780. infodir
  781. docdir
  782. oldincludedir
  783. includedir
  784. localstatedir
  785. sharedstatedir
  786. sysconfdir
  787. datadir
  788. datarootdir
  789. libexecdir
  790. sbindir
  791. bindir
  792. program_transform_name
  793. prefix
  794. exec_prefix
  795. PACKAGE_BUGREPORT
  796. PACKAGE_STRING
  797. PACKAGE_VERSION
  798. PACKAGE_TARNAME
  799. PACKAGE_NAME
  800. PATH_SEPARATOR
  801. SHELL'
  802. ac_subst_files=''
  803. ac_user_opts='
  804. enable_option_checking
  805. enable_dependency_tracking
  806. enable_shared
  807. enable_static
  808. with_pic
  809. enable_fast_install
  810. with_gnu_ld
  811. enable_libtool_lock
  812. enable_log
  813. enable_debug_log
  814. enable_examples_build
  815. '
  816. ac_precious_vars='build_alias
  817. host_alias
  818. target_alias
  819. CC
  820. CFLAGS
  821. LDFLAGS
  822. LIBS
  823. CPPFLAGS
  824. CPP'
  825. # Initialize some variables set by options.
  826. ac_init_help=
  827. ac_init_version=false
  828. ac_unrecognized_opts=
  829. ac_unrecognized_sep=
  830. # The variables have the same names as the options, with
  831. # dashes changed to underlines.
  832. cache_file=/dev/null
  833. exec_prefix=NONE
  834. no_create=
  835. no_recursion=
  836. prefix=NONE
  837. program_prefix=NONE
  838. program_suffix=NONE
  839. program_transform_name=s,x,x,
  840. silent=
  841. site=
  842. srcdir=
  843. verbose=
  844. x_includes=NONE
  845. x_libraries=NONE
  846. # Installation directory options.
  847. # These are left unexpanded so users can "make install exec_prefix=/foo"
  848. # and all the variables that are supposed to be based on exec_prefix
  849. # by default will actually change.
  850. # Use braces instead of parens because sh, perl, etc. also accept them.
  851. # (The list follows the same order as the GNU Coding Standards.)
  852. bindir='${exec_prefix}/bin'
  853. sbindir='${exec_prefix}/sbin'
  854. libexecdir='${exec_prefix}/libexec'
  855. datarootdir='${prefix}/share'
  856. datadir='${datarootdir}'
  857. sysconfdir='${prefix}/etc'
  858. sharedstatedir='${prefix}/com'
  859. localstatedir='${prefix}/var'
  860. includedir='${prefix}/include'
  861. oldincludedir='/usr/include'
  862. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  863. infodir='${datarootdir}/info'
  864. htmldir='${docdir}'
  865. dvidir='${docdir}'
  866. pdfdir='${docdir}'
  867. psdir='${docdir}'
  868. libdir='${exec_prefix}/lib'
  869. localedir='${datarootdir}/locale'
  870. mandir='${datarootdir}/man'
  871. ac_prev=
  872. ac_dashdash=
  873. for ac_option
  874. do
  875. # If the previous option needs an argument, assign it.
  876. if test -n "$ac_prev"; then
  877. eval $ac_prev=\$ac_option
  878. ac_prev=
  879. continue
  880. fi
  881. case $ac_option in
  882. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  883. *) ac_optarg=yes ;;
  884. esac
  885. # Accept the important Cygnus configure options, so we can diagnose typos.
  886. case $ac_dashdash$ac_option in
  887. --)
  888. ac_dashdash=yes ;;
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893. -build | --build | --buil | --bui | --bu)
  894. ac_prev=build_alias ;;
  895. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  896. build_alias=$ac_optarg ;;
  897. -cache-file | --cache-file | --cache-fil | --cache-fi \
  898. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  899. ac_prev=cache_file ;;
  900. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  901. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  902. cache_file=$ac_optarg ;;
  903. --config-cache | -C)
  904. cache_file=config.cache ;;
  905. -datadir | --datadir | --datadi | --datad)
  906. ac_prev=datadir ;;
  907. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  908. datadir=$ac_optarg ;;
  909. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  910. | --dataroo | --dataro | --datar)
  911. ac_prev=datarootdir ;;
  912. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  913. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  914. datarootdir=$ac_optarg ;;
  915. -disable-* | --disable-*)
  916. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  919. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_useropt_orig=$ac_useropt
  922. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  923. case $ac_user_opts in
  924. *"
  925. "enable_$ac_useropt"
  926. "*) ;;
  927. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  928. ac_unrecognized_sep=', ';;
  929. esac
  930. eval enable_$ac_useropt=no ;;
  931. -docdir | --docdir | --docdi | --doc | --do)
  932. ac_prev=docdir ;;
  933. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  934. docdir=$ac_optarg ;;
  935. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  936. ac_prev=dvidir ;;
  937. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  938. dvidir=$ac_optarg ;;
  939. -enable-* | --enable-*)
  940. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  941. # Reject names that are not valid shell variable names.
  942. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  944. { (exit 1); exit 1; }; }
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=\$ac_optarg ;;
  955. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  956. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  957. | --exec | --exe | --ex)
  958. ac_prev=exec_prefix ;;
  959. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  960. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  961. | --exec=* | --exe=* | --ex=*)
  962. exec_prefix=$ac_optarg ;;
  963. -gas | --gas | --ga | --g)
  964. # Obsolete; use --with-gas.
  965. with_gas=yes ;;
  966. -help | --help | --hel | --he | -h)
  967. ac_init_help=long ;;
  968. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  969. ac_init_help=recursive ;;
  970. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  971. ac_init_help=short ;;
  972. -host | --host | --hos | --ho)
  973. ac_prev=host_alias ;;
  974. -host=* | --host=* | --hos=* | --ho=*)
  975. host_alias=$ac_optarg ;;
  976. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  977. ac_prev=htmldir ;;
  978. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  979. | --ht=*)
  980. htmldir=$ac_optarg ;;
  981. -includedir | --includedir | --includedi | --included | --include \
  982. | --includ | --inclu | --incl | --inc)
  983. ac_prev=includedir ;;
  984. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  985. | --includ=* | --inclu=* | --incl=* | --inc=*)
  986. includedir=$ac_optarg ;;
  987. -infodir | --infodir | --infodi | --infod | --info | --inf)
  988. ac_prev=infodir ;;
  989. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  990. infodir=$ac_optarg ;;
  991. -libdir | --libdir | --libdi | --libd)
  992. ac_prev=libdir ;;
  993. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  994. libdir=$ac_optarg ;;
  995. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  996. | --libexe | --libex | --libe)
  997. ac_prev=libexecdir ;;
  998. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  999. | --libexe=* | --libex=* | --libe=*)
  1000. libexecdir=$ac_optarg ;;
  1001. -localedir | --localedir | --localedi | --localed | --locale)
  1002. ac_prev=localedir ;;
  1003. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1004. localedir=$ac_optarg ;;
  1005. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1006. | --localstate | --localstat | --localsta | --localst | --locals)
  1007. ac_prev=localstatedir ;;
  1008. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1009. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1010. localstatedir=$ac_optarg ;;
  1011. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1012. ac_prev=mandir ;;
  1013. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1014. mandir=$ac_optarg ;;
  1015. -nfp | --nfp | --nf)
  1016. # Obsolete; use --without-fp.
  1017. with_fp=no ;;
  1018. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1019. | --no-cr | --no-c | -n)
  1020. no_create=yes ;;
  1021. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1022. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1023. no_recursion=yes ;;
  1024. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1025. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1026. | --oldin | --oldi | --old | --ol | --o)
  1027. ac_prev=oldincludedir ;;
  1028. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1029. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1030. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1031. oldincludedir=$ac_optarg ;;
  1032. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1033. ac_prev=prefix ;;
  1034. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1035. prefix=$ac_optarg ;;
  1036. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1037. | --program-pre | --program-pr | --program-p)
  1038. ac_prev=program_prefix ;;
  1039. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1040. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1041. program_prefix=$ac_optarg ;;
  1042. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1043. | --program-suf | --program-su | --program-s)
  1044. ac_prev=program_suffix ;;
  1045. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1046. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1047. program_suffix=$ac_optarg ;;
  1048. -program-transform-name | --program-transform-name \
  1049. | --program-transform-nam | --program-transform-na \
  1050. | --program-transform-n | --program-transform- \
  1051. | --program-transform | --program-transfor \
  1052. | --program-transfo | --program-transf \
  1053. | --program-trans | --program-tran \
  1054. | --progr-tra | --program-tr | --program-t)
  1055. ac_prev=program_transform_name ;;
  1056. -program-transform-name=* | --program-transform-name=* \
  1057. | --program-transform-nam=* | --program-transform-na=* \
  1058. | --program-transform-n=* | --program-transform-=* \
  1059. | --program-transform=* | --program-transfor=* \
  1060. | --program-transfo=* | --program-transf=* \
  1061. | --program-trans=* | --program-tran=* \
  1062. | --progr-tra=* | --program-tr=* | --program-t=*)
  1063. program_transform_name=$ac_optarg ;;
  1064. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1065. ac_prev=pdfdir ;;
  1066. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1067. pdfdir=$ac_optarg ;;
  1068. -psdir | --psdir | --psdi | --psd | --ps)
  1069. ac_prev=psdir ;;
  1070. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1071. psdir=$ac_optarg ;;
  1072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073. | -silent | --silent | --silen | --sile | --sil)
  1074. silent=yes ;;
  1075. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1076. ac_prev=sbindir ;;
  1077. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1078. | --sbi=* | --sb=*)
  1079. sbindir=$ac_optarg ;;
  1080. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1081. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1082. | --sharedst | --shareds | --shared | --share | --shar \
  1083. | --sha | --sh)
  1084. ac_prev=sharedstatedir ;;
  1085. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1086. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1087. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1088. | --sha=* | --sh=*)
  1089. sharedstatedir=$ac_optarg ;;
  1090. -site | --site | --sit)
  1091. ac_prev=site ;;
  1092. -site=* | --site=* | --sit=*)
  1093. site=$ac_optarg ;;
  1094. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1095. ac_prev=srcdir ;;
  1096. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1097. srcdir=$ac_optarg ;;
  1098. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1099. | --syscon | --sysco | --sysc | --sys | --sy)
  1100. ac_prev=sysconfdir ;;
  1101. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1102. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1103. sysconfdir=$ac_optarg ;;
  1104. -target | --target | --targe | --targ | --tar | --ta | --t)
  1105. ac_prev=target_alias ;;
  1106. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1107. target_alias=$ac_optarg ;;
  1108. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1109. verbose=yes ;;
  1110. -version | --version | --versio | --versi | --vers | -V)
  1111. ac_init_version=: ;;
  1112. -with-* | --with-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1117. { (exit 1); exit 1; }; }
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval with_$ac_useropt=\$ac_optarg ;;
  1128. -without-* | --without-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1133. { (exit 1); exit 1; }; }
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=no ;;
  1144. --x)
  1145. # Obsolete; use --with-x.
  1146. with_x=yes ;;
  1147. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1148. | --x-incl | --x-inc | --x-in | --x-i)
  1149. ac_prev=x_includes ;;
  1150. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1151. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1152. x_includes=$ac_optarg ;;
  1153. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1154. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1155. ac_prev=x_libraries ;;
  1156. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1157. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1158. x_libraries=$ac_optarg ;;
  1159. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1160. Try \`$0 --help' for more information." >&2
  1161. { (exit 1); exit 1; }; }
  1162. ;;
  1163. *=*)
  1164. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1165. # Reject names that are not valid shell variable names.
  1166. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1167. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1168. { (exit 1); exit 1; }; }
  1169. eval $ac_envvar=\$ac_optarg
  1170. export $ac_envvar ;;
  1171. *)
  1172. # FIXME: should be removed in autoconf 3.0.
  1173. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1174. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1175. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1176. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1177. ;;
  1178. esac
  1179. done
  1180. if test -n "$ac_prev"; then
  1181. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1182. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1183. { (exit 1); exit 1; }; }
  1184. fi
  1185. if test -n "$ac_unrecognized_opts"; then
  1186. case $enable_option_checking in
  1187. no) ;;
  1188. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1189. { (exit 1); exit 1; }; } ;;
  1190. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1191. esac
  1192. fi
  1193. # Check all directory arguments for consistency.
  1194. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1195. datadir sysconfdir sharedstatedir localstatedir includedir \
  1196. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1197. libdir localedir mandir
  1198. do
  1199. eval ac_val=\$$ac_var
  1200. # Remove trailing slashes.
  1201. case $ac_val in
  1202. */ )
  1203. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1204. eval $ac_var=\$ac_val;;
  1205. esac
  1206. # Be sure to have absolute directory names.
  1207. case $ac_val in
  1208. [\\/$]* | ?:[\\/]* ) continue;;
  1209. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1210. esac
  1211. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1212. { (exit 1); exit 1; }; }
  1213. done
  1214. # There might be people who depend on the old broken behavior: `$host'
  1215. # used to hold the argument of --host etc.
  1216. # FIXME: To remove some day.
  1217. build=$build_alias
  1218. host=$host_alias
  1219. target=$target_alias
  1220. # FIXME: To remove some day.
  1221. if test "x$host_alias" != x; then
  1222. if test "x$build_alias" = x; then
  1223. cross_compiling=maybe
  1224. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1225. If a cross compiler is detected then cross compile mode will be used." >&2
  1226. elif test "x$build_alias" != "x$host_alias"; then
  1227. cross_compiling=yes
  1228. fi
  1229. fi
  1230. ac_tool_prefix=
  1231. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1232. test "$silent" = yes && exec 6>/dev/null
  1233. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1234. ac_ls_di=`ls -di .` &&
  1235. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1236. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1237. { (exit 1); exit 1; }; }
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1240. { (exit 1); exit 1; }; }
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1278. { (exit 1); exit 1; }; }
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1283. { (exit 1); exit 1; }; }
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. for ac_var in $ac_precious_vars; do
  1296. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_env_${ac_var}_value=\$${ac_var}
  1298. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1300. done
  1301. #
  1302. # Report the --help message.
  1303. #
  1304. if test "$ac_init_help" = "long"; then
  1305. # Omit some internal or obsolete options to make the list less imposing.
  1306. # This message is too long to be a string in the A/UX 3.1 sh.
  1307. cat <<_ACEOF
  1308. \`configure' configures libusb 1.0.0 to adapt to many kinds of systems.
  1309. Usage: $0 [OPTION]... [VAR=VALUE]...
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE. See below for descriptions of some of the useful variables.
  1312. Defaults for the options are specified in brackets.
  1313. Configuration:
  1314. -h, --help display this help and exit
  1315. --help=short display options specific to this package
  1316. --help=recursive display the short help of all the included packages
  1317. -V, --version display version information and exit
  1318. -q, --quiet, --silent do not print \`checking...' messages
  1319. --cache-file=FILE cache test results in FILE [disabled]
  1320. -C, --config-cache alias for \`--cache-file=config.cache'
  1321. -n, --no-create do not create output files
  1322. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1323. Installation directories:
  1324. --prefix=PREFIX install architecture-independent files in PREFIX
  1325. [$ac_default_prefix]
  1326. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1327. [PREFIX]
  1328. By default, \`make install' will install all the files in
  1329. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1330. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1331. for instance \`--prefix=\$HOME'.
  1332. For better control, use the options below.
  1333. Fine tuning of the installation directories:
  1334. --bindir=DIR user executables [EPREFIX/bin]
  1335. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1336. --libexecdir=DIR program executables [EPREFIX/libexec]
  1337. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1338. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1339. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/libusb]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. Program names:
  1356. --program-prefix=PREFIX prepend PREFIX to installed program names
  1357. --program-suffix=SUFFIX append SUFFIX to installed program names
  1358. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1359. System types:
  1360. --build=BUILD configure for building on BUILD [guessed]
  1361. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1362. _ACEOF
  1363. fi
  1364. if test -n "$ac_init_help"; then
  1365. case $ac_init_help in
  1366. short | recursive ) echo "Configuration of libusb 1.0.0:";;
  1367. esac
  1368. cat <<\_ACEOF
  1369. Optional Features:
  1370. --disable-option-checking ignore unrecognized --enable/--with options
  1371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1373. --disable-dependency-tracking speeds up one-time build
  1374. --enable-dependency-tracking do not reject slow dependency extractors
  1375. --enable-shared[=PKGS] build shared libraries [default=yes]
  1376. --enable-static[=PKGS] build static libraries [default=yes]
  1377. --enable-fast-install[=PKGS]
  1378. optimize for fast installation [default=yes]
  1379. --disable-libtool-lock avoid locking (might break parallel builds)
  1380. --disable-log disable all logging
  1381. --enable-debug-log enable debug logging (default n)
  1382. --enable-examples-build build example applications (default n)
  1383. Optional Packages:
  1384. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1385. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1386. --with-pic try to use only PIC/non-PIC objects [default=use
  1387. both]
  1388. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1389. Some influential environment variables:
  1390. CC C compiler command
  1391. CFLAGS C compiler flags
  1392. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1393. nonstandard directory <lib dir>
  1394. LIBS libraries to pass to the linker, e.g. -l<library>
  1395. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1396. you have headers in a nonstandard directory <include dir>
  1397. CPP C preprocessor
  1398. Use these variables to override the choices made by `configure' or to help
  1399. it to find libraries and programs with nonstandard names/locations.
  1400. _ACEOF
  1401. ac_status=$?
  1402. fi
  1403. if test "$ac_init_help" = "recursive"; then
  1404. # If there are subdirs, report their specific --help.
  1405. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1406. test -d "$ac_dir" ||
  1407. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1408. continue
  1409. ac_builddir=.
  1410. case "$ac_dir" in
  1411. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *)
  1413. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1414. # A ".." for each directory in $ac_dir_suffix.
  1415. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1416. case $ac_top_builddir_sub in
  1417. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1418. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1419. esac ;;
  1420. esac
  1421. ac_abs_top_builddir=$ac_pwd
  1422. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1423. # for backward compatibility:
  1424. ac_top_builddir=$ac_top_build_prefix
  1425. case $srcdir in
  1426. .) # We are building in place.
  1427. ac_srcdir=.
  1428. ac_top_srcdir=$ac_top_builddir_sub
  1429. ac_abs_top_srcdir=$ac_pwd ;;
  1430. [\\/]* | ?:[\\/]* ) # Absolute name.
  1431. ac_srcdir=$srcdir$ac_dir_suffix;
  1432. ac_top_srcdir=$srcdir
  1433. ac_abs_top_srcdir=$srcdir ;;
  1434. *) # Relative name.
  1435. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1436. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1437. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1438. esac
  1439. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1440. cd "$ac_dir" || { ac_status=$?; continue; }
  1441. # Check for guested configure.
  1442. if test -f "$ac_srcdir/configure.gnu"; then
  1443. echo &&
  1444. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1445. elif test -f "$ac_srcdir/configure"; then
  1446. echo &&
  1447. $SHELL "$ac_srcdir/configure" --help=recursive
  1448. else
  1449. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1450. fi || ac_status=$?
  1451. cd "$ac_pwd" || { ac_status=$?; break; }
  1452. done
  1453. fi
  1454. test -n "$ac_init_help" && exit $ac_status
  1455. if $ac_init_version; then
  1456. cat <<\_ACEOF
  1457. libusb configure 1.0.0
  1458. generated by GNU Autoconf 2.63
  1459. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1460. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1461. This configure script is free software; the Free Software Foundation
  1462. gives unlimited permission to copy, distribute and modify it.
  1463. _ACEOF
  1464. exit
  1465. fi
  1466. cat >config.log <<_ACEOF
  1467. This file contains any messages produced by compilers while
  1468. running configure, to aid debugging if configure makes a mistake.
  1469. It was created by libusb $as_me 1.0.0, which was
  1470. generated by GNU Autoconf 2.63. Invocation command line was
  1471. $ $0 $@
  1472. _ACEOF
  1473. exec 5>>config.log
  1474. {
  1475. cat <<_ASUNAME
  1476. ## --------- ##
  1477. ## Platform. ##
  1478. ## --------- ##
  1479. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1480. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1481. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1482. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1483. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1484. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1485. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1486. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1487. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1488. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1489. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1490. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1491. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1492. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1493. _ASUNAME
  1494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1495. for as_dir in $PATH
  1496. do
  1497. IFS=$as_save_IFS
  1498. test -z "$as_dir" && as_dir=.
  1499. $as_echo "PATH: $as_dir"
  1500. done
  1501. IFS=$as_save_IFS
  1502. } >&5
  1503. cat >&5 <<_ACEOF
  1504. ## ----------- ##
  1505. ## Core tests. ##
  1506. ## ----------- ##
  1507. _ACEOF
  1508. # Keep a trace of the command line.
  1509. # Strip out --no-create and --no-recursion so they do not pile up.
  1510. # Strip out --silent because we don't want to record it for future runs.
  1511. # Also quote any args containing shell meta-characters.
  1512. # Make two passes to allow for proper duplicate-argument suppression.
  1513. ac_configure_args=
  1514. ac_configure_args0=
  1515. ac_configure_args1=
  1516. ac_must_keep_next=false
  1517. for ac_pass in 1 2
  1518. do
  1519. for ac_arg
  1520. do
  1521. case $ac_arg in
  1522. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1523. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1524. | -silent | --silent | --silen | --sile | --sil)
  1525. continue ;;
  1526. *\'*)
  1527. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1528. esac
  1529. case $ac_pass in
  1530. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1531. 2)
  1532. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1533. if test $ac_must_keep_next = true; then
  1534. ac_must_keep_next=false # Got value, back to normal.
  1535. else
  1536. case $ac_arg in
  1537. *=* | --config-cache | -C | -disable-* | --disable-* \
  1538. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1539. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1540. | -with-* | --with-* | -without-* | --without-* | --x)
  1541. case "$ac_configure_args0 " in
  1542. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1543. esac
  1544. ;;
  1545. -* ) ac_must_keep_next=true ;;
  1546. esac
  1547. fi
  1548. ac_configure_args="$ac_configure_args '$ac_arg'"
  1549. ;;
  1550. esac
  1551. done
  1552. done
  1553. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1554. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1555. # When interrupted or exit'd, cleanup temporary files, and complete
  1556. # config.log. We remove comments because anyway the quotes in ther

Large files files are truncated, but you can click here to view the full file