/contrib/ntp/sntp/configure

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 16833 lines · 13758 code · 1397 blank · 1678 comment · 1179 complexity · ea6637b1311adfb56a4d88b35e9037a7 MD5 · raw file

Large files are truncated 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.65.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee 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; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. echo=${ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $echo works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<EOF
  511. $*
  512. EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  524. echo_test_string=`eval $cmd` &&
  525. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. echo="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$echo" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. echo='print -r'
  560. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. echo='printf %s\n'
  571. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. echo="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. echo="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. echo=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. ECHO=$echo
  616. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. test -n "$DJDIR" || exec 7<&0 </dev/null
  620. exec 6>&1
  621. # Name of the host.
  622. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  623. # so uname gets run too.
  624. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  625. #
  626. # Initializations.
  627. #
  628. ac_default_prefix=/usr/local
  629. ac_clean_files=
  630. ac_config_libobj_dir=.
  631. LIBOBJS=
  632. cross_compiling=no
  633. subdirs=
  634. MFLAGS=
  635. MAKEFLAGS=
  636. # Identity of this package.
  637. PACKAGE_NAME=
  638. PACKAGE_TARNAME=
  639. PACKAGE_VERSION=
  640. PACKAGE_STRING=
  641. PACKAGE_BUGREPORT=
  642. PACKAGE_URL=
  643. ac_unique_file="main.c"
  644. ac_unique_file="header.h"
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIBOBJS
  684. BINSUBDIR
  685. HAVE_INLINE
  686. LIBOPTS_CFLAGS
  687. LIBOPTS_LDADD
  688. NEED_LIBOPTS_FALSE
  689. NEED_LIBOPTS_TRUE
  690. INSTALL_LIBOPTS_FALSE
  691. INSTALL_LIBOPTS_TRUE
  692. LIBOPTS_DIR
  693. LIBTOOL
  694. CPP
  695. RANLIB
  696. AR
  697. ECHO
  698. LN_S
  699. EGREP
  700. GREP
  701. am__fastdepCC_FALSE
  702. am__fastdepCC_TRUE
  703. CCDEPMODE
  704. AMDEPBACKSLASH
  705. AMDEP_FALSE
  706. AMDEP_TRUE
  707. am__quote
  708. am__include
  709. DEPDIR
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. am__untar
  726. am__tar
  727. AMTAR
  728. am__leading_dot
  729. SET_MAKE
  730. AWK
  731. mkdir_p
  732. MKDIR_P
  733. INSTALL_STRIP_PROGRAM
  734. STRIP
  735. install_sh
  736. MAKEINFO
  737. AUTOHEADER
  738. AUTOMAKE
  739. AUTOCONF
  740. ACLOCAL
  741. VERSION
  742. PACKAGE
  743. CYGPATH_W
  744. am__isrc
  745. INSTALL_DATA
  746. INSTALL_SCRIPT
  747. INSTALL_PROGRAM
  748. target_alias
  749. host_alias
  750. build_alias
  751. LIBS
  752. ECHO_T
  753. ECHO_N
  754. ECHO_C
  755. DEFS
  756. mandir
  757. localedir
  758. libdir
  759. psdir
  760. pdfdir
  761. dvidir
  762. htmldir
  763. infodir
  764. docdir
  765. oldincludedir
  766. includedir
  767. localstatedir
  768. sharedstatedir
  769. sysconfdir
  770. datadir
  771. datarootdir
  772. libexecdir
  773. sbindir
  774. bindir
  775. program_transform_name
  776. prefix
  777. exec_prefix
  778. PACKAGE_URL
  779. PACKAGE_BUGREPORT
  780. PACKAGE_STRING
  781. PACKAGE_VERSION
  782. PACKAGE_TARNAME
  783. PACKAGE_NAME
  784. PATH_SEPARATOR
  785. SHELL'
  786. ac_subst_files=''
  787. ac_user_opts='
  788. enable_option_checking
  789. enable_dependency_tracking
  790. enable_shared
  791. enable_static
  792. enable_fast_install
  793. with_gnu_ld
  794. enable_libtool_lock
  795. with_pic
  796. with_tags
  797. enable_local_libopts
  798. enable_libopts_install
  799. with_autoopts_config
  800. with_regex_header
  801. with_libregex
  802. with_libregex_cflags
  803. with_libregex_libs
  804. enable_optional_args
  805. with_binsubdir
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. CPP'
  816. # Initialize some variables set by options.
  817. ac_init_help=
  818. ac_init_version=false
  819. ac_unrecognized_opts=
  820. ac_unrecognized_sep=
  821. # The variables have the same names as the options, with
  822. # dashes changed to underlines.
  823. cache_file=/dev/null
  824. exec_prefix=NONE
  825. no_create=
  826. no_recursion=
  827. prefix=NONE
  828. program_prefix=NONE
  829. program_suffix=NONE
  830. program_transform_name=s,x,x,
  831. silent=
  832. site=
  833. srcdir=
  834. verbose=
  835. x_includes=NONE
  836. x_libraries=NONE
  837. # Installation directory options.
  838. # These are left unexpanded so users can "make install exec_prefix=/foo"
  839. # and all the variables that are supposed to be based on exec_prefix
  840. # by default will actually change.
  841. # Use braces instead of parens because sh, perl, etc. also accept them.
  842. # (The list follows the same order as the GNU Coding Standards.)
  843. bindir='${exec_prefix}/bin'
  844. sbindir='${exec_prefix}/sbin'
  845. libexecdir='${exec_prefix}/libexec'
  846. datarootdir='${prefix}/share'
  847. datadir='${datarootdir}'
  848. sysconfdir='${prefix}/etc'
  849. sharedstatedir='${prefix}/com'
  850. localstatedir='${prefix}/var'
  851. includedir='${prefix}/include'
  852. oldincludedir='/usr/include'
  853. docdir='${datarootdir}/doc/${PACKAGE}'
  854. infodir='${datarootdir}/info'
  855. htmldir='${docdir}'
  856. dvidir='${docdir}'
  857. pdfdir='${docdir}'
  858. psdir='${docdir}'
  859. libdir='${exec_prefix}/lib'
  860. localedir='${datarootdir}/locale'
  861. mandir='${datarootdir}/man'
  862. ac_prev=
  863. ac_dashdash=
  864. for ac_option
  865. do
  866. # If the previous option needs an argument, assign it.
  867. if test -n "$ac_prev"; then
  868. eval $ac_prev=\$ac_option
  869. ac_prev=
  870. continue
  871. fi
  872. case $ac_option in
  873. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  874. *) ac_optarg=yes ;;
  875. esac
  876. # Accept the important Cygnus configure options, so we can diagnose typos.
  877. case $ac_dashdash$ac_option in
  878. --)
  879. ac_dashdash=yes ;;
  880. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  881. ac_prev=bindir ;;
  882. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  883. bindir=$ac_optarg ;;
  884. -build | --build | --buil | --bui | --bu)
  885. ac_prev=build_alias ;;
  886. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  887. build_alias=$ac_optarg ;;
  888. -cache-file | --cache-file | --cache-fil | --cache-fi \
  889. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  890. ac_prev=cache_file ;;
  891. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  892. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  893. cache_file=$ac_optarg ;;
  894. --config-cache | -C)
  895. cache_file=config.cache ;;
  896. -datadir | --datadir | --datadi | --datad)
  897. ac_prev=datadir ;;
  898. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  899. datadir=$ac_optarg ;;
  900. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  901. | --dataroo | --dataro | --datar)
  902. ac_prev=datarootdir ;;
  903. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  904. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  905. datarootdir=$ac_optarg ;;
  906. -disable-* | --disable-*)
  907. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  908. # Reject names that are not valid shell variable names.
  909. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  910. as_fn_error "invalid feature name: $ac_useropt"
  911. ac_useropt_orig=$ac_useropt
  912. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  913. case $ac_user_opts in
  914. *"
  915. "enable_$ac_useropt"
  916. "*) ;;
  917. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  918. ac_unrecognized_sep=', ';;
  919. esac
  920. eval enable_$ac_useropt=no ;;
  921. -docdir | --docdir | --docdi | --doc | --do)
  922. ac_prev=docdir ;;
  923. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  924. docdir=$ac_optarg ;;
  925. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  926. ac_prev=dvidir ;;
  927. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  928. dvidir=$ac_optarg ;;
  929. -enable-* | --enable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=\$ac_optarg ;;
  944. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  945. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  946. | --exec | --exe | --ex)
  947. ac_prev=exec_prefix ;;
  948. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  949. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  950. | --exec=* | --exe=* | --ex=*)
  951. exec_prefix=$ac_optarg ;;
  952. -gas | --gas | --ga | --g)
  953. # Obsolete; use --with-gas.
  954. with_gas=yes ;;
  955. -help | --help | --hel | --he | -h)
  956. ac_init_help=long ;;
  957. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  958. ac_init_help=recursive ;;
  959. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  960. ac_init_help=short ;;
  961. -host | --host | --hos | --ho)
  962. ac_prev=host_alias ;;
  963. -host=* | --host=* | --hos=* | --ho=*)
  964. host_alias=$ac_optarg ;;
  965. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  966. ac_prev=htmldir ;;
  967. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  968. | --ht=*)
  969. htmldir=$ac_optarg ;;
  970. -includedir | --includedir | --includedi | --included | --include \
  971. | --includ | --inclu | --incl | --inc)
  972. ac_prev=includedir ;;
  973. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  974. | --includ=* | --inclu=* | --incl=* | --inc=*)
  975. includedir=$ac_optarg ;;
  976. -infodir | --infodir | --infodi | --infod | --info | --inf)
  977. ac_prev=infodir ;;
  978. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  979. infodir=$ac_optarg ;;
  980. -libdir | --libdir | --libdi | --libd)
  981. ac_prev=libdir ;;
  982. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  983. libdir=$ac_optarg ;;
  984. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  985. | --libexe | --libex | --libe)
  986. ac_prev=libexecdir ;;
  987. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  988. | --libexe=* | --libex=* | --libe=*)
  989. libexecdir=$ac_optarg ;;
  990. -localedir | --localedir | --localedi | --localed | --locale)
  991. ac_prev=localedir ;;
  992. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  993. localedir=$ac_optarg ;;
  994. -localstatedir | --localstatedir | --localstatedi | --localstated \
  995. | --localstate | --localstat | --localsta | --localst | --locals)
  996. ac_prev=localstatedir ;;
  997. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  998. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  999. localstatedir=$ac_optarg ;;
  1000. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1001. ac_prev=mandir ;;
  1002. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1003. mandir=$ac_optarg ;;
  1004. -nfp | --nfp | --nf)
  1005. # Obsolete; use --without-fp.
  1006. with_fp=no ;;
  1007. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1008. | --no-cr | --no-c | -n)
  1009. no_create=yes ;;
  1010. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1011. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1012. no_recursion=yes ;;
  1013. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1014. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1015. | --oldin | --oldi | --old | --ol | --o)
  1016. ac_prev=oldincludedir ;;
  1017. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1018. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1019. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1020. oldincludedir=$ac_optarg ;;
  1021. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1022. ac_prev=prefix ;;
  1023. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1024. prefix=$ac_optarg ;;
  1025. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1026. | --program-pre | --program-pr | --program-p)
  1027. ac_prev=program_prefix ;;
  1028. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1029. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1030. program_prefix=$ac_optarg ;;
  1031. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1032. | --program-suf | --program-su | --program-s)
  1033. ac_prev=program_suffix ;;
  1034. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1035. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1036. program_suffix=$ac_optarg ;;
  1037. -program-transform-name | --program-transform-name \
  1038. | --program-transform-nam | --program-transform-na \
  1039. | --program-transform-n | --program-transform- \
  1040. | --program-transform | --program-transfor \
  1041. | --program-transfo | --program-transf \
  1042. | --program-trans | --program-tran \
  1043. | --progr-tra | --program-tr | --program-t)
  1044. ac_prev=program_transform_name ;;
  1045. -program-transform-name=* | --program-transform-name=* \
  1046. | --program-transform-nam=* | --program-transform-na=* \
  1047. | --program-transform-n=* | --program-transform-=* \
  1048. | --program-transform=* | --program-transfor=* \
  1049. | --program-transfo=* | --program-transf=* \
  1050. | --program-trans=* | --program-tran=* \
  1051. | --progr-tra=* | --program-tr=* | --program-t=*)
  1052. program_transform_name=$ac_optarg ;;
  1053. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1054. ac_prev=pdfdir ;;
  1055. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1056. pdfdir=$ac_optarg ;;
  1057. -psdir | --psdir | --psdi | --psd | --ps)
  1058. ac_prev=psdir ;;
  1059. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1060. psdir=$ac_optarg ;;
  1061. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1062. | -silent | --silent | --silen | --sile | --sil)
  1063. silent=yes ;;
  1064. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1065. ac_prev=sbindir ;;
  1066. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1067. | --sbi=* | --sb=*)
  1068. sbindir=$ac_optarg ;;
  1069. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1070. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1071. | --sharedst | --shareds | --shared | --share | --shar \
  1072. | --sha | --sh)
  1073. ac_prev=sharedstatedir ;;
  1074. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1075. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1076. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1077. | --sha=* | --sh=*)
  1078. sharedstatedir=$ac_optarg ;;
  1079. -site | --site | --sit)
  1080. ac_prev=site ;;
  1081. -site=* | --site=* | --sit=*)
  1082. site=$ac_optarg ;;
  1083. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1084. ac_prev=srcdir ;;
  1085. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1086. srcdir=$ac_optarg ;;
  1087. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1088. | --syscon | --sysco | --sysc | --sys | --sy)
  1089. ac_prev=sysconfdir ;;
  1090. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1091. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1092. sysconfdir=$ac_optarg ;;
  1093. -target | --target | --targe | --targ | --tar | --ta | --t)
  1094. ac_prev=target_alias ;;
  1095. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1096. target_alias=$ac_optarg ;;
  1097. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1098. verbose=yes ;;
  1099. -version | --version | --versio | --versi | --vers | -V)
  1100. ac_init_version=: ;;
  1101. -with-* | --with-*)
  1102. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1103. # Reject names that are not valid shell variable names.
  1104. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1105. as_fn_error "invalid package name: $ac_useropt"
  1106. ac_useropt_orig=$ac_useropt
  1107. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1108. case $ac_user_opts in
  1109. *"
  1110. "with_$ac_useropt"
  1111. "*) ;;
  1112. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1113. ac_unrecognized_sep=', ';;
  1114. esac
  1115. eval with_$ac_useropt=\$ac_optarg ;;
  1116. -without-* | --without-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. as_fn_error "invalid package name: $ac_useropt"
  1121. ac_useropt_orig=$ac_useropt
  1122. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1123. case $ac_user_opts in
  1124. *"
  1125. "with_$ac_useropt"
  1126. "*) ;;
  1127. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1128. ac_unrecognized_sep=', ';;
  1129. esac
  1130. eval with_$ac_useropt=no ;;
  1131. --x)
  1132. # Obsolete; use --with-x.
  1133. with_x=yes ;;
  1134. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1135. | --x-incl | --x-inc | --x-in | --x-i)
  1136. ac_prev=x_includes ;;
  1137. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1138. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1139. x_includes=$ac_optarg ;;
  1140. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1141. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1142. ac_prev=x_libraries ;;
  1143. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1144. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1145. x_libraries=$ac_optarg ;;
  1146. -*) as_fn_error "unrecognized option: \`$ac_option'
  1147. Try \`$0 --help' for more information."
  1148. ;;
  1149. *=*)
  1150. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1151. # Reject names that are not valid shell variable names.
  1152. case $ac_envvar in #(
  1153. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1154. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1155. esac
  1156. eval $ac_envvar=\$ac_optarg
  1157. export $ac_envvar ;;
  1158. *)
  1159. # FIXME: should be removed in autoconf 3.0.
  1160. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1161. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1162. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1163. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1164. ;;
  1165. esac
  1166. done
  1167. if test -n "$ac_prev"; then
  1168. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1169. as_fn_error "missing argument to $ac_option"
  1170. fi
  1171. if test -n "$ac_unrecognized_opts"; then
  1172. case $enable_option_checking in
  1173. no) ;;
  1174. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1175. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1176. esac
  1177. fi
  1178. # Check all directory arguments for consistency.
  1179. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1180. datadir sysconfdir sharedstatedir localstatedir includedir \
  1181. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1182. libdir localedir mandir
  1183. do
  1184. eval ac_val=\$$ac_var
  1185. # Remove trailing slashes.
  1186. case $ac_val in
  1187. */ )
  1188. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1189. eval $ac_var=\$ac_val;;
  1190. esac
  1191. # Be sure to have absolute directory names.
  1192. case $ac_val in
  1193. [\\/$]* | ?:[\\/]* ) continue;;
  1194. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1195. esac
  1196. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1209. If a cross compiler is detected then cross compile mode will be used." >&2
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. as_fn_error "working directory cannot be determined"
  1221. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1222. as_fn_error "pwd does not report name of working directory"
  1223. # Find the source files, if location was not specified.
  1224. if test -z "$srcdir"; then
  1225. ac_srcdir_defaulted=yes
  1226. # Try the directory containing this script, then the parent directory.
  1227. ac_confdir=`$as_dirname -- "$as_myself" ||
  1228. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1229. X"$as_myself" : 'X\(//\)[^/]' \| \
  1230. X"$as_myself" : 'X\(//\)$' \| \
  1231. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1232. $as_echo X"$as_myself" |
  1233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)[^/].*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)$/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\).*/{
  1246. s//\1/
  1247. q
  1248. }
  1249. s/.*/./; q'`
  1250. srcdir=$ac_confdir
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. srcdir=..
  1253. fi
  1254. else
  1255. ac_srcdir_defaulted=no
  1256. fi
  1257. if test ! -r "$srcdir/$ac_unique_file"; then
  1258. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1259. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1260. fi
  1261. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1262. ac_abs_confdir=`(
  1263. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1264. pwd)`
  1265. # When building in place, set srcdir=.
  1266. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1267. srcdir=.
  1268. fi
  1269. # Remove unnecessary trailing slashes from srcdir.
  1270. # Double slashes in file names in object file debugging info
  1271. # mess up M-x gdb in Emacs.
  1272. case $srcdir in
  1273. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1274. esac
  1275. for ac_var in $ac_precious_vars; do
  1276. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1277. eval ac_env_${ac_var}_value=\$${ac_var}
  1278. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1280. done
  1281. #
  1282. # Report the --help message.
  1283. #
  1284. if test "$ac_init_help" = "long"; then
  1285. # Omit some internal or obsolete options to make the list less imposing.
  1286. # This message is too long to be a string in the A/UX 3.1 sh.
  1287. cat <<_ACEOF
  1288. \`configure' configures this package to adapt to many kinds of systems.
  1289. Usage: $0 [OPTION]... [VAR=VALUE]...
  1290. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1291. VAR=VALUE. See below for descriptions of some of the useful variables.
  1292. Defaults for the options are specified in brackets.
  1293. Configuration:
  1294. -h, --help display this help and exit
  1295. --help=short display options specific to this package
  1296. --help=recursive display the short help of all the included packages
  1297. -V, --version display version information and exit
  1298. -q, --quiet, --silent do not print \`checking...' messages
  1299. --cache-file=FILE cache test results in FILE [disabled]
  1300. -C, --config-cache alias for \`--cache-file=config.cache'
  1301. -n, --no-create do not create output files
  1302. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1303. Installation directories:
  1304. --prefix=PREFIX install architecture-independent files in PREFIX
  1305. [$ac_default_prefix]
  1306. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1307. [PREFIX]
  1308. By default, \`make install' will install all the files in
  1309. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1310. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1311. for instance \`--prefix=\$HOME'.
  1312. For better control, use the options below.
  1313. Fine tuning of the installation directories:
  1314. --bindir=DIR user executables [EPREFIX/bin]
  1315. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1316. --libexecdir=DIR program executables [EPREFIX/libexec]
  1317. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1318. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1319. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1320. --libdir=DIR object code libraries [EPREFIX/lib]
  1321. --includedir=DIR C header files [PREFIX/include]
  1322. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1323. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1324. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1325. --infodir=DIR info documentation [DATAROOTDIR/info]
  1326. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1327. --mandir=DIR man documentation [DATAROOTDIR/man]
  1328. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1329. --htmldir=DIR html documentation [DOCDIR]
  1330. --dvidir=DIR dvi documentation [DOCDIR]
  1331. --pdfdir=DIR pdf documentation [DOCDIR]
  1332. --psdir=DIR ps documentation [DOCDIR]
  1333. _ACEOF
  1334. cat <<\_ACEOF
  1335. Program names:
  1336. --program-prefix=PREFIX prepend PREFIX to installed program names
  1337. --program-suffix=SUFFIX append SUFFIX to installed program names
  1338. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1339. System types:
  1340. --build=BUILD configure for building on BUILD [guessed]
  1341. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1342. _ACEOF
  1343. fi
  1344. if test -n "$ac_init_help"; then
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --disable-dependency-tracking speeds up one-time build
  1351. --enable-dependency-tracking do not reject slow dependency extractors
  1352. --enable-shared[=PKGS] build shared libraries [default=no]
  1353. --enable-static[=PKGS] build static libraries [default=yes]
  1354. --enable-fast-install[=PKGS]
  1355. optimize for fast installation [default=yes]
  1356. --disable-libtool-lock avoid locking (might break parallel builds)
  1357. --enable-local-libopts Force using the supplied libopts tearoff code
  1358. --disable-libopts-install
  1359. Do not install libopts with client installation
  1360. --disable-optional-args not wanting optional option args
  1361. Optional Packages:
  1362. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1363. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1364. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1365. --with-pic try to use only PIC/non-PIC objects [default=use
  1366. both]
  1367. --with-tags[=TAGS] include additional configurations [automatic]
  1368. --with-autoopts-config specify the config-info script
  1369. --with-regex-header a reg expr header is specified
  1370. --with-libregex libregex installation prefix
  1371. --with-libregex-cflags libregex compile flags
  1372. --with-libregex-libs libregex link command arguments
  1373. --with-binsubdir bin ={bin,sbin}
  1374. Some influential environment variables:
  1375. CC C compiler command
  1376. CFLAGS C compiler flags
  1377. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1378. nonstandard directory <lib dir>
  1379. LIBS libraries to pass to the linker, e.g. -l<library>
  1380. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1381. you have headers in a nonstandard directory <include dir>
  1382. CPP C preprocessor
  1383. Use these variables to override the choices made by `configure' or to help
  1384. it to find libraries and programs with nonstandard names/locations.
  1385. Report bugs to the package provider.
  1386. _ACEOF
  1387. ac_status=$?
  1388. fi
  1389. if test "$ac_init_help" = "recursive"; then
  1390. # If there are subdirs, report their specific --help.
  1391. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1392. test -d "$ac_dir" ||
  1393. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1394. continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. configure
  1444. generated by GNU Autoconf 2.65
  1445. Copyright (C) 2009 Free Software Foundation, Inc.
  1446. This configure script is free software; the Free Software Foundation
  1447. gives unlimited permission to copy, distribute and modify it.
  1448. _ACEOF
  1449. exit
  1450. fi
  1451. ## ------------------------ ##
  1452. ## Autoconf initialization. ##
  1453. ## ------------------------ ##
  1454. # ac_fn_c_try_compile LINENO
  1455. # --------------------------
  1456. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_compile ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext
  1461. if { { ac_try="$ac_compile"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_compile") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest.$ac_objext; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_compile
  1489. # ac_fn_c_try_link LINENO
  1490. # -----------------------
  1491. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_link ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext conftest$ac_exeext
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac