2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for LFSbookja git.
5 # Report bugs to <matsuand AT users DOT osdn DOT me>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
204 *) as_dir=$as_dir/ ;;
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
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
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 *v*x* | *x*v* ) as_opts=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x$as_have_required = xno
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and matsuand AT users
270 $0: DOT osdn DOT me about your system, including any error
271 $0: possibly output before this message. Then install a
272 $0: modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Do nothing but, unlike ":", preserve the value of $?.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 eval 'as_fn_append ()
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 as_val=`expr "$@" || test $? -eq 1`
418 # Do nothing but, unlike ":", preserve the value of $?.
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
432 as_status=$1; test $as_status -eq 0 && as_status=1
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
518 # Exit status is that of the last command.
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
551 mkdir conf$$.dir 2>/dev/null
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 elif ln conf$$.file conf$$ 2>/dev/null; then
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
576 test -d ./-p && rmdir ./-p
581 as_executable_p=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" || exec 7<&0 </dev/null
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601 ac_default_prefix=/usr/local
603 ac_config_libobj_dir=.
610 # Identity of this package.
611 PACKAGE_NAME='LFSbookja'
612 PACKAGE_TARNAME='lfsbookja'
613 PACKAGE_VERSION='git'
614 PACKAGE_STRING='LFSbookja git'
615 PACKAGE_BUGREPORT='matsuand AT users DOT osdn DOT me'
618 ac_subst_vars='am__EXEEXT_FALSE
662 MAINTAINER_MODE_FALSE
679 INSTALL_STRIP_PROGRAM
722 program_transform_name
736 enable_option_checking
738 enable_maintainer_mode
740 enable_dependency_tracking
744 ac_precious_vars='build_alias
754 # Initialize some variables set by options.
756 ac_init_version=false
757 ac_unrecognized_opts=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name=s,x,x,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 runstatedir='${localstatedir}/run'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 case $ac_dashdash$ac_option in
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: \`$ac_useropt'"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: \`$ac_useropt'"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
911 -help | --help | --hel | --he | -h)
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 # Obsolete; use --without-fp.
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1041 -runstatedir | --runstatedir | --runstatedi | --runstated \
1042 | --runstate | --runstat | --runsta | --runst | --runs \
1043 | --run | --ru | --r)
1044 ac_prev=runstatedir ;;
1045 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1046 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1047 | --run=* | --ru=* | --r=*)
1048 runstatedir=$ac_optarg ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: \`$ac_useropt'"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: \`$ac_useropt'"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=no ;;
1128 # Obsolete; use --with-x.
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir runstatedir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1196 # Be sure to have absolute directory names.
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error $? "pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 printf "%s\n" X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures LFSbookja git to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking ...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/lfsbookja]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of LFSbookja git:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-silent-rules less verbose build output (undo: "make V=1")
1376 --disable-silent-rules verbose build output (undo: "make V=0")
1377 --enable-maintainer-mode
1378 enable make rules and dependencies not useful (and
1379 sometimes confusing) to the casual installer
1380 --enable-dependency-tracking
1381 do not reject slow dependency extractors
1382 --disable-dependency-tracking
1383 speeds up one-time build
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-bookdir=DIR Specify BOOK sources directory [DIR=../BOOK]
1389 --with-rev=REV Specify BOOK revision [REV=sysv]
1390 --with-takaogfontdir=DIR
1391 Path to directory for TakaoFont files
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to <matsuand AT users DOT osdn DOT me>.
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for configure.gnu first; this name is used for a wrapper for
1452 # Metaconfig's "Configure" on case-insensitive file systems.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1469 LFSbookja configure git
1470 generated by GNU Autoconf 2.71
1472 Copyright (C) 2021 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext conftest.beam
1490 if { { ac_try="$ac_compile"
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 printf "%s\n" "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext
1512 printf "%s\n" "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1520 } # ac_fn_c_try_compile
1521 ac_configure_args_raw=
1526 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 as_fn_append ac_configure_args_raw " '$ac_arg'"
1531 case $ac_configure_args_raw in
1535 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1536 ac_unsafe_a="$ac_unsafe_z#~"
1537 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1538 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1541 cat >config.log <<_ACEOF
1542 This file contains any messages produced by compilers while
1543 running configure, to aid debugging if configure makes a mistake.
1545 It was created by LFSbookja $as_me git, which was
1546 generated by GNU Autoconf 2.71. Invocation command line was
1548 $ $0$ac_configure_args_raw
1558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1565 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1567 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1568 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1570 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1571 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1572 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1573 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 case $as_dir in #(((
1584 *) as_dir=$as_dir/ ;;
1586 printf "%s\n" "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1626 as_fn_append ac_configure_args1 " '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 as_fn_append ac_configure_args " '$ac_arg'"
1647 { ac_configure_args0=; unset ac_configure_args0;}
1648 { ac_configure_args1=; unset ac_configure_args1;}
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1662 printf "%s\n" "## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##"
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1674 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1679 *) { eval $ac_var=; unset $ac_var;} ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 printf "%s\n" "## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##"
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 printf "%s\n" "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1713 printf "%s\n" "## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##"
1717 for ac_var in $ac_subst_files
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 printf "%s\n" "$ac_var='\''$ac_val'\''"
1728 if test -s confdefs.h; then
1729 printf "%s\n" "## ----------- ##
1736 test "$ac_signal" != 0 &&
1737 printf "%s\n" "$as_me: caught signal $ac_signal"
1738 printf "%s\n" "$as_me: exit $exit_status"
1740 rm -f core *.core core.conftest.* &&
1741 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1744 for ac_signal in 1 2 13 15; do
1745 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1749 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1750 rm -f -r conftest* confdefs.h
1752 printf "%s\n" "/* confdefs.h */" > confdefs.h
1754 # Predefined preprocessor variables.
1756 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1758 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1760 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1762 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1764 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1766 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer an explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772 ac_site_files="$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1776 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1779 for ac_site_file in $ac_site_files
1781 case $ac_site_file in #(
1785 ac_site_file=./$ac_site_file ;;
1787 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1789 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1790 sed 's/^/| /' "$ac_site_file" >&5
1792 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1793 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1794 as_fn_error $? "failed to load site script $ac_site_file
1795 See \`config.log' for more details" "$LINENO" 5; }
1799 if test -r "$cache_file"; then
1800 # Some versions of bash will fail to source /dev/null (special files
1801 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1802 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1804 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1806 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1807 *) . "./$cache_file";;
1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1812 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1816 # Test code for whether the C compiler supports C89 (global declarations)
1817 ac_c_conftest_c89_globals='
1818 /* Does the compiler advertise C89 conformance?
1819 Do not test the value of __STDC__, because some compilers set it to 0
1820 while being otherwise adequately conformant. */
1821 #if !defined __STDC__
1822 # error "Compiler does not advertise C89 conformance"
1828 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1829 struct buf { int x; };
1830 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1831 static char *e (p, i)
1837 static char *f (char * (*g) (char **, int), char **p, ...)
1842 s = g (p, va_arg (v,int));
1847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1848 function prototypes and stuff, but not \xHH hex character constants.
1849 These do not provoke an error unfortunately, instead are silently treated
1850 as an "x". The following induces an error, until -std is added to get
1851 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1852 array size at least. It is necessary to write \x00 == 0 to get something
1853 that is true only with -std. */
1854 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1857 inside strings and character constants. */
1858 #define FOO(x) '\''x'\''
1859 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1861 int test (int i, double x);
1862 struct s1 {int (*f) (int a);};
1863 struct s2 {int (*f) (double a);};
1864 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1867 # Test code for whether the C compiler supports C89 (body of main).
1868 ac_c_conftest_c89_main='
1869 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1872 # Test code for whether the C compiler supports C99 (global declarations)
1873 ac_c_conftest_c99_globals='
1874 // Does the compiler advertise C99 conformance?
1875 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1876 # error "Compiler does not advertise C99 conformance"
1879 #include <stdbool.h>
1880 extern int puts (const char *);
1881 extern int printf (const char *, ...);
1882 extern int dprintf (int, const char *, ...);
1883 extern void *malloc (size_t);
1885 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1886 // dprintf is used instead of fprintf to avoid needing to declare
1888 #define debug(...) dprintf (2, __VA_ARGS__)
1889 #define showlist(...) puts (#__VA_ARGS__)
1890 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1892 test_varargs_macros (void)
1897 debug ("X = %d\n", x);
1898 showlist (The first, second, and third items.);
1899 report (x>y, "x is %d but y is %d", x, y);
1902 // Check long long types.
1903 #define BIG64 18446744073709551615ull
1904 #define BIG32 4294967295ul
1905 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1907 #error "your preprocessor is broken"
1911 #error "your preprocessor is broken"
1913 static long long int bignum = -9223372036854775807LL;
1914 static unsigned long long int ubignum = BIG64;
1916 struct incomplete_array
1924 const wchar_t *name;
1928 typedef const char *ccp;
1931 test_restrict (ccp restrict text)
1933 // See if C++-style comments work.
1934 // Iterate through items via the restricted pointer.
1935 // Also check for declarations in for loops.
1936 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1941 // Check varargs and va_copy.
1943 test_varargs (const char *format, ...)
1946 va_start (args, format);
1948 va_copy (args_copy, args);
1950 const char *str = "";
1958 case '\''s'\'': // string
1959 str = va_arg (args_copy, const char *);
1961 case '\''d'\'': // int
1962 number = va_arg (args_copy, int);
1964 case '\''f'\'': // float
1965 fnumber = va_arg (args_copy, double);
1974 return *str && number && fnumber;
1978 # Test code for whether the C compiler supports C99 (body of main).
1979 ac_c_conftest_c99_main='
1981 _Bool success = false;
1982 success |= (argc != 0);
1985 if (test_restrict ("String literal") == 0)
1987 char *restrict newvar = "Another string";
1990 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
1991 test_varargs_macros ();
1993 // Check flexible array members.
1994 struct incomplete_array *ia =
1995 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1997 for (int i = 0; i < ia->datasize; ++i)
1998 ia->data[i] = i * 1.234;
2000 // Check named initializers.
2001 struct named_init ni = {
2003 .name = L"Test wide string",
2004 .average = 543.34343,
2009 int dynamic_array[ni.number];
2010 dynamic_array[0] = argv[0][0];
2011 dynamic_array[ni.number - 1] = 543;
2013 // work around unused variable warnings
2014 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2015 || dynamic_array[ni.number - 1] != 543);
2018 # Test code for whether the C compiler supports C11 (global declarations)
2019 ac_c_conftest_c11_globals='
2020 // Does the compiler advertise C11 conformance?
2021 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2022 # error "Compiler does not advertise C11 conformance"
2026 char _Alignas (double) aligned_as_double;
2027 char _Alignas (0) no_special_alignment;
2028 extern char aligned_as_int;
2029 char _Alignas (0) _Alignas (int) aligned_as_int;
2034 int_alignment = _Alignof (int),
2035 int_array_alignment = _Alignof (int[100]),
2036 char_alignment = _Alignof (char)
2038 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2041 int _Noreturn does_not_return (void) { for (;;) continue; }
2043 // Check _Static_assert.
2044 struct test_static_assert
2047 _Static_assert (sizeof (int) <= sizeof (long int),
2048 "_Static_assert does not work in struct");
2052 // Check UTF-8 literals.
2053 #define u8 syntax error!
2054 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2056 // Check duplicate typedefs.
2057 typedef long *long_ptr;
2058 typedef long int *long_ptr;
2059 typedef long_ptr long_ptr;
2061 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2065 struct { int i; int j; };
2066 struct { int k; long int l; } w;
2072 # Test code for whether the C compiler supports C11 (body of main).
2073 ac_c_conftest_c11_main='
2074 _Static_assert ((offsetof (struct anonymous, i)
2075 == offsetof (struct anonymous, w.k)),
2076 "Anonymous union alignment botch");
2082 # Test code for whether the C compiler supports C11 (complete).
2083 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2084 ${ac_c_conftest_c99_globals}
2085 ${ac_c_conftest_c11_globals}
2088 main (int argc, char **argv)
2091 ${ac_c_conftest_c89_main}
2092 ${ac_c_conftest_c99_main}
2093 ${ac_c_conftest_c11_main}
2098 # Test code for whether the C compiler supports C99 (complete).
2099 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2100 ${ac_c_conftest_c99_globals}
2103 main (int argc, char **argv)
2106 ${ac_c_conftest_c89_main}
2107 ${ac_c_conftest_c99_main}
2112 # Test code for whether the C compiler supports C89 (complete).
2113 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2116 main (int argc, char **argv)
2119 ${ac_c_conftest_c89_main}
2125 # Auxiliary files required by this configure script.
2126 ac_aux_files="compile missing install-sh"
2128 # Locations in which to look for auxiliary files.
2129 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2131 # Search for a directory containing all of the required auxiliary files,
2132 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2133 # If we don't find one directory that contains all the files we need,
2134 # we report the set of missing files from the *first* directory in
2135 # $ac_aux_dir_candidates and give up.
2136 ac_missing_aux_files=""
2137 ac_first_candidate=:
2138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $ac_aux_dir_candidates
2144 case $as_dir in #(((
2147 *) as_dir=$as_dir/ ;;
2151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2152 ac_aux_dir_found=yes
2154 for ac_aux in $ac_aux_files
2156 # As a special case, if "install-sh" is required, that requirement
2157 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2158 # and $ac_install_sh is set appropriately for whichever one is found.
2159 if test x"$ac_aux" = x"install-sh"
2161 if test -f "${as_dir}install-sh"; then
2162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2163 ac_install_sh="${as_dir}install-sh -c"
2164 elif test -f "${as_dir}install.sh"; then
2165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2166 ac_install_sh="${as_dir}install.sh -c"
2167 elif test -f "${as_dir}shtool"; then
2168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2169 ac_install_sh="${as_dir}shtool install -c"
2172 if $ac_first_candidate; then
2173 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2179 if test -f "${as_dir}${ac_aux}"; then
2180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2183 if $ac_first_candidate; then
2184 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2191 if test "$ac_aux_dir_found" = yes; then
2192 ac_aux_dir="$as_dir"
2195 ac_first_candidate=false
2204 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 if test -f "${ac_aux_dir}config.guess"; then
2213 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2215 if test -f "${ac_aux_dir}config.sub"; then
2216 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2218 if test -f "$ac_aux_dir/configure"; then
2219 ac_configure="$SHELL ${ac_aux_dir}configure"
2222 # Check that the precious variables saved in the cache have kept the same
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2263 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272 if $ac_cache_corrupted; then
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2278 and start over" "$LINENO" 5
2280 ## -------------------- ##
2281 ## Main body of script. ##
2282 ## -------------------- ##
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 am__api_version='1.16'
2295 # Find a good install program. We prefer a C program (faster),
2296 # so one script is as good as another. But avoid the broken or
2297 # incompatible versions:
2298 # SysV /etc/install, /usr/sbin/install
2299 # SunOS /usr/etc/install
2300 # IRIX /sbin/install
2302 # AmigaOS /C/install, which installs bootblocks on floppy discs
2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2306 # OS/2's system install, which has a completely different semantic
2307 # ./install, which can be erroneously created by make from ./install.sh.
2308 # Reject install programs that cannot install multiple files.
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2310 printf %s "checking for a BSD-compatible install... " >&6; }
2311 if test -z "$INSTALL"; then
2312 if test ${ac_cv_path_install+y}
2314 printf %s "(cached) " >&6
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 case $as_dir in #(((
2323 *) as_dir=$as_dir/ ;;
2325 # Account for fact that we put trailing slashes in our PATH walk.
2328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2329 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332 # OSF1 and SCO ODT 3.0 have their own names for install.
2333 # Don't use installbsd from OSF since it installs stuff as root
2335 for ac_prog in ginstall scoinst install; do
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2338 if test $ac_prog = install &&
2339 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2340 # AIX install. It has an incompatible calling convention.
2342 elif test $ac_prog = install &&
2343 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2344 # program-specific install script used by HP pwplus--don't use.
2347 rm -rf conftest.one conftest.two conftest.dir
2348 echo one > conftest.one
2349 echo two > conftest.two
2351 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2352 test -s conftest.one && test -s conftest.two &&
2353 test -s conftest.dir/conftest.one &&
2354 test -s conftest.dir/conftest.two
2356 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2369 rm -rf conftest.one conftest.two conftest.dir
2372 if test ${ac_cv_path_install+y}; then
2373 INSTALL=$ac_cv_path_install
2375 # As a last resort, use the slow shell script. Don't cache a
2376 # value for INSTALL within a source directory, because that will
2377 # break other packages using the cache if that directory is
2378 # removed, or if the value is a relative name.
2379 INSTALL=$ac_install_sh
2382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2383 printf "%s\n" "$INSTALL" >&6; }
2385 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2386 # It thinks the first close brace ends the variable substitution.
2387 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2389 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2391 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2394 printf %s "checking whether build environment is sane... " >&6; }
2395 # Reject unsafe characters in $srcdir or the absolute working directory
2396 # name. Accept space and tab only in the latter.
2400 *[\\\"\#\$\&\'\`$am_lf]*)
2401 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2404 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2405 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2408 # Do 'set' in a subshell so we don't clobber the current shell's
2409 # arguments. Must try -L first in case configure is actually a
2410 # symlink; some systems play weird games with the mod time of symlinks
2411 # (eg FreeBSD returns the mod time of the symlink's containing
2415 for am_try in 1 2; do
2416 echo "timestamp, slept: $am_has_slept" > conftest.file
2417 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2418 if test "$*" = "X"; then
2420 set X `ls -t "$srcdir/configure" conftest.file`
2422 if test "$*" != "X $srcdir/configure conftest.file" \
2423 && test "$*" != "X conftest.file $srcdir/configure"; then
2425 # If neither matched, then we have a broken ls. This can happen
2426 # if, for instance, CONFIG_SHELL is bash and it inherits a
2427 # broken ls alias from the environment. This has actually
2428 # happened. Such a system could not be considered "sane".
2429 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2430 alias in your environment" "$LINENO" 5
2432 if test "$2" = conftest.file || test $am_try -eq 2; then
2439 test "$2" = conftest.file
2445 as_fn_error $? "newly created file is older than distributed files!
2446 Check your system clock" "$LINENO" 5
2448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449 printf "%s\n" "yes" >&6; }
2450 # If we didn't sleep, we still need to ensure time stamps of config.status and
2451 # generated files are strictly newer.
2453 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2471 # Expand $ac_aux_dir to an absolute path.
2472 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2475 if test x"${MISSING+set}" != xset; then
2476 MISSING="\${SHELL} '$am_aux_dir/missing'"
2478 # Use eval to expand $SHELL
2479 if eval "$MISSING --is-lightweight"; then
2480 am_missing_run="$MISSING "
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2484 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2487 if test x"${install_sh+set}" != xset; then
2490 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2492 install_sh="\${SHELL} $am_aux_dir/install-sh"
2496 # Installed binaries are usually stripped using 'strip' when the user
2497 # run "make install-strip". However 'strip' might not be the right
2498 # tool to use in cross-compilation environments, therefore Automake
2499 # will honor the 'STRIP' environment variable to overrule this program.
2500 if test "$cross_compiling" != no; then
2501 if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}strip; ac_word=$2
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 printf %s "checking for $ac_word... " >&6; }
2506 if test ${ac_cv_prog_STRIP+y}
2508 printf %s "(cached) " >&6
2510 if test -n "$STRIP"; then
2511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 case $as_dir in #(((
2520 *) as_dir=$as_dir/ ;;
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2534 STRIP=$ac_cv_prog_STRIP
2535 if test -n "$STRIP"; then
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2537 printf "%s\n" "$STRIP" >&6; }
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 printf "%s\n" "no" >&6; }
2545 if test -z "$ac_cv_prog_STRIP"; then
2547 # Extract the first word of "strip", so it can be a program name with args.
2548 set dummy strip; ac_word=$2
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 printf %s "checking for $ac_word... " >&6; }
2551 if test ${ac_cv_prog_ac_ct_STRIP+y}
2553 printf %s "(cached) " >&6
2555 if test -n "$ac_ct_STRIP"; then
2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 case $as_dir in #(((
2565 *) as_dir=$as_dir/ ;;
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_ac_ct_STRIP="strip"
2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2580 if test -n "$ac_ct_STRIP"; then
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2582 printf "%s\n" "$ac_ct_STRIP" >&6; }
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 printf "%s\n" "no" >&6; }
2588 if test "x$ac_ct_STRIP" = x; then
2591 case $cross_compiling:$ac_tool_warned in
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595 ac_tool_warned=yes ;;
2600 STRIP="$ac_cv_prog_STRIP"
2604 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2608 printf %s "checking for a race-free mkdir -p... " >&6; }
2609 if test -z "$MKDIR_P"; then
2610 if test ${ac_cv_path_mkdir+y}
2612 printf %s "(cached) " >&6
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2618 case $as_dir in #(((
2621 *) as_dir=$as_dir/ ;;
2623 for ac_prog in mkdir gmkdir; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2626 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2627 'mkdir ('*'coreutils) '* | \
2629 'mkdir (fileutils) '4.1*)
2630 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2640 test -d ./--version && rmdir ./--version
2641 if test ${ac_cv_path_mkdir+y}; then
2642 MKDIR_P="$ac_cv_path_mkdir -p"
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for MKDIR_P within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 MKDIR_P="$ac_install_sh -d"
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2652 printf "%s\n" "$MKDIR_P" >&6; }
2654 for ac_prog in gawk mawk nawk awk
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 printf %s "checking for $ac_word... " >&6; }
2660 if test ${ac_cv_prog_AWK+y}
2662 printf %s "(cached) " >&6
2664 if test -n "$AWK"; then
2665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 case $as_dir in #(((
2674 *) as_dir=$as_dir/ ;;
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_AWK="$ac_prog"
2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2689 if test -n "$AWK"; then
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2691 printf "%s\n" "$AWK" >&6; }
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 printf "%s\n" "no" >&6; }
2698 test -n "$AWK" && break
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2702 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2704 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2705 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2707 printf %s "(cached) " >&6
2709 cat >conftest.make <<\_ACEOF
2712 @echo '@@@%%%=$(MAKE)=@@@%%%'
2714 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2715 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2717 eval ac_cv_prog_make_${ac_make}_set=yes;;
2719 eval ac_cv_prog_make_${ac_make}_set=no;;
2723 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 printf "%s\n" "yes" >&6; }
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 printf "%s\n" "no" >&6; }
2730 SET_MAKE="MAKE=${MAKE-make}"
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2740 rmdir .tst 2>/dev/null
2742 # Check whether --enable-silent-rules was given.
2743 if test ${enable_silent_rules+y}
2745 enableval=$enable_silent_rules;
2748 case $enable_silent_rules in # (((
2749 yes) AM_DEFAULT_VERBOSITY=0;;
2750 no) AM_DEFAULT_VERBOSITY=1;;
2751 *) AM_DEFAULT_VERBOSITY=1;;
2753 am_make=${MAKE-make}
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2755 printf %s "checking whether $am_make supports nested variables... " >&6; }
2756 if test ${am_cv_make_support_nested_variables+y}
2758 printf %s "(cached) " >&6
2760 if printf "%s\n" 'TRUE=$(BAR$(V))
2766 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767 am_cv_make_support_nested_variables=yes
2769 am_cv_make_support_nested_variables=no
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2774 if test $am_cv_make_support_nested_variables = yes; then
2776 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2778 AM_V=$AM_DEFAULT_VERBOSITY
2779 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785 # is not polluted with repeated "-I."
2786 am__isrc=' -I$(srcdir)'
2787 # test to see if srcdir already configured
2788 if test -f $srcdir/config.status; then
2789 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2793 # test whether we have cygpath
2794 if test -z "$CYGPATH_W"; then
2795 if (cygpath --version) >/dev/null 2>/dev/null; then
2796 CYGPATH_W='cygpath -w'
2803 # Define the identity of the package.
2808 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
2811 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
2813 # Some tools Automake needs.
2815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2829 # For better backward compatibility. To be removed once Automake 1.9.x
2830 # dies out for good. For more background, see:
2831 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2832 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2833 mkdir_p='$(MKDIR_P)'
2835 # We need awk for the "check" target (and possibly the TAP driver). The
2836 # system "awk" is bad on some platforms.
2837 # Always define AMTAR for backward compatibility. Yes, it's still used
2838 # in the wild :-( We should find a proper way to deprecate it ...
2842 # We'll loop over all known methods to create a tar archive until one works.
2843 _am_tools='gnutar pax cpio none'
2845 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2851 # Variables for tags utilities; see am/tags.am
2852 if test -z "$CTAGS"; then
2856 if test -z "$ETAGS"; then
2860 if test -z "$CSCOPE"; then
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes. So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present. This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message. This
2885 can help us improve future automake versions.
2888 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889 echo 'Configuration will proceed anyway, since you have set the' >&2
2890 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2894 Aborting the configuration process, to ensure you take notice of the issue.
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2904 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2910 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2911 # Check whether --enable-maintainer-mode was given.
2912 if test ${enable_maintainer_mode+y}
2914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2916 USE_MAINTAINER_MODE=no
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2920 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
2921 if test $USE_MAINTAINER_MODE = yes; then
2922 MAINTAINER_MODE_TRUE=
2923 MAINTAINER_MODE_FALSE='#'
2925 MAINTAINER_MODE_TRUE='#'
2926 MAINTAINER_MODE_FALSE=
2929 MAINT=$MAINTAINER_MODE_TRUE
2947 CTIE=ctie/ctie$EXEEXT
2952 # Check whether --with-bookdir was given.
2953 if test ${with_bookdir+y}
2955 withval=$with_bookdir;
2956 if test -d "${with_bookdir}" ; then
2957 bookdir=${with_bookdir}
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the original XML files" >&5
2964 printf %s "checking for the original XML files... " >&6; }
2965 if test ! -f "${bookdir}/general.ent"; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 printf "%s\n" "no" >&6; }
2968 as_fn_error $? "The original XML files not found in ${bookdir}" "$LINENO" 5
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2971 printf "%s\n" "ok" >&6; }
2975 abs_bookdir=`(cd $bookdir && pwd)`
2978 # ===========================================================================
2979 # http://autoconf-archive.cryp.to/ax_compare_version.html
2980 # ===========================================================================
2984 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2988 # This macro compares two version strings. Due to the various number of
2989 # minor-version numbers that can exist, and the fact that string
2990 # comparisons are not compatible with numeric comparisons, this is not
2991 # necessarily trivial to do in a autoconf script. This macro makes doing
2992 # these comparisons easy.
2994 # The six basic comparisons are available, as well as checking equality
2995 # limited to a certain number of minor-version levels.
2997 # The operator OP determines what type of comparison to do, and can be one
3000 # eq - equal (test A == B)
3001 # ne - not equal (test A != B)
3002 # le - less than or equal (test A <= B)
3003 # ge - greater than or equal (test A >= B)
3004 # lt - less than (test A < B)
3005 # gt - greater than (test A > B)
3007 # Additionally, the eq and ne operator can have a number after it to limit
3008 # the test to that number of minor versions.
3010 # eq0 - equal up to the length of the shorter version
3011 # ne0 - not equal up to the length of the shorter version
3012 # eqN - equal up to N sub-version levels
3013 # neN - not equal up to N sub-version levels
3015 # When the condition is true, shell commands ACTION-IF-TRUE are run,
3016 # otherwise shell commands ACTION-IF-FALSE are run. The environment
3017 # variable 'ax_compare_version' is always set to either 'true' or 'false'
3022 # AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
3023 # AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
3025 # would both be true.
3027 # AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
3028 # AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
3030 # would both be false.
3032 # AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
3034 # would be true because it is only comparing two minor versions.
3036 # AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
3038 # would be true because it is only comparing the lesser number of minor
3039 # versions of the two values.
3041 # Note: The characters that separate the version numbers do not matter. An
3042 # empty string is the same as version 0. OP is evaluated by autoconf, not
3043 # configure, so must be a string, not a variable.
3045 # The author would like to acknowledge Guido Draheim whose advice about
3046 # the m4_case and m4_ifvaln functions make this macro only include the
3047 # portions necessary to perform the specific comparison specified by the
3048 # OP argument in the final configure script.
3052 # Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
3054 # Copying and distribution of this file, with or without modification, are
3055 # permitted in any medium without royalty provided the copyright notice
3056 # and this notice are preserved.
3059 # ===========================================================================
3060 # http://autoconf-archive.cryp.to/ac_check_docbook_xslt.html
3061 # ===========================================================================
3065 # AC_CHECK_DOCBOOK_XSLT([xslt-version])
3069 # Check for access to docbook stylesheets of a particular revision. This
3070 # macro can be used for multiple versions within the same script.
3074 # $1 is the version of docbook to search for; default 'current'.
3078 # $HAVE_DOCBOOK_XSLT_VERS will be set to 'yes' or 'no' depending on the
3079 # results of the test, where VERS is $1, with '_' substituted for '.'.
3080 # $HAVE_DOCBOOK_XSLT will also be set to the same value.
3084 # AC_CHECK_DOCBOOK_XSLT(1.72.0)
3085 # if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xyes"; then
3090 # Copyright (c) 2008 Zmanda Inc. <http://www.zmanda.com/>
3091 # Copyright (c) 2008 Dustin J. Mitchell <dustin@zmanda.com>
3093 # This program is free software; you can redistribute it and/or modify it
3094 # under the terms of the GNU General Public License as published by the
3095 # Free Software Foundation; either version 2 of the License, or (at your
3096 # option) any later version.
3098 # This program is distributed in the hope that it will be useful, but
3099 # WITHOUT ANY WARRANTY; without even the implied warranty of
3100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
3101 # Public License for more details.
3103 # You should have received a copy of the GNU General Public License along
3104 # with this program. If not, see <http://www.gnu.org/licenses/>.
3106 # As a special exception, the respective Autoconf Macro's copyright owner
3107 # gives unlimited permission to copy, distribute and modify the configure
3108 # scripts that are the output of Autoconf when processing the Macro. You
3109 # need not follow the terms of the GNU General Public License when using
3110 # or distributing such scripts, even though portions of the text of the
3111 # Macro appear in them. The GNU General Public License (GPL) does govern
3112 # all other use of the material that constitutes the Autoconf Macro.
3114 # This special exception to the GPL applies to versions of the Autoconf
3115 # Macro released by the Autoconf Archive. When you make and distribute a
3116 # modified version of the Autoconf Macro, you may extend this special
3117 # exception to the GPL to apply to your modified version as well.
3121 # ===========================================================================
3122 # http://autoconf-archive.cryp.to/ac_check_docbook_dtd.html
3123 # ===========================================================================
3127 # AC_CHECK_DOCBOOK_DTD([dtd-version])
3131 # Check for access to a docbook DTD of a particular revision. This macro
3132 # can be used for multiple versions within the same script.
3136 # $1 is the version of docbook to search for; default 'current'.
3140 # $HAVE_DOCBOOK_DTD_VERS will be set to 'yes' or 'no' depending on the
3141 # results of the test, where VERS is $1, with '_' substituted for '.'
3142 # $HAVE_DOCBOOK_DTD will also be set to the same value.
3146 # AC_CHECK_DOCBOOK_DTD(4.3)
3147 # if test "x$HAVE_DOCBOOK_DTD_4_3" = "xyes"; then
3152 # Copyright (c) 2008 Zmanda Inc. <http://www.zmanda.com/>
3153 # Copyright (c) 2008 Dustin J. Mitchell <dustin@zmanda.com>
3155 # This program is free software; you can redistribute it and/or modify it
3156 # under the terms of the GNU General Public License as published by the
3157 # Free Software Foundation; either version 2 of the License, or (at your
3158 # option) any later version.
3160 # This program is distributed in the hope that it will be useful, but
3161 # WITHOUT ANY WARRANTY; without even the implied warranty of
3162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
3163 # Public License for more details.
3165 # You should have received a copy of the GNU General Public License along
3166 # with this program. If not, see <http://www.gnu.org/licenses/>.
3168 # As a special exception, the respective Autoconf Macro's copyright owner
3169 # gives unlimited permission to copy, distribute and modify the configure
3170 # scripts that are the output of Autoconf when processing the Macro. You
3171 # need not follow the terms of the GNU General Public License when using
3172 # or distributing such scripts, even though portions of the text of the
3173 # Macro appear in them. The GNU General Public License (GPL) does govern
3174 # all other use of the material that constitutes the Autoconf Macro.
3176 # This special exception to the GPL applies to versions of the Autoconf
3177 # Macro released by the Autoconf Archive. When you make and distribute a
3178 # modified version of the Autoconf Macro, you may extend this special
3179 # exception to the GPL to apply to your modified version as well.
3183 #m4_include([m4/ac_check_ipafontdir.m4])
3190 TAKAOGEXFILE=/usr/share/fonts/takao-gothic/TakaoExGothic.ttf
3194 # Checks for programs.
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 printf %s "checking for $ac_word... " >&6; }
3214 if test ${ac_cv_prog_CC+y}
3216 printf %s "(cached) " >&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 case $as_dir in #(((
3228 *) as_dir=$as_dir/ ;;
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3243 if test -n "$CC"; then
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 printf "%s\n" "$CC" >&6; }
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 printf "%s\n" "no" >&6; }
3253 if test -z "$ac_cv_prog_CC"; then
3255 # Extract the first word of "gcc", so it can be a program name with args.
3256 set dummy gcc; ac_word=$2
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 printf %s "checking for $ac_word... " >&6; }
3259 if test ${ac_cv_prog_ac_ct_CC+y}
3261 printf %s "(cached) " >&6
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 case $as_dir in #(((
3273 *) as_dir=$as_dir/ ;;
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_ac_ct_CC="gcc"
3278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288 if test -n "$ac_ct_CC"; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3290 printf "%s\n" "$ac_ct_CC" >&6; }
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3296 if test "x$ac_ct_CC" = x; then
3299 case $cross_compiling:$ac_tool_warned in
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303 ac_tool_warned=yes ;;
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}cc; ac_word=$2
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 printf %s "checking for $ac_word... " >&6; }
3317 if test ${ac_cv_prog_CC+y}
3319 printf %s "(cached) " >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 case $as_dir in #(((
3331 *) as_dir=$as_dir/ ;;
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_CC="${ac_tool_prefix}cc"
3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3346 if test -n "$CC"; then
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 printf "%s\n" "$CC" >&6; }
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 printf "%s\n" "no" >&6; }
3357 if test -z "$CC"; then
3358 # Extract the first word of "cc", so it can be a program name with args.
3359 set dummy cc; ac_word=$2
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 printf %s "checking for $ac_word... " >&6; }
3362 if test ${ac_cv_prog_CC+y}
3364 printf %s "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 case $as_dir in #(((
3377 *) as_dir=$as_dir/ ;;
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3393 if test $ac_prog_rejected = yes; then
3394 # We found a bogon in the path, so make sure we never use it.
3395 set dummy $ac_cv_prog_CC
3397 if test $# != 0; then
3398 # We chose a different compiler from the bogus one.
3399 # However, it has the same basename, so the bogon will be chosen
3400 # first if we set CC to just the basename; use the full file name.
3402 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3408 if test -n "$CC"; then
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 printf "%s\n" "$CC" >&6; }
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 printf "%s\n" "no" >&6; }
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 for ac_prog in cl.exe
3422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 printf %s "checking for $ac_word... " >&6; }
3426 if test ${ac_cv_prog_CC+y}
3428 printf %s "(cached) " >&6
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 case $as_dir in #(((
3440 *) as_dir=$as_dir/ ;;
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 printf "%s\n" "$CC" >&6; }
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3464 test -n "$CC" && break
3467 if test -z "$CC"; then
3469 for ac_prog in cl.exe
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 printf %s "checking for $ac_word... " >&6; }
3475 if test ${ac_cv_prog_ac_ct_CC+y}
3477 printf %s "(cached) " >&6
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 case $as_dir in #(((
3489 *) as_dir=$as_dir/ ;;
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_ac_ct_CC="$ac_prog"
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506 printf "%s\n" "$ac_ct_CC" >&6; }
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 printf "%s\n" "no" >&6; }
3513 test -n "$ac_ct_CC" && break
3516 if test "x$ac_ct_CC" = x; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}clang; ac_word=$2
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 printf %s "checking for $ac_word... " >&6; }
3536 if test ${ac_cv_prog_CC+y}
3538 printf %s "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 case $as_dir in #(((
3550 *) as_dir=$as_dir/ ;;
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC="${ac_tool_prefix}clang"
3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3575 if test -z "$ac_cv_prog_CC"; then
3577 # Extract the first word of "clang", so it can be a program name with args.
3578 set dummy clang; ac_word=$2
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 printf %s "checking for $ac_word... " >&6; }
3581 if test ${ac_cv_prog_ac_ct_CC+y}
3583 printf %s "(cached) " >&6
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 case $as_dir in #(((
3595 *) as_dir=$as_dir/ ;;
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_ac_ct_CC="clang"
3600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 printf "%s\n" "$ac_ct_CC" >&6; }
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 printf "%s\n" "no" >&6; }
3618 if test "x$ac_ct_CC" = x; then
3621 case $cross_compiling:$ac_tool_warned in
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3636 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3641 # Provide some information about the compiler.
3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3645 for ac_option in --version -v -V -qversion -version; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 printf "%s\n" "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3655 if test -s conftest.err; then
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3661 rm -f conftest.er1 conftest.err
3662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 ac_clean_files_save=$ac_clean_files
3678 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679 # Try to create an executable without -o first, disregard a.out.
3680 # It will help us diagnose broken compilers, and finding out an intuition
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683 printf %s "checking whether the C compiler works... " >&6; }
3684 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3686 # The possible output files:
3687 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3690 for ac_file in $ac_files
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699 if { { ac_try="$ac_link_default"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 printf "%s\n" "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3716 for ac_file in $ac_files ''
3718 test -f "$ac_file" || continue
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3723 # We found the default executable, but exeext='' is most
3727 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 # We set ac_cv_exeext here because the later test for it is not
3732 # safe: cross compilers may not add the suffix if given an `-o'
3733 # argument, so we may need to know it at that point already.
3734 # Even if this section looks crufty: it has the advantage of
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3746 if test -z "$ac_file"
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 printf "%s\n" "no" >&6; }
3750 printf "%s\n" "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error 77 "C compiler cannot create executables
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 printf "%s\n" "yes" >&6; }
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 printf %s "checking for C compiler default output file name... " >&6; }
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 printf "%s\n" "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 printf %s "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 printf "%s\n" "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3784 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3785 # work properly (i.e., refer to `conftest.exe'), while it won't with
3787 for ac_file in conftest.exe conftest conftest.*; do
3788 test -f "$ac_file" || continue
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3800 See \`config.log' for more details" "$LINENO" 5; }
3802 rm -f conftest conftest$ac_cv_exeext
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3804 printf "%s\n" "$ac_cv_exeext" >&6; }
3806 rm -f conftest.$ac_ext
3807 EXEEXT=$ac_cv_exeext
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3815 FILE *f = fopen ("conftest.out", "w");
3816 return ferror (f) || fclose (f) != 0;
3822 ac_clean_files="$ac_clean_files conftest.out"
3823 # Check that the compiler produces executables we can run. If not, either
3824 # the compiler is broken, or we cross compile.
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3826 printf %s "checking whether we are cross compiling... " >&6; }
3827 if test "$cross_compiling" != yes; then
3828 { { ac_try="$ac_link"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 printf "%s\n" "$ac_try_echo"; } >&5
3835 (eval "$ac_link") 2>&5
3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3839 if { ac_try='./conftest$ac_cv_exeext'
3840 { { case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 printf "%s\n" "$ac_try_echo"; } >&5
3846 (eval "$ac_try") 2>&5
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; }; then
3852 if test "$cross_compiling" = maybe; then
3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error 77 "cannot run C compiled programs.
3858 If you meant to cross compile, use \`--host'.
3859 See \`config.log' for more details" "$LINENO" 5; }
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3864 printf "%s\n" "$cross_compiling" >&6; }
3866 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3869 printf %s "checking for suffix of object files... " >&6; }
3870 if test ${ac_cv_objext+y}
3872 printf %s "(cached) " >&6
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3885 rm -f conftest.o conftest.obj
3886 if { { ac_try="$ac_compile"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_compile") 2>&5
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3907 printf "%s\n" "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error $? "cannot compute suffix of object files: cannot compile
3913 See \`config.log' for more details" "$LINENO" 5; }
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 printf "%s\n" "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3922 printf %s "checking whether the compiler supports GNU C... " >&6; }
3923 if test ${ac_cv_c_compiler_gnu+y}
3925 printf %s "(cached) " >&6
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3941 if ac_fn_c_try_compile "$LINENO"
3947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3952 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 if test $ac_compiler_gnu = yes; then
3960 ac_test_CFLAGS=${CFLAGS+y}
3961 ac_save_CFLAGS=$CFLAGS
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3963 printf %s "checking whether $CC accepts -g... " >&6; }
3964 if test ${ac_cv_prog_cc_g+y}
3966 printf %s "(cached) " >&6
3968 ac_save_c_werror_flag=$ac_c_werror_flag
3969 ac_c_werror_flag=yes
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3983 if ac_fn_c_try_compile "$LINENO"
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3999 if ac_fn_c_try_compile "$LINENO"
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4016 if ac_fn_c_try_compile "$LINENO"
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4028 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4029 if test $ac_test_CFLAGS; then
4030 CFLAGS=$ac_save_CFLAGS
4031 elif test $ac_cv_prog_cc_g = yes; then
4032 if test "$GCC" = yes; then
4038 if test "$GCC" = yes; then
4045 if test x$ac_prog_cc_stdc = xno
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4048 printf %s "checking for $CC option to enable C11 features... " >&6; }
4049 if test ${ac_cv_prog_cc_c11+y}
4051 printf %s "(cached) " >&6
4053 ac_cv_prog_cc_c11=no
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 $ac_c_conftest_c11_program
4059 for ac_arg in '' -std=gnu11
4061 CC="$ac_save_CC $ac_arg"
4062 if ac_fn_c_try_compile "$LINENO"
4064 ac_cv_prog_cc_c11=$ac_arg
4066 rm -f core conftest.err conftest.$ac_objext conftest.beam
4067 test "x$ac_cv_prog_cc_c11" != "xno" && break
4069 rm -f conftest.$ac_ext
4073 if test "x$ac_cv_prog_cc_c11" = xno
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 printf "%s\n" "unsupported" >&6; }
4078 if test "x$ac_cv_prog_cc_c11" = x
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081 printf "%s\n" "none needed" >&6; }
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4084 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4085 CC="$CC $ac_cv_prog_cc_c11"
4087 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4091 if test x$ac_prog_cc_stdc = xno
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4094 printf %s "checking for $CC option to enable C99 features... " >&6; }
4095 if test ${ac_cv_prog_cc_c99+y}
4097 printf %s "(cached) " >&6
4099 ac_cv_prog_cc_c99=no
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 $ac_c_conftest_c99_program
4105 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"
4110 ac_cv_prog_cc_c99=$ac_arg
4112 rm -f core conftest.err conftest.$ac_objext conftest.beam
4113 test "x$ac_cv_prog_cc_c99" != "xno" && break
4115 rm -f conftest.$ac_ext
4119 if test "x$ac_cv_prog_cc_c99" = xno
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 printf "%s\n" "unsupported" >&6; }
4124 if test "x$ac_cv_prog_cc_c99" = x
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127 printf "%s\n" "none needed" >&6; }
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4130 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4131 CC="$CC $ac_cv_prog_cc_c99"
4133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4137 if test x$ac_prog_cc_stdc = xno
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4140 printf %s "checking for $CC option to enable C89 features... " >&6; }
4141 if test ${ac_cv_prog_cc_c89+y}
4143 printf %s "(cached) " >&6
4145 ac_cv_prog_cc_c89=no
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 $ac_c_conftest_c89_program
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"
4156 ac_cv_prog_cc_c89=$ac_arg
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 rm -f conftest.$ac_ext
4165 if test "x$ac_cv_prog_cc_c89" = xno
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168 printf "%s\n" "unsupported" >&6; }
4170 if test "x$ac_cv_prog_cc_c89" = x
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 printf "%s\n" "none needed" >&6; }
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4177 CC="$CC $ac_cv_prog_cc_c89"
4179 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4197 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4198 if test ${am_cv_prog_cc_c_o+y}
4200 printf %s "(cached) " >&6
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4213 # Make sure it works both with $CC and with simple cc.
4214 # Following AC_PROG_CC_C_O, we do the test twice because some
4215 # compilers refuse to overwrite an existing .o file with -o,
4216 # though they will create one.
4217 am_cv_prog_cc_c_o=yes
4219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } \
4224 && test -f conftest2.$ac_objext; then
4227 am_cv_prog_cc_c_o=no
4231 rm -f core conftest*
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4235 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4236 if test "$am_cv_prog_cc_c_o" != yes; then
4237 # Losing compiler, so override with the script.
4238 # FIXME: It is wrong to rewrite CC.
4239 # But if we don't then we get into trouble of one sort or another.
4240 # A longer-term fix would be to have automake use am__CC in this case,
4241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4242 CC="$am_aux_dir/compile $CC"
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 DEPDIR="${am__leading_dot}deps"
4252 ac_config_commands="$ac_config_commands depfiles"
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4255 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4256 cat > confinc.mk << 'END'
4258 @echo this is the am__doit target >confinc.out
4263 # BSD make does it like this.
4264 echo '.include "confinc.mk" # ignored' > confmf.BSD
4265 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4266 echo 'include confinc.mk # ignored' > confmf.GNU
4268 for s in GNU BSD; do
4269 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4270 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }
4274 case $?:`cat confinc.out 2>/dev/null` in #(
4275 '0:this is the am__doit target') :
4278 am__include='.include' am__quote='"' ;; #(
4280 am__include='include' am__quote='' ;;
4285 if test "$am__include" != "#"; then
4286 _am_result="yes ($s style)"
4290 rm -f confinc.* confmf.*
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4292 printf "%s\n" "${_am_result}" >&6; }
4294 # Check whether --enable-dependency-tracking was given.
4295 if test ${enable_dependency_tracking+y}
4297 enableval=$enable_dependency_tracking;
4300 if test "x$enable_dependency_tracking" != xno; then
4301 am_depcomp="$ac_aux_dir/depcomp"
4305 if test "x$enable_dependency_tracking" != xno; then
4315 depcc="$CC" am_compiler_list=
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4318 printf %s "checking dependency style of $depcc... " >&6; }
4319 if test ${am_cv_CC_dependencies_compiler_type+y}
4321 printf %s "(cached) " >&6
4323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named 'D' -- because '-MD' means "put the output
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4343 am_cv_CC_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4348 case " $depcc " in #(
4349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4352 for depmode in $am_compiler_list; do
4353 # Setup a source with many dependencies, because some compilers
4354 # like to wrap large dependency lists on column 80 (with \), and
4355 # we should not choose a depcomp mode which is confused by this.
4357 # We need to recreate these files for each test, as the compiler may
4358 # overwrite some of them when testing with obscure command lines.
4359 # This happens at least with the AIX C compiler.
4361 for i in 1 2 3 4 5 6; do
4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4364 # Solaris 10 /bin/sh.
4365 echo '/* dummy */' > sub/conftst$i.h
4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4370 # mode. It turns out that the SunPro C++ compiler does not properly
4371 # handle '-M -o', and we need to detect this. Also, some Intel
4372 # versions had trouble with output in subdirs.
4373 am__obj=sub/conftest.${OBJEXT-o}
4374 am__minus_obj="-o $am__obj"
4377 # This depmode causes a compiler race in universal mode.
4378 test "$am__universal" = false || continue
4381 # After this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested.
4383 if test "x$enable_dependency_tracking" = xyes; then
4389 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4390 # This compiler won't grok '-c -o', but also, the minuso test has
4391 # not run yet. These depmodes are late enough in the game, and
4392 # so weak that their functioning should not be impacted.
4393 am__obj=conftest.${OBJEXT-o}
4398 if depmode=$depmode \
4399 source=sub/conftest.c object=$am__obj \
4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4402 >/dev/null 2>conftest.err &&
4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4407 # icc doesn't choke on unknown options, it will just issue warnings
4408 # or remarks (even with -Werror). So we grep stderr for any message
4409 # that says an option was ignored or not supported.
4410 # When given -MP, icc 7.0 and 7.1 complain thusly:
4411 # icc: Command line warning: ignoring option '-M'; no argument required
4412 # The diagnosis changed in icc 8.0:
4413 # icc: Command line remark: option '-MP' not supported
4414 if (grep 'ignoring option' conftest.err ||
4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4416 am_cv_CC_dependencies_compiler_type=$depmode
4425 am_cv_CC_dependencies_compiler_type=none
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4430 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4434 test "x$enable_dependency_tracking" != xno \
4435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4437 am__fastdepCC_FALSE='#'
4439 am__fastdepCC_TRUE='#'
4440 am__fastdepCC_FALSE=
4445 XSLTPROC_FLAGS='--nonet '
4448 # Extract the first word of "xsltproc$EXEEXT", so it can be a program name with args.
4449 set dummy xsltproc$EXEEXT; ac_word=$2
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 printf %s "checking for $ac_word... " >&6; }
4452 if test ${ac_cv_path_XSLTPROC+y}
4454 printf %s "(cached) " >&6
4458 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 case $as_dir in #(((
4468 *) as_dir=$as_dir/ ;;
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4472 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
4473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4480 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
4484 XSLTPROC=$ac_cv_path_XSLTPROC
4485 if test -n "$XSLTPROC"; then
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4487 printf "%s\n" "$XSLTPROC" >&6; }
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 printf "%s\n" "no" >&6; }
4494 if test "$XSLTPROC" = no; then
4495 as_fn_error $? "xsltproc not found in $PATH" "$LINENO" 5
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version current" >&5
4507 printf %s "checking for Docbook XSLT version current... " >&6; }
4508 if test ${ac_cv_docbook_xslt_current+y}
4510 printf %s "(cached) " >&6
4513 ac_cv_docbook_xslt_current=no
4514 if test -n "$XSLTPROC"; then
4515 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl'" >&5
4516 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl >&5 2>&5
4518 if test "$?" = 0; then
4519 ac_cv_docbook_xslt_current=yes
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current" >&5
4525 printf "%s\n" "$ac_cv_docbook_xslt_current" >&6; }
4527 HAVE_DOCBOOK_XSLT_current="$ac_cv_docbook_xslt_current"
4528 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_current"
4534 if test "x$HAVE_DOCBOOK_XSLT" = "xno"; then
4535 as_fn_error $? "Docbook XSLT not found" "$LINENO" 5
4538 XSLTPROC_FLAGS='--nonet '
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.5" >&5
4548 printf %s "checking for Docbook DTD version 4.5... " >&6; }
4549 if test ${ac_cv_docbook_dtd_4_5+y}
4551 printf %s "(cached) " >&6
4554 ac_cv_docbook_dtd_4_5=no
4555 if test -n "$XSLTPROC"; then
4556 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
4557 cat <<EOF >conftest.xml
4558 <?xml version="1.0" encoding='ISO-8859-1'?>
4559 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4563 cat <<EOF > conftest.xsl
4564 <?xml version='1.0' encoding='ISO-8859-1'?>
4565 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4566 xmlns="http://www.w3.org/1999/xhtml"
4570 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xsl conftest.xml'" >&5
4571 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xsl conftest.xml >conftest.out 2>&1
4572 if test "$?" = 0 -o "$?" = 5; then
4573 # failing to load the DTD is just a warning, so check for it in the output.
4574 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
4577 ac_cv_docbook_dtd_4_5=yes
4580 cat conftest.out >&5
4582 rm -f conftest.xml conftest.xsl conftest.out
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_5" >&5
4587 printf "%s\n" "$ac_cv_docbook_dtd_4_5" >&6; }
4589 HAVE_DOCBOOK_DTD_4_5="$ac_cv_docbook_dtd_4_5"
4590 HAVE_DOCBOOK_DTD=HAVE_DOCBOOK_DTD_4_5
4593 if test "x$HAVE_DOCBOOK_DTD_4_5" = "xno"; then
4594 as_fn_error $? "Docbook DTD 4.5 not found" "$LINENO" 5
4598 # Extract the first word of "xmllint$EXEEXT", so it can be a program name with args.
4599 set dummy xmllint$EXEEXT; ac_word=$2
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 printf %s "checking for $ac_word... " >&6; }
4602 if test ${ac_cv_path_XMLLINT+y}
4604 printf %s "(cached) " >&6
4608 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 case $as_dir in #(((
4618 *) as_dir=$as_dir/ ;;
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4622 ac_cv_path_XMLLINT="$as_dir$ac_word$ac_exec_ext"
4623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4630 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
4634 XMLLINT=$ac_cv_path_XMLLINT
4635 if test -n "$XMLLINT"; then
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4637 printf "%s\n" "$XMLLINT" >&6; }
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 printf "%s\n" "no" >&6; }
4644 if test "$XMLLINT" = no; then
4645 as_fn_error $? "xmllint not found in $PATH" "$LINENO" 5
4648 # Extract the first word of "tidy$EXEEXT", so it can be a program name with args.
4649 set dummy tidy$EXEEXT; ac_word=$2
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 printf %s "checking for $ac_word... " >&6; }
4652 if test ${ac_cv_path_TIDY+y}
4654 printf %s "(cached) " >&6
4658 ac_cv_path_TIDY="$TIDY" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 case $as_dir in #(((
4668 *) as_dir=$as_dir/ ;;
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4672 ac_cv_path_TIDY="$as_dir$ac_word$ac_exec_ext"
4673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_path_TIDY" && ac_cv_path_TIDY="no"
4684 TIDY=$ac_cv_path_TIDY
4685 if test -n "$TIDY"; then
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIDY" >&5
4687 printf "%s\n" "$TIDY" >&6; }
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 printf "%s\n" "no" >&6; }
4694 if test "$TIDY" = no; then
4695 as_fn_error $? "tidy not found in $PATH" "$LINENO" 5
4700 # Check whether --with-rev was given.
4701 if test ${with_rev+y}
4704 if test "x${with_rev}" != "x"; then
4711 if test "x${with_rev}" != "x"; then
4712 if test "x${with_rev}" != "xsysv" -a "x${with_rev}" != "xsystemd"; then
4713 as_fn_error $? "REV must be 'sysv' (default) or 'systemd.'" "$LINENO" 5
4719 if test "x${with_rev}" = "xsystemd"; then
4720 BASEDIR=../${VER}-sysdja
4721 PDF_OUTPUT=../lfssysdja-${VER}.pdf
4722 NOCHUNKS_NAME=lfssysdja-${VER}
4723 NOCHUNKS_OUTPUT=../lfssysdja-${VER}.html
4724 DUMPDIR=../lfs-sysd-commands
4726 BASEDIR=../${VER}-ja
4727 PDF_OUTPUT=../lfsbookja-${VER}.pdf
4728 NOCHUNKS_NAME=lfsbookja-${VER}
4729 NOCHUNKS_OUTPUT=../lfsbookja-${VER}.html
4730 DUMPDIR=../lfs-commands
4741 if test "x$revspec" = "xsystemd"; then
4742 TARGETVER="$TARGETVER-systemd"
4745 (cd ${bookdir} && sh git-version.sh $revspec)
4746 cp -p ${bookdir}/version.ent .
4747 if test -f ./version.ent; then
4749 if test "x$revspec" = "xsysv"; then
4750 grep -A1 "%sysv" version.ent >version.tmp
4751 elif test "x$revspec" = "xsystemd"; then
4752 grep -A1 "%systemd" version.ent >version.tmp
4756 GITVER=`grep 'ENTITY version ' version.tmp | sed -e 's/^<!ENTITY version *\"\(.*\)\">/\1/'`
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the original XML version" >&5
4759 printf %s "checking for the original XML version... " >&6; }
4760 if test ! "$GITVER" = "$TARGETVER"; then
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GITVER" >&5
4762 printf "%s\n" "$GITVER" >&6; }
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Version of the original XML not $TARGETVER" >&5
4764 printf "%s\n" "$as_me: WARNING: Version of the original XML not $TARGETVER" >&2;}
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GITVER" >&5
4767 printf "%s\n" "$GITVER" >&6; }
4772 # Extract the first word of "lynx$EXEEXT", so it can be a program name with args.
4773 set dummy lynx$EXEEXT; ac_word=$2
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 printf %s "checking for $ac_word... " >&6; }
4776 if test ${ac_cv_path_LYNX+y}
4778 printf %s "(cached) " >&6
4782 ac_cv_path_LYNX="$LYNX" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 case $as_dir in #(((
4792 *) as_dir=$as_dir/ ;;
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4796 ac_cv_path_LYNX="$as_dir$ac_word$ac_exec_ext"
4797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4804 test -z "$ac_cv_path_LYNX" && ac_cv_path_LYNX="no"
4808 LYNX=$ac_cv_path_LYNX
4809 if test -n "$LYNX"; then
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5
4811 printf "%s\n" "$LYNX" >&6; }
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 printf "%s\n" "no" >&6; }
4818 if test "$LYNX" = no; then
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Text version cannot be built." >&5
4820 printf "%s\n" "$as_me: WARNING: Text version cannot be built." >&2;}
4824 # Extract the first word of "fop$EXEEXT", so it can be a program name with args.
4825 set dummy fop$EXEEXT; ac_word=$2
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 printf %s "checking for $ac_word... " >&6; }
4828 if test ${ac_cv_path_FOP+y}
4830 printf %s "(cached) " >&6
4834 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 case $as_dir in #(((
4844 *) as_dir=$as_dir/ ;;
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4848 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
4849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4856 test -z "$ac_cv_path_FOP" && ac_cv_path_FOP="no"
4861 if test -n "$FOP"; then
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
4863 printf "%s\n" "$FOP" >&6; }
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 printf "%s\n" "no" >&6; }
4870 if test "$FOP" = no; then
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PDF version cannot be built." >&5
4872 printf "%s\n" "$as_me: WARNING: PDF version cannot be built." >&2;}
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Takao font files" >&5
4877 printf %s "checking for directory for Takao font files... " >&6; }
4879 # Check whether --with-takaogfontdir was given.
4880 if test ${with_takaogfontdir+y}
4882 withval=$with_takaogfontdir; TAKAOGFONTDIR="$withval"
4886 if test "x${TAKAOGFONTDIR}" = "x"; then
4887 TAKAOGFONTDIR=/usr/share/fonts/takao-gothic
4888 if test ! -d ${TAKAOGFONTDIR}; then
4891 TAKAOMFONTDIR=/usr/share/fonts/takao-mincho
4892 if test ! -d ${TAKAOMFONTDIR}; then
4897 if test "x${TAKAOGFONTDIR}" = "x"; then
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in ${TAKAOGFONTDIR}" >&5
4899 printf "%s\n" "not found in ${TAKAOGFONTDIR}" >&6; }
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PDF version cannot be built" >&5
4901 printf "%s\n" "$as_me: WARNING: PDF version cannot be built" >&2;}
4905 TAKAOGFILE=${TAKAOGFONTDIR}/TakaoGothic.ttf
4906 if test ! -f ${TAKAOGFILE}; then
4907 TAKAOGFILE=${TAKAOGFONTDIR}/takao-gothic/TakaoGothic.ttf
4908 if test ! -f ${TAKAOGFILE}; then
4914 TAKAOMFILE=${TAKAOMFONTDIR}/TakaoMincho.ttf
4915 if test ! -f ${TAKAOMFILE}; then
4916 TAKAOMFILE=${TAKAOMFONTDIR}/takao-mincho/TakaoMincho.ttf
4917 if test ! -f ${TAKAOMFILE}; then
4923 if test "x${TAKAOGFILE}" = "x" -o "x${TAKAOMFILE}" = "x"; then
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in ${TAKAOGFONTDIR}" >&5
4925 printf "%s\n" "not found in ${TAKAOGFONTDIR}" >&6; }
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PDF version cannot be built." >&5
4927 printf "%s\n" "$as_me: WARNING: PDF version cannot be built." >&2;}
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
4933 printf "%s\n" "found" >&6; }
4938 ac_config_files="$ac_config_files Makefile ctie/Makefile src/Makefile src/userconfig.xml src/appendices/Makefile src/chapter01/Makefile src/chapter02/Makefile src/chapter03/Makefile src/chapter04/Makefile src/chapter05/Makefile src/chapter06/Makefile src/chapter07/Makefile src/chapter08/Makefile src/chapter09/Makefile src/chapter10/Makefile src/chapter11/Makefile src/part3intro/Makefile src/prologue/Makefile src/stylesheets/Makefile src/stylesheets/lfs-xsl/Makefile src/stylesheets/lfs-xsl/pdf/Makefile src/stylesheets/lfs-xsl/xhtml/Makefile src/udev-lfs/Makefile src/udev-lfs/contrib/Makefile src/udev-lfs/contrib/debian/Makefile"
4940 cat >confcache <<\_ACEOF
4941 # This file is a shell script that caches the results of configure
4942 # tests run on this system so they can be shared between configure
4943 # scripts and configure runs, see configure's option --config-cache.
4944 # It is not useful on other systems. If it contains results you don't
4945 # want to keep, you may remove or edit it.
4947 # config.status only pays attention to the cache file if you give it
4948 # the --recheck option to rerun configure.
4950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4956 # The following way of writing the cache mishandles newlines in values,
4957 # but we know of no workaround that is simple, portable, and efficient.
4958 # So, we kill variables containing newlines.
4959 # Ultrix sh set writes to stderr and can't be redirected directly,
4960 # and sets the high bit in the cache file unless we assign to the vars.
4962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4963 eval ac_val=\$$ac_var
4967 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4968 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4971 _ | IFS | as_nl) ;; #(
4972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4973 *) { eval $ac_var=; unset $ac_var;} ;;
4979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4980 *${as_nl}ac_space=\ *)
4981 # `set' does not quote correctly, so add quotes: double-quote
4982 # substitution turns \\\\ into \\, and sed turns \\ into \.
4985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4988 # `set' quotes correctly as required by POSIX, so do not add quotes.
4989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4998 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5003 if test -w "$cache_file"; then
5004 if test "x$cache_file" != "x/dev/null"; then
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5006 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5007 if test ! -f "$cache_file" || test -h "$cache_file"; then
5008 cat confcache >"$cache_file"
5010 case $cache_file in #(
5012 mv -f confcache "$cache_file"$$ &&
5013 mv -f "$cache_file"$$ "$cache_file" ;; #(
5015 mv -f confcache "$cache_file" ;;
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5021 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5027 # Let make expand exec_prefix.
5028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5030 # Transform confdefs.h into DEFS.
5031 # Protect against shell expansion while executing Makefile rules.
5032 # Protect against Makefile macro expansion.
5034 # If the first sed substitution is executed (which looks for macros that
5035 # take arguments), then branch to the quote section. Otherwise,
5036 # look for a macro that doesn't take arguments.
5046 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5048 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5052 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5065 DEFS=`sed -n "$ac_script" confdefs.h`
5071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5072 # 1. Remove the extension, and $U if already installed.
5073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5074 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5076 # will be set to the directory where LIBOBJS objects are built.
5077 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5078 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5082 LTLIBOBJS=$ac_ltlibobjs
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5086 printf %s "checking that generated files are newer than configure... " >&6; }
5087 if test -n "$am_sleep_pid"; then
5088 # Hide warnings about reused PIDs.
5089 wait $am_sleep_pid 2>/dev/null
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
5092 printf "%s\n" "done" >&6; }
5093 if test -n "$EXEEXT"; then
5095 am__EXEEXT_FALSE='#'
5101 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5102 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5105 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5106 as_fn_error $? "conditional \"AMDEP\" was never defined.
5107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5110 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5114 : "${CONFIG_STATUS=./config.status}"
5116 ac_clean_files_save=$ac_clean_files
5117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5119 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5121 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5123 # Generated by $as_me.
5124 # Run this file to recreate the current configuration.
5125 # Compiler output produced by configure, useful for debugging
5126 # configure, is in config.log if it exists.
5132 SHELL=\${CONFIG_SHELL-$SHELL}
5135 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5136 ## -------------------- ##
5137 ## M4sh Initialization. ##
5138 ## -------------------- ##
5140 # Be more Bourne compatible
5141 DUALCASE=1; export DUALCASE # for MKS sh
5143 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5148 # is contrary to our usage. Disable this feature.
5149 alias -g '${1+"$@"}'='"$@"'
5150 setopt NO_GLOB_SUBST
5152 case `(set -o) 2>/dev/null` in #(
5162 # Reset variables that may have inherited troublesome values from
5165 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5166 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5167 # side effect of setting IFS to empty, thus disabling word splitting.)
5168 # Quoting is to prevent editors from complaining about space-tab.
5178 # Ensure predictable behavior from utilities with locale-dependent output.
5184 # We cannot yet rely on "unset" to work, but we need these variables
5185 # to be unset--not just set to an empty or harmless value--now, to
5186 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5187 # also avoids known problems related to "unset" and subshell syntax
5188 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5189 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5190 do eval test \${$as_var+y} \
5191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5194 # Ensure that fds 0, 1, and 2 are open.
5195 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5196 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5197 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5199 # The user is always right.
5200 if ${PATH_SEPARATOR+false} :; then
5202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5209 # Find who we are. Look in the path if we contain no directory separator.
5212 *[\\/]* ) as_myself=$0 ;;
5213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 case $as_dir in #(((
5220 *) as_dir=$as_dir/ ;;
5222 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5228 # We did not find ourselves, most probably we were run as `sh COMMAND'
5229 # in which case we are not to be found in the path.
5230 if test "x$as_myself" = x; then
5233 if test ! -f "$as_myself"; then
5234 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5240 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5241 # ----------------------------------------
5242 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5243 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5244 # script with STATUS, using 1 if that was 0.
5247 as_status=$1; test $as_status -eq 0 && as_status=1
5249 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5252 printf "%s\n" "$as_me: error: $2" >&2
5253 as_fn_exit $as_status
5258 # as_fn_set_status STATUS
5259 # -----------------------
5260 # Set $? to STATUS, without forking.
5264 } # as_fn_set_status
5268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5278 # Portably unset VAR.
5281 { eval $1=; unset $1;}
5283 as_unset=as_fn_unset
5285 # as_fn_append VAR VALUE
5286 # ----------------------
5287 # Append the text in VALUE to the end of the definition contained in VAR. Take
5288 # advantage of any shell optimizations that allow amortized linear growth over
5289 # repeated appends, instead of the typical quadratic growth present in naive
5291 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5293 eval 'as_fn_append ()
5304 # as_fn_arith ARG...
5305 # ------------------
5306 # Perform arithmetic evaluation on the ARGs, and store the result in the
5307 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5308 # must be portable across $(()) and expr.
5309 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5311 eval 'as_fn_arith ()
5318 as_val=`expr "$@" || test $? -eq 1`
5323 if expr a : '\(a\)' >/dev/null 2>&1 &&
5324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5331 as_basename=basename
5336 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5342 as_me=`$as_basename -- "$0" ||
5343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5344 X"$0" : 'X\(//\)$' \| \
5345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5346 printf "%s\n" X/"$0" |
5347 sed '/^.*\/\([^/][^/]*\)\/*$/{
5361 # Avoid depending upon Character Ranges.
5362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5365 as_cr_digits='0123456789'
5366 as_cr_alnum=$as_cr_Letters$as_cr_digits
5369 # Determine whether it's possible to make 'echo' print without a newline.
5370 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5371 # for compatibility with existing Makefiles.
5372 ECHO_C= ECHO_N= ECHO_T=
5373 case `echo -n x` in #(((((
5375 case `echo 'xy\c'` in
5376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5385 # For backward compatibility with old third-party macros, we provide
5386 # the shell variables $as_echo and $as_echo_n. New code should use
5387 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5388 as_echo='printf %s\n'
5389 as_echo_n='printf %s'
5391 rm -f conf$$ conf$$.exe conf$$.file
5392 if test -d conf$$.dir; then
5393 rm -f conf$$.dir/conf$$.file
5396 mkdir conf$$.dir 2>/dev/null
5398 if (echo >conf$$.file) 2>/dev/null; then
5399 if ln -s conf$$.file conf$$ 2>/dev/null; then
5401 # ... but there are two gotchas:
5402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5404 # In both cases, we have to default to `cp -pR'.
5405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5407 elif ln conf$$.file conf$$ 2>/dev/null; then
5415 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5416 rmdir conf$$.dir 2>/dev/null
5421 # Create "$as_dir" as a directory, including parents if necessary.
5426 -*) as_dir=./$as_dir;;
5428 test -d "$as_dir" || eval $as_mkdir_p || {
5432 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5433 *) as_qdir=$as_dir;;
5435 as_dirs="'$as_qdir' $as_dirs"
5436 as_dir=`$as_dirname -- "$as_dir" ||
5437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5438 X"$as_dir" : 'X\(//\)[^/]' \| \
5439 X"$as_dir" : 'X\(//\)$' \| \
5440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5441 printf "%s\n" X"$as_dir" |
5442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5459 test -d "$as_dir" && break
5461 test -z "$as_dirs" || eval "mkdir $as_dirs"
5462 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5466 if mkdir -p . 2>/dev/null; then
5467 as_mkdir_p='mkdir -p "$as_dir"'
5469 test -d ./-p && rmdir ./-p
5474 # as_fn_executable_p FILE
5475 # -----------------------
5476 # Test if FILE is an executable regular file.
5477 as_fn_executable_p ()
5479 test -f "$1" && test -x "$1"
5480 } # as_fn_executable_p
5482 as_executable_p=as_fn_executable_p
5484 # Sed expression to map a string onto a valid CPP name.
5485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5487 # Sed expression to map a string onto a valid variable name.
5488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5492 ## ----------------------------------- ##
5493 ## Main body of $CONFIG_STATUS script. ##
5494 ## ----------------------------------- ##
5496 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5499 # Save the log message, to keep $0 and so on meaningful, and to
5500 # report actual input values of CONFIG_FILES etc. instead of their
5501 # values after options handling.
5503 This file was extended by LFSbookja $as_me git, which was
5504 generated by GNU Autoconf 2.71. Invocation command line was
5506 CONFIG_FILES = $CONFIG_FILES
5507 CONFIG_HEADERS = $CONFIG_HEADERS
5508 CONFIG_LINKS = $CONFIG_LINKS
5509 CONFIG_COMMANDS = $CONFIG_COMMANDS
5512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5517 case $ac_config_files in *"
5518 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5524 # Files that config.status was made for.
5525 config_files="$ac_config_files"
5526 config_commands="$ac_config_commands"
5530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5532 \`$as_me' instantiates files and other configuration actions
5533 from templates according to the current configuration. Unless the files
5534 and actions are specified as TAGs, all are instantiated by default.
5536 Usage: $0 [OPTION]... [TAG]...
5538 -h, --help print this help, then exit
5539 -V, --version print version number and configuration settings, then exit
5540 --config print configuration, then exit
5541 -q, --quiet, --silent
5542 do not print progress messages
5543 -d, --debug don't remove temporary files
5544 --recheck update $as_me by reconfiguring in the same conditions
5545 --file=FILE[:TEMPLATE]
5546 instantiate the configuration file FILE
5548 Configuration files:
5551 Configuration commands:
5554 Report bugs to <matsuand AT users DOT osdn DOT me>."
5557 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5558 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5560 ac_cs_config='$ac_cs_config_escaped'
5562 LFSbookja config.status git
5563 configured by $0, generated by GNU Autoconf 2.71,
5564 with options \\"\$ac_cs_config\\"
5566 Copyright (C) 2021 Free Software Foundation, Inc.
5567 This config.status script is free software; the Free Software Foundation
5568 gives unlimited permission to copy, distribute and modify it."
5575 test -n "\$AWK" || AWK=awk
5578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5579 # The default lists apply if the user does not specify any file.
5585 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5602 # Handling of the options.
5603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5606 printf "%s\n" "$ac_cs_version"; exit ;;
5607 --config | --confi | --conf | --con | --co | --c )
5608 printf "%s\n" "$ac_cs_config"; exit ;;
5609 --debug | --debu | --deb | --de | --d | -d )
5611 --file | --fil | --fi | --f )
5614 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5615 '') as_fn_error $? "missing file argument" ;;
5617 as_fn_append CONFIG_FILES " '$ac_optarg'"
5618 ac_need_defaults=false;;
5619 --he | --h | --help | --hel | -h )
5620 printf "%s\n" "$ac_cs_usage"; exit ;;
5621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5626 -*) as_fn_error $? "unrecognized option: \`$1'
5627 Try \`$0 --help' for more information." ;;
5629 *) as_fn_append ac_config_targets " $1"
5630 ac_need_defaults=false ;;
5636 ac_configure_extra_args=
5638 if $ac_cs_silent; then
5640 ac_configure_extra_args="$ac_configure_extra_args --silent"
5644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5645 if \$ac_cs_recheck; then
5646 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5648 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5649 CONFIG_SHELL='$SHELL'
5655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5660 ## Running $as_me. ##
5662 printf "%s\n" "$ac_log"
5666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5670 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5676 # Handling of arguments.
5677 for ac_config_target in $ac_config_targets
5679 case $ac_config_target in
5680 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5681 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5682 "ctie/Makefile") CONFIG_FILES="$CONFIG_FILES ctie/Makefile" ;;
5683 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5684 "src/userconfig.xml") CONFIG_FILES="$CONFIG_FILES src/userconfig.xml" ;;
5685 "src/appendices/Makefile") CONFIG_FILES="$CONFIG_FILES src/appendices/Makefile" ;;
5686 "src/chapter01/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter01/Makefile" ;;
5687 "src/chapter02/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter02/Makefile" ;;
5688 "src/chapter03/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter03/Makefile" ;;
5689 "src/chapter04/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter04/Makefile" ;;
5690 "src/chapter05/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter05/Makefile" ;;
5691 "src/chapter06/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter06/Makefile" ;;
5692 "src/chapter07/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter07/Makefile" ;;
5693 "src/chapter08/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter08/Makefile" ;;
5694 "src/chapter09/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter09/Makefile" ;;
5695 "src/chapter10/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter10/Makefile" ;;
5696 "src/chapter11/Makefile") CONFIG_FILES="$CONFIG_FILES src/chapter11/Makefile" ;;
5697 "src/part3intro/Makefile") CONFIG_FILES="$CONFIG_FILES src/part3intro/Makefile" ;;
5698 "src/prologue/Makefile") CONFIG_FILES="$CONFIG_FILES src/prologue/Makefile" ;;
5699 "src/stylesheets/Makefile") CONFIG_FILES="$CONFIG_FILES src/stylesheets/Makefile" ;;
5700 "src/stylesheets/lfs-xsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/stylesheets/lfs-xsl/Makefile" ;;
5701 "src/stylesheets/lfs-xsl/pdf/Makefile") CONFIG_FILES="$CONFIG_FILES src/stylesheets/lfs-xsl/pdf/Makefile" ;;
5702 "src/stylesheets/lfs-xsl/xhtml/Makefile") CONFIG_FILES="$CONFIG_FILES src/stylesheets/lfs-xsl/xhtml/Makefile" ;;
5703 "src/udev-lfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/udev-lfs/Makefile" ;;
5704 "src/udev-lfs/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES src/udev-lfs/contrib/Makefile" ;;
5705 "src/udev-lfs/contrib/debian/Makefile") CONFIG_FILES="$CONFIG_FILES src/udev-lfs/contrib/debian/Makefile" ;;
5707 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5712 # If the user did not use the arguments to specify the items to instantiate,
5713 # then the envvar interface is used. Set only those that are not.
5714 # We use the long form for the default assignment because of an extremely
5715 # bizarre bug on SunOS 4.1.3.
5716 if $ac_need_defaults; then
5717 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5718 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
5721 # Have a temporary directory for convenience. Make it in the build tree
5722 # simply because there is no reason against having it here, and in addition,
5723 # creating and moving files from /tmp can sometimes cause problems.
5724 # Hook for its removal unless debugging.
5725 # Note that there is a small window in which the directory will not be cleaned:
5726 # after its creation but before its name has been assigned to `$tmp'.
5730 trap 'exit_status=$?
5732 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5734 trap 'as_fn_exit 1' 1 2 13 15
5736 # Create a (secure) tmp directory for tmp files.
5739 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5743 tmp=./conf$$-$RANDOM
5744 (umask 077 && mkdir "$tmp")
5745 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5748 # Set up the scripts for CONFIG_FILES section.
5749 # No need to generate them if there are no CONFIG_FILES.
5750 # This happens for instance with `./config.status config.h'.
5751 if test -n "$CONFIG_FILES"; then
5754 ac_cr=`echo X | tr X '\015'`
5755 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5756 # But we know of no other shell where ac_cr would be empty at this
5757 # point, so we can use a bashism as a fallback.
5758 if test "x$ac_cr" = x; then
5759 eval ac_cr=\$\'\\r\'
5761 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5762 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5768 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5773 echo "cat >conf$$subs.awk <<_ACEOF" &&
5774 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5778 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5780 for ac_last_try in false false false false false :; do
5781 . ./conf$$subs.sh ||
5782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5784 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5785 if test $ac_delim_n = $ac_delim_num; then
5787 elif $ac_last_try; then
5788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5796 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5800 s/^/S["/; s/!.*/"]=/
5810 s/\(.\{148\}\)..*/\1/
5812 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5824 s/\(.\{148\}\)..*/\1/
5826 s/["\\]/\\&/g; s/^/"/; s/$/"/
5830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5835 ' <conf$$subs.awk | sed '
5840 ' >>$CONFIG_STATUS || ac_write_fail=1
5841 rm -f conf$$subs.awk
5842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5844 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5845 for (key in S) S_is_set[key] = 1
5851 nfields = split(line, field, "@")
5853 len = length(field[1])
5854 for (i = 2; i < nfields; i++) {
5856 keylen = length(key)
5857 if (S_is_set[key]) {
5859 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5860 len += length(value) + length(field[++i])
5871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5872 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5873 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5876 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5877 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5880 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5881 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5882 # trailing colons and then remove the whole line if VPATH becomes empty
5883 # (actually we leave an empty line to preserve line numbers).
5884 if test "x$srcdir" = x.; then
5885 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5904 fi # test -n "$CONFIG_FILES"
5907 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5912 :[FHLC]) ac_mode=$ac_tag; continue;;
5914 case $ac_mode$ac_tag in
5916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5917 :[FH]-) ac_tag=-:-;;
5918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5935 -) ac_f="$ac_tmp/stdin";;
5936 *) # Look for the file first in the build tree, then in the source tree
5937 # (if the path is not absolute). The absolute path cannot be DOS-style,
5938 # because $ac_f cannot contain `:'.
5942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5946 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5947 as_fn_append ac_file_inputs " '$ac_f'"
5950 # Let's still pretend it is `configure' which instantiates (i.e., don't
5951 # use $as_me), people would be surprised to read:
5952 # /* config.h. Generated by config.status. */
5953 configure_input='Generated from '`
5954 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5956 if test x"$ac_file" != x-; then
5957 configure_input="$ac_file. $configure_input"
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5959 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5961 # Neutralize special characters interpreted by sed in replacement strings.
5962 case $configure_input in #(
5963 *\&* | *\|* | *\\* )
5964 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5966 *) ac_sed_conf_input=$configure_input;;
5970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5976 ac_dir=`$as_dirname -- "$ac_file" ||
5977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5978 X"$ac_file" : 'X\(//\)[^/]' \| \
5979 X"$ac_file" : 'X\(//\)$' \| \
5980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5981 printf "%s\n" X"$ac_file" |
5982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5999 as_dir="$ac_dir"; as_fn_mkdir_p
6003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6005 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6006 # A ".." for each directory in $ac_dir_suffix.
6007 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6008 case $ac_top_builddir_sub in
6009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6013 ac_abs_top_builddir=$ac_pwd
6014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6015 # for backward compatibility:
6016 ac_top_builddir=$ac_top_build_prefix
6019 .) # We are building in place.
6021 ac_top_srcdir=$ac_top_builddir_sub
6022 ac_abs_top_srcdir=$ac_pwd ;;
6023 [\\/]* | ?:[\\/]* ) # Absolute name.
6024 ac_srcdir=$srcdir$ac_dir_suffix;
6025 ac_top_srcdir=$srcdir
6026 ac_abs_top_srcdir=$srcdir ;;
6028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6029 ac_top_srcdir=$ac_top_build_prefix$srcdir
6030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6047 [\\/$]* | ?:[\\/]* ) ;;
6048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6053 # If the template does not know about datarootdir, expand it.
6054 # FIXME: This hack should be removed a few years after 2.60.
6055 ac_datarootdir_hack=; ac_datarootdir_seen=
6066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6067 *datarootdir*) ac_datarootdir_seen=yes;;
6068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6070 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6073 ac_datarootdir_hack='
6074 s&@datadir@&$datadir&g
6075 s&@docdir@&$docdir&g
6076 s&@infodir@&$infodir&g
6077 s&@localedir@&$localedir&g
6078 s&@mandir@&$mandir&g
6079 s&\\\${datarootdir}&$datarootdir&g' ;;
6083 # Neutralize VPATH when `$srcdir' = `.'.
6084 # Shell code in configure.ac might set extrasub.
6085 # FIXME: do we really want to maintain this feature?
6086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6087 ac_sed_extra="$ac_vpsub
6090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6093 s|@configure_input@|$ac_sed_conf_input|;t t
6094 s&@top_builddir@&$ac_top_builddir_sub&;t t
6095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6096 s&@srcdir@&$ac_srcdir&;t t
6097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6098 s&@top_srcdir@&$ac_top_srcdir&;t t
6099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6100 s&@builddir@&$ac_builddir&;t t
6101 s&@abs_builddir@&$ac_abs_builddir&;t t
6102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6103 s&@INSTALL@&$ac_INSTALL&;t t
6104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6105 $ac_datarootdir_hack
6107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6115 which seems to be undefined. Please make sure it is defined" >&5
6116 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6117 which seems to be undefined. Please make sure it is defined" >&2;}
6119 rm -f "$ac_tmp/stdin"
6121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6128 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6129 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
6134 case $ac_file$ac_mode in
6135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6136 # Older Autoconf quotes --file arguments for eval, but not when files
6137 # are listed without --file. Let's play safe and only enable the eval
6138 # if we detect the quoting.
6139 # TODO: see whether this extra hack can be removed once we start
6140 # requiring Autoconf 2.70 or later.
6141 case $CONFIG_FILES in #(
6143 eval set x "$CONFIG_FILES" ;; #(
6145 set x $CONFIG_FILES ;; #(
6150 # Used to flag and report bootstrapping failures.
6154 # Strip MF so we end up with the name of the file.
6155 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
6156 # Check whether this is an Automake generated Makefile which includes
6157 # dependency-tracking related rules and includes.
6158 # Grep'ing the whole file directly is not great: AIX grep has a line
6159 # limit of 2048, but all sed's we know have understand at least 4000.
6160 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
6162 am_dirpart=`$as_dirname -- "$am_mf" ||
6163 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6164 X"$am_mf" : 'X\(//\)[^/]' \| \
6165 X"$am_mf" : 'X\(//\)$' \| \
6166 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6167 printf "%s\n" X"$am_mf" |
6168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6185 am_filepart=`$as_basename -- "$am_mf" ||
6186 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6187 X"$am_mf" : 'X\(//\)$' \| \
6188 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6189 printf "%s\n" X/"$am_mf" |
6190 sed '/^.*\/\([^/][^/]*\)\/*$/{
6203 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6204 && sed -e '/# am--include-marker/d' "$am_filepart" \
6205 | $MAKE -f - am--depfiles" >&5
6207 && sed -e '/# am--include-marker/d' "$am_filepart" \
6208 | $MAKE -f - am--depfiles) >&5 2>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } || am_rc=$?
6213 if test $am_rc -ne 0; then
6214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6216 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6217 for automatic dependency tracking. If GNU make was not used, consider
6218 re-running the configure script with MAKE=\"gmake\" (or whatever is
6219 necessary). You can also try re-running configure with the
6220 '--disable-dependency-tracking' option to at least be able to build
6221 the package (albeit without support for automatic dependency tracking).
6222 See \`config.log' for more details" "$LINENO" 5; }
6224 { am_dirpart=; unset am_dirpart;}
6225 { am_filepart=; unset am_filepart;}
6226 { am_mf=; unset am_mf;}
6227 { am_rc=; unset am_rc;}
6228 rm -f conftest-deps.mk
6238 ac_clean_files=$ac_clean_files_save
6240 test $ac_write_fail = 0 ||
6241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6244 # configure is writing to config.log, and then calls config.status.
6245 # config.status does its own redirection, appending to config.log.
6246 # Unfortunately, on DOS this fails, as config.log is still kept open
6247 # by configure, so config.status won't be able to write to it; its
6248 # output is simply discarded. So we exec the FD to /dev/null,
6249 # effectively closing config.log, so it can be properly (re)opened and
6250 # appended to by config.status. When coming back to configure, we
6251 # need to make the FD available again.
6252 if test "$no_create" != yes; then
6254 ac_config_status_args=
6255 test "$silent" = yes &&
6256 ac_config_status_args="$ac_config_status_args --quiet"
6258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6261 # would make configure fail if this is the last instruction.
6262 $ac_cs_success || as_fn_exit 1
6264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6266 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}