You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5849 lines
165 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for rufus 3.14.
  4. #
  5. # Report bugs to <https://github.com/pbatard/rufus/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test \$(( 1 + 1 )) = 2 || exit 1"
  170. if (eval "$as_required") 2>/dev/null
  171. then :
  172. as_have_required=yes
  173. else $as_nop
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  177. then :
  178. else $as_nop
  179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  180. as_found=false
  181. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  182. do
  183. IFS=$as_save_IFS
  184. case $as_dir in #(((
  185. '') as_dir=./ ;;
  186. */) ;;
  187. *) as_dir=$as_dir/ ;;
  188. esac
  189. as_found=:
  190. case $as_dir in #(
  191. /*)
  192. for as_base in sh bash ksh sh5; do
  193. # Try only shells that exist, to save several forks.
  194. as_shell=$as_dir$as_base
  195. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  196. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  197. then :
  198. CONFIG_SHELL=$as_shell as_have_required=yes
  199. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  200. then :
  201. break 2
  202. fi
  203. fi
  204. done;;
  205. esac
  206. as_found=false
  207. done
  208. IFS=$as_save_IFS
  209. if $as_found
  210. then :
  211. else $as_nop
  212. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  213. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  214. then :
  215. CONFIG_SHELL=$SHELL as_have_required=yes
  216. fi
  217. fi
  218. if test "x$CONFIG_SHELL" != x
  219. then :
  220. export CONFIG_SHELL
  221. # We cannot yet assume a decent shell, so we have to provide a
  222. # neutralization value for shells without unset; and this also
  223. # works around shells that cannot unset nonexistent variables.
  224. # Preserve -v and -x to the replacement shell.
  225. BASH_ENV=/dev/null
  226. ENV=/dev/null
  227. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  228. case $- in # ((((
  229. *v*x* | *x*v* ) as_opts=-vx ;;
  230. *v* ) as_opts=-v ;;
  231. *x* ) as_opts=-x ;;
  232. * ) as_opts= ;;
  233. esac
  234. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  235. # Admittedly, this is quite paranoid, since all the known shells bail
  236. # out after a failed `exec'.
  237. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  238. exit 255
  239. fi
  240. if test x$as_have_required = xno
  241. then :
  242. printf "%s\n" "$0: This script requires a shell more modern than all"
  243. printf "%s\n" "$0: the shells that I found on your system."
  244. if test ${ZSH_VERSION+y} ; then
  245. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  249. $0: https://github.com/pbatard/rufus/issues about your
  250. $0: system, including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_nop
  291. # ---------
  292. # Do nothing but, unlike ":", preserve the value of $?.
  293. as_fn_nop ()
  294. {
  295. return $?
  296. }
  297. as_nop=as_fn_nop
  298. # as_fn_mkdir_p
  299. # -------------
  300. # Create "$as_dir" as a directory, including parents if necessary.
  301. as_fn_mkdir_p ()
  302. {
  303. case $as_dir in #(
  304. -*) as_dir=./$as_dir;;
  305. esac
  306. test -d "$as_dir" || eval $as_mkdir_p || {
  307. as_dirs=
  308. while :; do
  309. case $as_dir in #(
  310. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. *) as_qdir=$as_dir;;
  312. esac
  313. as_dirs="'$as_qdir' $as_dirs"
  314. as_dir=`$as_dirname -- "$as_dir" ||
  315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. X"$as_dir" : 'X\(//\)[^/]' \| \
  317. X"$as_dir" : 'X\(//\)$' \| \
  318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. printf "%s\n" X"$as_dir" |
  320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)[^/].*/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)$/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\).*/{
  333. s//\1/
  334. q
  335. }
  336. s/.*/./; q'`
  337. test -d "$as_dir" && break
  338. done
  339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. } # as_fn_mkdir_p
  342. # as_fn_executable_p FILE
  343. # -----------------------
  344. # Test if FILE is an executable regular file.
  345. as_fn_executable_p ()
  346. {
  347. test -f "$1" && test -x "$1"
  348. } # as_fn_executable_p
  349. # as_fn_append VAR VALUE
  350. # ----------------------
  351. # Append the text in VALUE to the end of the definition contained in VAR. Take
  352. # advantage of any shell optimizations that allow amortized linear growth over
  353. # repeated appends, instead of the typical quadratic growth present in naive
  354. # implementations.
  355. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  356. then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else $as_nop
  362. as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. }
  366. fi # as_fn_append
  367. # as_fn_arith ARG...
  368. # ------------------
  369. # Perform arithmetic evaluation on the ARGs, and store the result in the
  370. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  371. # must be portable across $(()) and expr.
  372. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  373. then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else $as_nop
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_nop
  385. # ---------
  386. # Do nothing but, unlike ":", preserve the value of $?.
  387. as_fn_nop ()
  388. {
  389. return $?
  390. }
  391. as_nop=as_fn_nop
  392. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  393. # ----------------------------------------
  394. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  395. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  396. # script with STATUS, using 1 if that was 0.
  397. as_fn_error ()
  398. {
  399. as_status=$1; test $as_status -eq 0 && as_status=1
  400. if test "$4"; then
  401. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  403. fi
  404. printf "%s\n" "$as_me: error: $2" >&2
  405. as_fn_exit $as_status
  406. } # as_fn_error
  407. if expr a : '\(a\)' >/dev/null 2>&1 &&
  408. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  409. as_expr=expr
  410. else
  411. as_expr=false
  412. fi
  413. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  414. as_basename=basename
  415. else
  416. as_basename=false
  417. fi
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. as_me=`$as_basename -- "$0" ||
  424. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  425. X"$0" : 'X\(//\)$' \| \
  426. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  427. printf "%s\n" X/"$0" |
  428. sed '/^.*\/\([^/][^/]*\)\/*$/{
  429. s//\1/
  430. q
  431. }
  432. /^X\/\(\/\/\)$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\).*/{
  437. s//\1/
  438. q
  439. }
  440. s/.*/./; q'`
  441. # Avoid depending upon Character Ranges.
  442. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  443. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  444. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  445. as_cr_digits='0123456789'
  446. as_cr_alnum=$as_cr_Letters$as_cr_digits
  447. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  448. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  449. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  450. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  451. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  452. sed -n '
  453. p
  454. /[$]LINENO/=
  455. ' <$as_myself |
  456. sed '
  457. s/[$]LINENO.*/&-/
  458. t lineno
  459. b
  460. :lineno
  461. N
  462. :loop
  463. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  464. t loop
  465. s/-\n.*//
  466. ' >$as_me.lineno &&
  467. chmod +x "$as_me.lineno" ||
  468. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  469. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  470. # already done that, so ensure we don't try to do so again and fall
  471. # in an infinite loop. This has already happened in practice.
  472. _as_can_reexec=no; export _as_can_reexec
  473. # Don't try to exec as it changes $[0], causing all sort of problems
  474. # (the dirname of $[0] is not the place where we might find the
  475. # original and so on. Autoconf is especially sensitive to this).
  476. . "./$as_me.lineno"
  477. # Exit status is that of the last command.
  478. exit
  479. }
  480. # Determine whether it's possible to make 'echo' print without a newline.
  481. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  482. # for compatibility with existing Makefiles.
  483. ECHO_C= ECHO_N= ECHO_T=
  484. case `echo -n x` in #(((((
  485. -n*)
  486. case `echo 'xy\c'` in
  487. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  488. xy) ECHO_C='\c';;
  489. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  490. ECHO_T=' ';;
  491. esac;;
  492. *)
  493. ECHO_N='-n';;
  494. esac
  495. # For backward compatibility with old third-party macros, we provide
  496. # the shell variables $as_echo and $as_echo_n. New code should use
  497. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  498. as_echo='printf %s\n'
  499. as_echo_n='printf %s'
  500. rm -f conf$$ conf$$.exe conf$$.file
  501. if test -d conf$$.dir; then
  502. rm -f conf$$.dir/conf$$.file
  503. else
  504. rm -f conf$$.dir
  505. mkdir conf$$.dir 2>/dev/null
  506. fi
  507. if (echo >conf$$.file) 2>/dev/null; then
  508. if ln -s conf$$.file conf$$ 2>/dev/null; then
  509. as_ln_s='ln -s'
  510. # ... but there are two gotchas:
  511. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  512. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  513. # In both cases, we have to default to `cp -pR'.
  514. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  515. as_ln_s='cp -pR'
  516. elif ln conf$$.file conf$$ 2>/dev/null; then
  517. as_ln_s=ln
  518. else
  519. as_ln_s='cp -pR'
  520. fi
  521. else
  522. as_ln_s='cp -pR'
  523. fi
  524. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  525. rmdir conf$$.dir 2>/dev/null
  526. if mkdir -p . 2>/dev/null; then
  527. as_mkdir_p='mkdir -p "$as_dir"'
  528. else
  529. test -d ./-p && rmdir ./-p
  530. as_mkdir_p=false
  531. fi
  532. as_test_x='test -x'
  533. as_executable_p=as_fn_executable_p
  534. # Sed expression to map a string onto a valid CPP name.
  535. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  536. # Sed expression to map a string onto a valid variable name.
  537. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  538. test -n "$DJDIR" || exec 7<&0 </dev/null
  539. exec 6>&1
  540. # Name of the host.
  541. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  542. # so uname gets run too.
  543. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  544. #
  545. # Initializations.
  546. #
  547. ac_default_prefix=/usr/local
  548. ac_clean_files=
  549. ac_config_libobj_dir=.
  550. LIBOBJS=
  551. cross_compiling=no
  552. subdirs=
  553. MFLAGS=
  554. MAKEFLAGS=
  555. # Identity of this package.
  556. PACKAGE_NAME='rufus'
  557. PACKAGE_TARNAME='rufus'
  558. PACKAGE_VERSION='3.14'
  559. PACKAGE_STRING='rufus 3.14'
  560. PACKAGE_BUGREPORT='https://github.com/pbatard/rufus/issues'
  561. PACKAGE_URL='https://rufus.ie'
  562. ac_unique_file="src/rufus.c"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. SUFFIX
  568. AM_LDFLAGS
  569. AM_CFLAGS
  570. VISIBILITY_CFLAGS
  571. WINDRES
  572. RM
  573. SED
  574. RANLIB
  575. AR
  576. OBJEXT
  577. EXEEXT
  578. ac_ct_CC
  579. CPPFLAGS
  580. LDFLAGS
  581. CFLAGS
  582. CC
  583. AM_BACKSLASH
  584. AM_DEFAULT_VERBOSITY
  585. AM_DEFAULT_V
  586. AM_V
  587. am__untar
  588. am__tar
  589. AMTAR
  590. am__leading_dot
  591. SET_MAKE
  592. AWK
  593. mkdir_p
  594. MKDIR_P
  595. INSTALL_STRIP_PROGRAM
  596. STRIP
  597. install_sh
  598. MAKEINFO
  599. AUTOHEADER
  600. AUTOMAKE
  601. AUTOCONF
  602. ACLOCAL
  603. VERSION
  604. PACKAGE
  605. CYGPATH_W
  606. am__isrc
  607. INSTALL_DATA
  608. INSTALL_SCRIPT
  609. INSTALL_PROGRAM
  610. target_alias
  611. host_alias
  612. build_alias
  613. LIBS
  614. ECHO_T
  615. ECHO_N
  616. ECHO_C
  617. DEFS
  618. mandir
  619. localedir
  620. libdir
  621. psdir
  622. pdfdir
  623. dvidir
  624. htmldir
  625. infodir
  626. docdir
  627. oldincludedir
  628. includedir
  629. runstatedir
  630. localstatedir
  631. sharedstatedir
  632. sysconfdir
  633. datadir
  634. datarootdir
  635. libexecdir
  636. sbindir
  637. bindir
  638. program_transform_name
  639. prefix
  640. exec_prefix
  641. PACKAGE_URL
  642. PACKAGE_BUGREPORT
  643. PACKAGE_STRING
  644. PACKAGE_VERSION
  645. PACKAGE_TARNAME
  646. PACKAGE_NAME
  647. PATH_SEPARATOR
  648. SHELL'
  649. ac_subst_files=''
  650. ac_user_opts='
  651. enable_option_checking
  652. enable_silent_rules
  653. enable_debug
  654. enable_alpha
  655. enable_beta
  656. enable_test
  657. '
  658. ac_precious_vars='build_alias
  659. host_alias
  660. target_alias
  661. CC
  662. CFLAGS
  663. LDFLAGS
  664. LIBS
  665. CPPFLAGS'
  666. # Initialize some variables set by options.
  667. ac_init_help=
  668. ac_init_version=false
  669. ac_unrecognized_opts=
  670. ac_unrecognized_sep=
  671. # The variables have the same names as the options, with
  672. # dashes changed to underlines.
  673. cache_file=/dev/null
  674. exec_prefix=NONE
  675. no_create=
  676. no_recursion=
  677. prefix=NONE
  678. program_prefix=NONE
  679. program_suffix=NONE
  680. program_transform_name=s,x,x,
  681. silent=
  682. site=
  683. srcdir=
  684. verbose=
  685. x_includes=NONE
  686. x_libraries=NONE
  687. # Installation directory options.
  688. # These are left unexpanded so users can "make install exec_prefix=/foo"
  689. # and all the variables that are supposed to be based on exec_prefix
  690. # by default will actually change.
  691. # Use braces instead of parens because sh, perl, etc. also accept them.
  692. # (The list follows the same order as the GNU Coding Standards.)
  693. bindir='${exec_prefix}/bin'
  694. sbindir='${exec_prefix}/sbin'
  695. libexecdir='${exec_prefix}/libexec'
  696. datarootdir='${prefix}/share'
  697. datadir='${datarootdir}'
  698. sysconfdir='${prefix}/etc'
  699. sharedstatedir='${prefix}/com'
  700. localstatedir='${prefix}/var'
  701. runstatedir='${localstatedir}/run'
  702. includedir='${prefix}/include'
  703. oldincludedir='/usr/include'
  704. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  705. infodir='${datarootdir}/info'
  706. htmldir='${docdir}'
  707. dvidir='${docdir}'
  708. pdfdir='${docdir}'
  709. psdir='${docdir}'
  710. libdir='${exec_prefix}/lib'
  711. localedir='${datarootdir}/locale'
  712. mandir='${datarootdir}/man'
  713. ac_prev=
  714. ac_dashdash=
  715. for ac_option
  716. do
  717. # If the previous option needs an argument, assign it.
  718. if test -n "$ac_prev"; then
  719. eval $ac_prev=\$ac_option
  720. ac_prev=
  721. continue
  722. fi
  723. case $ac_option in
  724. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  725. *=) ac_optarg= ;;
  726. *) ac_optarg=yes ;;
  727. esac
  728. case $ac_dashdash$ac_option in
  729. --)
  730. ac_dashdash=yes ;;
  731. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  732. ac_prev=bindir ;;
  733. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  734. bindir=$ac_optarg ;;
  735. -build | --build | --buil | --bui | --bu)
  736. ac_prev=build_alias ;;
  737. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  738. build_alias=$ac_optarg ;;
  739. -cache-file | --cache-file | --cache-fil | --cache-fi \
  740. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  741. ac_prev=cache_file ;;
  742. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  743. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  744. cache_file=$ac_optarg ;;
  745. --config-cache | -C)
  746. cache_file=config.cache ;;
  747. -datadir | --datadir | --datadi | --datad)
  748. ac_prev=datadir ;;
  749. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  750. datadir=$ac_optarg ;;
  751. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  752. | --dataroo | --dataro | --datar)
  753. ac_prev=datarootdir ;;
  754. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  755. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  756. datarootdir=$ac_optarg ;;
  757. -disable-* | --disable-*)
  758. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  759. # Reject names that are not valid shell variable names.
  760. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  761. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  762. ac_useropt_orig=$ac_useropt
  763. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  764. case $ac_user_opts in
  765. *"
  766. "enable_$ac_useropt"
  767. "*) ;;
  768. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  769. ac_unrecognized_sep=', ';;
  770. esac
  771. eval enable_$ac_useropt=no ;;
  772. -docdir | --docdir | --docdi | --doc | --do)
  773. ac_prev=docdir ;;
  774. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  775. docdir=$ac_optarg ;;
  776. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  777. ac_prev=dvidir ;;
  778. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  779. dvidir=$ac_optarg ;;
  780. -enable-* | --enable-*)
  781. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  782. # Reject names that are not valid shell variable names.
  783. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  784. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  785. ac_useropt_orig=$ac_useropt
  786. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  787. case $ac_user_opts in
  788. *"
  789. "enable_$ac_useropt"
  790. "*) ;;
  791. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  792. ac_unrecognized_sep=', ';;
  793. esac
  794. eval enable_$ac_useropt=\$ac_optarg ;;
  795. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  796. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  797. | --exec | --exe | --ex)
  798. ac_prev=exec_prefix ;;
  799. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  800. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  801. | --exec=* | --exe=* | --ex=*)
  802. exec_prefix=$ac_optarg ;;
  803. -gas | --gas | --ga | --g)
  804. # Obsolete; use --with-gas.
  805. with_gas=yes ;;
  806. -help | --help | --hel | --he | -h)
  807. ac_init_help=long ;;
  808. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  809. ac_init_help=recursive ;;
  810. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  811. ac_init_help=short ;;
  812. -host | --host | --hos | --ho)
  813. ac_prev=host_alias ;;
  814. -host=* | --host=* | --hos=* | --ho=*)
  815. host_alias=$ac_optarg ;;
  816. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  817. ac_prev=htmldir ;;
  818. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  819. | --ht=*)
  820. htmldir=$ac_optarg ;;
  821. -includedir | --includedir | --includedi | --included | --include \
  822. | --includ | --inclu | --incl | --inc)
  823. ac_prev=includedir ;;
  824. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  825. | --includ=* | --inclu=* | --incl=* | --inc=*)
  826. includedir=$ac_optarg ;;
  827. -infodir | --infodir | --infodi | --infod | --info | --inf)
  828. ac_prev=infodir ;;
  829. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  830. infodir=$ac_optarg ;;
  831. -libdir | --libdir | --libdi | --libd)
  832. ac_prev=libdir ;;
  833. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  834. libdir=$ac_optarg ;;
  835. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  836. | --libexe | --libex | --libe)
  837. ac_prev=libexecdir ;;
  838. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  839. | --libexe=* | --libex=* | --libe=*)
  840. libexecdir=$ac_optarg ;;
  841. -localedir | --localedir | --localedi | --localed | --locale)
  842. ac_prev=localedir ;;
  843. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  844. localedir=$ac_optarg ;;
  845. -localstatedir | --localstatedir | --localstatedi | --localstated \
  846. | --localstate | --localstat | --localsta | --localst | --locals)
  847. ac_prev=localstatedir ;;
  848. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  849. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  850. localstatedir=$ac_optarg ;;
  851. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  852. ac_prev=mandir ;;
  853. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  854. mandir=$ac_optarg ;;
  855. -nfp | --nfp | --nf)
  856. # Obsolete; use --without-fp.
  857. with_fp=no ;;
  858. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  859. | --no-cr | --no-c | -n)
  860. no_create=yes ;;
  861. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  862. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  863. no_recursion=yes ;;
  864. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  865. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  866. | --oldin | --oldi | --old | --ol | --o)
  867. ac_prev=oldincludedir ;;
  868. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  869. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  870. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  871. oldincludedir=$ac_optarg ;;
  872. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  873. ac_prev=prefix ;;
  874. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  875. prefix=$ac_optarg ;;
  876. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  877. | --program-pre | --program-pr | --program-p)
  878. ac_prev=program_prefix ;;
  879. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  880. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  881. program_prefix=$ac_optarg ;;
  882. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  883. | --program-suf | --program-su | --program-s)
  884. ac_prev=program_suffix ;;
  885. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  886. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  887. program_suffix=$ac_optarg ;;
  888. -program-transform-name | --program-transform-name \
  889. | --program-transform-nam | --program-transform-na \
  890. | --program-transform-n | --program-transform- \
  891. | --program-transform | --program-transfor \
  892. | --program-transfo | --program-transf \
  893. | --program-trans | --program-tran \
  894. | --progr-tra | --program-tr | --program-t)
  895. ac_prev=program_transform_name ;;
  896. -program-transform-name=* | --program-transform-name=* \
  897. | --program-transform-nam=* | --program-transform-na=* \
  898. | --program-transform-n=* | --program-transform-=* \
  899. | --program-transform=* | --program-transfor=* \
  900. | --program-transfo=* | --program-transf=* \
  901. | --program-trans=* | --program-tran=* \
  902. | --progr-tra=* | --program-tr=* | --program-t=*)
  903. program_transform_name=$ac_optarg ;;
  904. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  905. ac_prev=pdfdir ;;
  906. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  907. pdfdir=$ac_optarg ;;
  908. -psdir | --psdir | --psdi | --psd | --ps)
  909. ac_prev=psdir ;;
  910. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  911. psdir=$ac_optarg ;;
  912. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  913. | -silent | --silent | --silen | --sile | --sil)
  914. silent=yes ;;
  915. -runstatedir | --runstatedir | --runstatedi | --runstated \
  916. | --runstate | --runstat | --runsta | --runst | --runs \
  917. | --run | --ru | --r)
  918. ac_prev=runstatedir ;;
  919. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  920. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  921. | --run=* | --ru=* | --r=*)
  922. runstatedir=$ac_optarg ;;
  923. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  924. ac_prev=sbindir ;;
  925. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  926. | --sbi=* | --sb=*)
  927. sbindir=$ac_optarg ;;
  928. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  929. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  930. | --sharedst | --shareds | --shared | --share | --shar \
  931. | --sha | --sh)
  932. ac_prev=sharedstatedir ;;
  933. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  934. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  935. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  936. | --sha=* | --sh=*)
  937. sharedstatedir=$ac_optarg ;;
  938. -site | --site | --sit)
  939. ac_prev=site ;;
  940. -site=* | --site=* | --sit=*)
  941. site=$ac_optarg ;;
  942. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  943. ac_prev=srcdir ;;
  944. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  945. srcdir=$ac_optarg ;;
  946. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  947. | --syscon | --sysco | --sysc | --sys | --sy)
  948. ac_prev=sysconfdir ;;
  949. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  950. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  951. sysconfdir=$ac_optarg ;;
  952. -target | --target | --targe | --targ | --tar | --ta | --t)
  953. ac_prev=target_alias ;;
  954. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  955. target_alias=$ac_optarg ;;
  956. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  957. verbose=yes ;;
  958. -version | --version | --versio | --versi | --vers | -V)
  959. ac_init_version=: ;;
  960. -with-* | --with-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error $? "invalid package name: \`$ac_useropt'"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "with_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval with_$ac_useropt=\$ac_optarg ;;
  975. -without-* | --without-*)
  976. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  977. # Reject names that are not valid shell variable names.
  978. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  979. as_fn_error $? "invalid package name: \`$ac_useropt'"
  980. ac_useropt_orig=$ac_useropt
  981. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  982. case $ac_user_opts in
  983. *"
  984. "with_$ac_useropt"
  985. "*) ;;
  986. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  987. ac_unrecognized_sep=', ';;
  988. esac
  989. eval with_$ac_useropt=no ;;
  990. --x)
  991. # Obsolete; use --with-x.
  992. with_x=yes ;;
  993. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  994. | --x-incl | --x-inc | --x-in | --x-i)
  995. ac_prev=x_includes ;;
  996. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  997. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  998. x_includes=$ac_optarg ;;
  999. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1000. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1001. ac_prev=x_libraries ;;
  1002. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1003. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1004. x_libraries=$ac_optarg ;;
  1005. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1006. Try \`$0 --help' for more information"
  1007. ;;
  1008. *=*)
  1009. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1010. # Reject names that are not valid shell variable names.
  1011. case $ac_envvar in #(
  1012. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1013. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1014. esac
  1015. eval $ac_envvar=\$ac_optarg
  1016. export $ac_envvar ;;
  1017. *)
  1018. # FIXME: should be removed in autoconf 3.0.
  1019. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1020. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1021. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1022. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1023. ;;
  1024. esac
  1025. done
  1026. if test -n "$ac_prev"; then
  1027. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1028. as_fn_error $? "missing argument to $ac_option"
  1029. fi
  1030. if test -n "$ac_unrecognized_opts"; then
  1031. case $enable_option_checking in
  1032. no) ;;
  1033. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1034. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1035. esac
  1036. fi
  1037. # Check all directory arguments for consistency.
  1038. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1039. datadir sysconfdir sharedstatedir localstatedir includedir \
  1040. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1041. libdir localedir mandir runstatedir
  1042. do
  1043. eval ac_val=\$$ac_var
  1044. # Remove trailing slashes.
  1045. case $ac_val in
  1046. */ )
  1047. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1048. eval $ac_var=\$ac_val;;
  1049. esac
  1050. # Be sure to have absolute directory names.
  1051. case $ac_val in
  1052. [\\/$]* | ?:[\\/]* ) continue;;
  1053. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1054. esac
  1055. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1056. done
  1057. # There might be people who depend on the old broken behavior: `$host'
  1058. # used to hold the argument of --host etc.
  1059. # FIXME: To remove some day.
  1060. build=$build_alias
  1061. host=$host_alias
  1062. target=$target_alias
  1063. # FIXME: To remove some day.
  1064. if test "x$host_alias" != x; then
  1065. if test "x$build_alias" = x; then
  1066. cross_compiling=maybe
  1067. elif test "x$build_alias" != "x$host_alias"; then
  1068. cross_compiling=yes
  1069. fi
  1070. fi
  1071. ac_tool_prefix=
  1072. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1073. test "$silent" = yes && exec 6>/dev/null
  1074. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1075. ac_ls_di=`ls -di .` &&
  1076. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1077. as_fn_error $? "working directory cannot be determined"
  1078. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1079. as_fn_error $? "pwd does not report name of working directory"
  1080. # Find the source files, if location was not specified.
  1081. if test -z "$srcdir"; then
  1082. ac_srcdir_defaulted=yes
  1083. # Try the directory containing this script, then the parent directory.
  1084. ac_confdir=`$as_dirname -- "$as_myself" ||
  1085. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1086. X"$as_myself" : 'X\(//\)[^/]' \| \
  1087. X"$as_myself" : 'X\(//\)$' \| \
  1088. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1089. printf "%s\n" X"$as_myself" |
  1090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)[^/].*/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\/\)$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\).*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. s/.*/./; q'`
  1107. srcdir=$ac_confdir
  1108. if test ! -r "$srcdir/$ac_unique_file"; then
  1109. srcdir=..
  1110. fi
  1111. else
  1112. ac_srcdir_defaulted=no
  1113. fi
  1114. if test ! -r "$srcdir/$ac_unique_file"; then
  1115. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1116. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1117. fi
  1118. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1119. ac_abs_confdir=`(
  1120. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1121. pwd)`
  1122. # When building in place, set srcdir=.
  1123. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1124. srcdir=.
  1125. fi
  1126. # Remove unnecessary trailing slashes from srcdir.
  1127. # Double slashes in file names in object file debugging info
  1128. # mess up M-x gdb in Emacs.
  1129. case $srcdir in
  1130. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1131. esac
  1132. for ac_var in $ac_precious_vars; do
  1133. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1134. eval ac_env_${ac_var}_value=\$${ac_var}
  1135. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1136. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1137. done
  1138. #
  1139. # Report the --help message.
  1140. #
  1141. if test "$ac_init_help" = "long"; then
  1142. # Omit some internal or obsolete options to make the list less imposing.
  1143. # This message is too long to be a string in the A/UX 3.1 sh.
  1144. cat <<_ACEOF
  1145. \`configure' configures rufus 3.14 to adapt to many kinds of systems.
  1146. Usage: $0 [OPTION]... [VAR=VALUE]...
  1147. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1148. VAR=VALUE. See below for descriptions of some of the useful variables.
  1149. Defaults for the options are specified in brackets.
  1150. Configuration:
  1151. -h, --help display this help and exit
  1152. --help=short display options specific to this package
  1153. --help=recursive display the short help of all the included packages
  1154. -V, --version display version information and exit
  1155. -q, --quiet, --silent do not print \`checking ...' messages
  1156. --cache-file=FILE cache test results in FILE [disabled]
  1157. -C, --config-cache alias for \`--cache-file=config.cache'
  1158. -n, --no-create do not create output files
  1159. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1160. Installation directories:
  1161. --prefix=PREFIX install architecture-independent files in PREFIX
  1162. [$ac_default_prefix]
  1163. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1164. [PREFIX]
  1165. By default, \`make install' will install all the files in
  1166. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1167. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1168. for instance \`--prefix=\$HOME'.
  1169. For better control, use the options below.
  1170. Fine tuning of the installation directories:
  1171. --bindir=DIR user executables [EPREFIX/bin]
  1172. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1173. --libexecdir=DIR program executables [EPREFIX/libexec]
  1174. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1175. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1176. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1177. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1178. --libdir=DIR object code libraries [EPREFIX/lib]
  1179. --includedir=DIR C header files [PREFIX/include]
  1180. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1181. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1182. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1183. --infodir=DIR info documentation [DATAROOTDIR/info]
  1184. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1185. --mandir=DIR man documentation [DATAROOTDIR/man]
  1186. --docdir=DIR documentation root [DATAROOTDIR/doc/rufus]
  1187. --htmldir=DIR html documentation [DOCDIR]
  1188. --dvidir=DIR dvi documentation [DOCDIR]
  1189. --pdfdir=DIR pdf documentation [DOCDIR]
  1190. --psdir=DIR ps documentation [DOCDIR]
  1191. _ACEOF
  1192. cat <<\_ACEOF
  1193. Program names:
  1194. --program-prefix=PREFIX prepend PREFIX to installed program names
  1195. --program-suffix=SUFFIX append SUFFIX to installed program names
  1196. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1197. _ACEOF
  1198. fi
  1199. if test -n "$ac_init_help"; then
  1200. case $ac_init_help in
  1201. short | recursive ) echo "Configuration of rufus 3.14:";;
  1202. esac
  1203. cat <<\_ACEOF
  1204. Optional Features:
  1205. --disable-option-checking ignore unrecognized --enable/--with options
  1206. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1207. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1208. --enable-silent-rules less verbose build output (undo: "make V=1")
  1209. --disable-silent-rules verbose build output (undo: "make V=0")
  1210. --enable-debug keep debug symbols for gdb (default=yes)
  1211. --enable-alpha build an ALPHA release (default=no)
  1212. --enable-beta build a BETA release (default=no)
  1213. --enable-test=# build a TEST release (default=no)
  1214. Some influential environment variables:
  1215. CC C compiler command
  1216. CFLAGS C compiler flags
  1217. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1218. nonstandard directory <lib dir>
  1219. LIBS libraries to pass to the linker, e.g. -l<library>
  1220. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1221. you have headers in a nonstandard directory <include dir>
  1222. Use these variables to override the choices made by `configure' or to help
  1223. it to find libraries and programs with nonstandard names/locations.
  1224. Report bugs to <https://github.com/pbatard/rufus/issues>.
  1225. rufus home page: <https://rufus.ie>.
  1226. _ACEOF
  1227. ac_status=$?
  1228. fi
  1229. if test "$ac_init_help" = "recursive"; then
  1230. # If there are subdirs, report their specific --help.
  1231. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1232. test -d "$ac_dir" ||
  1233. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1234. continue
  1235. ac_builddir=.
  1236. case "$ac_dir" in
  1237. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1238. *)
  1239. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1240. # A ".." for each directory in $ac_dir_suffix.
  1241. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1242. case $ac_top_builddir_sub in
  1243. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1244. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1245. esac ;;
  1246. esac
  1247. ac_abs_top_builddir=$ac_pwd
  1248. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1249. # for backward compatibility:
  1250. ac_top_builddir=$ac_top_build_prefix
  1251. case $srcdir in
  1252. .) # We are building in place.
  1253. ac_srcdir=.
  1254. ac_top_srcdir=$ac_top_builddir_sub
  1255. ac_abs_top_srcdir=$ac_pwd ;;
  1256. [\\/]* | ?:[\\/]* ) # Absolute name.
  1257. ac_srcdir=$srcdir$ac_dir_suffix;
  1258. ac_top_srcdir=$srcdir
  1259. ac_abs_top_srcdir=$srcdir ;;
  1260. *) # Relative name.
  1261. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1262. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1263. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1264. esac
  1265. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1266. cd "$ac_dir" || { ac_status=$?; continue; }
  1267. # Check for configure.gnu first; this name is used for a wrapper for
  1268. # Metaconfig's "Configure" on case-insensitive file systems.
  1269. if test -f "$ac_srcdir/configure.gnu"; then
  1270. echo &&
  1271. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1272. elif test -f "$ac_srcdir/configure"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure" --help=recursive
  1275. else
  1276. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1277. fi || ac_status=$?
  1278. cd "$ac_pwd" || { ac_status=$?; break; }
  1279. done
  1280. fi
  1281. test -n "$ac_init_help" && exit $ac_status
  1282. if $ac_init_version; then
  1283. cat <<\_ACEOF
  1284. rufus configure 3.14
  1285. generated by GNU Autoconf 2.71
  1286. Copyright (C) 2021 Free Software Foundation, Inc.
  1287. This configure script is free software; the Free Software Foundation
  1288. gives unlimited permission to copy, distribute and modify it.
  1289. _ACEOF
  1290. exit
  1291. fi
  1292. ## ------------------------ ##
  1293. ## Autoconf initialization. ##
  1294. ## ------------------------ ##
  1295. # ac_fn_c_try_compile LINENO
  1296. # --------------------------
  1297. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1298. ac_fn_c_try_compile ()
  1299. {
  1300. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1301. rm -f conftest.$ac_objext conftest.beam
  1302. if { { ac_try="$ac_compile"
  1303. case "(($ac_try" in
  1304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1305. *) ac_try_echo=$ac_try;;
  1306. esac
  1307. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1308. printf "%s\n" "$ac_try_echo"; } >&5
  1309. (eval "$ac_compile") 2>conftest.err
  1310. ac_status=$?
  1311. if test -s conftest.err; then
  1312. grep -v '^ *+' conftest.err >conftest.er1
  1313. cat conftest.er1 >&5
  1314. mv -f conftest.er1 conftest.err
  1315. fi
  1316. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1317. test $ac_status = 0; } && {
  1318. test -z "$ac_c_werror_flag" ||
  1319. test ! -s conftest.err
  1320. } && test -s conftest.$ac_objext
  1321. then :
  1322. ac_retval=0
  1323. else $as_nop
  1324. printf "%s\n" "$as_me: failed program was:" >&5
  1325. sed 's/^/| /' conftest.$ac_ext >&5
  1326. ac_retval=1
  1327. fi
  1328. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1329. as_fn_set_status $ac_retval
  1330. } # ac_fn_c_try_compile
  1331. ac_configure_args_raw=
  1332. for ac_arg
  1333. do
  1334. case $ac_arg in
  1335. *\'*)
  1336. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1337. esac
  1338. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1339. done
  1340. case $ac_configure_args_raw in
  1341. *$as_nl*)
  1342. ac_safe_unquote= ;;
  1343. *)
  1344. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1345. ac_unsafe_a="$ac_unsafe_z#~"
  1346. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1347. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1348. esac
  1349. cat >config.log <<_ACEOF
  1350. This file contains any messages produced by compilers while
  1351. running configure, to aid debugging if configure makes a mistake.
  1352. It was created by rufus $as_me 3.14, which was
  1353. generated by GNU Autoconf 2.71. Invocation command line was
  1354. $ $0$ac_configure_args_raw
  1355. _ACEOF
  1356. exec 5>>config.log
  1357. {
  1358. cat <<_ASUNAME
  1359. ## --------- ##
  1360. ## Platform. ##
  1361. ## --------- ##
  1362. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1363. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1364. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1365. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1366. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1367. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1368. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1369. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1370. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1371. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1372. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1373. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1374. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1375. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1376. _ASUNAME
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. case $as_dir in #(((
  1382. '') as_dir=./ ;;
  1383. */) ;;
  1384. *) as_dir=$as_dir/ ;;
  1385. esac
  1386. printf "%s\n" "PATH: $as_dir"
  1387. done
  1388. IFS=$as_save_IFS
  1389. } >&5
  1390. cat >&5 <<_ACEOF
  1391. ## ----------- ##
  1392. ## Core tests. ##
  1393. ## ----------- ##
  1394. _ACEOF
  1395. # Keep a trace of the command line.
  1396. # Strip out --no-create and --no-recursion so they do not pile up.
  1397. # Strip out --silent because we don't want to record it for future runs.
  1398. # Also quote any args containing shell meta-characters.
  1399. # Make two passes to allow for proper duplicate-argument suppression.
  1400. ac_configure_args=
  1401. ac_configure_args0=
  1402. ac_configure_args1=
  1403. ac_must_keep_next=false
  1404. for ac_pass in 1 2
  1405. do
  1406. for ac_arg
  1407. do
  1408. case $ac_arg in
  1409. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1410. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1411. | -silent | --silent | --silen | --sile | --sil)
  1412. continue ;;
  1413. *\'*)
  1414. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1415. esac
  1416. case $ac_pass in
  1417. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1418. 2)
  1419. as_fn_append ac_configure_args1 " '$ac_arg'"
  1420. if test $ac_must_keep_next = true; then
  1421. ac_must_keep_next=false # Got value, back to normal.
  1422. else
  1423. case $ac_arg in
  1424. *=* | --config-cache | -C | -disable-* | --disable-* \
  1425. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1426. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1427. | -with-* | --with-* | -without-* | --without-* | --x)
  1428. case "$ac_configure_args0 " in
  1429. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1430. esac
  1431. ;;
  1432. -* ) ac_must_keep_next=true ;;
  1433. esac
  1434. fi
  1435. as_fn_append ac_configure_args " '$ac_arg'"
  1436. ;;
  1437. esac
  1438. done
  1439. done
  1440. { ac_configure_args0=; unset ac_configure_args0;}
  1441. { ac_configure_args1=; unset ac_configure_args1;}
  1442. # When interrupted or exit'd, cleanup temporary files, and complete
  1443. # config.log. We remove comments because anyway the quotes in there
  1444. # would cause problems or look ugly.
  1445. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1446. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1447. trap 'exit_status=$?
  1448. # Sanitize IFS.
  1449. IFS=" "" $as_nl"
  1450. # Save into config.log some information that might help in debugging.
  1451. {
  1452. echo
  1453. printf "%s\n" "## ---------------- ##
  1454. ## Cache variables. ##
  1455. ## ---------------- ##"
  1456. echo
  1457. # The following way of writing the cache mishandles newlines in values,
  1458. (
  1459. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1460. eval ac_val=\$$ac_var
  1461. case $ac_val in #(
  1462. *${as_nl}*)
  1463. case $ac_var in #(
  1464. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1465. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1466. esac
  1467. case $ac_var in #(
  1468. _ | IFS | as_nl) ;; #(
  1469. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1470. *) { eval $ac_var=; unset $ac_var;} ;;
  1471. esac ;;
  1472. esac
  1473. done
  1474. (set) 2>&1 |
  1475. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1476. *${as_nl}ac_space=\ *)
  1477. sed -n \
  1478. "s/'\''/'\''\\\\'\'''\''/g;
  1479. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1480. ;; #(
  1481. *)
  1482. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1483. ;;
  1484. esac |
  1485. sort
  1486. )
  1487. echo
  1488. printf "%s\n" "## ----------------- ##
  1489. ## Output variables. ##
  1490. ## ----------------- ##"
  1491. echo
  1492. for ac_var in $ac_subst_vars
  1493. do
  1494. eval ac_val=\$$ac_var
  1495. case $ac_val in
  1496. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1497. esac
  1498. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1499. done | sort
  1500. echo
  1501. if test -n "$ac_subst_files"; then
  1502. printf "%s\n" "## ------------------- ##
  1503. ## File substitutions. ##
  1504. ## ------------------- ##"
  1505. echo
  1506. for ac_var in $ac_subst_files
  1507. do
  1508. eval ac_val=\$$ac_var
  1509. case $ac_val in
  1510. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1511. esac
  1512. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1513. done | sort
  1514. echo
  1515. fi
  1516. if test -s confdefs.h; then
  1517. printf "%s\n" "## ----------- ##
  1518. ## confdefs.h. ##
  1519. ## ----------- ##"
  1520. echo
  1521. cat confdefs.h
  1522. echo
  1523. fi
  1524. test "$ac_signal" != 0 &&
  1525. printf "%s\n" "$as_me: caught signal $ac_signal"
  1526. printf "%s\n" "$as_me: exit $exit_status"
  1527. } >&5
  1528. rm -f core *.core core.conftest.* &&
  1529. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1530. exit $exit_status
  1531. ' 0
  1532. for ac_signal in 1 2 13 15; do
  1533. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1534. done
  1535. ac_signal=0
  1536. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1537. rm -f -r conftest* confdefs.h
  1538. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1539. # Predefined preprocessor variables.
  1540. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1541. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1542. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1543. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1544. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1545. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1546. # Let the site file select an alternate cache file if it wants to.
  1547. # Prefer an explicitly selected file to automatically selected ones.
  1548. if test -n "$CONFIG_SITE"; then
  1549. ac_site_files="$CONFIG_SITE"
  1550. elif test "x$prefix" != xNONE; then
  1551. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1552. else
  1553. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1554. fi
  1555. for ac_site_file in $ac_site_files
  1556. do
  1557. case $ac_site_file in #(
  1558. */*) :
  1559. ;; #(
  1560. *) :
  1561. ac_site_file=./$ac_site_file ;;
  1562. esac
  1563. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1565. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1566. sed 's/^/| /' "$ac_site_file" >&5
  1567. . "$ac_site_file" \
  1568. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1569. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1570. as_fn_error $? "failed to load site script $ac_site_file
  1571. See \`config.log' for more details" "$LINENO" 5; }
  1572. fi
  1573. done
  1574. if test -r "$cache_file"; then
  1575. # Some versions of bash will fail to source /dev/null (special files
  1576. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1577. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1579. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1580. case $cache_file in
  1581. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1582. *) . "./$cache_file";;
  1583. esac
  1584. fi
  1585. else
  1586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1587. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1588. >$cache_file
  1589. fi
  1590. # Test code for whether the C compiler supports C89 (global declarations)
  1591. ac_c_conftest_c89_globals='
  1592. /* Does the compiler advertise C89 conformance?
  1593. Do not test the value of __STDC__, because some compilers set it to 0
  1594. while being otherwise adequately conformant. */
  1595. #if !defined __STDC__
  1596. # error "Compiler does not advertise C89 conformance"
  1597. #endif
  1598. #include <stddef.h>
  1599. #include <stdarg.h>
  1600. struct stat;
  1601. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1602. struct buf { int x; };
  1603. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1604. static char *e (p, i)
  1605. char **p;
  1606. int i;
  1607. {
  1608. return p[i];
  1609. }
  1610. static char *f (char * (*g) (char **, int), char **p, ...)
  1611. {
  1612. char *s;
  1613. va_list v;
  1614. va_start (v,p);
  1615. s = g (p, va_arg (v,int));
  1616. va_end (v);
  1617. return s;
  1618. }
  1619. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1620. function prototypes and stuff, but not \xHH hex character constants.
  1621. These do not provoke an error unfortunately, instead are silently treated
  1622. as an "x". The following induces an error, until -std is added to get
  1623. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1624. array size at least. It is necessary to write \x00 == 0 to get something
  1625. that is true only with -std. */
  1626. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1627. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1628. inside strings and character constants. */
  1629. #define FOO(x) '\''x'\''
  1630. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1631. int test (int i, double x);
  1632. struct s1 {int (*f) (int a);};
  1633. struct s2 {int (*f) (double a);};
  1634. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1635. int, int);'
  1636. # Test code for whether the C compiler supports C89 (body of main).
  1637. ac_c_conftest_c89_main='
  1638. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1639. '
  1640. # Test code for whether the C compiler supports C99 (global declarations)
  1641. ac_c_conftest_c99_globals='
  1642. // Does the compiler advertise C99 conformance?
  1643. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1644. # error "Compiler does not advertise C99 conformance"
  1645. #endif
  1646. #include <stdbool.h>
  1647. extern int puts (const char *);
  1648. extern int printf (const char *, ...);
  1649. extern int dprintf (int, const char *, ...);
  1650. extern void *malloc (size_t);
  1651. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1652. // dprintf is used instead of fprintf to avoid needing to declare
  1653. // FILE and stderr.
  1654. #define debug(...) dprintf (2, __VA_ARGS__)
  1655. #define showlist(...) puts (#__VA_ARGS__)
  1656. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1657. static void
  1658. test_varargs_macros (void)
  1659. {
  1660. int x = 1234;
  1661. int y = 5678;
  1662. debug ("Flag");
  1663. debug ("X = %d\n", x);
  1664. showlist (The first, second, and third items.);
  1665. report (x>y, "x is %d but y is %d", x, y);
  1666. }
  1667. // Check long long types.
  1668. #define BIG64 18446744073709551615ull
  1669. #define BIG32 4294967295ul
  1670. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1671. #if !BIG_OK
  1672. #error "your preprocessor is broken"
  1673. #endif
  1674. #if BIG_OK
  1675. #else
  1676. #error "your preprocessor is broken"
  1677. #endif
  1678. static long long int bignum = -9223372036854775807LL;
  1679. static unsigned long long int ubignum = BIG64;
  1680. struct incomplete_array
  1681. {
  1682. int datasize;
  1683. double data[];
  1684. };
  1685. struct named_init {
  1686. int number;
  1687. const wchar_t *name;
  1688. double average;
  1689. };
  1690. typedef const char *ccp;
  1691. static inline int
  1692. test_restrict (ccp restrict text)
  1693. {
  1694. // See if C++-style comments work.
  1695. // Iterate through items via the restricted pointer.
  1696. // Also check for declarations in for loops.
  1697. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  1698. continue;
  1699. return 0;
  1700. }
  1701. // Check varargs and va_copy.
  1702. static bool
  1703. test_varargs (const char *format, ...)
  1704. {
  1705. va_list args;
  1706. va_start (args, format);
  1707. va_list args_copy;
  1708. va_copy (args_copy, args);
  1709. const char *str = "";
  1710. int number = 0;
  1711. float fnumber = 0;
  1712. while (*format)
  1713. {
  1714. switch (*format++)
  1715. {
  1716. case '\''s'\'': // string
  1717. str = va_arg (args_copy, const char *);
  1718. break;
  1719. case '\''d'\'': // int
  1720. number = va_arg (args_copy, int);
  1721. break;
  1722. case '\''f'\'': // float
  1723. fnumber = va_arg (args_copy, double);
  1724. break;
  1725. default:
  1726. break;
  1727. }
  1728. }
  1729. va_end (args_copy);
  1730. va_end (args);
  1731. return *str && number && fnumber;
  1732. }
  1733. '
  1734. # Test code for whether the C compiler supports C99 (body of main).
  1735. ac_c_conftest_c99_main='
  1736. // Check bool.
  1737. _Bool success = false;
  1738. success |= (argc != 0);
  1739. // Check restrict.
  1740. if (test_restrict ("String literal") == 0)
  1741. success = true;
  1742. char *restrict newvar = "Another string";
  1743. // Check varargs.
  1744. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  1745. test_varargs_macros ();
  1746. // Check flexible array members.
  1747. struct incomplete_array *ia =
  1748. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1749. ia->datasize = 10;
  1750. for (int i = 0; i < ia->datasize; ++i)
  1751. ia->data[i] = i * 1.234;
  1752. // Check named initializers.
  1753. struct named_init ni = {
  1754. .number = 34,
  1755. .name = L"Test wide string",
  1756. .average = 543.34343,
  1757. };
  1758. ni.number = 58;
  1759. int dynamic_array[ni.number];
  1760. dynamic_array[0] = argv[0][0];
  1761. dynamic_array[ni.number - 1] = 543;
  1762. // work around unused variable warnings
  1763. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  1764. || dynamic_array[ni.number - 1] != 543);
  1765. '
  1766. # Test code for whether the C compiler supports C11 (global declarations)
  1767. ac_c_conftest_c11_globals='
  1768. // Does the compiler advertise C11 conformance?
  1769. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  1770. # error "Compiler does not advertise C11 conformance"
  1771. #endif
  1772. // Check _Alignas.
  1773. char _Alignas (double) aligned_as_double;
  1774. char _Alignas (0) no_special_alignment;
  1775. extern char aligned_as_int;
  1776. char _Alignas (0) _Alignas (int) aligned_as_int;
  1777. // Check _Alignof.
  1778. enum
  1779. {
  1780. int_alignment = _Alignof (int),
  1781. int_array_alignment = _Alignof (int[100]),
  1782. char_alignment = _Alignof (char)
  1783. };
  1784. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  1785. // Check _Noreturn.
  1786. int _Noreturn does_not_return (void) { for (;;) continue; }
  1787. // Check _Static_assert.
  1788. struct test_static_assert
  1789. {
  1790. int x;
  1791. _Static_assert (sizeof (int) <= sizeof (long int),
  1792. "_Static_assert does not work in struct");
  1793. long int y;
  1794. };
  1795. // Check UTF-8 literals.
  1796. #define u8 syntax error!
  1797. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  1798. // Check duplicate typedefs.
  1799. typedef long *long_ptr;
  1800. typedef long int *long_ptr;
  1801. typedef long_ptr long_ptr;
  1802. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  1803. struct anonymous
  1804. {
  1805. union {
  1806. struct { int i; int j; };
  1807. struct { int k; long int l; } w;
  1808. };
  1809. int m;
  1810. } v1;
  1811. '
  1812. # Test code for whether the C compiler supports C11 (body of main).
  1813. ac_c_conftest_c11_main='
  1814. _Static_assert ((offsetof (struct anonymous, i)
  1815. == offsetof (struct anonymous, w.k)),
  1816. "Anonymous union alignment botch");
  1817. v1.i = 2;
  1818. v1.w.k = 5;
  1819. ok |= v1.i != 5;
  1820. '
  1821. # Test code for whether the C compiler supports C11 (complete).
  1822. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  1823. ${ac_c_conftest_c99_globals}
  1824. ${ac_c_conftest_c11_globals}
  1825. int
  1826. main (int argc, char **argv)
  1827. {
  1828. int ok = 0;
  1829. ${ac_c_conftest_c89_main}
  1830. ${ac_c_conftest_c99_main}
  1831. ${ac_c_conftest_c11_main}
  1832. return ok;
  1833. }
  1834. "
  1835. # Test code for whether the C compiler supports C99 (complete).
  1836. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  1837. ${ac_c_conftest_c99_globals}
  1838. int
  1839. main (int argc, char **argv)
  1840. {
  1841. int ok = 0;
  1842. ${ac_c_conftest_c89_main}
  1843. ${ac_c_conftest_c99_main}
  1844. return ok;
  1845. }
  1846. "
  1847. # Test code for whether the C compiler supports C89 (complete).
  1848. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  1849. int
  1850. main (int argc, char **argv)
  1851. {
  1852. int ok = 0;
  1853. ${ac_c_conftest_c89_main}
  1854. return ok;
  1855. }
  1856. "
  1857. # Auxiliary files required by this configure script.
  1858. ac_aux_files="compile missing install-sh"
  1859. # Locations in which to look for auxiliary files.
  1860. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  1861. # Search for a directory containing all of the required auxiliary files,
  1862. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  1863. # If we don't find one directory that contains all the files we need,
  1864. # we report the set of missing files from the *first* directory in
  1865. # $ac_aux_dir_candidates and give up.
  1866. ac_missing_aux_files=""
  1867. ac_first_candidate=:
  1868. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  1869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1870. as_found=false
  1871. for as_dir in $ac_aux_dir_candidates
  1872. do
  1873. IFS=$as_save_IFS
  1874. case $as_dir in #(((
  1875. '') as_dir=./ ;;
  1876. */) ;;
  1877. *) as_dir=$as_dir/ ;;
  1878. esac
  1879. as_found=:
  1880. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  1881. ac_aux_dir_found=yes
  1882. ac_install_sh=
  1883. for ac_aux in $ac_aux_files
  1884. do
  1885. # As a special case, if "install-sh" is required, that requirement
  1886. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  1887. # and $ac_install_sh is set appropriately for whichever one is found.
  1888. if test x"$ac_aux" = x"install-sh"
  1889. then
  1890. if test -f "${as_dir}install-sh"; then
  1891. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  1892. ac_install_sh="${as_dir}install-sh -c"
  1893. elif test -f "${as_dir}install.sh"; then
  1894. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  1895. ac_install_sh="${as_dir}install.sh -c"
  1896. elif test -f "${as_dir}shtool"; then
  1897. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  1898. ac_install_sh="${as_dir}shtool install -c"
  1899. else
  1900. ac_aux_dir_found=no
  1901. if $ac_first_candidate; then
  1902. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  1903. else
  1904. break
  1905. fi
  1906. fi
  1907. else
  1908. if test -f "${as_dir}${ac_aux}"; then
  1909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  1910. else
  1911. ac_aux_dir_found=no
  1912. if $ac_first_candidate; then
  1913. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  1914. else
  1915. break
  1916. fi
  1917. fi
  1918. fi
  1919. done
  1920. if test "$ac_aux_dir_found" = yes; then
  1921. ac_aux_dir="$as_dir"
  1922. break
  1923. fi
  1924. ac_first_candidate=false
  1925. as_found=false
  1926. done
  1927. IFS=$as_save_IFS
  1928. if $as_found
  1929. then :
  1930. else $as_nop
  1931. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  1932. fi
  1933. # These three variables are undocumented and unsupported,
  1934. # and are intended to be withdrawn in a future Autoconf release.
  1935. # They can cause serious problems if a builder's source tree is in a directory
  1936. # whose full name contains unusual characters.
  1937. if test -f "${ac_aux_dir}config.guess"; then
  1938. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  1939. fi
  1940. if test -f "${ac_aux_dir}config.sub"; then
  1941. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  1942. fi
  1943. if test -f "$ac_aux_dir/configure"; then
  1944. ac_configure="$SHELL ${ac_aux_dir}configure"
  1945. fi
  1946. # Check that the precious variables saved in the cache have kept the same
  1947. # value.
  1948. ac_cache_corrupted=false
  1949. for ac_var in $ac_precious_vars; do
  1950. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1951. eval ac_new_set=\$ac_env_${ac_var}_set
  1952. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1953. eval ac_new_val=\$ac_env_${ac_var}_value
  1954. case $ac_old_set,$ac_new_set in
  1955. set,)
  1956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1957. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1958. ac_cache_corrupted=: ;;
  1959. ,set)
  1960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1961. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1962. ac_cache_corrupted=: ;;
  1963. ,);;
  1964. *)
  1965. if test "x$ac_old_val" != "x$ac_new_val"; then
  1966. # differences in whitespace do not lead to failure.
  1967. ac_old_val_w=`echo x $ac_old_val`
  1968. ac_new_val_w=`echo x $ac_new_val`
  1969. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1971. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1972. ac_cache_corrupted=:
  1973. else
  1974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1975. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1976. eval $ac_var=\$ac_old_val
  1977. fi
  1978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1979. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  1980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1981. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  1982. fi;;
  1983. esac
  1984. # Pass precious variables to config.status.
  1985. if test "$ac_new_set" = set; then
  1986. case $ac_new_val in
  1987. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1988. *) ac_arg=$ac_var=$ac_new_val ;;
  1989. esac
  1990. case " $ac_configure_args " in
  1991. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1992. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1993. esac
  1994. fi
  1995. done
  1996. if $ac_cache_corrupted; then
  1997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1998. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2000. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2001. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2002. and start over" "$LINENO" 5
  2003. fi
  2004. ## -------------------- ##
  2005. ## Main body of script. ##
  2006. ## -------------------- ##
  2007. ac_ext=c
  2008. ac_cpp='$CPP $CPPFLAGS'
  2009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2012. am__api_version='1.14'
  2013. # Find a good install program. We prefer a C program (faster),
  2014. # so one script is as good as another. But avoid the broken or
  2015. # incompatible versions:
  2016. # SysV /etc/install, /usr/sbin/install
  2017. # SunOS /usr/etc/install
  2018. # IRIX /sbin/install
  2019. # AIX /bin/install
  2020. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2021. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2022. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2023. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2024. # OS/2's system install, which has a completely different semantic
  2025. # ./install, which can be erroneously created by make from ./install.sh.
  2026. # Reject install programs that cannot install multiple files.
  2027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2028. printf %s "checking for a BSD-compatible install... " >&6; }
  2029. if test -z "$INSTALL"; then
  2030. if test ${ac_cv_path_install+y}
  2031. then :
  2032. printf %s "(cached) " >&6
  2033. else $as_nop
  2034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2035. for as_dir in $PATH
  2036. do
  2037. IFS=$as_save_IFS
  2038. case $as_dir in #(((
  2039. '') as_dir=./ ;;
  2040. */) ;;
  2041. *) as_dir=$as_dir/ ;;
  2042. esac
  2043. # Account for fact that we put trailing slashes in our PATH walk.
  2044. case $as_dir in #((
  2045. ./ | /[cC]/* | \
  2046. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2047. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2048. /usr/ucb/* ) ;;
  2049. *)
  2050. # OSF1 and SCO ODT 3.0 have their own names for install.
  2051. # Don't use installbsd from OSF since it installs stuff as root
  2052. # by default.
  2053. for ac_prog in ginstall scoinst install; do
  2054. for ac_exec_ext in '' $ac_executable_extensions; do
  2055. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2056. if test $ac_prog = install &&
  2057. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2058. # AIX install. It has an incompatible calling convention.
  2059. :
  2060. elif test $ac_prog = install &&
  2061. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2062. # program-specific install script used by HP pwplus--don't use.
  2063. :
  2064. else
  2065. rm -rf conftest.one conftest.two conftest.dir
  2066. echo one > conftest.one
  2067. echo two > conftest.two
  2068. mkdir conftest.dir
  2069. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2070. test -s conftest.one && test -s conftest.two &&
  2071. test -s conftest.dir/conftest.one &&
  2072. test -s conftest.dir/conftest.two
  2073. then
  2074. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2075. break 3
  2076. fi
  2077. fi
  2078. fi
  2079. done
  2080. done
  2081. ;;
  2082. esac
  2083. done
  2084. IFS=$as_save_IFS
  2085. rm -rf conftest.one conftest.two conftest.dir
  2086. fi
  2087. if test ${ac_cv_path_install+y}; then
  2088. INSTALL=$ac_cv_path_install
  2089. else
  2090. # As a last resort, use the slow shell script. Don't cache a
  2091. # value for INSTALL within a source directory, because that will
  2092. # break other packages using the cache if that directory is
  2093. # removed, or if the value is a relative name.
  2094. INSTALL=$ac_install_sh
  2095. fi
  2096. fi
  2097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2098. printf "%s\n" "$INSTALL" >&6; }
  2099. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2100. # It thinks the first close brace ends the variable substitution.
  2101. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2102. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2103. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2105. printf %s "checking whether build environment is sane... " >&6; }
  2106. # Reject unsafe characters in $srcdir or the absolute working directory
  2107. # name. Accept space and tab only in the latter.
  2108. am_lf='
  2109. '
  2110. case `pwd` in
  2111. *[\\\"\#\$\&\'\`$am_lf]*)
  2112. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2113. esac
  2114. case $srcdir in
  2115. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2116. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2117. esac
  2118. # Do 'set' in a subshell so we don't clobber the current shell's
  2119. # arguments. Must try -L first in case configure is actually a
  2120. # symlink; some systems play weird games with the mod time of symlinks
  2121. # (eg FreeBSD returns the mod time of the symlink's containing
  2122. # directory).
  2123. if (
  2124. am_has_slept=no
  2125. for am_try in 1 2; do
  2126. echo "timestamp, slept: $am_has_slept" > conftest.file
  2127. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2128. if test "$*" = "X"; then
  2129. # -L didn't work.
  2130. set X `ls -t "$srcdir/configure" conftest.file`
  2131. fi
  2132. if test "$*" != "X $srcdir/configure conftest.file" \
  2133. && test "$*" != "X conftest.file $srcdir/configure"; then
  2134. # If neither matched, then we have a broken ls. This can happen
  2135. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2136. # broken ls alias from the environment. This has actually
  2137. # happened. Such a system could not be considered "sane".
  2138. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2139. alias in your environment" "$LINENO" 5
  2140. fi
  2141. if test "$2" = conftest.file || test $am_try -eq 2; then
  2142. break
  2143. fi
  2144. # Just in case.
  2145. sleep 1
  2146. am_has_slept=yes
  2147. done
  2148. test "$2" = conftest.file
  2149. )
  2150. then
  2151. # Ok.
  2152. :
  2153. else
  2154. as_fn_error $? "newly created file is older than distributed files!
  2155. Check your system clock" "$LINENO" 5
  2156. fi
  2157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2158. printf "%s\n" "yes" >&6; }
  2159. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2160. # generated files are strictly newer.
  2161. am_sleep_pid=
  2162. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2163. ( sleep 1 ) &
  2164. am_sleep_pid=$!
  2165. fi
  2166. rm -f conftest.file
  2167. test "$program_prefix" != NONE &&
  2168. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2169. # Use a double $ so make ignores it.
  2170. test "$program_suffix" != NONE &&
  2171. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2172. # Double any \ or $.
  2173. # By default was `s,x,x', remove it if useless.
  2174. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2175. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2176. # expand $ac_aux_dir to an absolute path
  2177. am_aux_dir=`cd $ac_aux_dir && pwd`
  2178. if test x"${MISSING+set}" != xset; then
  2179. case $am_aux_dir in
  2180. *\ * | *\ *)
  2181. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2182. *)
  2183. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2184. esac
  2185. fi
  2186. # Use eval to expand $SHELL
  2187. if eval "$MISSING --is-lightweight"; then
  2188. am_missing_run="$MISSING "
  2189. else
  2190. am_missing_run=
  2191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2192. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2193. fi
  2194. if test x"${install_sh}" != xset; then
  2195. case $am_aux_dir in
  2196. *\ * | *\ *)
  2197. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2198. *)
  2199. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2200. esac
  2201. fi
  2202. # Installed binaries are usually stripped using 'strip' when the user
  2203. # run "make install-strip". However 'strip' might not be the right
  2204. # tool to use in cross-compilation environments, therefore Automake
  2205. # will honor the 'STRIP' environment variable to overrule this program.
  2206. if test "$cross_compiling" != no; then
  2207. if test -n "$ac_tool_prefix"; then
  2208. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2209. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2211. printf %s "checking for $ac_word... " >&6; }
  2212. if test ${ac_cv_prog_STRIP+y}
  2213. then :
  2214. printf %s "(cached) " >&6
  2215. else $as_nop
  2216. if test -n "$STRIP"; then
  2217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2218. else
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. case $as_dir in #(((
  2224. '') as_dir=./ ;;
  2225. */) ;;
  2226. *) as_dir=$as_dir/ ;;
  2227. esac
  2228. for ac_exec_ext in '' $ac_executable_extensions; do
  2229. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2230. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2231. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2232. break 2
  2233. fi
  2234. done
  2235. done
  2236. IFS=$as_save_IFS
  2237. fi
  2238. fi
  2239. STRIP=$ac_cv_prog_STRIP
  2240. if test -n "$STRIP"; then
  2241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2242. printf "%s\n" "$STRIP" >&6; }
  2243. else
  2244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2245. printf "%s\n" "no" >&6; }
  2246. fi
  2247. fi
  2248. if test -z "$ac_cv_prog_STRIP"; then
  2249. ac_ct_STRIP=$STRIP
  2250. # Extract the first word of "strip", so it can be a program name with args.
  2251. set dummy strip; ac_word=$2
  2252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2253. printf %s "checking for $ac_word... " >&6; }
  2254. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2255. then :
  2256. printf %s "(cached) " >&6
  2257. else $as_nop
  2258. if test -n "$ac_ct_STRIP"; then
  2259. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2260. else
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. case $as_dir in #(((
  2266. '') as_dir=./ ;;
  2267. */) ;;
  2268. *) as_dir=$as_dir/ ;;
  2269. esac
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2272. ac_cv_prog_ac_ct_STRIP="strip"
  2273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2274. break 2
  2275. fi
  2276. done
  2277. done
  2278. IFS=$as_save_IFS
  2279. fi
  2280. fi
  2281. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2282. if test -n "$ac_ct_STRIP"; then
  2283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2284. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2285. else
  2286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2287. printf "%s\n" "no" >&6; }
  2288. fi
  2289. if test "x$ac_ct_STRIP" = x; then
  2290. STRIP=":"
  2291. else
  2292. case $cross_compiling:$ac_tool_warned in
  2293. yes:)
  2294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2295. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2296. ac_tool_warned=yes ;;
  2297. esac
  2298. STRIP=$ac_ct_STRIP
  2299. fi
  2300. else
  2301. STRIP="$ac_cv_prog_STRIP"
  2302. fi
  2303. fi
  2304. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2306. printf %s "checking for a race-free mkdir -p... " >&6; }
  2307. if test -z "$MKDIR_P"; then
  2308. if test ${ac_cv_path_mkdir+y}
  2309. then :
  2310. printf %s "(cached) " >&6
  2311. else $as_nop
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2314. do
  2315. IFS=$as_save_IFS
  2316. case $as_dir in #(((
  2317. '') as_dir=./ ;;
  2318. */) ;;
  2319. *) as_dir=$as_dir/ ;;
  2320. esac
  2321. for ac_prog in mkdir gmkdir; do
  2322. for ac_exec_ext in '' $ac_executable_extensions; do
  2323. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2324. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2325. 'mkdir ('*'coreutils) '* | \
  2326. 'BusyBox '* | \
  2327. 'mkdir (fileutils) '4.1*)
  2328. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2329. break 3;;
  2330. esac
  2331. done
  2332. done
  2333. done
  2334. IFS=$as_save_IFS
  2335. fi
  2336. test -d ./--version && rmdir ./--version
  2337. if test ${ac_cv_path_mkdir+y}; then
  2338. MKDIR_P="$ac_cv_path_mkdir -p"
  2339. else
  2340. # As a last resort, use the slow shell script. Don't cache a
  2341. # value for MKDIR_P within a source directory, because that will
  2342. # break other packages using the cache if that directory is
  2343. # removed, or if the value is a relative name.
  2344. MKDIR_P="$ac_install_sh -d"
  2345. fi
  2346. fi
  2347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2348. printf "%s\n" "$MKDIR_P" >&6; }
  2349. for ac_prog in gawk mawk nawk awk
  2350. do
  2351. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2352. set dummy $ac_prog; ac_word=$2
  2353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2354. printf %s "checking for $ac_word... " >&6; }
  2355. if test ${ac_cv_prog_AWK+y}
  2356. then :
  2357. printf %s "(cached) " >&6
  2358. else $as_nop
  2359. if test -n "$AWK"; then
  2360. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH
  2364. do
  2365. IFS=$as_save_IFS
  2366. case $as_dir in #(((
  2367. '') as_dir=./ ;;
  2368. */) ;;
  2369. *) as_dir=$as_dir/ ;;
  2370. esac
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2373. ac_cv_prog_AWK="$ac_prog"
  2374. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2375. break 2
  2376. fi
  2377. done
  2378. done
  2379. IFS=$as_save_IFS
  2380. fi
  2381. fi
  2382. AWK=$ac_cv_prog_AWK
  2383. if test -n "$AWK"; then
  2384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2385. printf "%s\n" "$AWK" >&6; }
  2386. else
  2387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2388. printf "%s\n" "no" >&6; }
  2389. fi
  2390. test -n "$AWK" && break
  2391. done
  2392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2393. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2394. set x ${MAKE-make}
  2395. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2396. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2397. then :
  2398. printf %s "(cached) " >&6
  2399. else $as_nop
  2400. cat >conftest.make <<\_ACEOF
  2401. SHELL = /bin/sh
  2402. all:
  2403. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2404. _ACEOF
  2405. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2406. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2407. *@@@%%%=?*=@@@%%%*)
  2408. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2409. *)
  2410. eval ac_cv_prog_make_${ac_make}_set=no;;
  2411. esac
  2412. rm -f conftest.make
  2413. fi
  2414. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2416. printf "%s\n" "yes" >&6; }
  2417. SET_MAKE=
  2418. else
  2419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2420. printf "%s\n" "no" >&6; }
  2421. SET_MAKE="MAKE=${MAKE-make}"
  2422. fi
  2423. rm -rf .tst 2>/dev/null
  2424. mkdir .tst 2>/dev/null
  2425. if test -d .tst; then
  2426. am__leading_dot=.
  2427. else
  2428. am__leading_dot=_
  2429. fi
  2430. rmdir .tst 2>/dev/null
  2431. # Check whether --enable-silent-rules was given.
  2432. if test ${enable_silent_rules+y}
  2433. then :
  2434. enableval=$enable_silent_rules;
  2435. fi
  2436. case $enable_silent_rules in # (((
  2437. yes) AM_DEFAULT_VERBOSITY=0;;
  2438. no) AM_DEFAULT_VERBOSITY=1;;
  2439. *) AM_DEFAULT_VERBOSITY=1;;
  2440. esac
  2441. am_make=${MAKE-make}
  2442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2443. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2444. if test ${am_cv_make_support_nested_variables+y}
  2445. then :
  2446. printf %s "(cached) " >&6
  2447. else $as_nop
  2448. if printf "%s\n" 'TRUE=$(BAR$(V))
  2449. BAR0=false
  2450. BAR1=true
  2451. V=1
  2452. am__doit:
  2453. @$(TRUE)
  2454. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2455. am_cv_make_support_nested_variables=yes
  2456. else
  2457. am_cv_make_support_nested_variables=no
  2458. fi
  2459. fi
  2460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2461. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2462. if test $am_cv_make_support_nested_variables = yes; then
  2463. AM_V='$(V)'
  2464. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2465. else
  2466. AM_V=$AM_DEFAULT_VERBOSITY
  2467. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2468. fi
  2469. AM_BACKSLASH='\'
  2470. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2471. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2472. # is not polluted with repeated "-I."
  2473. am__isrc=' -I$(srcdir)'
  2474. # test to see if srcdir already configured
  2475. if test -f $srcdir/config.status; then
  2476. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2477. fi
  2478. fi
  2479. # test whether we have cygpath
  2480. if test -z "$CYGPATH_W"; then
  2481. if (cygpath --version) >/dev/null 2>/dev/null; then
  2482. CYGPATH_W='cygpath -w'
  2483. else
  2484. CYGPATH_W=echo
  2485. fi
  2486. fi
  2487. # Define the identity of the package.
  2488. PACKAGE='rufus'
  2489. VERSION='3.14'
  2490. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  2491. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  2492. # Some tools Automake needs.
  2493. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2494. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2495. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2496. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2497. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2498. # For better backward compatibility. To be removed once Automake 1.9.x
  2499. # dies out for good. For more background, see:
  2500. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2501. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2502. mkdir_p='$(MKDIR_P)'
  2503. # We need awk for the "check" target. The system "awk" is bad on
  2504. # some platforms.
  2505. # Always define AMTAR for backward compatibility. Yes, it's still used
  2506. # in the wild :-( We should find a proper way to deprecate it ...
  2507. AMTAR='$${TAR-tar}'
  2508. # We'll loop over all known methods to create a tar archive until one works.
  2509. _am_tools='gnutar pax cpio none'
  2510. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2511. # POSIX will say in a future version that running "rm -f" with no argument
  2512. # is OK; and we want to be able to make that assumption in our Makefile
  2513. # recipes. So use an aggressive probe to check that the usage we want is
  2514. # actually supported "in the wild" to an acceptable degree.
  2515. # See automake bug#10828.
  2516. # To make any issue more visible, cause the running configure to be aborted
  2517. # by default if the 'rm' program in use doesn't match our expectations; the
  2518. # user can still override this though.
  2519. if rm -f && rm -fr && rm -rf; then : OK; else
  2520. cat >&2 <<'END'
  2521. Oops!
  2522. Your 'rm' program seems unable to run without file operands specified
  2523. on the command line, even when the '-f' option is present. This is contrary
  2524. to the behaviour of most rm programs out there, and not conforming with
  2525. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2526. Please tell bug-automake@gnu.org about your system, including the value
  2527. of your $PATH and any error possibly output before this message. This
  2528. can help us improve future automake versions.
  2529. END
  2530. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2531. echo 'Configuration will proceed anyway, since you have set the' >&2
  2532. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2533. echo >&2
  2534. else
  2535. cat >&2 <<'END'
  2536. Aborting the configuration process, to ensure you take notice of the issue.
  2537. You can download and install GNU coreutils to get an 'rm' implementation
  2538. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2539. If you want to complete the configuration process using your problematic
  2540. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2541. to "yes", and re-run configure.
  2542. END
  2543. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2544. fi
  2545. fi
  2546. # Check whether --enable-silent-rules was given.
  2547. if test ${enable_silent_rules+y}
  2548. then :
  2549. enableval=$enable_silent_rules;
  2550. fi
  2551. case $enable_silent_rules in # (((
  2552. yes) AM_DEFAULT_VERBOSITY=0;;
  2553. no) AM_DEFAULT_VERBOSITY=1;;
  2554. *) AM_DEFAULT_VERBOSITY=0;;
  2555. esac
  2556. am_make=${MAKE-make}
  2557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2558. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2559. if test ${am_cv_make_support_nested_variables+y}
  2560. then :
  2561. printf %s "(cached) " >&6
  2562. else $as_nop
  2563. if printf "%s\n" 'TRUE=$(BAR$(V))
  2564. BAR0=false
  2565. BAR1=true
  2566. V=1
  2567. am__doit:
  2568. @$(TRUE)
  2569. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2570. am_cv_make_support_nested_variables=yes
  2571. else
  2572. am_cv_make_support_nested_variables=no
  2573. fi
  2574. fi
  2575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2576. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2577. if test $am_cv_make_support_nested_variables = yes; then
  2578. AM_V='$(V)'
  2579. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2580. else
  2581. AM_V=$AM_DEFAULT_VERBOSITY
  2582. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2583. fi
  2584. AM_BACKSLASH='\'
  2585. ac_ext=c
  2586. ac_cpp='$CPP $CPPFLAGS'
  2587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2590. if test -n "$ac_tool_prefix"; then
  2591. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2592. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. printf %s "checking for $ac_word... " >&6; }
  2595. if test ${ac_cv_prog_CC+y}
  2596. then :
  2597. printf %s "(cached) " >&6
  2598. else $as_nop
  2599. if test -n "$CC"; then
  2600. ac_cv_prog_CC="$CC" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. case $as_dir in #(((
  2607. '') as_dir=./ ;;
  2608. */) ;;
  2609. *) as_dir=$as_dir/ ;;
  2610. esac
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2613. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2615. break 2
  2616. fi
  2617. done
  2618. done
  2619. IFS=$as_save_IFS
  2620. fi
  2621. fi
  2622. CC=$ac_cv_prog_CC
  2623. if test -n "$CC"; then
  2624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2625. printf "%s\n" "$CC" >&6; }
  2626. else
  2627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2628. printf "%s\n" "no" >&6; }
  2629. fi
  2630. fi
  2631. if test -z "$ac_cv_prog_CC"; then
  2632. ac_ct_CC=$CC
  2633. # Extract the first word of "gcc", so it can be a program name with args.
  2634. set dummy gcc; ac_word=$2
  2635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2636. printf %s "checking for $ac_word... " >&6; }
  2637. if test ${ac_cv_prog_ac_ct_CC+y}
  2638. then :
  2639. printf %s "(cached) " >&6
  2640. else $as_nop
  2641. if test -n "$ac_ct_CC"; then
  2642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2643. else
  2644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2645. for as_dir in $PATH
  2646. do
  2647. IFS=$as_save_IFS
  2648. case $as_dir in #(((
  2649. '') as_dir=./ ;;
  2650. */) ;;
  2651. *) as_dir=$as_dir/ ;;
  2652. esac
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_ac_ct_CC="gcc"
  2656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2665. if test -n "$ac_ct_CC"; then
  2666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2667. printf "%s\n" "$ac_ct_CC" >&6; }
  2668. else
  2669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2670. printf "%s\n" "no" >&6; }
  2671. fi
  2672. if test "x$ac_ct_CC" = x; then
  2673. CC=""
  2674. else
  2675. case $cross_compiling:$ac_tool_warned in
  2676. yes:)
  2677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2678. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2679. ac_tool_warned=yes ;;
  2680. esac
  2681. CC=$ac_ct_CC
  2682. fi
  2683. else
  2684. CC="$ac_cv_prog_CC"
  2685. fi
  2686. if test -z "$CC"; then
  2687. if test -n "$ac_tool_prefix"; then
  2688. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2689. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2691. printf %s "checking for $ac_word... " >&6; }
  2692. if test ${ac_cv_prog_CC+y}
  2693. then :
  2694. printf %s "(cached) " >&6
  2695. else $as_nop
  2696. if test -n "$CC"; then
  2697. ac_cv_prog_CC="$CC" # Let the user override the test.
  2698. else
  2699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2700. for as_dir in $PATH
  2701. do
  2702. IFS=$as_save_IFS
  2703. case $as_dir in #(((
  2704. '') as_dir=./ ;;
  2705. */) ;;
  2706. *) as_dir=$as_dir/ ;;
  2707. esac
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2710. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2711. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2712. break 2
  2713. fi
  2714. done
  2715. done
  2716. IFS=$as_save_IFS
  2717. fi
  2718. fi
  2719. CC=$ac_cv_prog_CC
  2720. if test -n "$CC"; then
  2721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2722. printf "%s\n" "$CC" >&6; }
  2723. else
  2724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2725. printf "%s\n" "no" >&6; }
  2726. fi
  2727. fi
  2728. fi
  2729. if test -z "$CC"; then
  2730. # Extract the first word of "cc", so it can be a program name with args.
  2731. set dummy cc; ac_word=$2
  2732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2733. printf %s "checking for $ac_word... " >&6; }
  2734. if test ${ac_cv_prog_CC+y}
  2735. then :
  2736. printf %s "(cached) " >&6
  2737. else $as_nop
  2738. if test -n "$CC"; then
  2739. ac_cv_prog_CC="$CC" # Let the user override the test.
  2740. else
  2741. ac_prog_rejected=no
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. case $as_dir in #(((
  2747. '') as_dir=./ ;;
  2748. */) ;;
  2749. *) as_dir=$as_dir/ ;;
  2750. esac
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2753. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2754. ac_prog_rejected=yes
  2755. continue
  2756. fi
  2757. ac_cv_prog_CC="cc"
  2758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2759. break 2
  2760. fi
  2761. done
  2762. done
  2763. IFS=$as_save_IFS
  2764. if test $ac_prog_rejected = yes; then
  2765. # We found a bogon in the path, so make sure we never use it.
  2766. set dummy $ac_cv_prog_CC
  2767. shift
  2768. if test $# != 0; then
  2769. # We chose a different compiler from the bogus one.
  2770. # However, it has the same basename, so the bogon will be chosen
  2771. # first if we set CC to just the basename; use the full file name.
  2772. shift
  2773. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2774. fi
  2775. fi
  2776. fi
  2777. fi
  2778. CC=$ac_cv_prog_CC
  2779. if test -n "$CC"; then
  2780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2781. printf "%s\n" "$CC" >&6; }
  2782. else
  2783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2784. printf "%s\n" "no" >&6; }
  2785. fi
  2786. fi
  2787. if test -z "$CC"; then
  2788. if test -n "$ac_tool_prefix"; then
  2789. for ac_prog in cl.exe
  2790. do
  2791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2794. printf %s "checking for $ac_word... " >&6; }
  2795. if test ${ac_cv_prog_CC+y}
  2796. then :
  2797. printf %s "(cached) " >&6
  2798. else $as_nop
  2799. if test -n "$CC"; then
  2800. ac_cv_prog_CC="$CC" # Let the user override the test.
  2801. else
  2802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2803. for as_dir in $PATH
  2804. do
  2805. IFS=$as_save_IFS
  2806. case $as_dir in #(((
  2807. '') as_dir=./ ;;
  2808. */) ;;
  2809. *) as_dir=$as_dir/ ;;
  2810. esac
  2811. for ac_exec_ext in '' $ac_executable_extensions; do
  2812. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2813. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2814. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2815. break 2
  2816. fi
  2817. done
  2818. done
  2819. IFS=$as_save_IFS
  2820. fi
  2821. fi
  2822. CC=$ac_cv_prog_CC
  2823. if test -n "$CC"; then
  2824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2825. printf "%s\n" "$CC" >&6; }
  2826. else
  2827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. printf "%s\n" "no" >&6; }
  2829. fi
  2830. test -n "$CC" && break
  2831. done
  2832. fi
  2833. if test -z "$CC"; then
  2834. ac_ct_CC=$CC
  2835. for ac_prog in cl.exe
  2836. do
  2837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2838. set dummy $ac_prog; ac_word=$2
  2839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2840. printf %s "checking for $ac_word... " >&6; }
  2841. if test ${ac_cv_prog_ac_ct_CC+y}
  2842. then :
  2843. printf %s "(cached) " >&6
  2844. else $as_nop
  2845. if test -n "$ac_ct_CC"; then
  2846. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. case $as_dir in #(((
  2853. '') as_dir=./ ;;
  2854. */) ;;
  2855. *) as_dir=$as_dir/ ;;
  2856. esac
  2857. for ac_exec_ext in '' $ac_executable_extensions; do
  2858. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2859. ac_cv_prog_ac_ct_CC="$ac_prog"
  2860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2861. break 2
  2862. fi
  2863. done
  2864. done
  2865. IFS=$as_save_IFS
  2866. fi
  2867. fi
  2868. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2869. if test -n "$ac_ct_CC"; then
  2870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2871. printf "%s\n" "$ac_ct_CC" >&6; }
  2872. else
  2873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. printf "%s\n" "no" >&6; }
  2875. fi
  2876. test -n "$ac_ct_CC" && break
  2877. done
  2878. if test "x$ac_ct_CC" = x; then
  2879. CC=""
  2880. else
  2881. case $cross_compiling:$ac_tool_warned in
  2882. yes:)
  2883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2884. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2885. ac_tool_warned=yes ;;
  2886. esac
  2887. CC=$ac_ct_CC
  2888. fi
  2889. fi
  2890. fi
  2891. if test -z "$CC"; then
  2892. if test -n "$ac_tool_prefix"; then
  2893. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2894. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2896. printf %s "checking for $ac_word... " >&6; }
  2897. if test ${ac_cv_prog_CC+y}
  2898. then :
  2899. printf %s "(cached) " >&6
  2900. else $as_nop
  2901. if test -n "$CC"; then
  2902. ac_cv_prog_CC="$CC" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. case $as_dir in #(((
  2909. '') as_dir=./ ;;
  2910. */) ;;
  2911. *) as_dir=$as_dir/ ;;
  2912. esac
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2915. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. CC=$ac_cv_prog_CC
  2925. if test -n "$CC"; then
  2926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2927. printf "%s\n" "$CC" >&6; }
  2928. else
  2929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. printf "%s\n" "no" >&6; }
  2931. fi
  2932. fi
  2933. if test -z "$ac_cv_prog_CC"; then
  2934. ac_ct_CC=$CC
  2935. # Extract the first word of "clang", so it can be a program name with args.
  2936. set dummy clang; ac_word=$2
  2937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2938. printf %s "checking for $ac_word... " >&6; }
  2939. if test ${ac_cv_prog_ac_ct_CC+y}
  2940. then :
  2941. printf %s "(cached) " >&6
  2942. else $as_nop
  2943. if test -n "$ac_ct_CC"; then
  2944. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2945. else
  2946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2947. for as_dir in $PATH
  2948. do
  2949. IFS=$as_save_IFS
  2950. case $as_dir in #(((
  2951. '') as_dir=./ ;;
  2952. */) ;;
  2953. *) as_dir=$as_dir/ ;;
  2954. esac
  2955. for ac_exec_ext in '' $ac_executable_extensions; do
  2956. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2957. ac_cv_prog_ac_ct_CC="clang"
  2958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2959. break 2
  2960. fi
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. fi
  2966. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2967. if test -n "$ac_ct_CC"; then
  2968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2969. printf "%s\n" "$ac_ct_CC" >&6; }
  2970. else
  2971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. printf "%s\n" "no" >&6; }
  2973. fi
  2974. if test "x$ac_ct_CC" = x; then
  2975. CC=""
  2976. else
  2977. case $cross_compiling:$ac_tool_warned in
  2978. yes:)
  2979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2980. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2981. ac_tool_warned=yes ;;
  2982. esac
  2983. CC=$ac_ct_CC
  2984. fi
  2985. else
  2986. CC="$ac_cv_prog_CC"
  2987. fi
  2988. fi
  2989. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. as_fn_error $? "no acceptable C compiler found in \$PATH
  2992. See \`config.log' for more details" "$LINENO" 5; }
  2993. # Provide some information about the compiler.
  2994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2995. set X $ac_compile
  2996. ac_compiler=$2
  2997. for ac_option in --version -v -V -qversion -version; do
  2998. { { ac_try="$ac_compiler $ac_option >&5"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3004. printf "%s\n" "$ac_try_echo"; } >&5
  3005. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3006. ac_status=$?
  3007. if test -s conftest.err; then
  3008. sed '10a\
  3009. ... rest of stderr output deleted ...
  3010. 10q' conftest.err >conftest.er1
  3011. cat conftest.er1 >&5
  3012. fi
  3013. rm -f conftest.er1 conftest.err
  3014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3015. test $ac_status = 0; }
  3016. done
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. int
  3020. main (void)
  3021. {
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. ac_clean_files_save=$ac_clean_files
  3027. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3028. # Try to create an executable without -o first, disregard a.out.
  3029. # It will help us diagnose broken compilers, and finding out an intuition
  3030. # of exeext.
  3031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3032. printf %s "checking whether the C compiler works... " >&6; }
  3033. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3034. # The possible output files:
  3035. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3036. ac_rmfiles=
  3037. for ac_file in $ac_files
  3038. do
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3041. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3042. esac
  3043. done
  3044. rm -f $ac_rmfiles
  3045. if { { ac_try="$ac_link_default"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. printf "%s\n" "$ac_try_echo"; } >&5
  3052. (eval "$ac_link_default") 2>&5
  3053. ac_status=$?
  3054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }
  3056. then :
  3057. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3058. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3059. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3060. # so that the user can short-circuit this test for compilers unknown to
  3061. # Autoconf.
  3062. for ac_file in $ac_files ''
  3063. do
  3064. test -f "$ac_file" || continue
  3065. case $ac_file in
  3066. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3067. ;;
  3068. [ab].out )
  3069. # We found the default executable, but exeext='' is most
  3070. # certainly right.
  3071. break;;
  3072. *.* )
  3073. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3074. then :; else
  3075. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3076. fi
  3077. # We set ac_cv_exeext here because the later test for it is not
  3078. # safe: cross compilers may not add the suffix if given an `-o'
  3079. # argument, so we may need to know it at that point already.
  3080. # Even if this section looks crufty: it has the advantage of
  3081. # actually working.
  3082. break;;
  3083. * )
  3084. break;;
  3085. esac
  3086. done
  3087. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3088. else $as_nop
  3089. ac_file=''
  3090. fi
  3091. if test -z "$ac_file"
  3092. then :
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. printf "%s\n" "no" >&6; }
  3095. printf "%s\n" "$as_me: failed program was:" >&5
  3096. sed 's/^/| /' conftest.$ac_ext >&5
  3097. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3098. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3099. as_fn_error 77 "C compiler cannot create executables
  3100. See \`config.log' for more details" "$LINENO" 5; }
  3101. else $as_nop
  3102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3103. printf "%s\n" "yes" >&6; }
  3104. fi
  3105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3106. printf %s "checking for C compiler default output file name... " >&6; }
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3108. printf "%s\n" "$ac_file" >&6; }
  3109. ac_exeext=$ac_cv_exeext
  3110. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3111. ac_clean_files=$ac_clean_files_save
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3113. printf %s "checking for suffix of executables... " >&6; }
  3114. if { { ac_try="$ac_link"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. printf "%s\n" "$ac_try_echo"; } >&5
  3121. (eval "$ac_link") 2>&5
  3122. ac_status=$?
  3123. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3124. test $ac_status = 0; }
  3125. then :
  3126. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3127. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3128. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3129. # `rm'.
  3130. for ac_file in conftest.exe conftest conftest.*; do
  3131. test -f "$ac_file" || continue
  3132. case $ac_file in
  3133. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3134. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3135. break;;
  3136. * ) break;;
  3137. esac
  3138. done
  3139. else $as_nop
  3140. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. rm -f conftest conftest$ac_cv_exeext
  3146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3147. printf "%s\n" "$ac_cv_exeext" >&6; }
  3148. rm -f conftest.$ac_ext
  3149. EXEEXT=$ac_cv_exeext
  3150. ac_exeext=$EXEEXT
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #include <stdio.h>
  3154. int
  3155. main (void)
  3156. {
  3157. FILE *f = fopen ("conftest.out", "w");
  3158. return ferror (f) || fclose (f) != 0;
  3159. ;
  3160. return 0;
  3161. }
  3162. _ACEOF
  3163. ac_clean_files="$ac_clean_files conftest.out"
  3164. # Check that the compiler produces executables we can run. If not, either
  3165. # the compiler is broken, or we cross compile.
  3166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3167. printf %s "checking whether we are cross compiling... " >&6; }
  3168. if test "$cross_compiling" != yes; then
  3169. { { ac_try="$ac_link"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3175. printf "%s\n" "$ac_try_echo"; } >&5
  3176. (eval "$ac_link") 2>&5
  3177. ac_status=$?
  3178. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3179. test $ac_status = 0; }
  3180. if { ac_try='./conftest$ac_cv_exeext'
  3181. { { case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3186. printf "%s\n" "$ac_try_echo"; } >&5
  3187. (eval "$ac_try") 2>&5
  3188. ac_status=$?
  3189. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }; }; then
  3191. cross_compiling=no
  3192. else
  3193. if test "$cross_compiling" = maybe; then
  3194. cross_compiling=yes
  3195. else
  3196. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3197. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3198. as_fn_error 77 "cannot run C compiled programs.
  3199. If you meant to cross compile, use \`--host'.
  3200. See \`config.log' for more details" "$LINENO" 5; }
  3201. fi
  3202. fi
  3203. fi
  3204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3205. printf "%s\n" "$cross_compiling" >&6; }
  3206. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3207. ac_clean_files=$ac_clean_files_save
  3208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3209. printf %s "checking for suffix of object files... " >&6; }
  3210. if test ${ac_cv_objext+y}
  3211. then :
  3212. printf %s "(cached) " >&6
  3213. else $as_nop
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main (void)
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. rm -f conftest.o conftest.obj
  3224. if { { ac_try="$ac_compile"
  3225. case "(($ac_try" in
  3226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3227. *) ac_try_echo=$ac_try;;
  3228. esac
  3229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3230. printf "%s\n" "$ac_try_echo"; } >&5
  3231. (eval "$ac_compile") 2>&5
  3232. ac_status=$?
  3233. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3234. test $ac_status = 0; }
  3235. then :
  3236. for ac_file in conftest.o conftest.obj conftest.*; do
  3237. test -f "$ac_file" || continue;
  3238. case $ac_file in
  3239. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3240. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3241. break;;
  3242. esac
  3243. done
  3244. else $as_nop
  3245. printf "%s\n" "$as_me: failed program was:" >&5
  3246. sed 's/^/| /' conftest.$ac_ext >&5
  3247. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3248. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3249. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3250. See \`config.log' for more details" "$LINENO" 5; }
  3251. fi
  3252. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3253. fi
  3254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3255. printf "%s\n" "$ac_cv_objext" >&6; }
  3256. OBJEXT=$ac_cv_objext
  3257. ac_objext=$OBJEXT
  3258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3259. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3260. if test ${ac_cv_c_compiler_gnu+y}
  3261. then :
  3262. printf %s "(cached) " >&6
  3263. else $as_nop
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. int
  3267. main (void)
  3268. {
  3269. #ifndef __GNUC__
  3270. choke me
  3271. #endif
  3272. ;
  3273. return 0;
  3274. }
  3275. _ACEOF
  3276. if ac_fn_c_try_compile "$LINENO"
  3277. then :
  3278. ac_compiler_gnu=yes
  3279. else $as_nop
  3280. ac_compiler_gnu=no
  3281. fi
  3282. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3283. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3284. fi
  3285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3286. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3288. if test $ac_compiler_gnu = yes; then
  3289. GCC=yes
  3290. else
  3291. GCC=
  3292. fi
  3293. ac_test_CFLAGS=${CFLAGS+y}
  3294. ac_save_CFLAGS=$CFLAGS
  3295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3296. printf %s "checking whether $CC accepts -g... " >&6; }
  3297. if test ${ac_cv_prog_cc_g+y}
  3298. then :
  3299. printf %s "(cached) " >&6
  3300. else $as_nop
  3301. ac_save_c_werror_flag=$ac_c_werror_flag
  3302. ac_c_werror_flag=yes
  3303. ac_cv_prog_cc_g=no
  3304. CFLAGS="-g"
  3305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3306. /* end confdefs.h. */
  3307. int
  3308. main (void)
  3309. {
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"
  3315. then :
  3316. ac_cv_prog_cc_g=yes
  3317. else $as_nop
  3318. CFLAGS=""
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main (void)
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"
  3329. then :
  3330. else $as_nop
  3331. ac_c_werror_flag=$ac_save_c_werror_flag
  3332. CFLAGS="-g"
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. int
  3336. main (void)
  3337. {
  3338. ;
  3339. return 0;
  3340. }
  3341. _ACEOF
  3342. if ac_fn_c_try_compile "$LINENO"
  3343. then :
  3344. ac_cv_prog_cc_g=yes
  3345. fi
  3346. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3349. fi
  3350. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3351. ac_c_werror_flag=$ac_save_c_werror_flag
  3352. fi
  3353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3354. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3355. if test $ac_test_CFLAGS; then
  3356. CFLAGS=$ac_save_CFLAGS
  3357. elif test $ac_cv_prog_cc_g = yes; then
  3358. if test "$GCC" = yes; then
  3359. CFLAGS="-g -O2"
  3360. else
  3361. CFLAGS="-g"
  3362. fi
  3363. else
  3364. if test "$GCC" = yes; then
  3365. CFLAGS="-O2"
  3366. else
  3367. CFLAGS=
  3368. fi
  3369. fi
  3370. ac_prog_cc_stdc=no
  3371. if test x$ac_prog_cc_stdc = xno
  3372. then :
  3373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3374. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3375. if test ${ac_cv_prog_cc_c11+y}
  3376. then :
  3377. printf %s "(cached) " >&6
  3378. else $as_nop
  3379. ac_cv_prog_cc_c11=no
  3380. ac_save_CC=$CC
  3381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3382. /* end confdefs.h. */
  3383. $ac_c_conftest_c11_program
  3384. _ACEOF
  3385. for ac_arg in '' -std=gnu11
  3386. do
  3387. CC="$ac_save_CC $ac_arg"
  3388. if ac_fn_c_try_compile "$LINENO"
  3389. then :
  3390. ac_cv_prog_cc_c11=$ac_arg
  3391. fi
  3392. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3393. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3394. done
  3395. rm -f conftest.$ac_ext
  3396. CC=$ac_save_CC
  3397. fi
  3398. if test "x$ac_cv_prog_cc_c11" = xno
  3399. then :
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3401. printf "%s\n" "unsupported" >&6; }
  3402. else $as_nop
  3403. if test "x$ac_cv_prog_cc_c11" = x
  3404. then :
  3405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3406. printf "%s\n" "none needed" >&6; }
  3407. else $as_nop
  3408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3409. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3410. CC="$CC $ac_cv_prog_cc_c11"
  3411. fi
  3412. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3413. ac_prog_cc_stdc=c11
  3414. fi
  3415. fi
  3416. if test x$ac_prog_cc_stdc = xno
  3417. then :
  3418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3419. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3420. if test ${ac_cv_prog_cc_c99+y}
  3421. then :
  3422. printf %s "(cached) " >&6
  3423. else $as_nop
  3424. ac_cv_prog_cc_c99=no
  3425. ac_save_CC=$CC
  3426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3427. /* end confdefs.h. */
  3428. $ac_c_conftest_c99_program
  3429. _ACEOF
  3430. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3431. do
  3432. CC="$ac_save_CC $ac_arg"
  3433. if ac_fn_c_try_compile "$LINENO"
  3434. then :
  3435. ac_cv_prog_cc_c99=$ac_arg
  3436. fi
  3437. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3438. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3439. done
  3440. rm -f conftest.$ac_ext
  3441. CC=$ac_save_CC
  3442. fi
  3443. if test "x$ac_cv_prog_cc_c99" = xno
  3444. then :
  3445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3446. printf "%s\n" "unsupported" >&6; }
  3447. else $as_nop
  3448. if test "x$ac_cv_prog_cc_c99" = x
  3449. then :
  3450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3451. printf "%s\n" "none needed" >&6; }
  3452. else $as_nop
  3453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3454. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3455. CC="$CC $ac_cv_prog_cc_c99"
  3456. fi
  3457. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3458. ac_prog_cc_stdc=c99
  3459. fi
  3460. fi
  3461. if test x$ac_prog_cc_stdc = xno
  3462. then :
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3464. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3465. if test ${ac_cv_prog_cc_c89+y}
  3466. then :
  3467. printf %s "(cached) " >&6
  3468. else $as_nop
  3469. ac_cv_prog_cc_c89=no
  3470. ac_save_CC=$CC
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. $ac_c_conftest_c89_program
  3474. _ACEOF
  3475. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3476. do
  3477. CC="$ac_save_CC $ac_arg"
  3478. if ac_fn_c_try_compile "$LINENO"
  3479. then :
  3480. ac_cv_prog_cc_c89=$ac_arg
  3481. fi
  3482. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3483. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3484. done
  3485. rm -f conftest.$ac_ext
  3486. CC=$ac_save_CC
  3487. fi
  3488. if test "x$ac_cv_prog_cc_c89" = xno
  3489. then :
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3491. printf "%s\n" "unsupported" >&6; }
  3492. else $as_nop
  3493. if test "x$ac_cv_prog_cc_c89" = x
  3494. then :
  3495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3496. printf "%s\n" "none needed" >&6; }
  3497. else $as_nop
  3498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3499. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3500. CC="$CC $ac_cv_prog_cc_c89"
  3501. fi
  3502. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3503. ac_prog_cc_stdc=c89
  3504. fi
  3505. fi
  3506. ac_ext=c
  3507. ac_cpp='$CPP $CPPFLAGS'
  3508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3511. ac_ext=c
  3512. ac_cpp='$CPP $CPPFLAGS'
  3513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3517. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  3518. if test ${am_cv_prog_cc_c_o+y}
  3519. then :
  3520. printf %s "(cached) " >&6
  3521. else $as_nop
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. int
  3525. main (void)
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. # Make sure it works both with $CC and with simple cc.
  3532. # Following AC_PROG_CC_C_O, we do the test twice because some
  3533. # compilers refuse to overwrite an existing .o file with -o,
  3534. # though they will create one.
  3535. am_cv_prog_cc_c_o=yes
  3536. for am_i in 1 2; do
  3537. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3538. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3539. ac_status=$?
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); } \
  3542. && test -f conftest2.$ac_objext; then
  3543. : OK
  3544. else
  3545. am_cv_prog_cc_c_o=no
  3546. break
  3547. fi
  3548. done
  3549. rm -f core conftest*
  3550. unset am_i
  3551. fi
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3553. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  3554. if test "$am_cv_prog_cc_c_o" != yes; then
  3555. # Losing compiler, so override with the script.
  3556. # FIXME: It is wrong to rewrite CC.
  3557. # But if we don't then we get into trouble of one sort or another.
  3558. # A longer-term fix would be to have automake use am__CC in this case,
  3559. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3560. CC="$am_aux_dir/compile $CC"
  3561. fi
  3562. ac_ext=c
  3563. ac_cpp='$CPP $CPPFLAGS'
  3564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3567. # autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it
  3568. if test -n "$ac_tool_prefix"; then
  3569. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3570. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3572. printf %s "checking for $ac_word... " >&6; }
  3573. if test ${ac_cv_prog_AR+y}
  3574. then :
  3575. printf %s "(cached) " >&6
  3576. else $as_nop
  3577. if test -n "$AR"; then
  3578. ac_cv_prog_AR="$AR" # Let the user override the test.
  3579. else
  3580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581. for as_dir in $PATH
  3582. do
  3583. IFS=$as_save_IFS
  3584. case $as_dir in #(((
  3585. '') as_dir=./ ;;
  3586. */) ;;
  3587. *) as_dir=$as_dir/ ;;
  3588. esac
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3591. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3593. break 2
  3594. fi
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. fi
  3599. fi
  3600. AR=$ac_cv_prog_AR
  3601. if test -n "$AR"; then
  3602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3603. printf "%s\n" "$AR" >&6; }
  3604. else
  3605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3606. printf "%s\n" "no" >&6; }
  3607. fi
  3608. fi
  3609. if test -z "$ac_cv_prog_AR"; then
  3610. ac_ct_AR=$AR
  3611. # Extract the first word of "ar", so it can be a program name with args.
  3612. set dummy ar; ac_word=$2
  3613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3614. printf %s "checking for $ac_word... " >&6; }
  3615. if test ${ac_cv_prog_ac_ct_AR+y}
  3616. then :
  3617. printf %s "(cached) " >&6
  3618. else $as_nop
  3619. if test -n "$ac_ct_AR"; then
  3620. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3621. else
  3622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3623. for as_dir in $PATH
  3624. do
  3625. IFS=$as_save_IFS
  3626. case $as_dir in #(((
  3627. '') as_dir=./ ;;
  3628. */) ;;
  3629. *) as_dir=$as_dir/ ;;
  3630. esac
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3633. ac_cv_prog_ac_ct_AR="ar"
  3634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3635. break 2
  3636. fi
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. fi
  3641. fi
  3642. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3643. if test -n "$ac_ct_AR"; then
  3644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3645. printf "%s\n" "$ac_ct_AR" >&6; }
  3646. else
  3647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3648. printf "%s\n" "no" >&6; }
  3649. fi
  3650. if test "x$ac_ct_AR" = x; then
  3651. AR=":"
  3652. else
  3653. case $cross_compiling:$ac_tool_warned in
  3654. yes:)
  3655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3656. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3657. ac_tool_warned=yes ;;
  3658. esac
  3659. AR=$ac_ct_AR
  3660. fi
  3661. else
  3662. AR="$ac_cv_prog_AR"
  3663. fi
  3664. if test -n "$ac_tool_prefix"; then
  3665. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3666. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3668. printf %s "checking for $ac_word... " >&6; }
  3669. if test ${ac_cv_prog_RANLIB+y}
  3670. then :
  3671. printf %s "(cached) " >&6
  3672. else $as_nop
  3673. if test -n "$RANLIB"; then
  3674. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3675. else
  3676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3677. for as_dir in $PATH
  3678. do
  3679. IFS=$as_save_IFS
  3680. case $as_dir in #(((
  3681. '') as_dir=./ ;;
  3682. */) ;;
  3683. *) as_dir=$as_dir/ ;;
  3684. esac
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3687. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. fi
  3695. fi
  3696. RANLIB=$ac_cv_prog_RANLIB
  3697. if test -n "$RANLIB"; then
  3698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3699. printf "%s\n" "$RANLIB" >&6; }
  3700. else
  3701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. printf "%s\n" "no" >&6; }
  3703. fi
  3704. fi
  3705. if test -z "$ac_cv_prog_RANLIB"; then
  3706. ac_ct_RANLIB=$RANLIB
  3707. # Extract the first word of "ranlib", so it can be a program name with args.
  3708. set dummy ranlib; ac_word=$2
  3709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3710. printf %s "checking for $ac_word... " >&6; }
  3711. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  3712. then :
  3713. printf %s "(cached) " >&6
  3714. else $as_nop
  3715. if test -n "$ac_ct_RANLIB"; then
  3716. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3717. else
  3718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3719. for as_dir in $PATH
  3720. do
  3721. IFS=$as_save_IFS
  3722. case $as_dir in #(((
  3723. '') as_dir=./ ;;
  3724. */) ;;
  3725. *) as_dir=$as_dir/ ;;
  3726. esac
  3727. for ac_exec_ext in '' $ac_executable_extensions; do
  3728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3729. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3731. break 2
  3732. fi
  3733. done
  3734. done
  3735. IFS=$as_save_IFS
  3736. fi
  3737. fi
  3738. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3739. if test -n "$ac_ct_RANLIB"; then
  3740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3741. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  3742. else
  3743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3744. printf "%s\n" "no" >&6; }
  3745. fi
  3746. if test "x$ac_ct_RANLIB" = x; then
  3747. RANLIB=":"
  3748. else
  3749. case $cross_compiling:$ac_tool_warned in
  3750. yes:)
  3751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3752. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3753. ac_tool_warned=yes ;;
  3754. esac
  3755. RANLIB=$ac_ct_RANLIB
  3756. fi
  3757. else
  3758. RANLIB="$ac_cv_prog_RANLIB"
  3759. fi
  3760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3761. printf %s "checking for a sed that does not truncate output... " >&6; }
  3762. if test ${ac_cv_path_SED+y}
  3763. then :
  3764. printf %s "(cached) " >&6
  3765. else $as_nop
  3766. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3767. for ac_i in 1 2 3 4 5 6 7; do
  3768. ac_script="$ac_script$as_nl$ac_script"
  3769. done
  3770. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3771. { ac_script=; unset ac_script;}
  3772. if test -z "$SED"; then
  3773. ac_path_SED_found=false
  3774. # Loop through the user's path and test for each of PROGNAME-LIST
  3775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3776. for as_dir in $PATH
  3777. do
  3778. IFS=$as_save_IFS
  3779. case $as_dir in #(((
  3780. '') as_dir=./ ;;
  3781. */) ;;
  3782. *) as_dir=$as_dir/ ;;
  3783. esac
  3784. for ac_prog in sed gsed
  3785. do
  3786. for ac_exec_ext in '' $ac_executable_extensions; do
  3787. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  3788. as_fn_executable_p "$ac_path_SED" || continue
  3789. # Check for GNU ac_path_SED and select it if it is found.
  3790. # Check for GNU $ac_path_SED
  3791. case `"$ac_path_SED" --version 2>&1` in
  3792. *GNU*)
  3793. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3794. *)
  3795. ac_count=0
  3796. printf %s 0123456789 >"conftest.in"
  3797. while :
  3798. do
  3799. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3800. mv "conftest.tmp" "conftest.in"
  3801. cp "conftest.in" "conftest.nl"
  3802. printf "%s\n" '' >> "conftest.nl"
  3803. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3804. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3805. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3806. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3807. # Best one so far, save it but keep looking for a better one
  3808. ac_cv_path_SED="$ac_path_SED"
  3809. ac_path_SED_max=$ac_count
  3810. fi
  3811. # 10*(2^10) chars as input seems more than enough
  3812. test $ac_count -gt 10 && break
  3813. done
  3814. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3815. esac
  3816. $ac_path_SED_found && break 3
  3817. done
  3818. done
  3819. done
  3820. IFS=$as_save_IFS
  3821. if test -z "$ac_cv_path_SED"; then
  3822. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3823. fi
  3824. else
  3825. ac_cv_path_SED=$SED
  3826. fi
  3827. fi
  3828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3829. printf "%s\n" "$ac_cv_path_SED" >&6; }
  3830. SED="$ac_cv_path_SED"
  3831. rm -f conftest.sed
  3832. # Extract the first word of "rm", so it can be a program name with args.
  3833. set dummy rm; ac_word=$2
  3834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3835. printf %s "checking for $ac_word... " >&6; }
  3836. if test ${ac_cv_path_RM+y}
  3837. then :
  3838. printf %s "(cached) " >&6
  3839. else $as_nop
  3840. case $RM in
  3841. [\\/]* | ?:[\\/]*)
  3842. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  3843. ;;
  3844. *)
  3845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3846. for as_dir in $PATH
  3847. do
  3848. IFS=$as_save_IFS
  3849. case $as_dir in #(((
  3850. '') as_dir=./ ;;
  3851. */) ;;
  3852. *) as_dir=$as_dir/ ;;
  3853. esac
  3854. for ac_exec_ext in '' $ac_executable_extensions; do
  3855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3856. ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
  3857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3858. break 2
  3859. fi
  3860. done
  3861. done
  3862. IFS=$as_save_IFS
  3863. test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  3864. ;;
  3865. esac
  3866. fi
  3867. RM=$ac_cv_path_RM
  3868. if test -n "$RM"; then
  3869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
  3870. printf "%s\n" "$RM" >&6; }
  3871. else
  3872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3873. printf "%s\n" "no" >&6; }
  3874. fi
  3875. if test -n "$ac_tool_prefix"; then
  3876. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3877. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3879. printf %s "checking for $ac_word... " >&6; }
  3880. if test ${ac_cv_prog_STRIP+y}
  3881. then :
  3882. printf %s "(cached) " >&6
  3883. else $as_nop
  3884. if test -n "$STRIP"; then
  3885. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3886. else
  3887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3888. for as_dir in $PATH
  3889. do
  3890. IFS=$as_save_IFS
  3891. case $as_dir in #(((
  3892. '') as_dir=./ ;;
  3893. */) ;;
  3894. *) as_dir=$as_dir/ ;;
  3895. esac
  3896. for ac_exec_ext in '' $ac_executable_extensions; do
  3897. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3898. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3899. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3900. break 2
  3901. fi
  3902. done
  3903. done
  3904. IFS=$as_save_IFS
  3905. fi
  3906. fi
  3907. STRIP=$ac_cv_prog_STRIP
  3908. if test -n "$STRIP"; then
  3909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3910. printf "%s\n" "$STRIP" >&6; }
  3911. else
  3912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3913. printf "%s\n" "no" >&6; }
  3914. fi
  3915. fi
  3916. if test -z "$ac_cv_prog_STRIP"; then
  3917. ac_ct_STRIP=$STRIP
  3918. # Extract the first word of "strip", so it can be a program name with args.
  3919. set dummy strip; ac_word=$2
  3920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3921. printf %s "checking for $ac_word... " >&6; }
  3922. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3923. then :
  3924. printf %s "(cached) " >&6
  3925. else $as_nop
  3926. if test -n "$ac_ct_STRIP"; then
  3927. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. case $as_dir in #(((
  3934. '') as_dir=./ ;;
  3935. */) ;;
  3936. *) as_dir=$as_dir/ ;;
  3937. esac
  3938. for ac_exec_ext in '' $ac_executable_extensions; do
  3939. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3940. ac_cv_prog_ac_ct_STRIP="strip"
  3941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3942. break 2
  3943. fi
  3944. done
  3945. done
  3946. IFS=$as_save_IFS
  3947. fi
  3948. fi
  3949. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3950. if test -n "$ac_ct_STRIP"; then
  3951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3952. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3953. else
  3954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3955. printf "%s\n" "no" >&6; }
  3956. fi
  3957. if test "x$ac_ct_STRIP" = x; then
  3958. STRIP="strip"
  3959. else
  3960. case $cross_compiling:$ac_tool_warned in
  3961. yes:)
  3962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3963. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3964. ac_tool_warned=yes ;;
  3965. esac
  3966. STRIP=$ac_ct_STRIP
  3967. fi
  3968. else
  3969. STRIP="$ac_cv_prog_STRIP"
  3970. fi
  3971. if test -n "$ac_tool_prefix"; then
  3972. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  3973. set dummy ${ac_tool_prefix}windres; ac_word=$2
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3975. printf %s "checking for $ac_word... " >&6; }
  3976. if test ${ac_cv_prog_WINDRES+y}
  3977. then :
  3978. printf %s "(cached) " >&6
  3979. else $as_nop
  3980. if test -n "$WINDRES"; then
  3981. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  3982. else
  3983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3984. for as_dir in $PATH
  3985. do
  3986. IFS=$as_save_IFS
  3987. case $as_dir in #(((
  3988. '') as_dir=./ ;;
  3989. */) ;;
  3990. *) as_dir=$as_dir/ ;;
  3991. esac
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3994. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  3995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3996. break 2
  3997. fi
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. fi
  4002. fi
  4003. WINDRES=$ac_cv_prog_WINDRES
  4004. if test -n "$WINDRES"; then
  4005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  4006. printf "%s\n" "$WINDRES" >&6; }
  4007. else
  4008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. printf "%s\n" "no" >&6; }
  4010. fi
  4011. fi
  4012. if test -z "$ac_cv_prog_WINDRES"; then
  4013. ac_ct_WINDRES=$WINDRES
  4014. # Extract the first word of "windres", so it can be a program name with args.
  4015. set dummy windres; ac_word=$2
  4016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4017. printf %s "checking for $ac_word... " >&6; }
  4018. if test ${ac_cv_prog_ac_ct_WINDRES+y}
  4019. then :
  4020. printf %s "(cached) " >&6
  4021. else $as_nop
  4022. if test -n "$ac_ct_WINDRES"; then
  4023. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  4024. else
  4025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4026. for as_dir in $PATH
  4027. do
  4028. IFS=$as_save_IFS
  4029. case $as_dir in #(((
  4030. '') as_dir=./ ;;
  4031. */) ;;
  4032. *) as_dir=$as_dir/ ;;
  4033. esac
  4034. for ac_exec_ext in '' $ac_executable_extensions; do
  4035. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4036. ac_cv_prog_ac_ct_WINDRES="windres"
  4037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4038. break 2
  4039. fi
  4040. done
  4041. done
  4042. IFS=$as_save_IFS
  4043. fi
  4044. fi
  4045. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  4046. if test -n "$ac_ct_WINDRES"; then
  4047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  4048. printf "%s\n" "$ac_ct_WINDRES" >&6; }
  4049. else
  4050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4051. printf "%s\n" "no" >&6; }
  4052. fi
  4053. if test "x$ac_ct_WINDRES" = x; then
  4054. WINDRES="windres"
  4055. else
  4056. case $cross_compiling:$ac_tool_warned in
  4057. yes:)
  4058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4059. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4060. ac_tool_warned=yes ;;
  4061. esac
  4062. WINDRES=$ac_ct_WINDRES
  4063. fi
  4064. else
  4065. WINDRES="$ac_cv_prog_WINDRES"
  4066. fi
  4067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4068. printf %s "checking for inline... " >&6; }
  4069. if test ${ac_cv_c_inline+y}
  4070. then :
  4071. printf %s "(cached) " >&6
  4072. else $as_nop
  4073. ac_cv_c_inline=no
  4074. for ac_kw in inline __inline__ __inline; do
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. #ifndef __cplusplus
  4078. typedef int foo_t;
  4079. static $ac_kw foo_t static_foo (void) {return 0; }
  4080. $ac_kw foo_t foo (void) {return 0; }
  4081. #endif
  4082. _ACEOF
  4083. if ac_fn_c_try_compile "$LINENO"
  4084. then :
  4085. ac_cv_c_inline=$ac_kw
  4086. fi
  4087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4088. test "$ac_cv_c_inline" != no && break
  4089. done
  4090. fi
  4091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4092. printf "%s\n" "$ac_cv_c_inline" >&6; }
  4093. case $ac_cv_c_inline in
  4094. inline | yes) ;;
  4095. *)
  4096. case $ac_cv_c_inline in
  4097. no) ac_val=;;
  4098. *) ac_val=$ac_cv_c_inline;;
  4099. esac
  4100. cat >>confdefs.h <<_ACEOF
  4101. #ifndef __cplusplus
  4102. #define inline $ac_val
  4103. #endif
  4104. _ACEOF
  4105. ;;
  4106. esac
  4107. printf "%s\n" "#define _GNU_SOURCE /**/" >>confdefs.h
  4108. AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x601 -D_WIN32_WINNT=0x601 -D_WIN32_IE=0x800"
  4109. # "-Wl,--nxcompat" to enable DEP (Data Execution Prevention)
  4110. # "-Wl,--dynamicbase" to enable ASLR (Address Space Layout Randomization)
  4111. AM_LDFLAGS="${AM_LDFLAGS} -Wl,-no-undefined -Wl,--nxcompat -Wl,--no-insert-timestamp -Wl,--dynamicbase"
  4112. # Debug symbols
  4113. # Check whether --enable-debug was given.
  4114. if test ${enable_debug+y}
  4115. then :
  4116. enableval=$enable_debug; debug_enabled=$enableval
  4117. else $as_nop
  4118. debug_enabled='yes'
  4119. fi
  4120. if test "x$debug_enabled" != "xno" ; then
  4121. CFLAGS="-g -O0"
  4122. else
  4123. CFLAGS="-Os"
  4124. LDFLAGS="-s"
  4125. fi
  4126. # Alpha/Beta/Test
  4127. # Check whether --enable-alpha was given.
  4128. if test ${enable_alpha+y}
  4129. then :
  4130. enableval=$enable_alpha; alpha_enabled=$enableval
  4131. else $as_nop
  4132. alpha_enabled='no'
  4133. fi
  4134. if test "x$alpha_enabled" != "xno" ; then
  4135. CFLAGS+=" -DALPHA"
  4136. SUFFIX=_ALPHA
  4137. fi
  4138. # Check whether --enable-beta was given.
  4139. if test ${enable_beta+y}
  4140. then :
  4141. enableval=$enable_beta; beta_enabled=$enableval
  4142. else $as_nop
  4143. beta_enabled='no'
  4144. fi
  4145. if test "x$beta_enabled" != "xno" ; then
  4146. CFLAGS+=" -DBETA"
  4147. SUFFIX=_BETA
  4148. fi
  4149. # Check whether --enable-test was given.
  4150. if test ${enable_test+y}
  4151. then :
  4152. enableval=$enable_test; test_enabled=$enableval
  4153. else $as_nop
  4154. test_enabled='no'
  4155. fi
  4156. if test "x$test_enabled" != "xno" ; then
  4157. if test "x$test_enabled" == "xyes" ; then $enableval="" ; fi
  4158. CFLAGS+=" -DTEST=$enableval"
  4159. SUFFIX=_TEST$enableval
  4160. fi
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabling Large File Support (ISO support)" >&5
  4162. printf "%s\n" "enabling Large File Support (ISO support)" >&6; }
  4163. AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64 -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t -Doff32_t=long"
  4164. # check for -Wno-pointer-sign compiler support (GCC >= 4)
  4165. saved_CFLAGS="${CFLAGS}"
  4166. CFLAGS="$CFLAGS -Wno-pointer-sign"
  4167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4168. /* end confdefs.h. */
  4169. int
  4170. main (void)
  4171. {
  4172. ;
  4173. return 0;
  4174. }
  4175. _ACEOF
  4176. if ac_fn_c_try_compile "$LINENO"
  4177. then :
  4178. nopointersign_cflags="-Wno-pointer-sign"
  4179. else $as_nop
  4180. nopointersign_cflags=""
  4181. fi
  4182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4183. CFLAGS="${saved_CFLAGS}"
  4184. AM_CFLAGS="$AM_CFLAGS -DUNICODE -D_UNICODE -UNDEBUG -DCOBJMACROS -D__USE_MINGW_ANSI_STDIO=0 -std=gnu99 -Wshadow -Wall -Wformat-security -Wundef -Wunused -Wstrict-prototypes -Wno-restrict -Werror-implicit-function-declaration $nopointersign_cflags"
  4185. ac_config_files="$ac_config_files Makefile"
  4186. ac_config_files="$ac_config_files src/Makefile"
  4187. ac_config_files="$ac_config_files src/bled/Makefile"
  4188. ac_config_files="$ac_config_files src/ext2fs/Makefile"
  4189. ac_config_files="$ac_config_files src/libcdio/iso9660/Makefile"
  4190. ac_config_files="$ac_config_files src/libcdio/udf/Makefile"
  4191. ac_config_files="$ac_config_files src/libcdio/driver/Makefile"
  4192. ac_config_files="$ac_config_files res/loc/Makefile"
  4193. ac_config_files="$ac_config_files src/ms-sys/Makefile"
  4194. ac_config_files="$ac_config_files src/syslinux/libfat/Makefile"
  4195. ac_config_files="$ac_config_files src/syslinux/libinstaller/Makefile"
  4196. ac_config_files="$ac_config_files src/syslinux/win/Makefile"
  4197. cat >confcache <<\_ACEOF
  4198. # This file is a shell script that caches the results of configure
  4199. # tests run on this system so they can be shared between configure
  4200. # scripts and configure runs, see configure's option --config-cache.
  4201. # It is not useful on other systems. If it contains results you don't
  4202. # want to keep, you may remove or edit it.
  4203. #
  4204. # config.status only pays attention to the cache file if you give it
  4205. # the --recheck option to rerun configure.
  4206. #
  4207. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4208. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4209. # following values.
  4210. _ACEOF
  4211. # The following way of writing the cache mishandles newlines in values,
  4212. # but we know of no workaround that is simple, portable, and efficient.
  4213. # So, we kill variables containing newlines.
  4214. # Ultrix sh set writes to stderr and can't be redirected directly,
  4215. # and sets the high bit in the cache file unless we assign to the vars.
  4216. (
  4217. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4218. eval ac_val=\$$ac_var
  4219. case $ac_val in #(
  4220. *${as_nl}*)
  4221. case $ac_var in #(
  4222. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4223. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4224. esac
  4225. case $ac_var in #(
  4226. _ | IFS | as_nl) ;; #(
  4227. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4228. *) { eval $ac_var=; unset $ac_var;} ;;
  4229. esac ;;
  4230. esac
  4231. done
  4232. (set) 2>&1 |
  4233. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4234. *${as_nl}ac_space=\ *)
  4235. # `set' does not quote correctly, so add quotes: double-quote
  4236. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4237. sed -n \
  4238. "s/'/'\\\\''/g;
  4239. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4240. ;; #(
  4241. *)
  4242. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4243. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4244. ;;
  4245. esac |
  4246. sort
  4247. ) |
  4248. sed '
  4249. /^ac_cv_env_/b end
  4250. t clear
  4251. :clear
  4252. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4253. t end
  4254. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4255. :end' >>confcache
  4256. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4257. if test -w "$cache_file"; then
  4258. if test "x$cache_file" != "x/dev/null"; then
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4260. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4261. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4262. cat confcache >"$cache_file"
  4263. else
  4264. case $cache_file in #(
  4265. */* | ?:*)
  4266. mv -f confcache "$cache_file"$$ &&
  4267. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4268. *)
  4269. mv -f confcache "$cache_file" ;;
  4270. esac
  4271. fi
  4272. fi
  4273. else
  4274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4275. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4276. fi
  4277. fi
  4278. rm -f confcache
  4279. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4280. # Let make expand exec_prefix.
  4281. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4282. # Transform confdefs.h into DEFS.
  4283. # Protect against shell expansion while executing Makefile rules.
  4284. # Protect against Makefile macro expansion.
  4285. #
  4286. # If the first sed substitution is executed (which looks for macros that
  4287. # take arguments), then branch to the quote section. Otherwise,
  4288. # look for a macro that doesn't take arguments.
  4289. ac_script='
  4290. :mline
  4291. /\\$/{
  4292. N
  4293. s,\\\n,,
  4294. b mline
  4295. }
  4296. t clear
  4297. :clear
  4298. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4299. t quote
  4300. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4301. t quote
  4302. b any
  4303. :quote
  4304. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4305. s/\[/\\&/g
  4306. s/\]/\\&/g
  4307. s/\$/$$/g
  4308. H
  4309. :any
  4310. ${
  4311. g
  4312. s/^\n//
  4313. s/\n/ /g
  4314. p
  4315. }
  4316. '
  4317. DEFS=`sed -n "$ac_script" confdefs.h`
  4318. ac_libobjs=
  4319. ac_ltlibobjs=
  4320. U=
  4321. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4322. # 1. Remove the extension, and $U if already installed.
  4323. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4324. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  4325. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4326. # will be set to the directory where LIBOBJS objects are built.
  4327. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4328. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4329. done
  4330. LIBOBJS=$ac_libobjs
  4331. LTLIBOBJS=$ac_ltlibobjs
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  4333. printf %s "checking that generated files are newer than configure... " >&6; }
  4334. if test -n "$am_sleep_pid"; then
  4335. # Hide warnings about reused PIDs.
  4336. wait $am_sleep_pid 2>/dev/null
  4337. fi
  4338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  4339. printf "%s\n" "done" >&6; }
  4340. if test -n "$EXEEXT"; then
  4341. am__EXEEXT_TRUE=
  4342. am__EXEEXT_FALSE='#'
  4343. else
  4344. am__EXEEXT_TRUE='#'
  4345. am__EXEEXT_FALSE=
  4346. fi
  4347. : "${CONFIG_STATUS=./config.status}"
  4348. ac_write_fail=0
  4349. ac_clean_files_save=$ac_clean_files
  4350. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4352. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  4353. as_write_fail=0
  4354. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4355. #! $SHELL
  4356. # Generated by $as_me.
  4357. # Run this file to recreate the current configuration.
  4358. # Compiler output produced by configure, useful for debugging
  4359. # configure, is in config.log if it exists.
  4360. debug=false
  4361. ac_cs_recheck=false
  4362. ac_cs_silent=false
  4363. SHELL=\${CONFIG_SHELL-$SHELL}
  4364. export SHELL
  4365. _ASEOF
  4366. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4367. ## -------------------- ##
  4368. ## M4sh Initialization. ##
  4369. ## -------------------- ##
  4370. # Be more Bourne compatible
  4371. DUALCASE=1; export DUALCASE # for MKS sh
  4372. as_nop=:
  4373. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  4374. then :
  4375. emulate sh
  4376. NULLCMD=:
  4377. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4378. # is contrary to our usage. Disable this feature.
  4379. alias -g '${1+"$@"}'='"$@"'
  4380. setopt NO_GLOB_SUBST
  4381. else $as_nop
  4382. case `(set -o) 2>/dev/null` in #(
  4383. *posix*) :
  4384. set -o posix ;; #(
  4385. *) :
  4386. ;;
  4387. esac
  4388. fi
  4389. # Reset variables that may have inherited troublesome values from
  4390. # the environment.
  4391. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  4392. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  4393. # side effect of setting IFS to empty, thus disabling word splitting.)
  4394. # Quoting is to prevent editors from complaining about space-tab.
  4395. as_nl='
  4396. '
  4397. export as_nl
  4398. IFS=" "" $as_nl"
  4399. PS1='$ '
  4400. PS2='> '
  4401. PS4='+ '
  4402. # Ensure predictable behavior from utilities with locale-dependent output.
  4403. LC_ALL=C
  4404. export LC_ALL
  4405. LANGUAGE=C
  4406. export LANGUAGE
  4407. # We cannot yet rely on "unset" to work, but we need these variables
  4408. # to be unset--not just set to an empty or harmless value--now, to
  4409. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  4410. # also avoids known problems related to "unset" and subshell syntax
  4411. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  4412. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  4413. do eval test \${$as_var+y} \
  4414. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4415. done
  4416. # Ensure that fds 0, 1, and 2 are open.
  4417. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  4418. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  4419. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  4420. # The user is always right.
  4421. if ${PATH_SEPARATOR+false} :; then
  4422. PATH_SEPARATOR=:
  4423. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4424. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4425. PATH_SEPARATOR=';'
  4426. }
  4427. fi
  4428. # Find who we are. Look in the path if we contain no directory separator.
  4429. as_myself=
  4430. case $0 in #((
  4431. *[\\/]* ) as_myself=$0 ;;
  4432. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. case $as_dir in #(((
  4437. '') as_dir=./ ;;
  4438. */) ;;
  4439. *) as_dir=$as_dir/ ;;
  4440. esac
  4441. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  4442. done
  4443. IFS=$as_save_IFS
  4444. ;;
  4445. esac
  4446. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4447. # in which case we are not to be found in the path.
  4448. if test "x$as_myself" = x; then
  4449. as_myself=$0
  4450. fi
  4451. if test ! -f "$as_myself"; then
  4452. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4453. exit 1
  4454. fi
  4455. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4456. # ----------------------------------------
  4457. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4458. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4459. # script with STATUS, using 1 if that was 0.
  4460. as_fn_error ()
  4461. {
  4462. as_status=$1; test $as_status -eq 0 && as_status=1
  4463. if test "$4"; then
  4464. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4465. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4466. fi
  4467. printf "%s\n" "$as_me: error: $2" >&2
  4468. as_fn_exit $as_status
  4469. } # as_fn_error
  4470. # as_fn_set_status STATUS
  4471. # -----------------------
  4472. # Set $? to STATUS, without forking.
  4473. as_fn_set_status ()
  4474. {
  4475. return $1
  4476. } # as_fn_set_status
  4477. # as_fn_exit STATUS
  4478. # -----------------
  4479. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4480. as_fn_exit ()
  4481. {
  4482. set +e
  4483. as_fn_set_status $1
  4484. exit $1
  4485. } # as_fn_exit
  4486. # as_fn_unset VAR
  4487. # ---------------
  4488. # Portably unset VAR.
  4489. as_fn_unset ()
  4490. {
  4491. { eval $1=; unset $1;}
  4492. }
  4493. as_unset=as_fn_unset
  4494. # as_fn_append VAR VALUE
  4495. # ----------------------
  4496. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4497. # advantage of any shell optimizations that allow amortized linear growth over
  4498. # repeated appends, instead of the typical quadratic growth present in naive
  4499. # implementations.
  4500. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  4501. then :
  4502. eval 'as_fn_append ()
  4503. {
  4504. eval $1+=\$2
  4505. }'
  4506. else $as_nop
  4507. as_fn_append ()
  4508. {
  4509. eval $1=\$$1\$2
  4510. }
  4511. fi # as_fn_append
  4512. # as_fn_arith ARG...
  4513. # ------------------
  4514. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4515. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4516. # must be portable across $(()) and expr.
  4517. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  4518. then :
  4519. eval 'as_fn_arith ()
  4520. {
  4521. as_val=$(( $* ))
  4522. }'
  4523. else $as_nop
  4524. as_fn_arith ()
  4525. {
  4526. as_val=`expr "$@" || test $? -eq 1`
  4527. }
  4528. fi # as_fn_arith
  4529. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4530. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4531. as_expr=expr
  4532. else
  4533. as_expr=false
  4534. fi
  4535. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4536. as_basename=basename
  4537. else
  4538. as_basename=false
  4539. fi
  4540. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4541. as_dirname=dirname
  4542. else
  4543. as_dirname=false
  4544. fi
  4545. as_me=`$as_basename -- "$0" ||
  4546. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4547. X"$0" : 'X\(//\)$' \| \
  4548. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4549. printf "%s\n" X/"$0" |
  4550. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4551. s//\1/
  4552. q
  4553. }
  4554. /^X\/\(\/\/\)$/{
  4555. s//\1/
  4556. q
  4557. }
  4558. /^X\/\(\/\).*/{
  4559. s//\1/
  4560. q
  4561. }
  4562. s/.*/./; q'`
  4563. # Avoid depending upon Character Ranges.
  4564. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4565. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4566. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4567. as_cr_digits='0123456789'
  4568. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4569. # Determine whether it's possible to make 'echo' print without a newline.
  4570. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  4571. # for compatibility with existing Makefiles.
  4572. ECHO_C= ECHO_N= ECHO_T=
  4573. case `echo -n x` in #(((((
  4574. -n*)
  4575. case `echo 'xy\c'` in
  4576. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4577. xy) ECHO_C='\c';;
  4578. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4579. ECHO_T=' ';;
  4580. esac;;
  4581. *)
  4582. ECHO_N='-n';;
  4583. esac
  4584. # For backward compatibility with old third-party macros, we provide
  4585. # the shell variables $as_echo and $as_echo_n. New code should use
  4586. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  4587. as_echo='printf %s\n'
  4588. as_echo_n='printf %s'
  4589. rm -f conf$$ conf$$.exe conf$$.file
  4590. if test -d conf$$.dir; then
  4591. rm -f conf$$.dir/conf$$.file
  4592. else
  4593. rm -f conf$$.dir
  4594. mkdir conf$$.dir 2>/dev/null
  4595. fi
  4596. if (echo >conf$$.file) 2>/dev/null; then
  4597. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4598. as_ln_s='ln -s'
  4599. # ... but there are two gotchas:
  4600. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4601. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4602. # In both cases, we have to default to `cp -pR'.
  4603. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4604. as_ln_s='cp -pR'
  4605. elif ln conf$$.file conf$$ 2>/dev/null; then
  4606. as_ln_s=ln
  4607. else
  4608. as_ln_s='cp -pR'
  4609. fi
  4610. else
  4611. as_ln_s='cp -pR'
  4612. fi
  4613. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4614. rmdir conf$$.dir 2>/dev/null
  4615. # as_fn_mkdir_p
  4616. # -------------
  4617. # Create "$as_dir" as a directory, including parents if necessary.
  4618. as_fn_mkdir_p ()
  4619. {
  4620. case $as_dir in #(
  4621. -*) as_dir=./$as_dir;;
  4622. esac
  4623. test -d "$as_dir" || eval $as_mkdir_p || {
  4624. as_dirs=
  4625. while :; do
  4626. case $as_dir in #(
  4627. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4628. *) as_qdir=$as_dir;;
  4629. esac
  4630. as_dirs="'$as_qdir' $as_dirs"
  4631. as_dir=`$as_dirname -- "$as_dir" ||
  4632. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4633. X"$as_dir" : 'X\(//\)[^/]' \| \
  4634. X"$as_dir" : 'X\(//\)$' \| \
  4635. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4636. printf "%s\n" X"$as_dir" |
  4637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4638. s//\1/
  4639. q
  4640. }
  4641. /^X\(\/\/\)[^/].*/{
  4642. s//\1/
  4643. q
  4644. }
  4645. /^X\(\/\/\)$/{
  4646. s//\1/
  4647. q
  4648. }
  4649. /^X\(\/\).*/{
  4650. s//\1/
  4651. q
  4652. }
  4653. s/.*/./; q'`
  4654. test -d "$as_dir" && break
  4655. done
  4656. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4657. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4658. } # as_fn_mkdir_p
  4659. if mkdir -p . 2>/dev/null; then
  4660. as_mkdir_p='mkdir -p "$as_dir"'
  4661. else
  4662. test -d ./-p && rmdir ./-p
  4663. as_mkdir_p=false
  4664. fi
  4665. # as_fn_executable_p FILE
  4666. # -----------------------
  4667. # Test if FILE is an executable regular file.
  4668. as_fn_executable_p ()
  4669. {
  4670. test -f "$1" && test -x "$1"
  4671. } # as_fn_executable_p
  4672. as_test_x='test -x'
  4673. as_executable_p=as_fn_executable_p
  4674. # Sed expression to map a string onto a valid CPP name.
  4675. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4676. # Sed expression to map a string onto a valid variable name.
  4677. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4678. exec 6>&1
  4679. ## ----------------------------------- ##
  4680. ## Main body of $CONFIG_STATUS script. ##
  4681. ## ----------------------------------- ##
  4682. _ASEOF
  4683. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4685. # Save the log message, to keep $0 and so on meaningful, and to
  4686. # report actual input values of CONFIG_FILES etc. instead of their
  4687. # values after options handling.
  4688. ac_log="
  4689. This file was extended by rufus $as_me 3.14, which was
  4690. generated by GNU Autoconf 2.71. Invocation command line was
  4691. CONFIG_FILES = $CONFIG_FILES
  4692. CONFIG_HEADERS = $CONFIG_HEADERS
  4693. CONFIG_LINKS = $CONFIG_LINKS
  4694. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4695. $ $0 $@
  4696. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4697. "
  4698. _ACEOF
  4699. case $ac_config_files in *"
  4700. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4701. esac
  4702. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4703. # Files that config.status was made for.
  4704. config_files="$ac_config_files"
  4705. _ACEOF
  4706. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4707. ac_cs_usage="\
  4708. \`$as_me' instantiates files and other configuration actions
  4709. from templates according to the current configuration. Unless the files
  4710. and actions are specified as TAGs, all are instantiated by default.
  4711. Usage: $0 [OPTION]... [TAG]...
  4712. -h, --help print this help, then exit
  4713. -V, --version print version number and configuration settings, then exit
  4714. --config print configuration, then exit
  4715. -q, --quiet, --silent
  4716. do not print progress messages
  4717. -d, --debug don't remove temporary files
  4718. --recheck update $as_me by reconfiguring in the same conditions
  4719. --file=FILE[:TEMPLATE]
  4720. instantiate the configuration file FILE
  4721. Configuration files:
  4722. $config_files
  4723. Report bugs to <https://github.com/pbatard/rufus/issues>.
  4724. rufus home page: <https://rufus.ie>."
  4725. _ACEOF
  4726. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  4727. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  4728. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4729. ac_cs_config='$ac_cs_config_escaped'
  4730. ac_cs_version="\\
  4731. rufus config.status 3.14
  4732. configured by $0, generated by GNU Autoconf 2.71,
  4733. with options \\"\$ac_cs_config\\"
  4734. Copyright (C) 2021 Free Software Foundation, Inc.
  4735. This config.status script is free software; the Free Software Foundation
  4736. gives unlimited permission to copy, distribute and modify it."
  4737. ac_pwd='$ac_pwd'
  4738. srcdir='$srcdir'
  4739. INSTALL='$INSTALL'
  4740. MKDIR_P='$MKDIR_P'
  4741. AWK='$AWK'
  4742. test -n "\$AWK" || AWK=awk
  4743. _ACEOF
  4744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4745. # The default lists apply if the user does not specify any file.
  4746. ac_need_defaults=:
  4747. while test $# != 0
  4748. do
  4749. case $1 in
  4750. --*=?*)
  4751. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4752. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4753. ac_shift=:
  4754. ;;
  4755. --*=)
  4756. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4757. ac_optarg=
  4758. ac_shift=:
  4759. ;;
  4760. *)
  4761. ac_option=$1
  4762. ac_optarg=$2
  4763. ac_shift=shift
  4764. ;;
  4765. esac
  4766. case $ac_option in
  4767. # Handling of the options.
  4768. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4769. ac_cs_recheck=: ;;
  4770. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4771. printf "%s\n" "$ac_cs_version"; exit ;;
  4772. --config | --confi | --conf | --con | --co | --c )
  4773. printf "%s\n" "$ac_cs_config"; exit ;;
  4774. --debug | --debu | --deb | --de | --d | -d )
  4775. debug=: ;;
  4776. --file | --fil | --fi | --f )
  4777. $ac_shift
  4778. case $ac_optarg in
  4779. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4780. '') as_fn_error $? "missing file argument" ;;
  4781. esac
  4782. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4783. ac_need_defaults=false;;
  4784. --he | --h | --help | --hel | -h )
  4785. printf "%s\n" "$ac_cs_usage"; exit ;;
  4786. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4787. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4788. ac_cs_silent=: ;;
  4789. # This is an error.
  4790. -*) as_fn_error $? "unrecognized option: \`$1'
  4791. Try \`$0 --help' for more information." ;;
  4792. *) as_fn_append ac_config_targets " $1"
  4793. ac_need_defaults=false ;;
  4794. esac
  4795. shift
  4796. done
  4797. ac_configure_extra_args=
  4798. if $ac_cs_silent; then
  4799. exec 6>/dev/null
  4800. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4801. fi
  4802. _ACEOF
  4803. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4804. if \$ac_cs_recheck; then
  4805. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4806. shift
  4807. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  4808. CONFIG_SHELL='$SHELL'
  4809. export CONFIG_SHELL
  4810. exec "\$@"
  4811. fi
  4812. _ACEOF
  4813. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4814. exec 5>>config.log
  4815. {
  4816. echo
  4817. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4818. ## Running $as_me. ##
  4819. _ASBOX
  4820. printf "%s\n" "$ac_log"
  4821. } >&5
  4822. _ACEOF
  4823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4824. _ACEOF
  4825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4826. # Handling of arguments.
  4827. for ac_config_target in $ac_config_targets
  4828. do
  4829. case $ac_config_target in
  4830. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4831. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  4832. "src/bled/Makefile") CONFIG_FILES="$CONFIG_FILES src/bled/Makefile" ;;
  4833. "src/ext2fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/ext2fs/Makefile" ;;
  4834. "src/libcdio/iso9660/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcdio/iso9660/Makefile" ;;
  4835. "src/libcdio/udf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcdio/udf/Makefile" ;;
  4836. "src/libcdio/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcdio/driver/Makefile" ;;
  4837. "res/loc/Makefile") CONFIG_FILES="$CONFIG_FILES res/loc/Makefile" ;;
  4838. "src/ms-sys/Makefile") CONFIG_FILES="$CONFIG_FILES src/ms-sys/Makefile" ;;
  4839. "src/syslinux/libfat/Makefile") CONFIG_FILES="$CONFIG_FILES src/syslinux/libfat/Makefile" ;;
  4840. "src/syslinux/libinstaller/Makefile") CONFIG_FILES="$CONFIG_FILES src/syslinux/libinstaller/Makefile" ;;
  4841. "src/syslinux/win/Makefile") CONFIG_FILES="$CONFIG_FILES src/syslinux/win/Makefile" ;;
  4842. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4843. esac
  4844. done
  4845. # If the user did not use the arguments to specify the items to instantiate,
  4846. # then the envvar interface is used. Set only those that are not.
  4847. # We use the long form for the default assignment because of an extremely
  4848. # bizarre bug on SunOS 4.1.3.
  4849. if $ac_need_defaults; then
  4850. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  4851. fi
  4852. # Have a temporary directory for convenience. Make it in the build tree
  4853. # simply because there is no reason against having it here, and in addition,
  4854. # creating and moving files from /tmp can sometimes cause problems.
  4855. # Hook for its removal unless debugging.
  4856. # Note that there is a small window in which the directory will not be cleaned:
  4857. # after its creation but before its name has been assigned to `$tmp'.
  4858. $debug ||
  4859. {
  4860. tmp= ac_tmp=
  4861. trap 'exit_status=$?
  4862. : "${ac_tmp:=$tmp}"
  4863. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4864. ' 0
  4865. trap 'as_fn_exit 1' 1 2 13 15
  4866. }
  4867. # Create a (secure) tmp directory for tmp files.
  4868. {
  4869. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4870. test -d "$tmp"
  4871. } ||
  4872. {
  4873. tmp=./conf$$-$RANDOM
  4874. (umask 077 && mkdir "$tmp")
  4875. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4876. ac_tmp=$tmp
  4877. # Set up the scripts for CONFIG_FILES section.
  4878. # No need to generate them if there are no CONFIG_FILES.
  4879. # This happens for instance with `./config.status config.h'.
  4880. if test -n "$CONFIG_FILES"; then
  4881. ac_cr=`echo X | tr X '\015'`
  4882. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4883. # But we know of no other shell where ac_cr would be empty at this
  4884. # point, so we can use a bashism as a fallback.
  4885. if test "x$ac_cr" = x; then
  4886. eval ac_cr=\$\'\\r\'
  4887. fi
  4888. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4889. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4890. ac_cs_awk_cr='\\r'
  4891. else
  4892. ac_cs_awk_cr=$ac_cr
  4893. fi
  4894. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4895. _ACEOF
  4896. {
  4897. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4898. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4899. echo "_ACEOF"
  4900. } >conf$$subs.sh ||
  4901. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4902. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4903. ac_delim='%!_!# '
  4904. for ac_last_try in false false false false false :; do
  4905. . ./conf$$subs.sh ||
  4906. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4907. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4908. if test $ac_delim_n = $ac_delim_num; then
  4909. break
  4910. elif $ac_last_try; then
  4911. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4912. else
  4913. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4914. fi
  4915. done
  4916. rm -f conf$$subs.sh
  4917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4918. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4919. _ACEOF
  4920. sed -n '
  4921. h
  4922. s/^/S["/; s/!.*/"]=/
  4923. p
  4924. g
  4925. s/^[^!]*!//
  4926. :repl
  4927. t repl
  4928. s/'"$ac_delim"'$//
  4929. t delim
  4930. :nl
  4931. h
  4932. s/\(.\{148\}\)..*/\1/
  4933. t more1
  4934. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4935. p
  4936. n
  4937. b repl
  4938. :more1
  4939. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4940. p
  4941. g
  4942. s/.\{148\}//
  4943. t nl
  4944. :delim
  4945. h
  4946. s/\(.\{148\}\)..*/\1/
  4947. t more2
  4948. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4949. p
  4950. b
  4951. :more2
  4952. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4953. p
  4954. g
  4955. s/.\{148\}//
  4956. t delim
  4957. ' <conf$$subs.awk | sed '
  4958. /^[^""]/{
  4959. N
  4960. s/\n//
  4961. }
  4962. ' >>$CONFIG_STATUS || ac_write_fail=1
  4963. rm -f conf$$subs.awk
  4964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4965. _ACAWK
  4966. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4967. for (key in S) S_is_set[key] = 1
  4968. FS = ""
  4969. }
  4970. {
  4971. line = $ 0
  4972. nfields = split(line, field, "@")
  4973. substed = 0
  4974. len = length(field[1])
  4975. for (i = 2; i < nfields; i++) {
  4976. key = field[i]
  4977. keylen = length(key)
  4978. if (S_is_set[key]) {
  4979. value = S[key]
  4980. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4981. len += length(value) + length(field[++i])
  4982. substed = 1
  4983. } else
  4984. len += 1 + keylen
  4985. }
  4986. print line
  4987. }
  4988. _ACAWK
  4989. _ACEOF
  4990. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4991. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4992. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4993. else
  4994. cat
  4995. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4996. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4997. _ACEOF
  4998. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4999. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5000. # trailing colons and then remove the whole line if VPATH becomes empty
  5001. # (actually we leave an empty line to preserve line numbers).
  5002. if test "x$srcdir" = x.; then
  5003. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5004. h
  5005. s///
  5006. s/^/:/
  5007. s/[ ]*$/:/
  5008. s/:\$(srcdir):/:/g
  5009. s/:\${srcdir}:/:/g
  5010. s/:@srcdir@:/:/g
  5011. s/^:*//
  5012. s/:*$//
  5013. x
  5014. s/\(=[ ]*\).*/\1/
  5015. G
  5016. s/\n//
  5017. s/^[^=]*=[ ]*$//
  5018. }'
  5019. fi
  5020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5021. fi # test -n "$CONFIG_FILES"
  5022. eval set X " :F $CONFIG_FILES "
  5023. shift
  5024. for ac_tag
  5025. do
  5026. case $ac_tag in
  5027. :[FHLC]) ac_mode=$ac_tag; continue;;
  5028. esac
  5029. case $ac_mode$ac_tag in
  5030. :[FHL]*:*);;
  5031. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5032. :[FH]-) ac_tag=-:-;;
  5033. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5034. esac
  5035. ac_save_IFS=$IFS
  5036. IFS=:
  5037. set x $ac_tag
  5038. IFS=$ac_save_IFS
  5039. shift
  5040. ac_file=$1
  5041. shift
  5042. case $ac_mode in
  5043. :L) ac_source=$1;;
  5044. :[FH])
  5045. ac_file_inputs=
  5046. for ac_f
  5047. do
  5048. case $ac_f in
  5049. -) ac_f="$ac_tmp/stdin";;
  5050. *) # Look for the file first in the build tree, then in the source tree
  5051. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5052. # because $ac_f cannot contain `:'.
  5053. test -f "$ac_f" ||
  5054. case $ac_f in
  5055. [\\/$]*) false;;
  5056. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5057. esac ||
  5058. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5059. esac
  5060. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5061. as_fn_append ac_file_inputs " '$ac_f'"
  5062. done
  5063. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5064. # use $as_me), people would be surprised to read:
  5065. # /* config.h. Generated by config.status. */
  5066. configure_input='Generated from '`
  5067. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5068. `' by configure.'
  5069. if test x"$ac_file" != x-; then
  5070. configure_input="$ac_file. $configure_input"
  5071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5072. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  5073. fi
  5074. # Neutralize special characters interpreted by sed in replacement strings.
  5075. case $configure_input in #(
  5076. *\&* | *\|* | *\\* )
  5077. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  5078. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5079. *) ac_sed_conf_input=$configure_input;;
  5080. esac
  5081. case $ac_tag in
  5082. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5083. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5084. esac
  5085. ;;
  5086. esac
  5087. ac_dir=`$as_dirname -- "$ac_file" ||
  5088. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5089. X"$ac_file" : 'X\(//\)[^/]' \| \
  5090. X"$ac_file" : 'X\(//\)$' \| \
  5091. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5092. printf "%s\n" X"$ac_file" |
  5093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5094. s//\1/
  5095. q
  5096. }
  5097. /^X\(\/\/\)[^/].*/{
  5098. s//\1/
  5099. q
  5100. }
  5101. /^X\(\/\/\)$/{
  5102. s//\1/
  5103. q
  5104. }
  5105. /^X\(\/\).*/{
  5106. s//\1/
  5107. q
  5108. }
  5109. s/.*/./; q'`
  5110. as_dir="$ac_dir"; as_fn_mkdir_p
  5111. ac_builddir=.
  5112. case "$ac_dir" in
  5113. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5114. *)
  5115. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  5116. # A ".." for each directory in $ac_dir_suffix.
  5117. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5118. case $ac_top_builddir_sub in
  5119. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5120. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5121. esac ;;
  5122. esac
  5123. ac_abs_top_builddir=$ac_pwd
  5124. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5125. # for backward compatibility:
  5126. ac_top_builddir=$ac_top_build_prefix
  5127. case $srcdir in
  5128. .) # We are building in place.
  5129. ac_srcdir=.
  5130. ac_top_srcdir=$ac_top_builddir_sub
  5131. ac_abs_top_srcdir=$ac_pwd ;;
  5132. [\\/]* | ?:[\\/]* ) # Absolute name.
  5133. ac_srcdir=$srcdir$ac_dir_suffix;
  5134. ac_top_srcdir=$srcdir
  5135. ac_abs_top_srcdir=$srcdir ;;
  5136. *) # Relative name.
  5137. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5138. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5139. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5140. esac
  5141. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5142. case $ac_mode in
  5143. :F)
  5144. #
  5145. # CONFIG_FILE
  5146. #
  5147. case $INSTALL in
  5148. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5149. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5150. esac
  5151. ac_MKDIR_P=$MKDIR_P
  5152. case $MKDIR_P in
  5153. [\\/$]* | ?:[\\/]* ) ;;
  5154. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  5155. esac
  5156. _ACEOF
  5157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5158. # If the template does not know about datarootdir, expand it.
  5159. # FIXME: This hack should be removed a few years after 2.60.
  5160. ac_datarootdir_hack=; ac_datarootdir_seen=
  5161. ac_sed_dataroot='
  5162. /datarootdir/ {
  5163. p
  5164. q
  5165. }
  5166. /@datadir@/p
  5167. /@docdir@/p
  5168. /@infodir@/p
  5169. /@localedir@/p
  5170. /@mandir@/p'
  5171. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5172. *datarootdir*) ac_datarootdir_seen=yes;;
  5173. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5175. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5176. _ACEOF
  5177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5178. ac_datarootdir_hack='
  5179. s&@datadir@&$datadir&g
  5180. s&@docdir@&$docdir&g
  5181. s&@infodir@&$infodir&g
  5182. s&@localedir@&$localedir&g
  5183. s&@mandir@&$mandir&g
  5184. s&\\\${datarootdir}&$datarootdir&g' ;;
  5185. esac
  5186. _ACEOF
  5187. # Neutralize VPATH when `$srcdir' = `.'.
  5188. # Shell code in configure.ac might set extrasub.
  5189. # FIXME: do we really want to maintain this feature?
  5190. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5191. ac_sed_extra="$ac_vpsub
  5192. $extrasub
  5193. _ACEOF
  5194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5195. :t
  5196. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5197. s|@configure_input@|$ac_sed_conf_input|;t t
  5198. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5199. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5200. s&@srcdir@&$ac_srcdir&;t t
  5201. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5202. s&@top_srcdir@&$ac_top_srcdir&;t t
  5203. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5204. s&@builddir@&$ac_builddir&;t t
  5205. s&@abs_builddir@&$ac_abs_builddir&;t t
  5206. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5207. s&@INSTALL@&$ac_INSTALL&;t t
  5208. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  5209. $ac_datarootdir_hack
  5210. "
  5211. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5212. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5213. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5214. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5215. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5216. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5218. which seems to be undefined. Please make sure it is defined" >&5
  5219. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5220. which seems to be undefined. Please make sure it is defined" >&2;}
  5221. rm -f "$ac_tmp/stdin"
  5222. case $ac_file in
  5223. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5224. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5225. esac \
  5226. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5227. ;;
  5228. esac
  5229. done # for ac_tag
  5230. as_fn_exit 0
  5231. _ACEOF
  5232. ac_clean_files=$ac_clean_files_save
  5233. test $ac_write_fail = 0 ||
  5234. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5235. # configure is writing to config.log, and then calls config.status.
  5236. # config.status does its own redirection, appending to config.log.
  5237. # Unfortunately, on DOS this fails, as config.log is still kept open
  5238. # by configure, so config.status won't be able to write to it; its
  5239. # output is simply discarded. So we exec the FD to /dev/null,
  5240. # effectively closing config.log, so it can be properly (re)opened and
  5241. # appended to by config.status. When coming back to configure, we
  5242. # need to make the FD available again.
  5243. if test "$no_create" != yes; then
  5244. ac_cs_success=:
  5245. ac_config_status_args=
  5246. test "$silent" = yes &&
  5247. ac_config_status_args="$ac_config_status_args --quiet"
  5248. exec 5>/dev/null
  5249. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5250. exec 5>>config.log
  5251. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5252. # would make configure fail if this is the last instruction.
  5253. $ac_cs_success || as_fn_exit 1
  5254. fi
  5255. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5257. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5258. fi