Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ocaml-augeas 0.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME='ocaml-augeas'
602 PACKAGE_TARNAME='ocaml-augeas'
603 PACKAGE_VERSION='0.7'
604 PACKAGE_STRING='ocaml-augeas 0.7'
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 ac_subst_vars='LTLIBOBJS
609 LIBOBJS
610 AUGEAS_LIBS
611 AUGEAS_CFLAGS
612 LIBXML2_LIBS
613 LIBXML2_CFLAGS
614 PKG_CONFIG_LIBDIR
615 PKG_CONFIG_PATH
616 PKG_CONFIG
617 OCAMLFIND
618 OCAMLBUILD
619 OCAMLDOC
620 OCAMLMKLIB
621 OCAMLMKTOP
622 OCAMLDEP
623 OCAMLOPTDOTOPT
624 OCAMLCDOTOPT
625 OCAMLBEST
626 OCAMLOPT
627 OCAMLLIB
628 OCAMLVERSION
629 OCAMLC
630 CPP
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 OBJEXT
635 EXEEXT
636 ac_ct_CC
637 CPPFLAGS
638 LDFLAGS
639 CFLAGS
640 CC
641 target_alias
642 host_alias
643 build_alias
644 LIBS
645 ECHO_T
646 ECHO_N
647 ECHO_C
648 DEFS
649 mandir
650 localedir
651 libdir
652 psdir
653 pdfdir
654 dvidir
655 htmldir
656 infodir
657 docdir
658 oldincludedir
659 includedir
660 runstatedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
683 '
684 ac_precious_vars='build_alias
685 host_alias
686 target_alias
687 CC
688 CFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 CPP
693 PKG_CONFIG
694 PKG_CONFIG_PATH
695 PKG_CONFIG_LIBDIR
696 LIBXML2_CFLAGS
697 LIBXML2_LIBS
698 AUGEAS_CFLAGS
699 AUGEAS_LIBS'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 runstatedir='${localstatedir}/run'
739 includedir='${prefix}/include'
740 oldincludedir='/usr/include'
741 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
742 infodir='${datarootdir}/info'
743 htmldir='${docdir}'
744 dvidir='${docdir}'
745 pdfdir='${docdir}'
746 psdir='${docdir}'
747 libdir='${exec_prefix}/lib'
748 localedir='${datarootdir}/locale'
749 mandir='${datarootdir}/man'
750
751 ac_prev=
752 ac_dashdash=
753 for ac_option
754 do
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
757 eval $ac_prev=\$ac_option
758 ac_prev=
759 continue
760 fi
761
762 case $ac_option in
763 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764 *=) ac_optarg= ;;
765 *) ac_optarg=yes ;;
766 esac
767
768 case $ac_dashdash$ac_option in
769 --)
770 ac_dashdash=yes ;;
771
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775 bindir=$ac_optarg ;;
776
777 -build | --build | --buil | --bui | --bu)
778 ac_prev=build_alias ;;
779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780 build_alias=$ac_optarg ;;
781
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787 cache_file=$ac_optarg ;;
788
789 --config-cache | -C)
790 cache_file=config.cache ;;
791
792 -datadir | --datadir | --datadi | --datad)
793 ac_prev=datadir ;;
794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
795 datadir=$ac_optarg ;;
796
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
803
804 -disable-* | --disable-*)
805 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error $? "invalid feature name: '$ac_useropt'"
809 ac_useropt_orig=$ac_useropt
810 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
812 *"
813 "enable_$ac_useropt"
814 "*) ;;
815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep=', ';;
817 esac
818 eval enable_$ac_useropt=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
829
830 -enable-* | --enable-*)
831 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error $? "invalid feature name: '$ac_useropt'"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
838 *"
839 "enable_$ac_useropt"
840 "*) ;;
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
843 esac
844 eval enable_$ac_useropt=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -runstatedir | --runstatedir | --runstatedi | --runstated \
990 | --runstate | --runstat | --runsta | --runst | --runs \
991 | --run | --ru | --r)
992 ac_prev=runstatedir ;;
993 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
994 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
995 | --run=* | --ru=* | --r=*)
996 runstatedir=$ac_optarg ;;
997
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 ac_prev=sbindir ;;
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 | --sbi=* | --sb=*)
1002 sbindir=$ac_optarg ;;
1003
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1007 | --sha | --sh)
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 | --sha=* | --sh=*)
1013 sharedstatedir=$ac_optarg ;;
1014
1015 -site | --site | --sit)
1016 ac_prev=site ;;
1017 -site=* | --site=* | --sit=*)
1018 site=$ac_optarg ;;
1019
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 ac_prev=srcdir ;;
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1024
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1031
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1036
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 verbose=yes ;;
1039
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1042
1043 -with-* | --with-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid package name: '$ac_useropt'"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "with_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval with_$ac_useropt=\$ac_optarg ;;
1058
1059 -without-* | --without-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid package name: '$ac_useropt'"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "with_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) as_fn_error $? "unrecognized option: '$ac_option'
1094 Try '$0 --help' for more information"
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1102 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1103 esac
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error $? "missing argument to $ac_option"
1121 fi
1122
1123 if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1125 no) ;;
1126 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1127 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 esac
1129 fi
1130
1131 # Check all directory arguments for consistency.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir runstatedir
1136 do
1137 eval ac_val=\$$ac_var
1138 # Remove trailing slashes.
1139 case $ac_val in
1140 */ )
1141 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\$ac_val;;
1143 esac
1144 # Be sure to have absolute directory names.
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1150 done
1151
1152 # There might be people who depend on the old broken behavior: '$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1155 build=$build_alias
1156 host=$host_alias
1157 target=$target_alias
1158
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1165 fi
1166 fi
1167
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171 test "$silent" = yes && exec 6>/dev/null
1172
1173
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 as_fn_error $? "working directory cannot be determined"
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 as_fn_error $? "pwd does not report name of working directory"
1180
1181
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$as_myself" ||
1187 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$as_myself" : 'X\(//\)[^/]' \| \
1189 X"$as_myself" : 'X\(//\)$' \| \
1190 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1191 printf "%s\n" X"$as_myself" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\).*/{
1205 s//\1/
1206 q
1207 }
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1212 fi
1213 else
1214 ac_srcdir_defaulted=no
1215 fi
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1219 fi
1220 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1227 fi
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1240
1241 #
1242 # Report the --help message.
1243 #
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1247 cat <<_ACEOF
1248 'configure' configures ocaml-augeas 0.7 to adapt to many kinds of systems.
1249
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1254
1255 Defaults for the options are specified in brackets.
1256
1257 Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print 'checking ...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for '--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or '..']
1267
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1272 [PREFIX]
1273
1274 By default, 'make install' will install all the files in
1275 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than '$ac_default_prefix' using '--prefix',
1277 for instance '--prefix=\$HOME'.
1278
1279 For better control, use the options below.
1280
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/ocaml-augeas]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302 _ACEOF
1303
1304 cat <<\_ACEOF
1305 _ACEOF
1306 fi
1307
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive ) echo "Configuration of ocaml-augeas 0.7:";;
1311 esac
1312 cat <<\_ACEOF
1313
1314 Some influential environment variables:
1315 CC C compiler command
1316 CFLAGS C compiler flags
1317 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1318 nonstandard directory <lib dir>
1319 LIBS libraries to pass to the linker, e.g. -l<library>
1320 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1321 you have headers in a nonstandard directory <include dir>
1322 CPP C preprocessor
1323 PKG_CONFIG path to pkg-config utility
1324 PKG_CONFIG_PATH
1325 directories to add to pkg-config's search path
1326 PKG_CONFIG_LIBDIR
1327 path overriding pkg-config's built-in search path
1328 LIBXML2_CFLAGS
1329 C compiler flags for LIBXML2, overriding pkg-config
1330 LIBXML2_LIBS
1331 linker flags for LIBXML2, overriding pkg-config
1332 AUGEAS_CFLAGS
1333 C compiler flags for AUGEAS, overriding pkg-config
1334 AUGEAS_LIBS linker flags for AUGEAS, overriding pkg-config
1335
1336 Use these variables to override the choices made by 'configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 Report bugs to the package provider.
1340 _ACEOF
1341 ac_status=$?
1342 fi
1343
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" ||
1348 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1349 continue
1350 ac_builddir=.
1351
1352 case "$ac_dir" in
1353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *)
1355 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1356 # A ".." for each directory in $ac_dir_suffix.
1357 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1358 case $ac_top_builddir_sub in
1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 esac ;;
1362 esac
1363 ac_abs_top_builddir=$ac_pwd
1364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1365 # for backward compatibility:
1366 ac_top_builddir=$ac_top_build_prefix
1367
1368 case $srcdir in
1369 .) # We are building in place.
1370 ac_srcdir=.
1371 ac_top_srcdir=$ac_top_builddir_sub
1372 ac_abs_top_srcdir=$ac_pwd ;;
1373 [\\/]* | ?:[\\/]* ) # Absolute name.
1374 ac_srcdir=$srcdir$ac_dir_suffix;
1375 ac_top_srcdir=$srcdir
1376 ac_abs_top_srcdir=$srcdir ;;
1377 *) # Relative name.
1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1379 ac_top_srcdir=$ac_top_build_prefix$srcdir
1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1381 esac
1382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383
1384 cd "$ac_dir" || { ac_status=$?; continue; }
1385 # Check for configure.gnu first; this name is used for a wrapper for
1386 # Metaconfig's "Configure" on case-insensitive file systems.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1393 else
1394 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395 fi || ac_status=$?
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1397 done
1398 fi
1399
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402 cat <<\_ACEOF
1403 ocaml-augeas configure 0.7
1404 generated by GNU Autoconf 2.72
1405
1406 Copyright (C) 2023 Free Software Foundation, Inc.
1407 This configure script is free software; the Free Software Foundation
1408 gives unlimited permission to copy, distribute and modify it.
1409 _ACEOF
1410 exit
1411 fi
1412
1413 ## ------------------------ ##
1414 ## Autoconf initialization. ##
1415 ## ------------------------ ##
1416
1417 # ac_fn_c_try_compile LINENO
1418 # --------------------------
1419 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1420 ac_fn_c_try_compile ()
1421 {
1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423 rm -f conftest.$ac_objext conftest.beam
1424 if { { ac_try="$ac_compile"
1425 case "(($ac_try" in
1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427 *) ac_try_echo=$ac_try;;
1428 esac
1429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430 printf "%s\n" "$ac_try_echo"; } >&5
1431 (eval "$ac_compile") 2>conftest.err
1432 ac_status=$?
1433 if test -s conftest.err; then
1434 grep -v '^ *+' conftest.err >conftest.er1
1435 cat conftest.er1 >&5
1436 mv -f conftest.er1 conftest.err
1437 fi
1438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439 test $ac_status = 0; } && {
1440 test -z "$ac_c_werror_flag" ||
1441 test ! -s conftest.err
1442 } && test -s conftest.$ac_objext
1443 then :
1444 ac_retval=0
1445 else case e in #(
1446 e) printf "%s\n" "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1448
1449 ac_retval=1 ;;
1450 esac
1451 fi
1452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1453 as_fn_set_status $ac_retval
1454
1455 } # ac_fn_c_try_compile
1456
1457 # ac_fn_c_try_cpp LINENO
1458 # ----------------------
1459 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_cpp ()
1461 {
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 if { { ac_try="$ac_cpp conftest.$ac_ext"
1464 case "(($ac_try" in
1465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1466 *) ac_try_echo=$ac_try;;
1467 esac
1468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 printf "%s\n" "$ac_try_echo"; } >&5
1470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1471 ac_status=$?
1472 if test -s conftest.err; then
1473 grep -v '^ *+' conftest.err >conftest.er1
1474 cat conftest.er1 >&5
1475 mv -f conftest.er1 conftest.err
1476 fi
1477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } > conftest.i && {
1479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 }
1482 then :
1483 ac_retval=0
1484 else case e in #(
1485 e) printf "%s\n" "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.$ac_ext >&5
1487
1488 ac_retval=1 ;;
1489 esac
1490 fi
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1493
1494 } # ac_fn_c_try_cpp
1495
1496 # ac_fn_c_try_link LINENO
1497 # -----------------------
1498 # Try to link conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_link ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1503 if { { ac_try="$ac_link"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 printf "%s\n" "$ac_try_echo"; } >&5
1510 (eval "$ac_link") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest$ac_exeext && {
1522 test "$cross_compiling" = yes ||
1523 test -x conftest$ac_exeext
1524 }
1525 then :
1526 ac_retval=0
1527 else case e in #(
1528 e) printf "%s\n" "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1 ;;
1532 esac
1533 fi
1534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1536 # interfere with the next link command; also delete a directory that is
1537 # left behind by Apple's compiler. We do this before executing the actions.
1538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1541
1542 } # ac_fn_c_try_link
1543
1544 # ac_fn_c_check_func LINENO FUNC VAR
1545 # ----------------------------------
1546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1547 ac_fn_c_check_func ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551 printf %s "checking for $2... " >&6; }
1552 if eval test \${$3+y}
1553 then :
1554 printf %s "(cached) " >&6
1555 else case e in #(
1556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1560 #define $2 innocuous_$2
1561
1562 /* System header to define __stub macros and hopefully few prototypes,
1563 which can conflict with char $2 (void); below. */
1564
1565 #include <limits.h>
1566 #undef $2
1567
1568 /* Override any GCC internal prototype to avoid an error.
1569 Use char because int might match the return type of a GCC
1570 builtin and then its argument prototype would still apply. */
1571 #ifdef __cplusplus
1572 extern "C"
1573 #endif
1574 char $2 (void);
1575 /* The GNU C library defines this for functions which it implements
1576 to always fail with ENOSYS. Some functions are actually named
1577 something starting with __ and the normal name is an alias. */
1578 #if defined __stub_$2 || defined __stub___$2
1579 choke me
1580 #endif
1581
1582 int
1583 main (void)
1584 {
1585 return $2 ();
1586 ;
1587 return 0;
1588 }
1589 _ACEOF
1590 if ac_fn_c_try_link "$LINENO"
1591 then :
1592 eval "$3=yes"
1593 else case e in #(
1594 e) eval "$3=no" ;;
1595 esac
1596 fi
1597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1598 conftest$ac_exeext conftest.$ac_ext ;;
1599 esac
1600 fi
1601 eval ac_res=\$$3
1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 printf "%s\n" "$ac_res" >&6; }
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606 } # ac_fn_c_check_func
1607 ac_configure_args_raw=
1608 for ac_arg
1609 do
1610 case $ac_arg in
1611 *\'*)
1612 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1613 esac
1614 as_fn_append ac_configure_args_raw " '$ac_arg'"
1615 done
1616
1617 case $ac_configure_args_raw in
1618 *$as_nl*)
1619 ac_safe_unquote= ;;
1620 *)
1621 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1622 ac_unsafe_a="$ac_unsafe_z#~"
1623 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1624 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1625 esac
1626
1627 cat >config.log <<_ACEOF
1628 This file contains any messages produced by compilers while
1629 running configure, to aid debugging if configure makes a mistake.
1630
1631 It was created by ocaml-augeas $as_me 0.7, which was
1632 generated by GNU Autoconf 2.72. Invocation command line was
1633
1634 $ $0$ac_configure_args_raw
1635
1636 _ACEOF
1637 exec 5>>config.log
1638 {
1639 cat <<_ASUNAME
1640 ## --------- ##
1641 ## Platform. ##
1642 ## --------- ##
1643
1644 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1645 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1646 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1647 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1648 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649
1650 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1651 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652
1653 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1654 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1655 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1656 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1657 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1658 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1659 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1660
1661 _ASUNAME
1662
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666 IFS=$as_save_IFS
1667 case $as_dir in #(((
1668 '') as_dir=./ ;;
1669 */) ;;
1670 *) as_dir=$as_dir/ ;;
1671 esac
1672 printf "%s\n" "PATH: $as_dir"
1673 done
1674 IFS=$as_save_IFS
1675
1676 } >&5
1677
1678 cat >&5 <<_ACEOF
1679
1680
1681 ## ----------- ##
1682 ## Core tests. ##
1683 ## ----------- ##
1684
1685 _ACEOF
1686
1687
1688 # Keep a trace of the command line.
1689 # Strip out --no-create and --no-recursion so they do not pile up.
1690 # Strip out --silent because we don't want to record it for future runs.
1691 # Also quote any args containing shell meta-characters.
1692 # Make two passes to allow for proper duplicate-argument suppression.
1693 ac_configure_args=
1694 ac_configure_args0=
1695 ac_configure_args1=
1696 ac_must_keep_next=false
1697 for ac_pass in 1 2
1698 do
1699 for ac_arg
1700 do
1701 case $ac_arg in
1702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1704 | -silent | --silent | --silen | --sile | --sil)
1705 continue ;;
1706 *\'*)
1707 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 esac
1709 case $ac_pass in
1710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1711 2)
1712 as_fn_append ac_configure_args1 " '$ac_arg'"
1713 if test $ac_must_keep_next = true; then
1714 ac_must_keep_next=false # Got value, back to normal.
1715 else
1716 case $ac_arg in
1717 *=* | --config-cache | -C | -disable-* | --disable-* \
1718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1720 | -with-* | --with-* | -without-* | --without-* | --x)
1721 case "$ac_configure_args0 " in
1722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723 esac
1724 ;;
1725 -* ) ac_must_keep_next=true ;;
1726 esac
1727 fi
1728 as_fn_append ac_configure_args " '$ac_arg'"
1729 ;;
1730 esac
1731 done
1732 done
1733 { ac_configure_args0=; unset ac_configure_args0;}
1734 { ac_configure_args1=; unset ac_configure_args1;}
1735
1736 # When interrupted or exit'd, cleanup temporary files, and complete
1737 # config.log. We remove comments because anyway the quotes in there
1738 # would cause problems or look ugly.
1739 # WARNING: Use '\'' to represent an apostrophe within the trap.
1740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741 trap 'exit_status=$?
1742 # Sanitize IFS.
1743 IFS=" "" $as_nl"
1744 # Save into config.log some information that might help in debugging.
1745 {
1746 echo
1747
1748 printf "%s\n" "## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##"
1751 echo
1752 # The following way of writing the cache mishandles newlines in values,
1753 (
1754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755 eval ac_val=\$$ac_var
1756 case $ac_val in #(
1757 *${as_nl}*)
1758 case $ac_var in #(
1759 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1760 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1761 esac
1762 case $ac_var in #(
1763 _ | IFS | as_nl) ;; #(
1764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1765 *) { eval $ac_var=; unset $ac_var;} ;;
1766 esac ;;
1767 esac
1768 done
1769 (set) 2>&1 |
1770 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771 *${as_nl}ac_space=\ *)
1772 sed -n \
1773 "s/'\''/'\''\\\\'\'''\''/g;
1774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775 ;; #(
1776 *)
1777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1778 ;;
1779 esac |
1780 sort
1781 )
1782 echo
1783
1784 printf "%s\n" "## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##"
1787 echo
1788 for ac_var in $ac_subst_vars
1789 do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in
1792 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 esac
1794 printf "%s\n" "$ac_var='\''$ac_val'\''"
1795 done | sort
1796 echo
1797
1798 if test -n "$ac_subst_files"; then
1799 printf "%s\n" "## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##"
1802 echo
1803 for ac_var in $ac_subst_files
1804 do
1805 eval ac_val=\$$ac_var
1806 case $ac_val in
1807 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 esac
1809 printf "%s\n" "$ac_var='\''$ac_val'\''"
1810 done | sort
1811 echo
1812 fi
1813
1814 if test -s confdefs.h; then
1815 printf "%s\n" "## ----------- ##
1816 ## confdefs.h. ##
1817 ## ----------- ##"
1818 echo
1819 cat confdefs.h
1820 echo
1821 fi
1822 test "$ac_signal" != 0 &&
1823 printf "%s\n" "$as_me: caught signal $ac_signal"
1824 printf "%s\n" "$as_me: exit $exit_status"
1825 } >&5
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828 exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 printf "%s\n" "/* confdefs.h */" > confdefs.h
1839
1840 # Predefined preprocessor variables.
1841
1842 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1843
1844 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1845
1846 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1847
1848 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1849
1850 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1851
1852 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1853
1854
1855 # Let the site file select an alternate cache file if it wants to.
1856 # Prefer an explicitly selected file to automatically selected ones.
1857 if test -n "$CONFIG_SITE"; then
1858 ac_site_files="$CONFIG_SITE"
1859 elif test "x$prefix" != xNONE; then
1860 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1861 else
1862 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1863 fi
1864
1865 for ac_site_file in $ac_site_files
1866 do
1867 case $ac_site_file in #(
1868 */*) :
1869 ;; #(
1870 *) :
1871 ac_site_file=./$ac_site_file ;;
1872 esac
1873 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1875 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1877 . "$ac_site_file" \
1878 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1880 as_fn_error $? "failed to load site script $ac_site_file
1881 See 'config.log' for more details" "$LINENO" 5; }
1882 fi
1883 done
1884
1885 if test -r "$cache_file"; then
1886 # Some versions of bash will fail to source /dev/null (special files
1887 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1888 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1890 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1891 case $cache_file in
1892 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1893 *) . "./$cache_file";;
1894 esac
1895 fi
1896 else
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1898 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1899 >$cache_file
1900 fi
1901
1902 # Test code for whether the C compiler supports C89 (global declarations)
1903 ac_c_conftest_c89_globals='
1904 /* Does the compiler advertise C89 conformance?
1905 Do not test the value of __STDC__, because some compilers set it to 0
1906 while being otherwise adequately conformant. */
1907 #if !defined __STDC__
1908 # error "Compiler does not advertise C89 conformance"
1909 #endif
1910
1911 #include <stddef.h>
1912 #include <stdarg.h>
1913 struct stat;
1914 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1915 struct buf { int x; };
1916 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1917 static char *e (char **p, int i)
1918 {
1919 return p[i];
1920 }
1921 static char *f (char * (*g) (char **, int), char **p, ...)
1922 {
1923 char *s;
1924 va_list v;
1925 va_start (v,p);
1926 s = g (p, va_arg (v,int));
1927 va_end (v);
1928 return s;
1929 }
1930
1931 /* C89 style stringification. */
1932 #define noexpand_stringify(a) #a
1933 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
1934
1935 /* C89 style token pasting. Exercises some of the corner cases that
1936 e.g. old MSVC gets wrong, but not very hard. */
1937 #define noexpand_concat(a,b) a##b
1938 #define expand_concat(a,b) noexpand_concat(a,b)
1939 extern int vA;
1940 extern int vbee;
1941 #define aye A
1942 #define bee B
1943 int *pvA = &expand_concat(v,aye);
1944 int *pvbee = &noexpand_concat(v,bee);
1945
1946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1947 function prototypes and stuff, but not \xHH hex character constants.
1948 These do not provoke an error unfortunately, instead are silently treated
1949 as an "x". The following induces an error, until -std is added to get
1950 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1951 array size at least. It is necessary to write \x00 == 0 to get something
1952 that is true only with -std. */
1953 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1954
1955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1956 inside strings and character constants. */
1957 #define FOO(x) '\''x'\''
1958 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1959
1960 int test (int i, double x);
1961 struct s1 {int (*f) (int a);};
1962 struct s2 {int (*f) (double a);};
1963 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1964 int, int);'
1965
1966 # Test code for whether the C compiler supports C89 (body of main).
1967 ac_c_conftest_c89_main='
1968 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1969 '
1970
1971 # Test code for whether the C compiler supports C99 (global declarations)
1972 ac_c_conftest_c99_globals='
1973 /* Does the compiler advertise C99 conformance? */
1974 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1975 # error "Compiler does not advertise C99 conformance"
1976 #endif
1977
1978 // See if C++-style comments work.
1979
1980 #include <stdbool.h>
1981 extern int puts (const char *);
1982 extern int printf (const char *, ...);
1983 extern int dprintf (int, const char *, ...);
1984 extern void *malloc (size_t);
1985 extern void free (void *);
1986
1987 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1988 // dprintf is used instead of fprintf to avoid needing to declare
1989 // FILE and stderr.
1990 #define debug(...) dprintf (2, __VA_ARGS__)
1991 #define showlist(...) puts (#__VA_ARGS__)
1992 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1993 static void
1994 test_varargs_macros (void)
1995 {
1996 int x = 1234;
1997 int y = 5678;
1998 debug ("Flag");
1999 debug ("X = %d\n", x);
2000 showlist (The first, second, and third items.);
2001 report (x>y, "x is %d but y is %d", x, y);
2002 }
2003
2004 // Check long long types.
2005 #define BIG64 18446744073709551615ull
2006 #define BIG32 4294967295ul
2007 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2008 #if !BIG_OK
2009 #error "your preprocessor is broken"
2010 #endif
2011 #if BIG_OK
2012 #else
2013 #error "your preprocessor is broken"
2014 #endif
2015 static long long int bignum = -9223372036854775807LL;
2016 static unsigned long long int ubignum = BIG64;
2017
2018 struct incomplete_array
2019 {
2020 int datasize;
2021 double data[];
2022 };
2023
2024 struct named_init {
2025 int number;
2026 const wchar_t *name;
2027 double average;
2028 };
2029
2030 typedef const char *ccp;
2031
2032 static inline int
2033 test_restrict (ccp restrict text)
2034 {
2035 // Iterate through items via the restricted pointer.
2036 // Also check for declarations in for loops.
2037 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2038 continue;
2039 return 0;
2040 }
2041
2042 // Check varargs and va_copy.
2043 static bool
2044 test_varargs (const char *format, ...)
2045 {
2046 va_list args;
2047 va_start (args, format);
2048 va_list args_copy;
2049 va_copy (args_copy, args);
2050
2051 const char *str = "";
2052 int number = 0;
2053 float fnumber = 0;
2054
2055 while (*format)
2056 {
2057 switch (*format++)
2058 {
2059 case '\''s'\'': // string
2060 str = va_arg (args_copy, const char *);
2061 break;
2062 case '\''d'\'': // int
2063 number = va_arg (args_copy, int);
2064 break;
2065 case '\''f'\'': // float
2066 fnumber = va_arg (args_copy, double);
2067 break;
2068 default:
2069 break;
2070 }
2071 }
2072 va_end (args_copy);
2073 va_end (args);
2074
2075 return *str && number && fnumber;
2076 }
2077 '
2078
2079 # Test code for whether the C compiler supports C99 (body of main).
2080 ac_c_conftest_c99_main='
2081 // Check bool.
2082 _Bool success = false;
2083 success |= (argc != 0);
2084
2085 // Check restrict.
2086 if (test_restrict ("String literal") == 0)
2087 success = true;
2088 char *restrict newvar = "Another string";
2089
2090 // Check varargs.
2091 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2092 test_varargs_macros ();
2093
2094 // Check flexible array members.
2095 struct incomplete_array *ia =
2096 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2097 ia->datasize = 10;
2098 for (int i = 0; i < ia->datasize; ++i)
2099 ia->data[i] = i * 1.234;
2100 // Work around memory leak warnings.
2101 free (ia);
2102
2103 // Check named initializers.
2104 struct named_init ni = {
2105 .number = 34,
2106 .name = L"Test wide string",
2107 .average = 543.34343,
2108 };
2109
2110 ni.number = 58;
2111
2112 int dynamic_array[ni.number];
2113 dynamic_array[0] = argv[0][0];
2114 dynamic_array[ni.number - 1] = 543;
2115
2116 // work around unused variable warnings
2117 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2118 || dynamic_array[ni.number - 1] != 543);
2119 '
2120
2121 # Test code for whether the C compiler supports C11 (global declarations)
2122 ac_c_conftest_c11_globals='
2123 /* Does the compiler advertise C11 conformance? */
2124 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2125 # error "Compiler does not advertise C11 conformance"
2126 #endif
2127
2128 // Check _Alignas.
2129 char _Alignas (double) aligned_as_double;
2130 char _Alignas (0) no_special_alignment;
2131 extern char aligned_as_int;
2132 char _Alignas (0) _Alignas (int) aligned_as_int;
2133
2134 // Check _Alignof.
2135 enum
2136 {
2137 int_alignment = _Alignof (int),
2138 int_array_alignment = _Alignof (int[100]),
2139 char_alignment = _Alignof (char)
2140 };
2141 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2142
2143 // Check _Noreturn.
2144 int _Noreturn does_not_return (void) { for (;;) continue; }
2145
2146 // Check _Static_assert.
2147 struct test_static_assert
2148 {
2149 int x;
2150 _Static_assert (sizeof (int) <= sizeof (long int),
2151 "_Static_assert does not work in struct");
2152 long int y;
2153 };
2154
2155 // Check UTF-8 literals.
2156 #define u8 syntax error!
2157 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2158
2159 // Check duplicate typedefs.
2160 typedef long *long_ptr;
2161 typedef long int *long_ptr;
2162 typedef long_ptr long_ptr;
2163
2164 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2165 struct anonymous
2166 {
2167 union {
2168 struct { int i; int j; };
2169 struct { int k; long int l; } w;
2170 };
2171 int m;
2172 } v1;
2173 '
2174
2175 # Test code for whether the C compiler supports C11 (body of main).
2176 ac_c_conftest_c11_main='
2177 _Static_assert ((offsetof (struct anonymous, i)
2178 == offsetof (struct anonymous, w.k)),
2179 "Anonymous union alignment botch");
2180 v1.i = 2;
2181 v1.w.k = 5;
2182 ok |= v1.i != 5;
2183 '
2184
2185 # Test code for whether the C compiler supports C11 (complete).
2186 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2187 ${ac_c_conftest_c99_globals}
2188 ${ac_c_conftest_c11_globals}
2189
2190 int
2191 main (int argc, char **argv)
2192 {
2193 int ok = 0;
2194 ${ac_c_conftest_c89_main}
2195 ${ac_c_conftest_c99_main}
2196 ${ac_c_conftest_c11_main}
2197 return ok;
2198 }
2199 "
2200
2201 # Test code for whether the C compiler supports C99 (complete).
2202 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2203 ${ac_c_conftest_c99_globals}
2204
2205 int
2206 main (int argc, char **argv)
2207 {
2208 int ok = 0;
2209 ${ac_c_conftest_c89_main}
2210 ${ac_c_conftest_c99_main}
2211 return ok;
2212 }
2213 "
2214
2215 # Test code for whether the C compiler supports C89 (complete).
2216 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2217
2218 int
2219 main (int argc, char **argv)
2220 {
2221 int ok = 0;
2222 ${ac_c_conftest_c89_main}
2223 return ok;
2224 }
2225 "
2226
2227
2228 # Auxiliary files required by this configure script.
2229 ac_aux_files="install-sh"
2230
2231 # Locations in which to look for auxiliary files.
2232 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2233
2234 # Search for a directory containing all of the required auxiliary files,
2235 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2236 # If we don't find one directory that contains all the files we need,
2237 # we report the set of missing files from the *first* directory in
2238 # $ac_aux_dir_candidates and give up.
2239 ac_missing_aux_files=""
2240 ac_first_candidate=:
2241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 as_found=false
2244 for as_dir in $ac_aux_dir_candidates
2245 do
2246 IFS=$as_save_IFS
2247 case $as_dir in #(((
2248 '') as_dir=./ ;;
2249 */) ;;
2250 *) as_dir=$as_dir/ ;;
2251 esac
2252 as_found=:
2253
2254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2255 ac_aux_dir_found=yes
2256 ac_install_sh=
2257 for ac_aux in $ac_aux_files
2258 do
2259 # As a special case, if "install-sh" is required, that requirement
2260 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2261 # and $ac_install_sh is set appropriately for whichever one is found.
2262 if test x"$ac_aux" = x"install-sh"
2263 then
2264 if test -f "${as_dir}install-sh"; then
2265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2266 ac_install_sh="${as_dir}install-sh -c"
2267 elif test -f "${as_dir}install.sh"; then
2268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2269 ac_install_sh="${as_dir}install.sh -c"
2270 elif test -f "${as_dir}shtool"; then
2271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2272 ac_install_sh="${as_dir}shtool install -c"
2273 else
2274 ac_aux_dir_found=no
2275 if $ac_first_candidate; then
2276 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2277 else
2278 break
2279 fi
2280 fi
2281 else
2282 if test -f "${as_dir}${ac_aux}"; then
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2284 else
2285 ac_aux_dir_found=no
2286 if $ac_first_candidate; then
2287 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2288 else
2289 break
2290 fi
2291 fi
2292 fi
2293 done
2294 if test "$ac_aux_dir_found" = yes; then
2295 ac_aux_dir="$as_dir"
2296 break
2297 fi
2298 ac_first_candidate=false
2299
2300 as_found=false
2301 done
2302 IFS=$as_save_IFS
2303 if $as_found
2304 then :
2305
2306 else case e in #(
2307 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2308 esac
2309 fi
2310
2311
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 if test -f "${ac_aux_dir}config.guess"; then
2317 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2318 fi
2319 if test -f "${ac_aux_dir}config.sub"; then
2320 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2321 fi
2322 if test -f "$ac_aux_dir/configure"; then
2323 ac_configure="$SHELL ${ac_aux_dir}configure"
2324 fi
2325
2326 # Check that the precious variables saved in the cache have kept the same
2327 # value.
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331 eval ac_new_set=\$ac_env_${ac_var}_set
2332 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333 eval ac_new_val=\$ac_env_${ac_var}_value
2334 case $ac_old_set,$ac_new_set in
2335 set,)
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2337 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2339 ,set)
2340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2341 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2343 ,);;
2344 *)
2345 if test "x$ac_old_val" != "x$ac_new_val"; then
2346 # differences in whitespace do not lead to failure.
2347 ac_old_val_w=`echo x $ac_old_val`
2348 ac_new_val_w=`echo x $ac_new_val`
2349 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2351 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2352 ac_cache_corrupted=:
2353 else
2354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2355 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2356 eval $ac_var=\$ac_old_val
2357 fi
2358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2359 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2361 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2362 fi;;
2363 esac
2364 # Pass precious variables to config.status.
2365 if test "$ac_new_set" = set; then
2366 case $ac_new_val in
2367 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 *) ac_arg=$ac_var=$ac_new_val ;;
2369 esac
2370 case " $ac_configure_args " in
2371 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2373 esac
2374 fi
2375 done
2376 if $ac_cache_corrupted; then
2377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2378 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2381 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2382 and start over" "$LINENO" 5
2383 fi
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2387
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 printf %s "checking for $ac_word... " >&6; }
2415 if test ${ac_cv_prog_CC+y}
2416 then :
2417 printf %s "(cached) " >&6
2418 else case e in #(
2419 e) if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 case $as_dir in #(((
2427 '') as_dir=./ ;;
2428 */) ;;
2429 *) as_dir=$as_dir/ ;;
2430 esac
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi ;;
2442 esac
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 printf "%s\n" "$CC" >&6; }
2448 else
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 printf "%s\n" "no" >&6; }
2451 fi
2452
2453
2454 fi
2455 if test -z "$ac_cv_prog_CC"; then
2456 ac_ct_CC=$CC
2457 # Extract the first word of "gcc", so it can be a program name with args.
2458 set dummy gcc; ac_word=$2
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 printf %s "checking for $ac_word... " >&6; }
2461 if test ${ac_cv_prog_ac_ct_CC+y}
2462 then :
2463 printf %s "(cached) " >&6
2464 else case e in #(
2465 e) if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 case $as_dir in #(((
2473 '') as_dir=./ ;;
2474 */) ;;
2475 *) as_dir=$as_dir/ ;;
2476 esac
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi ;;
2488 esac
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493 printf "%s\n" "$ac_ct_CC" >&6; }
2494 else
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 printf "%s\n" "no" >&6; }
2497 fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506 ac_tool_warned=yes ;;
2507 esac
2508 CC=$ac_ct_CC
2509 fi
2510 else
2511 CC="$ac_cv_prog_CC"
2512 fi
2513
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}cc; ac_word=$2
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 printf %s "checking for $ac_word... " >&6; }
2520 if test ${ac_cv_prog_CC+y}
2521 then :
2522 printf %s "(cached) " >&6
2523 else case e in #(
2524 e) if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 case $as_dir in #(((
2532 '') as_dir=./ ;;
2533 */) ;;
2534 *) as_dir=$as_dir/ ;;
2535 esac
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_CC="${ac_tool_prefix}cc"
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi ;;
2547 esac
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 printf "%s\n" "$CC" >&6; }
2553 else
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 printf "%s\n" "no" >&6; }
2556 fi
2557
2558
2559 fi
2560 fi
2561 if test -z "$CC"; then
2562 # Extract the first word of "cc", so it can be a program name with args.
2563 set dummy cc; ac_word=$2
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 printf %s "checking for $ac_word... " >&6; }
2566 if test ${ac_cv_prog_CC+y}
2567 then :
2568 printf %s "(cached) " >&6
2569 else case e in #(
2570 e) if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 ac_prog_rejected=no
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 case $as_dir in #(((
2579 '') as_dir=./ ;;
2580 */) ;;
2581 *) as_dir=$as_dir/ ;;
2582 esac
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2585 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2587 continue
2588 fi
2589 ac_cv_prog_CC="cc"
2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2600 shift
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2605 shift
2606 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2607 fi
2608 fi
2609 fi ;;
2610 esac
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2615 printf "%s\n" "$CC" >&6; }
2616 else
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 printf "%s\n" "no" >&6; }
2619 fi
2620
2621
2622 fi
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 for ac_prog in cl.exe
2626 do
2627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 printf %s "checking for $ac_word... " >&6; }
2631 if test ${ac_cv_prog_CC+y}
2632 then :
2633 printf %s "(cached) " >&6
2634 else case e in #(
2635 e) if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 case $as_dir in #(((
2643 '') as_dir=./ ;;
2644 */) ;;
2645 *) as_dir=$as_dir/ ;;
2646 esac
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi ;;
2658 esac
2659 fi
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 printf "%s\n" "$CC" >&6; }
2664 else
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 printf "%s\n" "no" >&6; }
2667 fi
2668
2669
2670 test -n "$CC" && break
2671 done
2672 fi
2673 if test -z "$CC"; then
2674 ac_ct_CC=$CC
2675 for ac_prog in cl.exe
2676 do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 printf %s "checking for $ac_word... " >&6; }
2681 if test ${ac_cv_prog_ac_ct_CC+y}
2682 then :
2683 printf %s "(cached) " >&6
2684 else case e in #(
2685 e) if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 case $as_dir in #(((
2693 '') as_dir=./ ;;
2694 */) ;;
2695 *) as_dir=$as_dir/ ;;
2696 esac
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi ;;
2708 esac
2709 fi
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713 printf "%s\n" "$ac_ct_CC" >&6; }
2714 else
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 printf "%s\n" "no" >&6; }
2717 fi
2718
2719
2720 test -n "$ac_ct_CC" && break
2721 done
2722
2723 if test "x$ac_ct_CC" = x; then
2724 CC=""
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727 yes:)
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732 CC=$ac_ct_CC
2733 fi
2734 fi
2735
2736 fi
2737 if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}clang; ac_word=$2
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 printf %s "checking for $ac_word... " >&6; }
2743 if test ${ac_cv_prog_CC+y}
2744 then :
2745 printf %s "(cached) " >&6
2746 else case e in #(
2747 e) if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 case $as_dir in #(((
2755 '') as_dir=./ ;;
2756 */) ;;
2757 *) as_dir=$as_dir/ ;;
2758 esac
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="${ac_tool_prefix}clang"
2762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi ;;
2770 esac
2771 fi
2772 CC=$ac_cv_prog_CC
2773 if test -n "$CC"; then
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 printf "%s\n" "$CC" >&6; }
2776 else
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 printf "%s\n" "no" >&6; }
2779 fi
2780
2781
2782 fi
2783 if test -z "$ac_cv_prog_CC"; then
2784 ac_ct_CC=$CC
2785 # Extract the first word of "clang", so it can be a program name with args.
2786 set dummy clang; ac_word=$2
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 printf %s "checking for $ac_word... " >&6; }
2789 if test ${ac_cv_prog_ac_ct_CC+y}
2790 then :
2791 printf %s "(cached) " >&6
2792 else case e in #(
2793 e) if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 case $as_dir in #(((
2801 '') as_dir=./ ;;
2802 */) ;;
2803 *) as_dir=$as_dir/ ;;
2804 esac
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_CC="clang"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi ;;
2816 esac
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821 printf "%s\n" "$ac_ct_CC" >&6; }
2822 else
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 printf "%s\n" "no" >&6; }
2825 fi
2826
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 CC=$ac_ct_CC
2837 fi
2838 else
2839 CC="$ac_cv_prog_CC"
2840 fi
2841
2842 fi
2843
2844
2845 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2846 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2847 as_fn_error $? "no acceptable C compiler found in \$PATH
2848 See 'config.log' for more details" "$LINENO" 5; }
2849
2850 # Provide some information about the compiler.
2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2852 set X $ac_compile
2853 ac_compiler=$2
2854 for ac_option in --version -v -V -qversion -version; do
2855 { { ac_try="$ac_compiler $ac_option >&5"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 printf "%s\n" "$ac_try_echo"; } >&5
2862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2863 ac_status=$?
2864 if test -s conftest.err; then
2865 sed '10a\
2866 ... rest of stderr output deleted ...
2867 10q' conftest.err >conftest.er1
2868 cat conftest.er1 >&5
2869 fi
2870 rm -f conftest.er1 conftest.err
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872 test $ac_status = 0; }
2873 done
2874
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877
2878 int
2879 main (void)
2880 {
2881
2882 ;
2883 return 0;
2884 }
2885 _ACEOF
2886 ac_clean_files_save=$ac_clean_files
2887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2888 # Try to create an executable without -o first, disregard a.out.
2889 # It will help us diagnose broken compilers, and finding out an intuition
2890 # of exeext.
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2892 printf %s "checking whether the C compiler works... " >&6; }
2893 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894
2895 # The possible output files:
2896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2897
2898 ac_rmfiles=
2899 for ac_file in $ac_files
2900 do
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2904 esac
2905 done
2906 rm -f $ac_rmfiles
2907
2908 if { { ac_try="$ac_link_default"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 printf "%s\n" "$ac_try_echo"; } >&5
2915 (eval "$ac_link_default") 2>&5
2916 ac_status=$?
2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }
2919 then :
2920 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2921 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2923 # so that the user can short-circuit this test for compilers unknown to
2924 # Autoconf.
2925 for ac_file in $ac_files ''
2926 do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2930 ;;
2931 [ab].out )
2932 # We found the default executable, but exeext='' is most
2933 # certainly right.
2934 break;;
2935 *.* )
2936 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2937 then :; else
2938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939 fi
2940 # We set ac_cv_exeext here because the later test for it is not
2941 # safe: cross compilers may not add the suffix if given an '-o'
2942 # argument, so we may need to know it at that point already.
2943 # Even if this section looks crufty: it has the advantage of
2944 # actually working.
2945 break;;
2946 * )
2947 break;;
2948 esac
2949 done
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2951
2952 else case e in #(
2953 e) ac_file='' ;;
2954 esac
2955 fi
2956 if test -z "$ac_file"
2957 then :
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2960 printf "%s\n" "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2964 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2965 as_fn_error 77 "C compiler cannot create executables
2966 See 'config.log' for more details" "$LINENO" 5; }
2967 else case e in #(
2968 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969 printf "%s\n" "yes" >&6; } ;;
2970 esac
2971 fi
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2973 printf %s "checking for C compiler default output file name... " >&6; }
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2975 printf "%s\n" "$ac_file" >&6; }
2976 ac_exeext=$ac_cv_exeext
2977
2978 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2979 ac_clean_files=$ac_clean_files_save
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2981 printf %s "checking for suffix of executables... " >&6; }
2982 if { { ac_try="$ac_link"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 printf "%s\n" "$ac_try_echo"; } >&5
2989 (eval "$ac_link") 2>&5
2990 ac_status=$?
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }
2993 then :
2994 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
2995 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
2996 # work properly (i.e., refer to 'conftest.exe'), while it won't with
2997 # 'rm'.
2998 for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 break;;
3004 * ) break;;
3005 esac
3006 done
3007 else case e in #(
3008 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3009 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3011 See 'config.log' for more details" "$LINENO" 5; } ;;
3012 esac
3013 fi
3014 rm -f conftest conftest$ac_cv_exeext
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3016 printf "%s\n" "$ac_cv_exeext" >&6; }
3017
3018 rm -f conftest.$ac_ext
3019 EXEEXT=$ac_cv_exeext
3020 ac_exeext=$EXEEXT
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023 #include <stdio.h>
3024 int
3025 main (void)
3026 {
3027 FILE *f = fopen ("conftest.out", "w");
3028 if (!f)
3029 return 1;
3030 return ferror (f) || fclose (f) != 0;
3031
3032 ;
3033 return 0;
3034 }
3035 _ACEOF
3036 ac_clean_files="$ac_clean_files conftest.out"
3037 # Check that the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3040 printf %s "checking whether we are cross compiling... " >&6; }
3041 if test "$cross_compiling" != yes; then
3042 { { ac_try="$ac_link"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 printf "%s\n" "$ac_try_echo"; } >&5
3049 (eval "$ac_link") 2>&5
3050 ac_status=$?
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 if { ac_try='./conftest$ac_cv_exeext'
3054 { { case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 printf "%s\n" "$ac_try_echo"; } >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; }; then
3064 cross_compiling=no
3065 else
3066 if test "$cross_compiling" = maybe; then
3067 cross_compiling=yes
3068 else
3069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3070 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3071 as_fn_error 77 "cannot run C compiled programs.
3072 If you meant to cross compile, use '--host'.
3073 See 'config.log' for more details" "$LINENO" 5; }
3074 fi
3075 fi
3076 fi
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078 printf "%s\n" "$cross_compiling" >&6; }
3079
3080 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3081 conftest.o conftest.obj conftest.out
3082 ac_clean_files=$ac_clean_files_save
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3084 printf %s "checking for suffix of object files... " >&6; }
3085 if test ${ac_cv_objext+y}
3086 then :
3087 printf %s "(cached) " >&6
3088 else case e in #(
3089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3091
3092 int
3093 main (void)
3094 {
3095
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 printf "%s\n" "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3112 then :
3113 for ac_file in conftest.o conftest.obj conftest.*; do
3114 test -f "$ac_file" || continue;
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3118 break;;
3119 esac
3120 done
3121 else case e in #(
3122 e) printf "%s\n" "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3127 as_fn_error $? "cannot compute suffix of object files: cannot compile
3128 See 'config.log' for more details" "$LINENO" 5; } ;;
3129 esac
3130 fi
3131 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3132 esac
3133 fi
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3135 printf "%s\n" "$ac_cv_objext" >&6; }
3136 OBJEXT=$ac_cv_objext
3137 ac_objext=$OBJEXT
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3139 printf %s "checking whether the compiler supports GNU C... " >&6; }
3140 if test ${ac_cv_c_compiler_gnu+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else case e in #(
3144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146
3147 int
3148 main (void)
3149 {
3150 #ifndef __GNUC__
3151 choke me
3152 #endif
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"
3159 then :
3160 ac_compiler_gnu=yes
3161 else case e in #(
3162 e) ac_compiler_gnu=no ;;
3163 esac
3164 fi
3165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 ;;
3168 esac
3169 fi
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3171 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173
3174 if test $ac_compiler_gnu = yes; then
3175 GCC=yes
3176 else
3177 GCC=
3178 fi
3179 ac_test_CFLAGS=${CFLAGS+y}
3180 ac_save_CFLAGS=$CFLAGS
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3182 printf %s "checking whether $CC accepts -g... " >&6; }
3183 if test ${ac_cv_prog_cc_g+y}
3184 then :
3185 printf %s "(cached) " >&6
3186 else case e in #(
3187 e) ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main (void)
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"
3203 then :
3204 ac_cv_prog_cc_g=yes
3205 else case e in #(
3206 e) CFLAGS=""
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main (void)
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 if ac_fn_c_try_compile "$LINENO"
3219 then :
3220
3221 else case e in #(
3222 e) ac_c_werror_flag=$ac_save_c_werror_flag
3223 CFLAGS="-g"
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226
3227 int
3228 main (void)
3229 {
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"
3236 then :
3237 ac_cv_prog_cc_g=yes
3238 fi
3239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3240 esac
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3243 esac
3244 fi
3245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3247 esac
3248 fi
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3251 if test $ac_test_CFLAGS; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
3256 else
3257 CFLAGS="-g"
3258 fi
3259 else
3260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
3262 else
3263 CFLAGS=
3264 fi
3265 fi
3266 ac_prog_cc_stdc=no
3267 if test x$ac_prog_cc_stdc = xno
3268 then :
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3270 printf %s "checking for $CC option to enable C11 features... " >&6; }
3271 if test ${ac_cv_prog_cc_c11+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else case e in #(
3275 e) ac_cv_prog_cc_c11=no
3276 ac_save_CC=$CC
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279 $ac_c_conftest_c11_program
3280 _ACEOF
3281 for ac_arg in '' -std=gnu11
3282 do
3283 CC="$ac_save_CC $ac_arg"
3284 if ac_fn_c_try_compile "$LINENO"
3285 then :
3286 ac_cv_prog_cc_c11=$ac_arg
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.beam
3289 test "x$ac_cv_prog_cc_c11" != "xno" && break
3290 done
3291 rm -f conftest.$ac_ext
3292 CC=$ac_save_CC ;;
3293 esac
3294 fi
3295
3296 if test "x$ac_cv_prog_cc_c11" = xno
3297 then :
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299 printf "%s\n" "unsupported" >&6; }
3300 else case e in #(
3301 e) if test "x$ac_cv_prog_cc_c11" = x
3302 then :
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304 printf "%s\n" "none needed" >&6; }
3305 else case e in #(
3306 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3307 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3308 CC="$CC $ac_cv_prog_cc_c11" ;;
3309 esac
3310 fi
3311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3312 ac_prog_cc_stdc=c11 ;;
3313 esac
3314 fi
3315 fi
3316 if test x$ac_prog_cc_stdc = xno
3317 then :
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3319 printf %s "checking for $CC option to enable C99 features... " >&6; }
3320 if test ${ac_cv_prog_cc_c99+y}
3321 then :
3322 printf %s "(cached) " >&6
3323 else case e in #(
3324 e) ac_cv_prog_cc_c99=no
3325 ac_save_CC=$CC
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328 $ac_c_conftest_c99_program
3329 _ACEOF
3330 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"
3334 then :
3335 ac_cv_prog_cc_c99=$ac_arg
3336 fi
3337 rm -f core conftest.err conftest.$ac_objext conftest.beam
3338 test "x$ac_cv_prog_cc_c99" != "xno" && break
3339 done
3340 rm -f conftest.$ac_ext
3341 CC=$ac_save_CC ;;
3342 esac
3343 fi
3344
3345 if test "x$ac_cv_prog_cc_c99" = xno
3346 then :
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3348 printf "%s\n" "unsupported" >&6; }
3349 else case e in #(
3350 e) if test "x$ac_cv_prog_cc_c99" = x
3351 then :
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3353 printf "%s\n" "none needed" >&6; }
3354 else case e in #(
3355 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3356 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3357 CC="$CC $ac_cv_prog_cc_c99" ;;
3358 esac
3359 fi
3360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3361 ac_prog_cc_stdc=c99 ;;
3362 esac
3363 fi
3364 fi
3365 if test x$ac_prog_cc_stdc = xno
3366 then :
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3368 printf %s "checking for $CC option to enable C89 features... " >&6; }
3369 if test ${ac_cv_prog_cc_c89+y}
3370 then :
3371 printf %s "(cached) " >&6
3372 else case e in #(
3373 e) ac_cv_prog_cc_c89=no
3374 ac_save_CC=$CC
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 $ac_c_conftest_c89_program
3378 _ACEOF
3379 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380 do
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"
3383 then :
3384 ac_cv_prog_cc_c89=$ac_arg
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.beam
3387 test "x$ac_cv_prog_cc_c89" != "xno" && break
3388 done
3389 rm -f conftest.$ac_ext
3390 CC=$ac_save_CC ;;
3391 esac
3392 fi
3393
3394 if test "x$ac_cv_prog_cc_c89" = xno
3395 then :
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3397 printf "%s\n" "unsupported" >&6; }
3398 else case e in #(
3399 e) if test "x$ac_cv_prog_cc_c89" = x
3400 then :
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3402 printf "%s\n" "none needed" >&6; }
3403 else case e in #(
3404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3405 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3406 CC="$CC $ac_cv_prog_cc_c89" ;;
3407 esac
3408 fi
3409 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3410 ac_prog_cc_stdc=c89 ;;
3411 esac
3412 fi
3413 fi
3414
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
3421
3422
3423 # Find a good install program. We prefer a C program (faster),
3424 # so one script is as good as another. But avoid the broken or
3425 # incompatible versions:
3426 # SysV /etc/install, /usr/sbin/install
3427 # SunOS /usr/etc/install
3428 # IRIX /sbin/install
3429 # AIX /bin/install
3430 # AmigaOS /C/install, which installs bootblocks on floppy discs
3431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3434 # OS/2's system install, which has a completely different semantic
3435 # ./install, which can be erroneously created by make from ./install.sh.
3436 # Reject install programs that cannot install multiple files.
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3438 printf %s "checking for a BSD-compatible install... " >&6; }
3439 if test -z "$INSTALL"; then
3440 if test ${ac_cv_path_install+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else case e in #(
3444 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 case $as_dir in #(((
3449 '') as_dir=./ ;;
3450 */) ;;
3451 *) as_dir=$as_dir/ ;;
3452 esac
3453 # Account for fact that we put trailing slashes in our PATH walk.
3454 case $as_dir in #((
3455 ./ | /[cC]/* | \
3456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3457 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3458 /usr/ucb/* ) ;;
3459 *)
3460 # OSF1 and SCO ODT 3.0 have their own names for install.
3461 # Don't use installbsd from OSF since it installs stuff as root
3462 # by default.
3463 for ac_prog in ginstall scoinst install; do
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3466 if test $ac_prog = install &&
3467 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3468 # AIX install. It has an incompatible calling convention.
3469 :
3470 elif test $ac_prog = install &&
3471 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3472 # program-specific install script used by HP pwplus--don't use.
3473 :
3474 else
3475 rm -rf conftest.one conftest.two conftest.dir
3476 echo one > conftest.one
3477 echo two > conftest.two
3478 mkdir conftest.dir
3479 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3480 test -s conftest.one && test -s conftest.two &&
3481 test -s conftest.dir/conftest.one &&
3482 test -s conftest.dir/conftest.two
3483 then
3484 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3485 break 3
3486 fi
3487 fi
3488 fi
3489 done
3490 done
3491 ;;
3492 esac
3493
3494 done
3495 IFS=$as_save_IFS
3496
3497 rm -rf conftest.one conftest.two conftest.dir
3498 ;;
3499 esac
3500 fi
3501 if test ${ac_cv_path_install+y}; then
3502 INSTALL=$ac_cv_path_install
3503 else
3504 # As a last resort, use the slow shell script. Don't cache a
3505 # value for INSTALL within a source directory, because that will
3506 # break other packages using the cache if that directory is
3507 # removed, or if the value is a relative name.
3508 INSTALL=$ac_install_sh
3509 fi
3510 fi
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3512 printf "%s\n" "$INSTALL" >&6; }
3513
3514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3515 # It thinks the first close brace ends the variable substitution.
3516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3517
3518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3519
3520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3521
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3528 printf %s "checking how to run the C preprocessor... " >&6; }
3529 # On Suns, sometimes $CPP names a directory.
3530 if test -n "$CPP" && test -d "$CPP"; then
3531 CPP=
3532 fi
3533 if test -z "$CPP"; then
3534 if test ${ac_cv_prog_CPP+y}
3535 then :
3536 printf %s "(cached) " >&6
3537 else case e in #(
3538 e) # Double quotes because $CC needs to be expanded
3539 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3540 do
3541 ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3543 do
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <limits.h>
3551 Syntax error
3552 _ACEOF
3553 if ac_fn_c_try_cpp "$LINENO"
3554 then :
3555
3556 else case e in #(
3557 e) # Broken: fails on valid input.
3558 continue ;;
3559 esac
3560 fi
3561 rm -f conftest.err conftest.i conftest.$ac_ext
3562
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567 #include <ac_nonexistent.h>
3568 _ACEOF
3569 if ac_fn_c_try_cpp "$LINENO"
3570 then :
3571 # Broken: success on invalid input.
3572 continue
3573 else case e in #(
3574 e) # Passes both tests.
3575 ac_preproc_ok=:
3576 break ;;
3577 esac
3578 fi
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581 done
3582 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok
3585 then :
3586 break
3587 fi
3588
3589 done
3590 ac_cv_prog_CPP=$CPP
3591 ;;
3592 esac
3593 fi
3594 CPP=$ac_cv_prog_CPP
3595 else
3596 ac_cv_prog_CPP=$CPP
3597 fi
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3599 printf "%s\n" "$CPP" >&6; }
3600 ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3602 do
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error" is here to catch this case.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <limits.h>
3610 Syntax error
3611 _ACEOF
3612 if ac_fn_c_try_cpp "$LINENO"
3613 then :
3614
3615 else case e in #(
3616 e) # Broken: fails on valid input.
3617 continue ;;
3618 esac
3619 fi
3620 rm -f conftest.err conftest.i conftest.$ac_ext
3621
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <ac_nonexistent.h>
3627 _ACEOF
3628 if ac_fn_c_try_cpp "$LINENO"
3629 then :
3630 # Broken: success on invalid input.
3631 continue
3632 else case e in #(
3633 e) # Passes both tests.
3634 ac_preproc_ok=:
3635 break ;;
3636 esac
3637 fi
3638 rm -f conftest.err conftest.i conftest.$ac_ext
3639
3640 done
3641 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.i conftest.err conftest.$ac_ext
3643 if $ac_preproc_ok
3644 then :
3645
3646 else case e in #(
3647 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3648 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3649 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3650 See 'config.log' for more details" "$LINENO" 5; } ;;
3651 esac
3652 fi
3653
3654 ac_ext=c
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660
3661 if test "$ac_prog_cc_stdc" != no; then
3662
3663 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
3664
3665
3666 printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h
3667
3668 fi
3669
3670 test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678 if test "x$CC" != xcc; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3680 printf %s "checking whether $CC and cc understand -c and -o together... " >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3683 printf %s "checking whether cc understands -c and -o together... " >&6; }
3684 fi
3685 set dummy $CC; ac_cc=`printf "%s\n" "$2" |
3686 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3687 if eval test \${ac_cv_prog_cc_${ac_cc}_c_o+y}
3688 then :
3689 printf %s "(cached) " >&6
3690 else case e in #(
3691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main (void)
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 # Make sure it works both with $CC and with simple cc.
3703 # We do the test twice because some compilers refuse to overwrite an
3704 # existing .o file with -o, though they will create one.
3705 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3706 rm -f conftest2.*
3707 if { { case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 printf "%s\n" "$ac_try_echo"; } >&5
3713 (eval "$ac_try") 2>&5
3714 ac_status=$?
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; } &&
3717 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 printf "%s\n" "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; };
3727 then
3728 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3729 if test "x$CC" != xcc; then
3730 # Test first that cc exists at all.
3731 if { ac_try='cc -c conftest.$ac_ext >&5'
3732 { { case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 printf "%s\n" "$ac_try_echo"; } >&5
3738 (eval "$ac_try") 2>&5
3739 ac_status=$?
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; }; then
3742 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3743 rm -f conftest2.*
3744 if { { case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 printf "%s\n" "$ac_try_echo"; } >&5
3750 (eval "$ac_try") 2>&5
3751 ac_status=$?
3752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; } &&
3754 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 printf "%s\n" "$ac_try_echo"; } >&5
3760 (eval "$ac_try") 2>&5
3761 ac_status=$?
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; };
3764 then
3765 # cc works too.
3766 :
3767 else
3768 # cc exists but doesn't like -o.
3769 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3770 fi
3771 fi
3772 fi
3773 else
3774 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3775 fi
3776 rm -rf core conftest*
3777 ;;
3778 esac
3779 fi
3780 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 printf "%s\n" "yes" >&6; }
3783 else
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 printf "%s\n" "no" >&6; }
3786
3787 printf "%s\n" "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3788
3789 fi
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796
3797
3798 # checking for ocamlc
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_OCAMLC+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) if test -n "$OCAMLC"; then
3809 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 case $as_dir in #(((
3816 '') as_dir=./ ;;
3817 */) ;;
3818 *) as_dir=$as_dir/ ;;
3819 esac
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_OCAMLC="${ac_tool_prefix}ocamlc"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 fi ;;
3831 esac
3832 fi
3833 OCAMLC=$ac_cv_prog_OCAMLC
3834 if test -n "$OCAMLC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
3836 printf "%s\n" "$OCAMLC" >&6; }
3837 else
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842
3843 fi
3844 if test -z "$ac_cv_prog_OCAMLC"; then
3845 ac_ct_OCAMLC=$OCAMLC
3846 # Extract the first word of "ocamlc", so it can be a program name with args.
3847 set dummy ocamlc; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_prog_ac_ct_OCAMLC+y}
3851 then :
3852 printf %s "(cached) " >&6
3853 else case e in #(
3854 e) if test -n "$ac_ct_OCAMLC"; then
3855 ac_cv_prog_ac_ct_OCAMLC="$ac_ct_OCAMLC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 case $as_dir in #(((
3862 '') as_dir=./ ;;
3863 */) ;;
3864 *) as_dir=$as_dir/ ;;
3865 esac
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_ac_ct_OCAMLC="ocamlc"
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872 done
3873 done
3874 IFS=$as_save_IFS
3875
3876 fi ;;
3877 esac
3878 fi
3879 ac_ct_OCAMLC=$ac_cv_prog_ac_ct_OCAMLC
3880 if test -n "$ac_ct_OCAMLC"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5
3882 printf "%s\n" "$ac_ct_OCAMLC" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 printf "%s\n" "no" >&6; }
3886 fi
3887
3888 if test "x$ac_ct_OCAMLC" = x; then
3889 OCAMLC="no"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897 OCAMLC=$ac_ct_OCAMLC
3898 fi
3899 else
3900 OCAMLC="$ac_cv_prog_OCAMLC"
3901 fi
3902
3903
3904 if test "$OCAMLC" != "no"; then
3905 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
3907 printf "%s\n" "OCaml version is $OCAMLVERSION" >&6; }
3908 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
3910 printf "%s\n" "OCaml library path is $OCAMLLIB" >&6; }
3911
3912
3913
3914
3915 # checking for ocamlopt
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 printf %s "checking for $ac_word... " >&6; }
3921 if test ${ac_cv_prog_OCAMLOPT+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else case e in #(
3925 e) if test -n "$OCAMLOPT"; then
3926 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 case $as_dir in #(((
3933 '') as_dir=./ ;;
3934 */) ;;
3935 *) as_dir=$as_dir/ ;;
3936 esac
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_OCAMLOPT="${ac_tool_prefix}ocamlopt"
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi ;;
3948 esac
3949 fi
3950 OCAMLOPT=$ac_cv_prog_OCAMLOPT
3951 if test -n "$OCAMLOPT"; then
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
3953 printf "%s\n" "$OCAMLOPT" >&6; }
3954 else
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 printf "%s\n" "no" >&6; }
3957 fi
3958
3959
3960 fi
3961 if test -z "$ac_cv_prog_OCAMLOPT"; then
3962 ac_ct_OCAMLOPT=$OCAMLOPT
3963 # Extract the first word of "ocamlopt", so it can be a program name with args.
3964 set dummy ocamlopt; ac_word=$2
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 printf %s "checking for $ac_word... " >&6; }
3967 if test ${ac_cv_prog_ac_ct_OCAMLOPT+y}
3968 then :
3969 printf %s "(cached) " >&6
3970 else case e in #(
3971 e) if test -n "$ac_ct_OCAMLOPT"; then
3972 ac_cv_prog_ac_ct_OCAMLOPT="$ac_ct_OCAMLOPT" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 case $as_dir in #(((
3979 '') as_dir=./ ;;
3980 */) ;;
3981 *) as_dir=$as_dir/ ;;
3982 esac
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_ac_ct_OCAMLOPT="ocamlopt"
3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989 done
3990 done
3991 IFS=$as_save_IFS
3992
3993 fi ;;
3994 esac
3995 fi
3996 ac_ct_OCAMLOPT=$ac_cv_prog_ac_ct_OCAMLOPT
3997 if test -n "$ac_ct_OCAMLOPT"; then
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5
3999 printf "%s\n" "$ac_ct_OCAMLOPT" >&6; }
4000 else
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 printf "%s\n" "no" >&6; }
4003 fi
4004
4005 if test "x$ac_ct_OCAMLOPT" = x; then
4006 OCAMLOPT="no"
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009 yes:)
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012 ac_tool_warned=yes ;;
4013 esac
4014 OCAMLOPT=$ac_ct_OCAMLOPT
4015 fi
4016 else
4017 OCAMLOPT="$ac_cv_prog_OCAMLOPT"
4018 fi
4019
4020 OCAMLBEST=byte
4021 if test "$OCAMLOPT" = "no"; then
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
4023 printf "%s\n" "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
4024 else
4025 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
4026 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
4028 printf "%s\n" "versions differs from ocamlc; ocamlopt discarded." >&6; }
4029 OCAMLOPT=no
4030 else
4031 OCAMLBEST=opt
4032 fi
4033 fi
4034
4035
4036
4037 # checking for ocamlc.opt
4038 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
4040 set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 printf %s "checking for $ac_word... " >&6; }
4043 if test ${ac_cv_prog_OCAMLCDOTOPT+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else case e in #(
4047 e) if test -n "$OCAMLCDOTOPT"; then
4048 ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 case $as_dir in #(((
4055 '') as_dir=./ ;;
4056 */) ;;
4057 *) as_dir=$as_dir/ ;;
4058 esac
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_OCAMLCDOTOPT="${ac_tool_prefix}ocamlc.opt"
4062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi ;;
4070 esac
4071 fi
4072 OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT
4073 if test -n "$OCAMLCDOTOPT"; then
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
4075 printf "%s\n" "$OCAMLCDOTOPT" >&6; }
4076 else
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$ac_cv_prog_OCAMLCDOTOPT"; then
4084 ac_ct_OCAMLCDOTOPT=$OCAMLCDOTOPT
4085 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
4086 set dummy ocamlc.opt; ac_word=$2
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 printf %s "checking for $ac_word... " >&6; }
4089 if test ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+y}
4090 then :
4091 printf %s "(cached) " >&6
4092 else case e in #(
4093 e) if test -n "$ac_ct_OCAMLCDOTOPT"; then
4094 ac_cv_prog_ac_ct_OCAMLCDOTOPT="$ac_ct_OCAMLCDOTOPT" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 case $as_dir in #(((
4101 '') as_dir=./ ;;
4102 */) ;;
4103 *) as_dir=$as_dir/ ;;
4104 esac
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_ac_ct_OCAMLCDOTOPT="ocamlc.opt"
4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi ;;
4116 esac
4117 fi
4118 ac_ct_OCAMLCDOTOPT=$ac_cv_prog_ac_ct_OCAMLCDOTOPT
4119 if test -n "$ac_ct_OCAMLCDOTOPT"; then
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5
4121 printf "%s\n" "$ac_ct_OCAMLCDOTOPT" >&6; }
4122 else
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 printf "%s\n" "no" >&6; }
4125 fi
4126
4127 if test "x$ac_ct_OCAMLCDOTOPT" = x; then
4128 OCAMLCDOTOPT="no"
4129 else
4130 case $cross_compiling:$ac_tool_warned in
4131 yes:)
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4134 ac_tool_warned=yes ;;
4135 esac
4136 OCAMLCDOTOPT=$ac_ct_OCAMLCDOTOPT
4137 fi
4138 else
4139 OCAMLCDOTOPT="$ac_cv_prog_OCAMLCDOTOPT"
4140 fi
4141
4142 if test "$OCAMLCDOTOPT" != "no"; then
4143 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
4144 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
4146 printf "%s\n" "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
4147 else
4148 OCAMLC=$OCAMLCDOTOPT
4149 fi
4150 fi
4151
4152 # checking for ocamlopt.opt
4153 if test "$OCAMLOPT" != "no" ; then
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 printf %s "checking for $ac_word... " >&6; }
4159 if test ${ac_cv_prog_OCAMLOPTDOTOPT+y}
4160 then :
4161 printf %s "(cached) " >&6
4162 else case e in #(
4163 e) if test -n "$OCAMLOPTDOTOPT"; then
4164 ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169 IFS=$as_save_IFS
4170 case $as_dir in #(((
4171 '') as_dir=./ ;;
4172 */) ;;
4173 *) as_dir=$as_dir/ ;;
4174 esac
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_OCAMLOPTDOTOPT="${ac_tool_prefix}ocamlopt.opt"
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181 done
4182 done
4183 IFS=$as_save_IFS
4184
4185 fi ;;
4186 esac
4187 fi
4188 OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT
4189 if test -n "$OCAMLOPTDOTOPT"; then
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
4191 printf "%s\n" "$OCAMLOPTDOTOPT" >&6; }
4192 else
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 printf "%s\n" "no" >&6; }
4195 fi
4196
4197
4198 fi
4199 if test -z "$ac_cv_prog_OCAMLOPTDOTOPT"; then
4200 ac_ct_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
4201 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
4202 set dummy ocamlopt.opt; ac_word=$2
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 printf %s "checking for $ac_word... " >&6; }
4205 if test ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+y}
4206 then :
4207 printf %s "(cached) " >&6
4208 else case e in #(
4209 e) if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
4210 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="$ac_ct_OCAMLOPTDOTOPT" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215 IFS=$as_save_IFS
4216 case $as_dir in #(((
4217 '') as_dir=./ ;;
4218 */) ;;
4219 *) as_dir=$as_dir/ ;;
4220 esac
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="ocamlopt.opt"
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231 fi ;;
4232 esac
4233 fi
4234 ac_ct_OCAMLOPTDOTOPT=$ac_cv_prog_ac_ct_OCAMLOPTDOTOPT
4235 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5
4237 printf "%s\n" "$ac_ct_OCAMLOPTDOTOPT" >&6; }
4238 else
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 printf "%s\n" "no" >&6; }
4241 fi
4242
4243 if test "x$ac_ct_OCAMLOPTDOTOPT" = x; then
4244 OCAMLOPTDOTOPT="no"
4245 else
4246 case $cross_compiling:$ac_tool_warned in
4247 yes:)
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned=yes ;;
4251 esac
4252 OCAMLOPTDOTOPT=$ac_ct_OCAMLOPTDOTOPT
4253 fi
4254 else
4255 OCAMLOPTDOTOPT="$ac_cv_prog_OCAMLOPTDOTOPT"
4256 fi
4257
4258 if test "$OCAMLOPTDOTOPT" != "no"; then
4259 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
4260 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
4262 printf "%s\n" "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
4263 else
4264 OCAMLOPT=$OCAMLOPTDOTOPT
4265 fi
4266 fi
4267 fi
4268
4269
4270 fi
4271
4272
4273
4274 # checking for ocamldep
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 printf %s "checking for $ac_word... " >&6; }
4280 if test ${ac_cv_prog_OCAMLDEP+y}
4281 then :
4282 printf %s "(cached) " >&6
4283 else case e in #(
4284 e) if test -n "$OCAMLDEP"; then
4285 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 case $as_dir in #(((
4292 '') as_dir=./ ;;
4293 */) ;;
4294 *) as_dir=$as_dir/ ;;
4295 esac
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_OCAMLDEP="${ac_tool_prefix}ocamldep"
4299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4300 break 2
4301 fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi ;;
4307 esac
4308 fi
4309 OCAMLDEP=$ac_cv_prog_OCAMLDEP
4310 if test -n "$OCAMLDEP"; then
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
4312 printf "%s\n" "$OCAMLDEP" >&6; }
4313 else
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 printf "%s\n" "no" >&6; }
4316 fi
4317
4318
4319 fi
4320 if test -z "$ac_cv_prog_OCAMLDEP"; then
4321 ac_ct_OCAMLDEP=$OCAMLDEP
4322 # Extract the first word of "ocamldep", so it can be a program name with args.
4323 set dummy ocamldep; ac_word=$2
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 printf %s "checking for $ac_word... " >&6; }
4326 if test ${ac_cv_prog_ac_ct_OCAMLDEP+y}
4327 then :
4328 printf %s "(cached) " >&6
4329 else case e in #(
4330 e) if test -n "$ac_ct_OCAMLDEP"; then
4331 ac_cv_prog_ac_ct_OCAMLDEP="$ac_ct_OCAMLDEP" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 case $as_dir in #(((
4338 '') as_dir=./ ;;
4339 */) ;;
4340 *) as_dir=$as_dir/ ;;
4341 esac
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_ac_ct_OCAMLDEP="ocamldep"
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 fi ;;
4353 esac
4354 fi
4355 ac_ct_OCAMLDEP=$ac_cv_prog_ac_ct_OCAMLDEP
4356 if test -n "$ac_ct_OCAMLDEP"; then
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5
4358 printf "%s\n" "$ac_ct_OCAMLDEP" >&6; }
4359 else
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 printf "%s\n" "no" >&6; }
4362 fi
4363
4364 if test "x$ac_ct_OCAMLDEP" = x; then
4365 OCAMLDEP="no"
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373 OCAMLDEP=$ac_ct_OCAMLDEP
4374 fi
4375 else
4376 OCAMLDEP="$ac_cv_prog_OCAMLDEP"
4377 fi
4378
4379
4380 # checking for ocamlmktop
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 printf %s "checking for $ac_word... " >&6; }
4386 if test ${ac_cv_prog_OCAMLMKTOP+y}
4387 then :
4388 printf %s "(cached) " >&6
4389 else case e in #(
4390 e) if test -n "$OCAMLMKTOP"; then
4391 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 case $as_dir in #(((
4398 '') as_dir=./ ;;
4399 */) ;;
4400 *) as_dir=$as_dir/ ;;
4401 esac
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_OCAMLMKTOP="${ac_tool_prefix}ocamlmktop"
4405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi ;;
4413 esac
4414 fi
4415 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
4416 if test -n "$OCAMLMKTOP"; then
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
4418 printf "%s\n" "$OCAMLMKTOP" >&6; }
4419 else
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 printf "%s\n" "no" >&6; }
4422 fi
4423
4424
4425 fi
4426 if test -z "$ac_cv_prog_OCAMLMKTOP"; then
4427 ac_ct_OCAMLMKTOP=$OCAMLMKTOP
4428 # Extract the first word of "ocamlmktop", so it can be a program name with args.
4429 set dummy ocamlmktop; ac_word=$2
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 printf %s "checking for $ac_word... " >&6; }
4432 if test ${ac_cv_prog_ac_ct_OCAMLMKTOP+y}
4433 then :
4434 printf %s "(cached) " >&6
4435 else case e in #(
4436 e) if test -n "$ac_ct_OCAMLMKTOP"; then
4437 ac_cv_prog_ac_ct_OCAMLMKTOP="$ac_ct_OCAMLMKTOP" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 case $as_dir in #(((
4444 '') as_dir=./ ;;
4445 */) ;;
4446 *) as_dir=$as_dir/ ;;
4447 esac
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_ac_ct_OCAMLMKTOP="ocamlmktop"
4451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi ;;
4459 esac
4460 fi
4461 ac_ct_OCAMLMKTOP=$ac_cv_prog_ac_ct_OCAMLMKTOP
4462 if test -n "$ac_ct_OCAMLMKTOP"; then
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5
4464 printf "%s\n" "$ac_ct_OCAMLMKTOP" >&6; }
4465 else
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 printf "%s\n" "no" >&6; }
4468 fi
4469
4470 if test "x$ac_ct_OCAMLMKTOP" = x; then
4471 OCAMLMKTOP="no"
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479 OCAMLMKTOP=$ac_ct_OCAMLMKTOP
4480 fi
4481 else
4482 OCAMLMKTOP="$ac_cv_prog_OCAMLMKTOP"
4483 fi
4484
4485
4486 # checking for ocamlmklib
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 printf %s "checking for $ac_word... " >&6; }
4492 if test ${ac_cv_prog_OCAMLMKLIB+y}
4493 then :
4494 printf %s "(cached) " >&6
4495 else case e in #(
4496 e) if test -n "$OCAMLMKLIB"; then
4497 ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502 IFS=$as_save_IFS
4503 case $as_dir in #(((
4504 '') as_dir=./ ;;
4505 */) ;;
4506 *) as_dir=$as_dir/ ;;
4507 esac
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_OCAMLMKLIB="${ac_tool_prefix}ocamlmklib"
4511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518 fi ;;
4519 esac
4520 fi
4521 OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB
4522 if test -n "$OCAMLMKLIB"; then
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
4524 printf "%s\n" "$OCAMLMKLIB" >&6; }
4525 else
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 printf "%s\n" "no" >&6; }
4528 fi
4529
4530
4531 fi
4532 if test -z "$ac_cv_prog_OCAMLMKLIB"; then
4533 ac_ct_OCAMLMKLIB=$OCAMLMKLIB
4534 # Extract the first word of "ocamlmklib", so it can be a program name with args.
4535 set dummy ocamlmklib; ac_word=$2
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 printf %s "checking for $ac_word... " >&6; }
4538 if test ${ac_cv_prog_ac_ct_OCAMLMKLIB+y}
4539 then :
4540 printf %s "(cached) " >&6
4541 else case e in #(
4542 e) if test -n "$ac_ct_OCAMLMKLIB"; then
4543 ac_cv_prog_ac_ct_OCAMLMKLIB="$ac_ct_OCAMLMKLIB" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 case $as_dir in #(((
4550 '') as_dir=./ ;;
4551 */) ;;
4552 *) as_dir=$as_dir/ ;;
4553 esac
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_ac_ct_OCAMLMKLIB="ocamlmklib"
4557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 fi ;;
4565 esac
4566 fi
4567 ac_ct_OCAMLMKLIB=$ac_cv_prog_ac_ct_OCAMLMKLIB
4568 if test -n "$ac_ct_OCAMLMKLIB"; then
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5
4570 printf "%s\n" "$ac_ct_OCAMLMKLIB" >&6; }
4571 else
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 printf "%s\n" "no" >&6; }
4574 fi
4575
4576 if test "x$ac_ct_OCAMLMKLIB" = x; then
4577 OCAMLMKLIB="no"
4578 else
4579 case $cross_compiling:$ac_tool_warned in
4580 yes:)
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585 OCAMLMKLIB=$ac_ct_OCAMLMKLIB
4586 fi
4587 else
4588 OCAMLMKLIB="$ac_cv_prog_OCAMLMKLIB"
4589 fi
4590
4591
4592 # checking for ocamldoc
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_prog_OCAMLDOC+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) if test -n "$OCAMLDOC"; then
4603 ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 case $as_dir in #(((
4610 '') as_dir=./ ;;
4611 */) ;;
4612 *) as_dir=$as_dir/ ;;
4613 esac
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_OCAMLDOC="${ac_tool_prefix}ocamldoc"
4617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi ;;
4625 esac
4626 fi
4627 OCAMLDOC=$ac_cv_prog_OCAMLDOC
4628 if test -n "$OCAMLDOC"; then
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
4630 printf "%s\n" "$OCAMLDOC" >&6; }
4631 else
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 printf "%s\n" "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_prog_OCAMLDOC"; then
4639 ac_ct_OCAMLDOC=$OCAMLDOC
4640 # Extract the first word of "ocamldoc", so it can be a program name with args.
4641 set dummy ocamldoc; ac_word=$2
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 printf %s "checking for $ac_word... " >&6; }
4644 if test ${ac_cv_prog_ac_ct_OCAMLDOC+y}
4645 then :
4646 printf %s "(cached) " >&6
4647 else case e in #(
4648 e) if test -n "$ac_ct_OCAMLDOC"; then
4649 ac_cv_prog_ac_ct_OCAMLDOC="$ac_ct_OCAMLDOC" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654 IFS=$as_save_IFS
4655 case $as_dir in #(((
4656 '') as_dir=./ ;;
4657 */) ;;
4658 *) as_dir=$as_dir/ ;;
4659 esac
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_OCAMLDOC="ocamldoc"
4663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi ;;
4671 esac
4672 fi
4673 ac_ct_OCAMLDOC=$ac_cv_prog_ac_ct_OCAMLDOC
4674 if test -n "$ac_ct_OCAMLDOC"; then
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5
4676 printf "%s\n" "$ac_ct_OCAMLDOC" >&6; }
4677 else
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 printf "%s\n" "no" >&6; }
4680 fi
4681
4682 if test "x$ac_ct_OCAMLDOC" = x; then
4683 OCAMLDOC="no"
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned=yes ;;
4690 esac
4691 OCAMLDOC=$ac_ct_OCAMLDOC
4692 fi
4693 else
4694 OCAMLDOC="$ac_cv_prog_OCAMLDOC"
4695 fi
4696
4697
4698 # checking for ocamlbuild
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 printf %s "checking for $ac_word... " >&6; }
4704 if test ${ac_cv_prog_OCAMLBUILD+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) if test -n "$OCAMLBUILD"; then
4709 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 case $as_dir in #(((
4716 '') as_dir=./ ;;
4717 */) ;;
4718 *) as_dir=$as_dir/ ;;
4719 esac
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_OCAMLBUILD="${ac_tool_prefix}ocamlbuild"
4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi ;;
4731 esac
4732 fi
4733 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
4734 if test -n "$OCAMLBUILD"; then
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
4736 printf "%s\n" "$OCAMLBUILD" >&6; }
4737 else
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 printf "%s\n" "no" >&6; }
4740 fi
4741
4742
4743 fi
4744 if test -z "$ac_cv_prog_OCAMLBUILD"; then
4745 ac_ct_OCAMLBUILD=$OCAMLBUILD
4746 # Extract the first word of "ocamlbuild", so it can be a program name with args.
4747 set dummy ocamlbuild; ac_word=$2
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 printf %s "checking for $ac_word... " >&6; }
4750 if test ${ac_cv_prog_ac_ct_OCAMLBUILD+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else case e in #(
4754 e) if test -n "$ac_ct_OCAMLBUILD"; then
4755 ac_cv_prog_ac_ct_OCAMLBUILD="$ac_ct_OCAMLBUILD" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 case $as_dir in #(((
4762 '') as_dir=./ ;;
4763 */) ;;
4764 *) as_dir=$as_dir/ ;;
4765 esac
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_OCAMLBUILD="ocamlbuild"
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi ;;
4777 esac
4778 fi
4779 ac_ct_OCAMLBUILD=$ac_cv_prog_ac_ct_OCAMLBUILD
4780 if test -n "$ac_ct_OCAMLBUILD"; then
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5
4782 printf "%s\n" "$ac_ct_OCAMLBUILD" >&6; }
4783 else
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 printf "%s\n" "no" >&6; }
4786 fi
4787
4788 if test "x$ac_ct_OCAMLBUILD" = x; then
4789 OCAMLBUILD="no"
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792 yes:)
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4796 esac
4797 OCAMLBUILD=$ac_ct_OCAMLBUILD
4798 fi
4799 else
4800 OCAMLBUILD="$ac_cv_prog_OCAMLBUILD"
4801 fi
4802
4803
4804
4805 # checking for ocamlfind
4806 if test -n "$ac_tool_prefix"; then
4807 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
4808 set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 printf %s "checking for $ac_word... " >&6; }
4811 if test ${ac_cv_prog_OCAMLFIND+y}
4812 then :
4813 printf %s "(cached) " >&6
4814 else case e in #(
4815 e) if test -n "$OCAMLFIND"; then
4816 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 case $as_dir in #(((
4823 '') as_dir=./ ;;
4824 */) ;;
4825 *) as_dir=$as_dir/ ;;
4826 esac
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_OCAMLFIND="${ac_tool_prefix}ocamlfind"
4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi ;;
4838 esac
4839 fi
4840 OCAMLFIND=$ac_cv_prog_OCAMLFIND
4841 if test -n "$OCAMLFIND"; then
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
4843 printf "%s\n" "$OCAMLFIND" >&6; }
4844 else
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 printf "%s\n" "no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_prog_OCAMLFIND"; then
4852 ac_ct_OCAMLFIND=$OCAMLFIND
4853 # Extract the first word of "ocamlfind", so it can be a program name with args.
4854 set dummy ocamlfind; ac_word=$2
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 printf %s "checking for $ac_word... " >&6; }
4857 if test ${ac_cv_prog_ac_ct_OCAMLFIND+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) if test -n "$ac_ct_OCAMLFIND"; then
4862 ac_cv_prog_ac_ct_OCAMLFIND="$ac_ct_OCAMLFIND" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 case $as_dir in #(((
4869 '') as_dir=./ ;;
4870 */) ;;
4871 *) as_dir=$as_dir/ ;;
4872 esac
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_ac_ct_OCAMLFIND="ocamlfind"
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi ;;
4884 esac
4885 fi
4886 ac_ct_OCAMLFIND=$ac_cv_prog_ac_ct_OCAMLFIND
4887 if test -n "$ac_ct_OCAMLFIND"; then
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLFIND" >&5
4889 printf "%s\n" "$ac_ct_OCAMLFIND" >&6; }
4890 else
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf "%s\n" "no" >&6; }
4893 fi
4894
4895 if test "x$ac_ct_OCAMLFIND" = x; then
4896 OCAMLFIND="no"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 OCAMLFIND=$ac_ct_OCAMLFIND
4905 fi
4906 else
4907 OCAMLFIND="$ac_cv_prog_OCAMLFIND"
4908 fi
4909
4910
4911
4912
4913 if test "x$OCAMLFIND" = "x"; then
4914 as_fn_error $? "You must have ocaml and findlib installed" "$LINENO" 5
4915 fi
4916
4917
4918
4919
4920
4921
4922
4923
4924 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 printf %s "checking for $ac_word... " >&6; }
4930 if test ${ac_cv_path_PKG_CONFIG+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else case e in #(
4934 e) case $PKG_CONFIG in
4935 [\\/]* | ?:[\\/]*)
4936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4937 ;;
4938 *)
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 case $as_dir in #(((
4944 '') as_dir=./ ;;
4945 */) ;;
4946 *) as_dir=$as_dir/ ;;
4947 esac
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4950 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 ;;
4959 esac ;;
4960 esac
4961 fi
4962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4963 if test -n "$PKG_CONFIG"; then
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4965 printf "%s\n" "$PKG_CONFIG" >&6; }
4966 else
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 printf "%s\n" "no" >&6; }
4969 fi
4970
4971
4972 fi
4973 if test -z "$ac_cv_path_PKG_CONFIG"; then
4974 ac_pt_PKG_CONFIG=$PKG_CONFIG
4975 # Extract the first word of "pkg-config", so it can be a program name with args.
4976 set dummy pkg-config; ac_word=$2
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 printf %s "checking for $ac_word... " >&6; }
4979 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else case e in #(
4983 e) case $ac_pt_PKG_CONFIG in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4986 ;;
4987 *)
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 case $as_dir in #(((
4993 '') as_dir=./ ;;
4994 */) ;;
4995 *) as_dir=$as_dir/ ;;
4996 esac
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 ;;
5008 esac ;;
5009 esac
5010 fi
5011 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5012 if test -n "$ac_pt_PKG_CONFIG"; then
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5014 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5015 else
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5018 fi
5019
5020 if test "x$ac_pt_PKG_CONFIG" = x; then
5021 PKG_CONFIG=""
5022 else
5023 case $cross_compiling:$ac_tool_warned in
5024 yes:)
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027 ac_tool_warned=yes ;;
5028 esac
5029 PKG_CONFIG=$ac_pt_PKG_CONFIG
5030 fi
5031 else
5032 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5033 fi
5034
5035 fi
5036 if test -n "$PKG_CONFIG"; then
5037 _pkg_min_version=0.9.0
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5039 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5040 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042 printf "%s\n" "yes" >&6; }
5043 else
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 printf "%s\n" "no" >&6; }
5046 PKG_CONFIG=""
5047 fi
5048 fi
5049 if test -z "$PKG_CONFIG"; then
5050 as_fn_error $? "pkg-config not found" "$LINENO" 5
5051 fi
5052
5053 pkg_failed=no
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
5055 printf %s "checking for libxml-2.0... " >&6; }
5056
5057 if test -n "$LIBXML2_CFLAGS"; then
5058 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
5059 elif test -n "$PKG_CONFIG"; then
5060 if test -n "$PKG_CONFIG" && \
5061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
5062 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
5063 ac_status=$?
5064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5065 test $ac_status = 0; }; then
5066 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
5067 test "x$?" != "x0" && pkg_failed=yes
5068 else
5069 pkg_failed=yes
5070 fi
5071 else
5072 pkg_failed=untried
5073 fi
5074 if test -n "$LIBXML2_LIBS"; then
5075 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
5076 elif test -n "$PKG_CONFIG"; then
5077 if test -n "$PKG_CONFIG" && \
5078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
5079 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
5080 ac_status=$?
5081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }; then
5083 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
5084 test "x$?" != "x0" && pkg_failed=yes
5085 else
5086 pkg_failed=yes
5087 fi
5088 else
5089 pkg_failed=untried
5090 fi
5091
5092
5093
5094 if test $pkg_failed = yes; then
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 printf "%s\n" "no" >&6; }
5097
5098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5099 _pkg_short_errors_supported=yes
5100 else
5101 _pkg_short_errors_supported=no
5102 fi
5103 if test $_pkg_short_errors_supported = yes; then
5104 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
5105 else
5106 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
5107 fi
5108 # Put the nasty error message in config.log where it belongs
5109 echo "$LIBXML2_PKG_ERRORS" >&5
5110
5111 as_fn_error $? "Package requirements (libxml-2.0) were not met:
5112
5113 $LIBXML2_PKG_ERRORS
5114
5115 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5116 installed software in a non-standard prefix.
5117
5118 Alternatively, you may set the environment variables LIBXML2_CFLAGS
5119 and LIBXML2_LIBS to avoid the need to call pkg-config.
5120 See the pkg-config man page for more details." "$LINENO" 5
5121 elif test $pkg_failed = untried; then
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 printf "%s\n" "no" >&6; }
5124 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5125 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5126 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5127 is in your PATH or set the PKG_CONFIG environment variable to the full
5128 path to pkg-config.
5129
5130 Alternatively, you may set the environment variables LIBXML2_CFLAGS
5131 and LIBXML2_LIBS to avoid the need to call pkg-config.
5132 See the pkg-config man page for more details.
5133
5134 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5135 See 'config.log' for more details" "$LINENO" 5; }
5136 else
5137 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
5138 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5140 printf "%s\n" "yes" >&6; }
5141
5142 fi
5143
5144
5145 pkg_failed=no
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for augeas >= 1.2.0" >&5
5147 printf %s "checking for augeas >= 1.2.0... " >&6; }
5148
5149 if test -n "$AUGEAS_CFLAGS"; then
5150 pkg_cv_AUGEAS_CFLAGS="$AUGEAS_CFLAGS"
5151 elif test -n "$PKG_CONFIG"; then
5152 if test -n "$PKG_CONFIG" && \
5153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"augeas >= 1.2.0\""; } >&5
5154 ($PKG_CONFIG --exists --print-errors "augeas >= 1.2.0") 2>&5
5155 ac_status=$?
5156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then
5158 pkg_cv_AUGEAS_CFLAGS=`$PKG_CONFIG --cflags "augeas >= 1.2.0" 2>/dev/null`
5159 test "x$?" != "x0" && pkg_failed=yes
5160 else
5161 pkg_failed=yes
5162 fi
5163 else
5164 pkg_failed=untried
5165 fi
5166 if test -n "$AUGEAS_LIBS"; then
5167 pkg_cv_AUGEAS_LIBS="$AUGEAS_LIBS"
5168 elif test -n "$PKG_CONFIG"; then
5169 if test -n "$PKG_CONFIG" && \
5170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"augeas >= 1.2.0\""; } >&5
5171 ($PKG_CONFIG --exists --print-errors "augeas >= 1.2.0") 2>&5
5172 ac_status=$?
5173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; then
5175 pkg_cv_AUGEAS_LIBS=`$PKG_CONFIG --libs "augeas >= 1.2.0" 2>/dev/null`
5176 test "x$?" != "x0" && pkg_failed=yes
5177 else
5178 pkg_failed=yes
5179 fi
5180 else
5181 pkg_failed=untried
5182 fi
5183
5184
5185
5186 if test $pkg_failed = yes; then
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 printf "%s\n" "no" >&6; }
5189
5190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5191 _pkg_short_errors_supported=yes
5192 else
5193 _pkg_short_errors_supported=no
5194 fi
5195 if test $_pkg_short_errors_supported = yes; then
5196 AUGEAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "augeas >= 1.2.0" 2>&1`
5197 else
5198 AUGEAS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "augeas >= 1.2.0" 2>&1`
5199 fi
5200 # Put the nasty error message in config.log where it belongs
5201 echo "$AUGEAS_PKG_ERRORS" >&5
5202
5203 as_fn_error $? "Package requirements (augeas >= 1.2.0) were not met:
5204
5205 $AUGEAS_PKG_ERRORS
5206
5207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5208 installed software in a non-standard prefix.
5209
5210 Alternatively, you may set the environment variables AUGEAS_CFLAGS
5211 and AUGEAS_LIBS to avoid the need to call pkg-config.
5212 See the pkg-config man page for more details." "$LINENO" 5
5213 elif test $pkg_failed = untried; then
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 printf "%s\n" "no" >&6; }
5216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5217 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5218 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5219 is in your PATH or set the PKG_CONFIG environment variable to the full
5220 path to pkg-config.
5221
5222 Alternatively, you may set the environment variables AUGEAS_CFLAGS
5223 and AUGEAS_LIBS to avoid the need to call pkg-config.
5224 See the pkg-config man page for more details.
5225
5226 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5227 See 'config.log' for more details" "$LINENO" 5; }
5228 else
5229 AUGEAS_CFLAGS=$pkg_cv_AUGEAS_CFLAGS
5230 AUGEAS_LIBS=$pkg_cv_AUGEAS_LIBS
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 printf "%s\n" "yes" >&6; }
5233
5234 fi
5235
5236 old_LIBS="$LIBS"
5237 LIBS="$AUGEAS_LIBS $LIBS"
5238
5239 ac_fn_c_check_func "$LINENO" "aug_source" "ac_cv_func_aug_source"
5240 if test "x$ac_cv_func_aug_source" = xyes
5241 then :
5242 printf "%s\n" "#define HAVE_AUG_SOURCE 1" >>confdefs.h
5243
5244 fi
5245
5246 LIBS="$old_LIBS"
5247
5248 ac_config_headers="$ac_config_headers config.h"
5249
5250 ac_config_files="$ac_config_files Makefile META"
5251
5252 cat >confcache <<\_ACEOF
5253 # This file is a shell script that caches the results of configure
5254 # tests run on this system so they can be shared between configure
5255 # scripts and configure runs, see configure's option --config-cache.
5256 # It is not useful on other systems. If it contains results you don't
5257 # want to keep, you may remove or edit it.
5258 #
5259 # config.status only pays attention to the cache file if you give it
5260 # the --recheck option to rerun configure.
5261 #
5262 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
5263 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
5264 # following values.
5265
5266 _ACEOF
5267
5268 # The following way of writing the cache mishandles newlines in values,
5269 # but we know of no workaround that is simple, portable, and efficient.
5270 # So, we kill variables containing newlines.
5271 # Ultrix sh set writes to stderr and can't be redirected directly,
5272 # and sets the high bit in the cache file unless we assign to the vars.
5273 (
5274 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5275 eval ac_val=\$$ac_var
5276 case $ac_val in #(
5277 *${as_nl}*)
5278 case $ac_var in #(
5279 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5280 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5281 esac
5282 case $ac_var in #(
5283 _ | IFS | as_nl) ;; #(
5284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5285 *) { eval $ac_var=; unset $ac_var;} ;;
5286 esac ;;
5287 esac
5288 done
5289
5290 (set) 2>&1 |
5291 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5292 *${as_nl}ac_space=\ *)
5293 # 'set' does not quote correctly, so add quotes: double-quote
5294 # substitution turns \\\\ into \\, and sed turns \\ into \.
5295 sed -n \
5296 "s/'/'\\\\''/g;
5297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5298 ;; #(
5299 *)
5300 # 'set' quotes correctly as required by POSIX, so do not add quotes.
5301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5302 ;;
5303 esac |
5304 sort
5305 ) |
5306 sed '
5307 /^ac_cv_env_/b end
5308 t clear
5309 :clear
5310 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5311 t end
5312 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5313 :end' >>confcache
5314 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5315 if test -w "$cache_file"; then
5316 if test "x$cache_file" != "x/dev/null"; then
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5318 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5319 if test ! -f "$cache_file" || test -h "$cache_file"; then
5320 cat confcache >"$cache_file"
5321 else
5322 case $cache_file in #(
5323 */* | ?:*)
5324 mv -f confcache "$cache_file"$$ &&
5325 mv -f "$cache_file"$$ "$cache_file" ;; #(
5326 *)
5327 mv -f confcache "$cache_file" ;;
5328 esac
5329 fi
5330 fi
5331 else
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5333 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5334 fi
5335 fi
5336 rm -f confcache
5337
5338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5339 # Let make expand exec_prefix.
5340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5341
5342 DEFS=-DHAVE_CONFIG_H
5343
5344 ac_libobjs=
5345 ac_ltlibobjs=
5346 U=
5347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5348 # 1. Remove the extension, and $U if already installed.
5349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5350 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5352 # will be set to the directory where LIBOBJS objects are built.
5353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5355 done
5356 LIBOBJS=$ac_libobjs
5357
5358 LTLIBOBJS=$ac_ltlibobjs
5359
5360
5361
5362 : "${CONFIG_STATUS=./config.status}"
5363 ac_write_fail=0
5364 ac_clean_files_save=$ac_clean_files
5365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5367 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5368 as_write_fail=0
5369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5370 #! $SHELL
5371 # Generated by $as_me.
5372 # Run this file to recreate the current configuration.
5373 # Compiler output produced by configure, useful for debugging
5374 # configure, is in config.log if it exists.
5375
5376 debug=false
5377 ac_cs_recheck=false
5378 ac_cs_silent=false
5379
5380 SHELL=\${CONFIG_SHELL-$SHELL}
5381 export SHELL
5382 _ASEOF
5383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5384 ## -------------------- ##
5385 ## M4sh Initialization. ##
5386 ## -------------------- ##
5387
5388 # Be more Bourne compatible
5389 DUALCASE=1; export DUALCASE # for MKS sh
5390 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5391 then :
5392 emulate sh
5393 NULLCMD=:
5394 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5395 # is contrary to our usage. Disable this feature.
5396 alias -g '${1+"$@"}'='"$@"'
5397 setopt NO_GLOB_SUBST
5398 else case e in #(
5399 e) case `(set -o) 2>/dev/null` in #(
5400 *posix*) :
5401 set -o posix ;; #(
5402 *) :
5403 ;;
5404 esac ;;
5405 esac
5406 fi
5407
5408
5409
5410 # Reset variables that may have inherited troublesome values from
5411 # the environment.
5412
5413 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5414 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5415 # side effect of setting IFS to empty, thus disabling word splitting.)
5416 # Quoting is to prevent editors from complaining about space-tab.
5417 as_nl='
5418 '
5419 export as_nl
5420 IFS=" "" $as_nl"
5421
5422 PS1='$ '
5423 PS2='> '
5424 PS4='+ '
5425
5426 # Ensure predictable behavior from utilities with locale-dependent output.
5427 LC_ALL=C
5428 export LC_ALL
5429 LANGUAGE=C
5430 export LANGUAGE
5431
5432 # We cannot yet rely on "unset" to work, but we need these variables
5433 # to be unset--not just set to an empty or harmless value--now, to
5434 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5435 # also avoids known problems related to "unset" and subshell syntax
5436 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5437 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5438 do eval test \${$as_var+y} \
5439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5440 done
5441
5442 # Ensure that fds 0, 1, and 2 are open.
5443 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5444 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5445 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5446
5447 # The user is always right.
5448 if ${PATH_SEPARATOR+false} :; then
5449 PATH_SEPARATOR=:
5450 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5451 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5452 PATH_SEPARATOR=';'
5453 }
5454 fi
5455
5456
5457 # Find who we are. Look in the path if we contain no directory separator.
5458 as_myself=
5459 case $0 in #((
5460 *[\\/]* ) as_myself=$0 ;;
5461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 case $as_dir in #(((
5466 '') as_dir=./ ;;
5467 */) ;;
5468 *) as_dir=$as_dir/ ;;
5469 esac
5470 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5471 done
5472 IFS=$as_save_IFS
5473
5474 ;;
5475 esac
5476 # We did not find ourselves, most probably we were run as 'sh COMMAND'
5477 # in which case we are not to be found in the path.
5478 if test "x$as_myself" = x; then
5479 as_myself=$0
5480 fi
5481 if test ! -f "$as_myself"; then
5482 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5483 exit 1
5484 fi
5485
5486
5487
5488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5489 # ----------------------------------------
5490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5492 # script with STATUS, using 1 if that was 0.
5493 as_fn_error ()
5494 {
5495 as_status=$1; test $as_status -eq 0 && as_status=1
5496 if test "$4"; then
5497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5499 fi
5500 printf "%s\n" "$as_me: error: $2" >&2
5501 as_fn_exit $as_status
5502 } # as_fn_error
5503
5504
5505 # as_fn_set_status STATUS
5506 # -----------------------
5507 # Set $? to STATUS, without forking.
5508 as_fn_set_status ()
5509 {
5510 return $1
5511 } # as_fn_set_status
5512
5513 # as_fn_exit STATUS
5514 # -----------------
5515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5516 as_fn_exit ()
5517 {
5518 set +e
5519 as_fn_set_status $1
5520 exit $1
5521 } # as_fn_exit
5522
5523 # as_fn_unset VAR
5524 # ---------------
5525 # Portably unset VAR.
5526 as_fn_unset ()
5527 {
5528 { eval $1=; unset $1;}
5529 }
5530 as_unset=as_fn_unset
5531
5532 # as_fn_append VAR VALUE
5533 # ----------------------
5534 # Append the text in VALUE to the end of the definition contained in VAR. Take
5535 # advantage of any shell optimizations that allow amortized linear growth over
5536 # repeated appends, instead of the typical quadratic growth present in naive
5537 # implementations.
5538 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5539 then :
5540 eval 'as_fn_append ()
5541 {
5542 eval $1+=\$2
5543 }'
5544 else case e in #(
5545 e) as_fn_append ()
5546 {
5547 eval $1=\$$1\$2
5548 } ;;
5549 esac
5550 fi # as_fn_append
5551
5552 # as_fn_arith ARG...
5553 # ------------------
5554 # Perform arithmetic evaluation on the ARGs, and store the result in the
5555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5556 # must be portable across $(()) and expr.
5557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5558 then :
5559 eval 'as_fn_arith ()
5560 {
5561 as_val=$(( $* ))
5562 }'
5563 else case e in #(
5564 e) as_fn_arith ()
5565 {
5566 as_val=`expr "$@" || test $? -eq 1`
5567 } ;;
5568 esac
5569 fi # as_fn_arith
5570
5571
5572 if expr a : '\(a\)' >/dev/null 2>&1 &&
5573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5574 as_expr=expr
5575 else
5576 as_expr=false
5577 fi
5578
5579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5580 as_basename=basename
5581 else
5582 as_basename=false
5583 fi
5584
5585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5586 as_dirname=dirname
5587 else
5588 as_dirname=false
5589 fi
5590
5591 as_me=`$as_basename -- "$0" ||
5592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5593 X"$0" : 'X\(//\)$' \| \
5594 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5595 printf "%s\n" X/"$0" |
5596 sed '/^.*\/\([^/][^/]*\)\/*$/{
5597 s//\1/
5598 q
5599 }
5600 /^X\/\(\/\/\)$/{
5601 s//\1/
5602 q
5603 }
5604 /^X\/\(\/\).*/{
5605 s//\1/
5606 q
5607 }
5608 s/.*/./; q'`
5609
5610 # Avoid depending upon Character Ranges.
5611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5614 as_cr_digits='0123456789'
5615 as_cr_alnum=$as_cr_Letters$as_cr_digits
5616
5617
5618 # Determine whether it's possible to make 'echo' print without a newline.
5619 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5620 # for compatibility with existing Makefiles.
5621 ECHO_C= ECHO_N= ECHO_T=
5622 case `echo -n x` in #(((((
5623 -n*)
5624 case `echo 'xy\c'` in
5625 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5626 xy) ECHO_C='\c';;
5627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5628 ECHO_T=' ';;
5629 esac;;
5630 *)
5631 ECHO_N='-n';;
5632 esac
5633
5634 # For backward compatibility with old third-party macros, we provide
5635 # the shell variables $as_echo and $as_echo_n. New code should use
5636 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5637 as_echo='printf %s\n'
5638 as_echo_n='printf %s'
5639
5640 rm -f conf$$ conf$$.exe conf$$.file
5641 if test -d conf$$.dir; then
5642 rm -f conf$$.dir/conf$$.file
5643 else
5644 rm -f conf$$.dir
5645 mkdir conf$$.dir 2>/dev/null
5646 fi
5647 if (echo >conf$$.file) 2>/dev/null; then
5648 if ln -s conf$$.file conf$$ 2>/dev/null; then
5649 as_ln_s='ln -s'
5650 # ... but there are two gotchas:
5651 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5652 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5653 # In both cases, we have to default to 'cp -pR'.
5654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5655 as_ln_s='cp -pR'
5656 elif ln conf$$.file conf$$ 2>/dev/null; then
5657 as_ln_s=ln
5658 else
5659 as_ln_s='cp -pR'
5660 fi
5661 else
5662 as_ln_s='cp -pR'
5663 fi
5664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5665 rmdir conf$$.dir 2>/dev/null
5666
5667
5668 # as_fn_mkdir_p
5669 # -------------
5670 # Create "$as_dir" as a directory, including parents if necessary.
5671 as_fn_mkdir_p ()
5672 {
5673
5674 case $as_dir in #(
5675 -*) as_dir=./$as_dir;;
5676 esac
5677 test -d "$as_dir" || eval $as_mkdir_p || {
5678 as_dirs=
5679 while :; do
5680 case $as_dir in #(
5681 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5682 *) as_qdir=$as_dir;;
5683 esac
5684 as_dirs="'$as_qdir' $as_dirs"
5685 as_dir=`$as_dirname -- "$as_dir" ||
5686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5687 X"$as_dir" : 'X\(//\)[^/]' \| \
5688 X"$as_dir" : 'X\(//\)$' \| \
5689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5690 printf "%s\n" X"$as_dir" |
5691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5692 s//\1/
5693 q
5694 }
5695 /^X\(\/\/\)[^/].*/{
5696 s//\1/
5697 q
5698 }
5699 /^X\(\/\/\)$/{
5700 s//\1/
5701 q
5702 }
5703 /^X\(\/\).*/{
5704 s//\1/
5705 q
5706 }
5707 s/.*/./; q'`
5708 test -d "$as_dir" && break
5709 done
5710 test -z "$as_dirs" || eval "mkdir $as_dirs"
5711 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5712
5713
5714 } # as_fn_mkdir_p
5715 if mkdir -p . 2>/dev/null; then
5716 as_mkdir_p='mkdir -p "$as_dir"'
5717 else
5718 test -d ./-p && rmdir ./-p
5719 as_mkdir_p=false
5720 fi
5721
5722
5723 # as_fn_executable_p FILE
5724 # -----------------------
5725 # Test if FILE is an executable regular file.
5726 as_fn_executable_p ()
5727 {
5728 test -f "$1" && test -x "$1"
5729 } # as_fn_executable_p
5730 as_test_x='test -x'
5731 as_executable_p=as_fn_executable_p
5732
5733 # Sed expression to map a string onto a valid CPP name.
5734 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5735 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5736
5737 # Sed expression to map a string onto a valid variable name.
5738 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5739 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5740
5741
5742 exec 6>&1
5743 ## ----------------------------------- ##
5744 ## Main body of $CONFIG_STATUS script. ##
5745 ## ----------------------------------- ##
5746 _ASEOF
5747 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5748
5749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5750 # Save the log message, to keep $0 and so on meaningful, and to
5751 # report actual input values of CONFIG_FILES etc. instead of their
5752 # values after options handling.
5753 ac_log="
5754 This file was extended by ocaml-augeas $as_me 0.7, which was
5755 generated by GNU Autoconf 2.72. Invocation command line was
5756
5757 CONFIG_FILES = $CONFIG_FILES
5758 CONFIG_HEADERS = $CONFIG_HEADERS
5759 CONFIG_LINKS = $CONFIG_LINKS
5760 CONFIG_COMMANDS = $CONFIG_COMMANDS
5761 $ $0 $@
5762
5763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5764 "
5765
5766 _ACEOF
5767
5768 case $ac_config_files in *"
5769 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5770 esac
5771
5772 case $ac_config_headers in *"
5773 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5774 esac
5775
5776
5777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5778 # Files that config.status was made for.
5779 config_files="$ac_config_files"
5780 config_headers="$ac_config_headers"
5781
5782 _ACEOF
5783
5784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5785 ac_cs_usage="\
5786 '$as_me' instantiates files and other configuration actions
5787 from templates according to the current configuration. Unless the files
5788 and actions are specified as TAGs, all are instantiated by default.
5789
5790 Usage: $0 [OPTION]... [TAG]...
5791
5792 -h, --help print this help, then exit
5793 -V, --version print version number and configuration settings, then exit
5794 --config print configuration, then exit
5795 -q, --quiet, --silent
5796 do not print progress messages
5797 -d, --debug don't remove temporary files
5798 --recheck update $as_me by reconfiguring in the same conditions
5799 --file=FILE[:TEMPLATE]
5800 instantiate the configuration file FILE
5801 --header=FILE[:TEMPLATE]
5802 instantiate the configuration header FILE
5803
5804 Configuration files:
5805 $config_files
5806
5807 Configuration headers:
5808 $config_headers
5809
5810 Report bugs to the package provider."
5811
5812 _ACEOF
5813 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5814 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5816 ac_cs_config='$ac_cs_config_escaped'
5817 ac_cs_version="\\
5818 ocaml-augeas config.status 0.7
5819 configured by $0, generated by GNU Autoconf 2.72,
5820 with options \\"\$ac_cs_config\\"
5821
5822 Copyright (C) 2023 Free Software Foundation, Inc.
5823 This config.status script is free software; the Free Software Foundation
5824 gives unlimited permission to copy, distribute and modify it."
5825
5826 ac_pwd='$ac_pwd'
5827 srcdir='$srcdir'
5828 INSTALL='$INSTALL'
5829 test -n "\$AWK" || AWK=awk
5830 _ACEOF
5831
5832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5833 # The default lists apply if the user does not specify any file.
5834 ac_need_defaults=:
5835 while test $# != 0
5836 do
5837 case $1 in
5838 --*=?*)
5839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5841 ac_shift=:
5842 ;;
5843 --*=)
5844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5845 ac_optarg=
5846 ac_shift=:
5847 ;;
5848 *)
5849 ac_option=$1
5850 ac_optarg=$2
5851 ac_shift=shift
5852 ;;
5853 esac
5854
5855 case $ac_option in
5856 # Handling of the options.
5857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5858 ac_cs_recheck=: ;;
5859 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5860 printf "%s\n" "$ac_cs_version"; exit ;;
5861 --config | --confi | --conf | --con | --co | --c )
5862 printf "%s\n" "$ac_cs_config"; exit ;;
5863 --debug | --debu | --deb | --de | --d | -d )
5864 debug=: ;;
5865 --file | --fil | --fi | --f )
5866 $ac_shift
5867 case $ac_optarg in
5868 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5869 '') as_fn_error $? "missing file argument" ;;
5870 esac
5871 as_fn_append CONFIG_FILES " '$ac_optarg'"
5872 ac_need_defaults=false;;
5873 --header | --heade | --head | --hea )
5874 $ac_shift
5875 case $ac_optarg in
5876 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5877 esac
5878 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5879 ac_need_defaults=false;;
5880 --he | --h)
5881 # Conflict between --help and --header
5882 as_fn_error $? "ambiguous option: '$1'
5883 Try '$0 --help' for more information.";;
5884 --help | --hel | -h )
5885 printf "%s\n" "$ac_cs_usage"; exit ;;
5886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5888 ac_cs_silent=: ;;
5889
5890 # This is an error.
5891 -*) as_fn_error $? "unrecognized option: '$1'
5892 Try '$0 --help' for more information." ;;
5893
5894 *) as_fn_append ac_config_targets " $1"
5895 ac_need_defaults=false ;;
5896
5897 esac
5898 shift
5899 done
5900
5901 ac_configure_extra_args=
5902
5903 if $ac_cs_silent; then
5904 exec 6>/dev/null
5905 ac_configure_extra_args="$ac_configure_extra_args --silent"
5906 fi
5907
5908 _ACEOF
5909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5910 if \$ac_cs_recheck; then
5911 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5912 shift
5913 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5914 CONFIG_SHELL='$SHELL'
5915 export CONFIG_SHELL
5916 exec "\$@"
5917 fi
5918
5919 _ACEOF
5920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5921 exec 5>>config.log
5922 {
5923 echo
5924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5925 ## Running $as_me. ##
5926 _ASBOX
5927 printf "%s\n" "$ac_log"
5928 } >&5
5929
5930 _ACEOF
5931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5932 _ACEOF
5933
5934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5935
5936 # Handling of arguments.
5937 for ac_config_target in $ac_config_targets
5938 do
5939 case $ac_config_target in
5940 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5942 "META") CONFIG_FILES="$CONFIG_FILES META" ;;
5943
5944 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5945 esac
5946 done
5947
5948
5949 # If the user did not use the arguments to specify the items to instantiate,
5950 # then the envvar interface is used. Set only those that are not.
5951 # We use the long form for the default assignment because of an extremely
5952 # bizarre bug on SunOS 4.1.3.
5953 if $ac_need_defaults; then
5954 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5955 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5956 fi
5957
5958 # Have a temporary directory for convenience. Make it in the build tree
5959 # simply because there is no reason against having it here, and in addition,
5960 # creating and moving files from /tmp can sometimes cause problems.
5961 # Hook for its removal unless debugging.
5962 # Note that there is a small window in which the directory will not be cleaned:
5963 # after its creation but before its name has been assigned to '$tmp'.
5964 $debug ||
5965 {
5966 tmp= ac_tmp=
5967 trap 'exit_status=$?
5968 : "${ac_tmp:=$tmp}"
5969 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5970 ' 0
5971 trap 'as_fn_exit 1' 1 2 13 15
5972 }
5973 # Create a (secure) tmp directory for tmp files.
5974
5975 {
5976 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5977 test -d "$tmp"
5978 } ||
5979 {
5980 tmp=./conf$$-$RANDOM
5981 (umask 077 && mkdir "$tmp")
5982 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5983 ac_tmp=$tmp
5984
5985 # Set up the scripts for CONFIG_FILES section.
5986 # No need to generate them if there are no CONFIG_FILES.
5987 # This happens for instance with './config.status config.h'.
5988 if test -n "$CONFIG_FILES"; then
5989
5990
5991 ac_cr=`echo X | tr X '\015'`
5992 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5993 # But we know of no other shell where ac_cr would be empty at this
5994 # point, so we can use a bashism as a fallback.
5995 if test "x$ac_cr" = x; then
5996 eval ac_cr=\$\'\\r\'
5997 fi
5998 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5999 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6000 ac_cs_awk_cr='\\r'
6001 else
6002 ac_cs_awk_cr=$ac_cr
6003 fi
6004
6005 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6006 _ACEOF
6007
6008
6009 {
6010 echo "cat >conf$$subs.awk <<_ACEOF" &&
6011 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6012 echo "_ACEOF"
6013 } >conf$$subs.sh ||
6014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6015 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6016 ac_delim='%!_!# '
6017 for ac_last_try in false false false false false :; do
6018 . ./conf$$subs.sh ||
6019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6020
6021 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6022 if test $ac_delim_n = $ac_delim_num; then
6023 break
6024 elif $ac_last_try; then
6025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6026 else
6027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6028 fi
6029 done
6030 rm -f conf$$subs.sh
6031
6032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6033 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6034 _ACEOF
6035 sed -n '
6036 h
6037 s/^/S["/; s/!.*/"]=/
6038 p
6039 g
6040 s/^[^!]*!//
6041 :repl
6042 t repl
6043 s/'"$ac_delim"'$//
6044 t delim
6045 :nl
6046 h
6047 s/\(.\{148\}\)..*/\1/
6048 t more1
6049 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6050 p
6051 n
6052 b repl
6053 :more1
6054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6055 p
6056 g
6057 s/.\{148\}//
6058 t nl
6059 :delim
6060 h
6061 s/\(.\{148\}\)..*/\1/
6062 t more2
6063 s/["\\]/\\&/g; s/^/"/; s/$/"/
6064 p
6065 b
6066 :more2
6067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6068 p
6069 g
6070 s/.\{148\}//
6071 t delim
6072 ' <conf$$subs.awk | sed '
6073 /^[^""]/{
6074 N
6075 s/\n//
6076 }
6077 ' >>$CONFIG_STATUS || ac_write_fail=1
6078 rm -f conf$$subs.awk
6079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6080 _ACAWK
6081 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6082 for (key in S) S_is_set[key] = 1
6083 FS = ""
6084
6085 }
6086 {
6087 line = $ 0
6088 nfields = split(line, field, "@")
6089 substed = 0
6090 len = length(field[1])
6091 for (i = 2; i < nfields; i++) {
6092 key = field[i]
6093 keylen = length(key)
6094 if (S_is_set[key]) {
6095 value = S[key]
6096 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6097 len += length(value) + length(field[++i])
6098 substed = 1
6099 } else
6100 len += 1 + keylen
6101 }
6102
6103 print line
6104 }
6105
6106 _ACAWK
6107 _ACEOF
6108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6110 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6111 else
6112 cat
6113 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6114 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6115 _ACEOF
6116
6117 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6118 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6119 # trailing colons and then remove the whole line if VPATH becomes empty
6120 # (actually we leave an empty line to preserve line numbers).
6121 if test "x$srcdir" = x.; then
6122 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6123 h
6124 s///
6125 s/^/:/
6126 s/[ ]*$/:/
6127 s/:\$(srcdir):/:/g
6128 s/:\${srcdir}:/:/g
6129 s/:@srcdir@:/:/g
6130 s/^:*//
6131 s/:*$//
6132 x
6133 s/\(=[ ]*\).*/\1/
6134 G
6135 s/\n//
6136 s/^[^=]*=[ ]*$//
6137 }'
6138 fi
6139
6140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6141 fi # test -n "$CONFIG_FILES"
6142
6143 # Set up the scripts for CONFIG_HEADERS section.
6144 # No need to generate them if there are no CONFIG_HEADERS.
6145 # This happens for instance with './config.status Makefile'.
6146 if test -n "$CONFIG_HEADERS"; then
6147 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6148 BEGIN {
6149 _ACEOF
6150
6151 # Transform confdefs.h into an awk script 'defines.awk', embedded as
6152 # here-document in config.status, that substitutes the proper values into
6153 # config.h.in to produce config.h.
6154
6155 # Create a delimiter string that does not exist in confdefs.h, to ease
6156 # handling of long lines.
6157 ac_delim='%!_!# '
6158 for ac_last_try in false false :; do
6159 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6160 if test -z "$ac_tt"; then
6161 break
6162 elif $ac_last_try; then
6163 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6164 else
6165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6166 fi
6167 done
6168
6169 # For the awk script, D is an array of macro values keyed by name,
6170 # likewise P contains macro parameters if any. Preserve backslash
6171 # newline sequences.
6172
6173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6174 sed -n '
6175 s/.\{148\}/&'"$ac_delim"'/g
6176 t rset
6177 :rset
6178 s/^[ ]*#[ ]*define[ ][ ]*/ /
6179 t def
6180 d
6181 :def
6182 s/\\$//
6183 t bsnl
6184 s/["\\]/\\&/g
6185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6186 D["\1"]=" \3"/p
6187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6188 d
6189 :bsnl
6190 s/["\\]/\\&/g
6191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6192 D["\1"]=" \3\\\\\\n"\\/p
6193 t cont
6194 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6195 t cont
6196 d
6197 :cont
6198 n
6199 s/.\{148\}/&'"$ac_delim"'/g
6200 t clear
6201 :clear
6202 s/\\$//
6203 t bsnlc
6204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6205 d
6206 :bsnlc
6207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6208 b cont
6209 ' <confdefs.h | sed '
6210 s/'"$ac_delim"'/"\\\
6211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6212
6213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6214 for (key in D) D_is_set[key] = 1
6215 FS = ""
6216 }
6217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6218 line = \$ 0
6219 split(line, arg, " ")
6220 if (arg[1] == "#") {
6221 defundef = arg[2]
6222 mac1 = arg[3]
6223 } else {
6224 defundef = substr(arg[1], 2)
6225 mac1 = arg[2]
6226 }
6227 split(mac1, mac2, "(") #)
6228 macro = mac2[1]
6229 prefix = substr(line, 1, index(line, defundef) - 1)
6230 if (D_is_set[macro]) {
6231 # Preserve the white space surrounding the "#".
6232 print prefix "define", macro P[macro] D[macro]
6233 next
6234 } else {
6235 # Replace #undef with comments. This is necessary, for example,
6236 # in the case of _POSIX_SOURCE, which is predefined and required
6237 # on some systems where configure will not decide to define it.
6238 if (defundef == "undef") {
6239 print "/*", prefix defundef, macro, "*/"
6240 next
6241 }
6242 }
6243 }
6244 { print }
6245 _ACAWK
6246 _ACEOF
6247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6248 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6249 fi # test -n "$CONFIG_HEADERS"
6250
6251
6252 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6253 shift
6254 for ac_tag
6255 do
6256 case $ac_tag in
6257 :[FHLC]) ac_mode=$ac_tag; continue;;
6258 esac
6259 case $ac_mode$ac_tag in
6260 :[FHL]*:*);;
6261 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
6262 :[FH]-) ac_tag=-:-;;
6263 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6264 esac
6265 ac_save_IFS=$IFS
6266 IFS=:
6267 set x $ac_tag
6268 IFS=$ac_save_IFS
6269 shift
6270 ac_file=$1
6271 shift
6272
6273 case $ac_mode in
6274 :L) ac_source=$1;;
6275 :[FH])
6276 ac_file_inputs=
6277 for ac_f
6278 do
6279 case $ac_f in
6280 -) ac_f="$ac_tmp/stdin";;
6281 *) # Look for the file first in the build tree, then in the source tree
6282 # (if the path is not absolute). The absolute path cannot be DOS-style,
6283 # because $ac_f cannot contain ':'.
6284 test -f "$ac_f" ||
6285 case $ac_f in
6286 [\\/$]*) false;;
6287 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6288 esac ||
6289 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
6290 esac
6291 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6292 as_fn_append ac_file_inputs " '$ac_f'"
6293 done
6294
6295 # Let's still pretend it is 'configure' which instantiates (i.e., don't
6296 # use $as_me), people would be surprised to read:
6297 # /* config.h. Generated by config.status. */
6298 configure_input='Generated from '`
6299 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6300 `' by configure.'
6301 if test x"$ac_file" != x-; then
6302 configure_input="$ac_file. $configure_input"
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6304 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6305 fi
6306 # Neutralize special characters interpreted by sed in replacement strings.
6307 case $configure_input in #(
6308 *\&* | *\|* | *\\* )
6309 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6310 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6311 *) ac_sed_conf_input=$configure_input;;
6312 esac
6313
6314 case $ac_tag in
6315 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6317 esac
6318 ;;
6319 esac
6320
6321 ac_dir=`$as_dirname -- "$ac_file" ||
6322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6323 X"$ac_file" : 'X\(//\)[^/]' \| \
6324 X"$ac_file" : 'X\(//\)$' \| \
6325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6326 printf "%s\n" X"$ac_file" |
6327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6328 s//\1/
6329 q
6330 }
6331 /^X\(\/\/\)[^/].*/{
6332 s//\1/
6333 q
6334 }
6335 /^X\(\/\/\)$/{
6336 s//\1/
6337 q
6338 }
6339 /^X\(\/\).*/{
6340 s//\1/
6341 q
6342 }
6343 s/.*/./; q'`
6344 as_dir="$ac_dir"; as_fn_mkdir_p
6345 ac_builddir=.
6346
6347 case "$ac_dir" in
6348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6349 *)
6350 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6351 # A ".." for each directory in $ac_dir_suffix.
6352 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6353 case $ac_top_builddir_sub in
6354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6356 esac ;;
6357 esac
6358 ac_abs_top_builddir=$ac_pwd
6359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6360 # for backward compatibility:
6361 ac_top_builddir=$ac_top_build_prefix
6362
6363 case $srcdir in
6364 .) # We are building in place.
6365 ac_srcdir=.
6366 ac_top_srcdir=$ac_top_builddir_sub
6367 ac_abs_top_srcdir=$ac_pwd ;;
6368 [\\/]* | ?:[\\/]* ) # Absolute name.
6369 ac_srcdir=$srcdir$ac_dir_suffix;
6370 ac_top_srcdir=$srcdir
6371 ac_abs_top_srcdir=$srcdir ;;
6372 *) # Relative name.
6373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6374 ac_top_srcdir=$ac_top_build_prefix$srcdir
6375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6376 esac
6377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6378
6379
6380 case $ac_mode in
6381 :F)
6382 #
6383 # CONFIG_FILE
6384 #
6385
6386 case $INSTALL in
6387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6388 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6389 esac
6390 _ACEOF
6391
6392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6393 # If the template does not know about datarootdir, expand it.
6394 # FIXME: This hack should be removed a few years after 2.60.
6395 ac_datarootdir_hack=; ac_datarootdir_seen=
6396 ac_sed_dataroot='
6397 /datarootdir/ {
6398 p
6399 q
6400 }
6401 /@datadir@/p
6402 /@docdir@/p
6403 /@infodir@/p
6404 /@localedir@/p
6405 /@mandir@/p'
6406 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6407 *datarootdir*) ac_datarootdir_seen=yes;;
6408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6410 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6411 _ACEOF
6412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6413 ac_datarootdir_hack='
6414 s&@datadir@&$datadir&g
6415 s&@docdir@&$docdir&g
6416 s&@infodir@&$infodir&g
6417 s&@localedir@&$localedir&g
6418 s&@mandir@&$mandir&g
6419 s&\\\${datarootdir}&$datarootdir&g' ;;
6420 esac
6421 _ACEOF
6422
6423 # Neutralize VPATH when '$srcdir' = '.'.
6424 # Shell code in configure.ac might set extrasub.
6425 # FIXME: do we really want to maintain this feature?
6426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6427 ac_sed_extra="$ac_vpsub
6428 $extrasub
6429 _ACEOF
6430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6431 :t
6432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6433 s|@configure_input@|$ac_sed_conf_input|;t t
6434 s&@top_builddir@&$ac_top_builddir_sub&;t t
6435 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6436 s&@srcdir@&$ac_srcdir&;t t
6437 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6438 s&@top_srcdir@&$ac_top_srcdir&;t t
6439 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6440 s&@builddir@&$ac_builddir&;t t
6441 s&@abs_builddir@&$ac_abs_builddir&;t t
6442 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6443 s&@INSTALL@&$ac_INSTALL&;t t
6444 $ac_datarootdir_hack
6445 "
6446 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6447 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6448
6449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6450 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6452 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6454 which seems to be undefined. Please make sure it is defined" >&5
6455 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6456 which seems to be undefined. Please make sure it is defined" >&2;}
6457
6458 rm -f "$ac_tmp/stdin"
6459 case $ac_file in
6460 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6461 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6462 esac \
6463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6464 ;;
6465 :H)
6466 #
6467 # CONFIG_HEADER
6468 #
6469 if test x"$ac_file" != x-; then
6470 {
6471 printf "%s\n" "/* $configure_input */" >&1 \
6472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6473 } >"$ac_tmp/config.h" \
6474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6475 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6477 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6478 else
6479 rm -f "$ac_file"
6480 mv "$ac_tmp/config.h" "$ac_file" \
6481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6482 fi
6483 else
6484 printf "%s\n" "/* $configure_input */" >&1 \
6485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6486 || as_fn_error $? "could not create -" "$LINENO" 5
6487 fi
6488 ;;
6489
6490
6491 esac
6492
6493 done # for ac_tag
6494
6495
6496 as_fn_exit 0
6497 _ACEOF
6498 ac_clean_files=$ac_clean_files_save
6499
6500 test $ac_write_fail = 0 ||
6501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6502
6503
6504 # configure is writing to config.log, and then calls config.status.
6505 # config.status does its own redirection, appending to config.log.
6506 # Unfortunately, on DOS this fails, as config.log is still kept open
6507 # by configure, so config.status won't be able to write to it; its
6508 # output is simply discarded. So we exec the FD to /dev/null,
6509 # effectively closing config.log, so it can be properly (re)opened and
6510 # appended to by config.status. When coming back to configure, we
6511 # need to make the FD available again.
6512 if test "$no_create" != yes; then
6513 ac_cs_success=:
6514 ac_config_status_args=
6515 test "$silent" = yes &&
6516 ac_config_status_args="$ac_config_status_args --quiet"
6517 exec 5>/dev/null
6518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6519 exec 5>>config.log
6520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6521 # would make configure fail if this is the last instruction.
6522 $ac_cs_success || as_fn_exit 1
6523 fi
6524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6526 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6527 fi
6528
6529