2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Enscript 1.6.6.
5 # Report bugs to <bug-enscript@gnu.org>.
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 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 *) as_dir=$as_dir/ ;;
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: bug-enscript@gnu.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir=./$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 as_val=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status=$1; test $as_status -eq 0 && as_status=1
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 elif ln conf$$.file conf$$ 2>/dev/null; then
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
577 test -d ./-p && rmdir ./-p
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix=/usr/local
604 ac_config_libobj_dir=.
611 # Identity of this package.
612 PACKAGE_NAME='GNU Enscript'
613 PACKAGE_TARNAME='enscript'
614 PACKAGE_VERSION='1.6.6'
615 PACKAGE_STRING='GNU Enscript 1.6.6'
616 PACKAGE_BUGREPORT='bug-enscript@gnu.org'
617 PACKAGE_URL='https://www.gnu.org/software/enscript/'
619 ac_unique_file="src/gsint.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
654 ac_subst_vars='am__EXEEXT_FALSE
674 XGETTEXT_EXTRA_OPTIONS
675 MSGMERGE_FOR_MSGFMT_OPTION
682 GETTEXT_MACRO_VERSION
730 INSTALL_STRIP_PROGRAM
773 program_transform_name
787 enable_option_checking
789 enable_dependency_tracking
801 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 runstatedir='${localstatedir}/run'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1129 -site=* | --site=* | --sit=*)
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: \`$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=no ;;
1188 # Obsolete; use --with-x.
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 printf "%s\n" X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures GNU Enscript 1.6.6 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/enscript]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of GNU Enscript 1.6.6:";;
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --enable-debug enable debugging
1446 --disable-nls do not use Native Language Support
1447 --disable-rpath do not hardcode runtime library paths
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-media(=MEDIA) use output media Letter (MEDIA), default is A4
1453 --with-encoding(=ENCODING) use input encoding (ENCODING), default is latin1
1454 --with-spooler=SPOOLER set the printer spooler command
1455 --with-ps-level=LEVEL set the PostScript language level to LEVEL
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1458 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1459 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1460 --without-libintl-prefix don't search for libintl in includedir and libdir
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 YACC The `Yet Another Compiler Compiler' implementation to use.
1471 Defaults to the first program found out of: `bison -y', `byacc',
1473 YFLAGS The list of arguments that will be passed by default to $YACC.
1474 This script will default YFLAGS to the empty string to avoid a
1475 default value of `-d' given by some make applications.
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <bug-enscript@gnu.org>.
1482 GNU Enscript home page: <https://www.gnu.org/software/enscript/>.
1483 General help using GNU software: <https://www.gnu.org/gethelp/>.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for configure.gnu first; this name is used for a wrapper for
1530 # Metaconfig's "Configure" on case-insensitive file systems.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1538 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1547 GNU Enscript configure 1.6.6
1548 generated by GNU Autoconf 2.71
1550 Copyright (C) 2021 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest.beam
1568 if { { ac_try="$ac_compile"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 printf "%s\n" "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext
1590 printf "%s\n" "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists and can be compiled using the include files in
1603 # INCLUDES, setting the cache variable VAR accordingly.
1604 ac_fn_c_check_header_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 printf %s "checking for $2... " >&6; }
1609 if eval test \${$3+y}
1611 printf %s "(cached) " >&6
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1618 if ac_fn_c_try_compile "$LINENO"
1624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 printf "%s\n" "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 } # ac_fn_c_check_header_compile
1633 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1634 # -------------------------------------------
1635 # Tests whether TYPE exists after having included INCLUDES, setting cache
1636 # variable VAR accordingly.
1637 ac_fn_c_check_type ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 printf %s "checking for $2... " >&6; }
1642 if eval test \${$3+y}
1644 printf %s "(cached) " >&6
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1673 if ac_fn_c_try_compile "$LINENO"
1679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 printf "%s\n" "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_type
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1722 printf "%s\n" "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_link
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1740 # executables *can* be run.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 printf "%s\n" "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 printf "%s\n" "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }
1768 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1769 printf "%s\n" "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=$ac_status
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 printf %s "checking for $2... " >&6; }
1788 if eval test \${$3+y}
1790 printf %s "(cached) " >&6
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below. */
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1826 if ac_fn_c_try_link "$LINENO"
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1833 conftest$ac_exeext conftest.$ac_ext
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 printf "%s\n" "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 } # ac_fn_c_check_func
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 printf "%s\n" "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1870 printf "%s\n" "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1879 ac_configure_args_raw=
1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 as_fn_append ac_configure_args_raw " '$ac_arg'"
1889 case $ac_configure_args_raw in
1893 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1894 ac_unsafe_a="$ac_unsafe_z#~"
1895 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1896 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1903 It was created by GNU Enscript $as_me 1.6.6, which was
1904 generated by GNU Autoconf 2.71. Invocation command line was
1906 $ $0$ac_configure_args_raw
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 case $as_dir in #(((
1942 *) as_dir=$as_dir/ ;;
1944 printf "%s\n" "PATH: $as_dir"
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_must_keep_next=false
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1979 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984 as_fn_append ac_configure_args1 " '$ac_arg'"
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 -* ) ac_must_keep_next=true ;;
2000 as_fn_append ac_configure_args " '$ac_arg'"
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log. We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2016 # Save into config.log some information that might help in debugging.
2020 printf "%s\n" "## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##"
2024 # The following way of writing the cache mishandles newlines in values,
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2031 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056 printf "%s\n" "## ----------------- ##
2057 ## Output variables. ##
2058 ## ----------------- ##"
2060 for ac_var in $ac_subst_vars
2062 eval ac_val=\$$ac_var
2064 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 printf "%s\n" "$ac_var='\''$ac_val'\''"
2070 if test -n "$ac_subst_files"; then
2071 printf "%s\n" "## ------------------- ##
2072 ## File substitutions. ##
2073 ## ------------------- ##"
2075 for ac_var in $ac_subst_files
2077 eval ac_val=\$$ac_var
2079 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 printf "%s\n" "$ac_var='\''$ac_val'\''"
2086 if test -s confdefs.h; then
2087 printf "%s\n" "## ----------- ##
2094 test "$ac_signal" != 0 &&
2095 printf "%s\n" "$as_me: caught signal $ac_signal"
2096 printf "%s\n" "$as_me: exit $exit_status"
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2110 printf "%s\n" "/* confdefs.h */" > confdefs.h
2112 # Predefined preprocessor variables.
2114 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2116 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2118 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2120 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2122 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2124 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2127 # Let the site file select an alternate cache file if it wants to.
2128 # Prefer an explicitly selected file to automatically selected ones.
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_files="$CONFIG_SITE"
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2134 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2137 for ac_site_file in $ac_site_files
2139 case $ac_site_file in #(
2143 ac_site_file=./$ac_site_file ;;
2145 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2150 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2152 as_fn_error $? "failed to load site script $ac_site_file
2153 See \`config.log' for more details" "$LINENO" 5; }
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special files
2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2174 # Test code for whether the C compiler supports C89 (global declarations)
2175 ac_c_conftest_c89_globals='
2176 /* Does the compiler advertise C89 conformance?
2177 Do not test the value of __STDC__, because some compilers set it to 0
2178 while being otherwise adequately conformant. */
2179 #if !defined __STDC__
2180 # error "Compiler does not advertise C89 conformance"
2186 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2187 struct buf { int x; };
2188 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2189 static char *e (p, i)
2195 static char *f (char * (*g) (char **, int), char **p, ...)
2200 s = g (p, va_arg (v,int));
2205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2206 function prototypes and stuff, but not \xHH hex character constants.
2207 These do not provoke an error unfortunately, instead are silently treated
2208 as an "x". The following induces an error, until -std is added to get
2209 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2210 array size at least. It is necessary to write \x00 == 0 to get something
2211 that is true only with -std. */
2212 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2215 inside strings and character constants. */
2216 #define FOO(x) '\''x'\''
2217 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2225 # Test code for whether the C compiler supports C89 (body of main).
2226 ac_c_conftest_c89_main='
2227 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2230 # Test code for whether the C compiler supports C99 (global declarations)
2231 ac_c_conftest_c99_globals='
2232 // Does the compiler advertise C99 conformance?
2233 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2234 # error "Compiler does not advertise C99 conformance"
2237 #include <stdbool.h>
2238 extern int puts (const char *);
2239 extern int printf (const char *, ...);
2240 extern int dprintf (int, const char *, ...);
2241 extern void *malloc (size_t);
2243 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2244 // dprintf is used instead of fprintf to avoid needing to declare
2246 #define debug(...) dprintf (2, __VA_ARGS__)
2247 #define showlist(...) puts (#__VA_ARGS__)
2248 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2250 test_varargs_macros (void)
2255 debug ("X = %d\n", x);
2256 showlist (The first, second, and third items.);
2257 report (x>y, "x is %d but y is %d", x, y);
2260 // Check long long types.
2261 #define BIG64 18446744073709551615ull
2262 #define BIG32 4294967295ul
2263 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2265 #error "your preprocessor is broken"
2269 #error "your preprocessor is broken"
2271 static long long int bignum = -9223372036854775807LL;
2272 static unsigned long long int ubignum = BIG64;
2274 struct incomplete_array
2282 const wchar_t *name;
2286 typedef const char *ccp;
2289 test_restrict (ccp restrict text)
2291 // See if C++-style comments work.
2292 // Iterate through items via the restricted pointer.
2293 // Also check for declarations in for loops.
2294 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2299 // Check varargs and va_copy.
2301 test_varargs (const char *format, ...)
2304 va_start (args, format);
2306 va_copy (args_copy, args);
2308 const char *str = "";
2316 case '\''s'\'': // string
2317 str = va_arg (args_copy, const char *);
2319 case '\''d'\'': // int
2320 number = va_arg (args_copy, int);
2322 case '\''f'\'': // float
2323 fnumber = va_arg (args_copy, double);
2332 return *str && number && fnumber;
2336 # Test code for whether the C compiler supports C99 (body of main).
2337 ac_c_conftest_c99_main='
2339 _Bool success = false;
2340 success |= (argc != 0);
2343 if (test_restrict ("String literal") == 0)
2345 char *restrict newvar = "Another string";
2348 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2349 test_varargs_macros ();
2351 // Check flexible array members.
2352 struct incomplete_array *ia =
2353 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2355 for (int i = 0; i < ia->datasize; ++i)
2356 ia->data[i] = i * 1.234;
2358 // Check named initializers.
2359 struct named_init ni = {
2361 .name = L"Test wide string",
2362 .average = 543.34343,
2367 int dynamic_array[ni.number];
2368 dynamic_array[0] = argv[0][0];
2369 dynamic_array[ni.number - 1] = 543;
2371 // work around unused variable warnings
2372 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2373 || dynamic_array[ni.number - 1] != 543);
2376 # Test code for whether the C compiler supports C11 (global declarations)
2377 ac_c_conftest_c11_globals='
2378 // Does the compiler advertise C11 conformance?
2379 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2380 # error "Compiler does not advertise C11 conformance"
2384 char _Alignas (double) aligned_as_double;
2385 char _Alignas (0) no_special_alignment;
2386 extern char aligned_as_int;
2387 char _Alignas (0) _Alignas (int) aligned_as_int;
2392 int_alignment = _Alignof (int),
2393 int_array_alignment = _Alignof (int[100]),
2394 char_alignment = _Alignof (char)
2396 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2399 int _Noreturn does_not_return (void) { for (;;) continue; }
2401 // Check _Static_assert.
2402 struct test_static_assert
2405 _Static_assert (sizeof (int) <= sizeof (long int),
2406 "_Static_assert does not work in struct");
2410 // Check UTF-8 literals.
2411 #define u8 syntax error!
2412 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414 // Check duplicate typedefs.
2415 typedef long *long_ptr;
2416 typedef long int *long_ptr;
2417 typedef long_ptr long_ptr;
2419 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2423 struct { int i; int j; };
2424 struct { int k; long int l; } w;
2430 # Test code for whether the C compiler supports C11 (body of main).
2431 ac_c_conftest_c11_main='
2432 _Static_assert ((offsetof (struct anonymous, i)
2433 == offsetof (struct anonymous, w.k)),
2434 "Anonymous union alignment botch");
2440 # Test code for whether the C compiler supports C11 (complete).
2441 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2442 ${ac_c_conftest_c99_globals}
2443 ${ac_c_conftest_c11_globals}
2446 main (int argc, char **argv)
2449 ${ac_c_conftest_c89_main}
2450 ${ac_c_conftest_c99_main}
2451 ${ac_c_conftest_c11_main}
2456 # Test code for whether the C compiler supports C99 (complete).
2457 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2458 ${ac_c_conftest_c99_globals}
2461 main (int argc, char **argv)
2464 ${ac_c_conftest_c89_main}
2465 ${ac_c_conftest_c99_main}
2470 # Test code for whether the C compiler supports C89 (complete).
2471 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2474 main (int argc, char **argv)
2477 ${ac_c_conftest_c89_main}
2482 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2483 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2484 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2485 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2486 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2487 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2488 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2489 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2490 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2491 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2492 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2493 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2494 gt_needs="$gt_needs "
2496 # Auxiliary files required by this configure script.
2497 ac_aux_files="config.guess config.sub config.rpath compile missing install-sh"
2499 # Locations in which to look for auxiliary files.
2500 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2502 # Search for a directory containing all of the required auxiliary files,
2503 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2504 # If we don't find one directory that contains all the files we need,
2505 # we report the set of missing files from the *first* directory in
2506 # $ac_aux_dir_candidates and give up.
2507 ac_missing_aux_files=""
2508 ac_first_candidate=:
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $ac_aux_dir_candidates
2515 case $as_dir in #(((
2518 *) as_dir=$as_dir/ ;;
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2523 ac_aux_dir_found=yes
2525 for ac_aux in $ac_aux_files
2527 # As a special case, if "install-sh" is required, that requirement
2528 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2529 # and $ac_install_sh is set appropriately for whichever one is found.
2530 if test x"$ac_aux" = x"install-sh"
2532 if test -f "${as_dir}install-sh"; then
2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2534 ac_install_sh="${as_dir}install-sh -c"
2535 elif test -f "${as_dir}install.sh"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2537 ac_install_sh="${as_dir}install.sh -c"
2538 elif test -f "${as_dir}shtool"; then
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2540 ac_install_sh="${as_dir}shtool install -c"
2543 if $ac_first_candidate; then
2544 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2550 if test -f "${as_dir}${ac_aux}"; then
2551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2554 if $ac_first_candidate; then
2555 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2562 if test "$ac_aux_dir_found" = yes; then
2563 ac_aux_dir="$as_dir"
2566 ac_first_candidate=false
2575 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 if test -f "${ac_aux_dir}config.guess"; then
2584 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2586 if test -f "${ac_aux_dir}config.sub"; then
2587 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2589 if test -f "$ac_aux_dir/configure"; then
2590 ac_configure="$SHELL ${ac_aux_dir}configure"
2593 # Check that the precious variables saved in the cache have kept the same
2595 ac_cache_corrupted=false
2596 for ac_var in $ac_precious_vars; do
2597 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598 eval ac_new_set=\$ac_env_${ac_var}_set
2599 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600 eval ac_new_val=\$ac_env_${ac_var}_value
2601 case $ac_old_set,$ac_new_set in
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2612 if test "x$ac_old_val" != "x$ac_new_val"; then
2613 # differences in whitespace do not lead to failure.
2614 ac_old_val_w=`echo x $ac_old_val`
2615 ac_new_val_w=`echo x $ac_new_val`
2616 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619 ac_cache_corrupted=:
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623 eval $ac_var=\$ac_old_val
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2626 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2628 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2631 # Pass precious variables to config.status.
2632 if test "$ac_new_set" = set; then
2634 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 *) ac_arg=$ac_var=$ac_new_val ;;
2637 case " $ac_configure_args " in
2638 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2639 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2643 if $ac_cache_corrupted; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2648 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2649 and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 ac_config_headers="$ac_config_headers config.h"
2667 am__api_version='1.16'
2671 # Find a good install program. We prefer a C program (faster),
2672 # so one script is as good as another. But avoid the broken or
2673 # incompatible versions:
2674 # SysV /etc/install, /usr/sbin/install
2675 # SunOS /usr/etc/install
2676 # IRIX /sbin/install
2678 # AmigaOS /C/install, which installs bootblocks on floppy discs
2679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682 # OS/2's system install, which has a completely different semantic
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 # Reject install programs that cannot install multiple files.
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2686 printf %s "checking for a BSD-compatible install... " >&6; }
2687 if test -z "$INSTALL"; then
2688 if test ${ac_cv_path_install+y}
2690 printf %s "(cached) " >&6
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 case $as_dir in #(((
2699 *) as_dir=$as_dir/ ;;
2701 # Account for fact that we put trailing slashes in our PATH walk.
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2727 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2732 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test ${ac_cv_path_install+y}; then
2749 INSTALL=$ac_cv_path_install
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759 printf "%s\n" "$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2770 printf %s "checking whether build environment is sane... " >&6; }
2771 # Reject unsafe characters in $srcdir or the absolute working directory
2772 # name. Accept space and tab only in the latter.
2776 *[\\\"\#\$\&\'\`$am_lf]*)
2777 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2781 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2784 # Do 'set' in a subshell so we don't clobber the current shell's
2785 # arguments. Must try -L first in case configure is actually a
2786 # symlink; some systems play weird games with the mod time of symlinks
2787 # (eg FreeBSD returns the mod time of the symlink's containing
2791 for am_try in 1 2; do
2792 echo "timestamp, slept: $am_has_slept" > conftest.file
2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2794 if test "$*" = "X"; then
2796 set X `ls -t "$srcdir/configure" conftest.file`
2798 if test "$*" != "X $srcdir/configure conftest.file" \
2799 && test "$*" != "X conftest.file $srcdir/configure"; then
2801 # If neither matched, then we have a broken ls. This can happen
2802 # if, for instance, CONFIG_SHELL is bash and it inherits a
2803 # broken ls alias from the environment. This has actually
2804 # happened. Such a system could not be considered "sane".
2805 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2806 alias in your environment" "$LINENO" 5
2808 if test "$2" = conftest.file || test $am_try -eq 2; then
2815 test "$2" = conftest.file
2821 as_fn_error $? "newly created file is older than distributed files!
2822 Check your system clock" "$LINENO" 5
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2825 printf "%s\n" "yes" >&6; }
2826 # If we didn't sleep, we still need to ensure time stamps of config.status and
2827 # generated files are strictly newer.
2829 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2836 test "$program_prefix" != NONE &&
2837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2838 # Use a double $ so make ignores it.
2839 test "$program_suffix" != NONE &&
2840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2841 # Double any \ or $.
2842 # By default was `s,x,x', remove it if useless.
2843 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2844 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2847 # Expand $ac_aux_dir to an absolute path.
2848 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2851 if test x"${MISSING+set}" != xset; then
2852 MISSING="\${SHELL} '$am_aux_dir/missing'"
2854 # Use eval to expand $SHELL
2855 if eval "$MISSING --is-lightweight"; then
2856 am_missing_run="$MISSING "
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2860 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2863 if test x"${install_sh+set}" != xset; then
2866 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2868 install_sh="\${SHELL} $am_aux_dir/install-sh"
2872 # Installed binaries are usually stripped using 'strip' when the user
2873 # run "make install-strip". However 'strip' might not be the right
2874 # tool to use in cross-compilation environments, therefore Automake
2875 # will honor the 'STRIP' environment variable to overrule this program.
2876 if test "$cross_compiling" != no; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}strip; ac_word=$2
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 printf %s "checking for $ac_word... " >&6; }
2882 if test ${ac_cv_prog_STRIP+y}
2884 printf %s "(cached) " >&6
2886 if test -n "$STRIP"; then
2887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 case $as_dir in #(((
2896 *) as_dir=$as_dir/ ;;
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2910 STRIP=$ac_cv_prog_STRIP
2911 if test -n "$STRIP"; then
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2913 printf "%s\n" "$STRIP" >&6; }
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 printf "%s\n" "no" >&6; }
2921 if test -z "$ac_cv_prog_STRIP"; then
2923 # Extract the first word of "strip", so it can be a program name with args.
2924 set dummy strip; ac_word=$2
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 printf %s "checking for $ac_word... " >&6; }
2927 if test ${ac_cv_prog_ac_ct_STRIP+y}
2929 printf %s "(cached) " >&6
2931 if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 case $as_dir in #(((
2941 *) as_dir=$as_dir/ ;;
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_STRIP="strip"
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956 if test -n "$ac_ct_STRIP"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958 printf "%s\n" "$ac_ct_STRIP" >&6; }
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2964 if test "x$ac_ct_STRIP" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2976 STRIP="$ac_cv_prog_STRIP"
2980 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2984 printf %s "checking for a race-free mkdir -p... " >&6; }
2985 if test -z "$MKDIR_P"; then
2986 if test ${ac_cv_path_mkdir+y}
2988 printf %s "(cached) " >&6
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994 case $as_dir in #(((
2997 *) as_dir=$as_dir/ ;;
2999 for ac_prog in mkdir gmkdir; do
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3002 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3003 'mkdir ('*'coreutils) '* | \
3005 'mkdir (fileutils) '4.1*)
3006 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3016 test -d ./--version && rmdir ./--version
3017 if test ${ac_cv_path_mkdir+y}; then
3018 MKDIR_P="$ac_cv_path_mkdir -p"
3020 # As a last resort, use the slow shell script. Don't cache a
3021 # value for MKDIR_P within a source directory, because that will
3022 # break other packages using the cache if that directory is
3023 # removed, or if the value is a relative name.
3024 MKDIR_P="$ac_install_sh -d"
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3028 printf "%s\n" "$MKDIR_P" >&6; }
3030 for ac_prog in gawk mawk nawk awk
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 printf %s "checking for $ac_word... " >&6; }
3036 if test ${ac_cv_prog_AWK+y}
3038 printf %s "(cached) " >&6
3040 if test -n "$AWK"; then
3041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 case $as_dir in #(((
3050 *) as_dir=$as_dir/ ;;
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_AWK="$ac_prog"
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3065 if test -n "$AWK"; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3067 printf "%s\n" "$AWK" >&6; }
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3074 test -n "$AWK" && break
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3078 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3080 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3081 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3083 printf %s "(cached) " >&6
3085 cat >conftest.make <<\_ACEOF
3088 @echo '@@@%%%=$(MAKE)=@@@%%%'
3090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3093 eval ac_cv_prog_make_${ac_make}_set=yes;;
3095 eval ac_cv_prog_make_${ac_make}_set=no;;
3099 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3101 printf "%s\n" "yes" >&6; }
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 printf "%s\n" "no" >&6; }
3106 SET_MAKE="MAKE=${MAKE-make}"
3109 rm -rf .tst 2>/dev/null
3110 mkdir .tst 2>/dev/null
3111 if test -d .tst; then
3116 rmdir .tst 2>/dev/null
3118 # Check whether --enable-silent-rules was given.
3119 if test ${enable_silent_rules+y}
3121 enableval=$enable_silent_rules;
3124 case $enable_silent_rules in # (((
3125 yes) AM_DEFAULT_VERBOSITY=0;;
3126 no) AM_DEFAULT_VERBOSITY=1;;
3127 *) AM_DEFAULT_VERBOSITY=1;;
3129 am_make=${MAKE-make}
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3131 printf %s "checking whether $am_make supports nested variables... " >&6; }
3132 if test ${am_cv_make_support_nested_variables+y}
3134 printf %s "(cached) " >&6
3136 if printf "%s\n" 'TRUE=$(BAR$(V))
3142 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3143 am_cv_make_support_nested_variables=yes
3145 am_cv_make_support_nested_variables=no
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3149 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3150 if test $am_cv_make_support_nested_variables = yes; then
3152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3154 AM_V=$AM_DEFAULT_VERBOSITY
3155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3159 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3160 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3161 # is not polluted with repeated "-I."
3162 am__isrc=' -I$(srcdir)'
3163 # test to see if srcdir already configured
3164 if test -f $srcdir/config.status; then
3165 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3169 # test whether we have cygpath
3170 if test -z "$CYGPATH_W"; then
3171 if (cygpath --version) >/dev/null 2>/dev/null; then
3172 CYGPATH_W='cygpath -w'
3179 # Define the identity of the package.
3184 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3187 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3189 # Some tools Automake needs.
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3205 # For better backward compatibility. To be removed once Automake 1.9.x
3206 # dies out for good. For more background, see:
3207 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3208 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3209 mkdir_p='$(MKDIR_P)'
3211 # We need awk for the "check" target (and possibly the TAP driver). The
3212 # system "awk" is bad on some platforms.
3213 # Always define AMTAR for backward compatibility. Yes, it's still used
3214 # in the wild :-( We should find a proper way to deprecate it ...
3218 # We'll loop over all known methods to create a tar archive until one works.
3219 _am_tools='gnutar pax cpio none'
3221 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3227 # Variables for tags utilities; see am/tags.am
3228 if test -z "$CTAGS"; then
3232 if test -z "$ETAGS"; then
3236 if test -z "$CSCOPE"; then
3242 # POSIX will say in a future version that running "rm -f" with no argument
3243 # is OK; and we want to be able to make that assumption in our Makefile
3244 # recipes. So use an aggressive probe to check that the usage we want is
3245 # actually supported "in the wild" to an acceptable degree.
3246 # See automake bug#10828.
3247 # To make any issue more visible, cause the running configure to be aborted
3248 # by default if the 'rm' program in use doesn't match our expectations; the
3249 # user can still override this though.
3250 if rm -f && rm -fr && rm -rf; then : OK; else
3254 Your 'rm' program seems unable to run without file operands specified
3255 on the command line, even when the '-f' option is present. This is contrary
3256 to the behaviour of most rm programs out there, and not conforming with
3257 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3259 Please tell bug-automake@gnu.org about your system, including the value
3260 of your $PATH and any error possibly output before this message. This
3261 can help us improve future automake versions.
3264 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3265 echo 'Configuration will proceed anyway, since you have set the' >&2
3266 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3270 Aborting the configuration process, to ensure you take notice of the issue.
3272 You can download and install GNU coreutils to get an 'rm' implementation
3273 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3275 If you want to complete the configuration process using your problematic
3276 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3277 to "yes", and re-run configure.
3280 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301 if test -n "$ac_tool_prefix"; then
3302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 printf %s "checking for $ac_word... " >&6; }
3306 if test ${ac_cv_prog_CC+y}
3308 printf %s "(cached) " >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 case $as_dir in #(((
3320 *) as_dir=$as_dir/ ;;
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3335 if test -n "$CC"; then
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 printf "%s\n" "$CC" >&6; }
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 printf "%s\n" "no" >&6; }
3345 if test -z "$ac_cv_prog_CC"; then
3347 # Extract the first word of "gcc", so it can be a program name with args.
3348 set dummy gcc; ac_word=$2
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 printf %s "checking for $ac_word... " >&6; }
3351 if test ${ac_cv_prog_ac_ct_CC+y}
3353 printf %s "(cached) " >&6
3355 if test -n "$ac_ct_CC"; then
3356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 case $as_dir in #(((
3365 *) as_dir=$as_dir/ ;;
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_CC="gcc"
3370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380 if test -n "$ac_ct_CC"; then
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382 printf "%s\n" "$ac_ct_CC" >&6; }
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 printf "%s\n" "no" >&6; }
3388 if test "x$ac_ct_CC" = x; then
3391 case $cross_compiling:$ac_tool_warned in
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned=yes ;;
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}cc; ac_word=$2
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 printf %s "checking for $ac_word... " >&6; }
3409 if test ${ac_cv_prog_CC+y}
3411 printf %s "(cached) " >&6
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 case $as_dir in #(((
3423 *) as_dir=$as_dir/ ;;
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}cc"
3428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438 if test -n "$CC"; then
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 printf "%s\n" "$CC" >&6; }
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3449 if test -z "$CC"; then
3450 # Extract the first word of "cc", so it can be a program name with args.
3451 set dummy cc; ac_word=$2
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 printf %s "checking for $ac_word... " >&6; }
3454 if test ${ac_cv_prog_CC+y}
3456 printf %s "(cached) " >&6
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 case $as_dir in #(((
3469 *) as_dir=$as_dir/ ;;
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3473 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3474 ac_prog_rejected=yes
3478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 if test $ac_prog_rejected = yes; then
3486 # We found a bogon in the path, so make sure we never use it.
3487 set dummy $ac_cv_prog_CC
3489 if test $# != 0; then
3490 # We chose a different compiler from the bogus one.
3491 # However, it has the same basename, so the bogon will be chosen
3492 # first if we set CC to just the basename; use the full file name.
3494 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3500 if test -n "$CC"; then
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 printf "%s\n" "$CC" >&6; }
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 printf "%s\n" "no" >&6; }
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 for ac_prog in cl.exe
3514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 printf %s "checking for $ac_word... " >&6; }
3518 if test ${ac_cv_prog_CC+y}
3520 printf %s "(cached) " >&6
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 case $as_dir in #(((
3532 *) as_dir=$as_dir/ ;;
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547 if test -n "$CC"; then
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 printf "%s\n" "$CC" >&6; }
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 printf "%s\n" "no" >&6; }
3556 test -n "$CC" && break
3559 if test -z "$CC"; then
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 printf %s "checking for $ac_word... " >&6; }
3567 if test ${ac_cv_prog_ac_ct_CC+y}
3569 printf %s "(cached) " >&6
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 case $as_dir in #(((
3581 *) as_dir=$as_dir/ ;;
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="$ac_prog"
3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 printf "%s\n" "$ac_ct_CC" >&6; }
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3605 test -n "$ac_ct_CC" && break
3608 if test "x$ac_ct_CC" = x; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615 ac_tool_warned=yes ;;
3622 if test -z "$CC"; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}clang; ac_word=$2
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 printf %s "checking for $ac_word... " >&6; }
3628 if test ${ac_cv_prog_CC+y}
3630 printf %s "(cached) " >&6
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 case $as_dir in #(((
3642 *) as_dir=$as_dir/ ;;
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="${ac_tool_prefix}clang"
3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3657 if test -n "$CC"; then
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 printf "%s\n" "$CC" >&6; }
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 printf "%s\n" "no" >&6; }
3667 if test -z "$ac_cv_prog_CC"; then
3669 # Extract the first word of "clang", so it can be a program name with args.
3670 set dummy clang; ac_word=$2
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 printf %s "checking for $ac_word... " >&6; }
3673 if test ${ac_cv_prog_ac_ct_CC+y}
3675 printf %s "(cached) " >&6
3677 if test -n "$ac_ct_CC"; then
3678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 case $as_dir in #(((
3687 *) as_dir=$as_dir/ ;;
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_ac_ct_CC="clang"
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3702 if test -n "$ac_ct_CC"; then
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3704 printf "%s\n" "$ac_ct_CC" >&6; }
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 printf "%s\n" "no" >&6; }
3710 if test "x$ac_ct_CC" = x; then
3713 case $cross_compiling:$ac_tool_warned in
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717 ac_tool_warned=yes ;;
3728 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $? "no acceptable C compiler found in \$PATH
3731 See \`config.log' for more details" "$LINENO" 5; }
3733 # Provide some information about the compiler.
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3737 for ac_option in --version -v -V -qversion -version; do
3738 { { ac_try="$ac_compiler $ac_option >&5"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 printf "%s\n" "$ac_try_echo"; } >&5
3745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3747 if test -s conftest.err; then
3749 ... rest of stderr output deleted ...
3750 10q' conftest.err >conftest.er1
3751 cat conftest.er1 >&5
3753 rm -f conftest.er1 conftest.err
3754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3769 ac_clean_files_save=$ac_clean_files
3770 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3771 # Try to create an executable without -o first, disregard a.out.
3772 # It will help us diagnose broken compilers, and finding out an intuition
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3775 printf %s "checking whether the C compiler works... " >&6; }
3776 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3778 # The possible output files:
3779 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3782 for ac_file in $ac_files
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3791 if { { ac_try="$ac_link_default"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 printf "%s\n" "$ac_try_echo"; } >&5
3798 (eval "$ac_link_default") 2>&5
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }
3803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3804 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3805 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3806 # so that the user can short-circuit this test for compilers unknown to
3808 for ac_file in $ac_files ''
3810 test -f "$ac_file" || continue
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3815 # We found the default executable, but exeext='' is most
3819 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3823 # We set ac_cv_exeext here because the later test for it is not
3824 # safe: cross compilers may not add the suffix if given an `-o'
3825 # argument, so we may need to know it at that point already.
3826 # Even if this section looks crufty: it has the advantage of
3833 test "$ac_cv_exeext" = no && ac_cv_exeext=
3838 if test -z "$ac_file"
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 printf "%s\n" "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error 77 "C compiler cannot create executables
3848 See \`config.log' for more details" "$LINENO" 5; }
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851 printf "%s\n" "yes" >&6; }
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 printf %s "checking for C compiler default output file name... " >&6; }
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 printf "%s\n" "$ac_file" >&6; }
3857 ac_exeext=$ac_cv_exeext
3859 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3860 ac_clean_files=$ac_clean_files_save
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3862 printf %s "checking for suffix of executables... " >&6; }
3863 if { { ac_try="$ac_link"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 printf "%s\n" "$ac_try_echo"; } >&5
3870 (eval "$ac_link") 2>&5
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3877 # work properly (i.e., refer to `conftest.exe'), while it won't with
3879 for ac_file in conftest.exe conftest conftest.*; do
3880 test -f "$ac_file" || continue
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 rm -f conftest conftest$ac_cv_exeext
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3896 printf "%s\n" "$ac_cv_exeext" >&6; }
3898 rm -f conftest.$ac_ext
3899 EXEEXT=$ac_cv_exeext
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3907 FILE *f = fopen ("conftest.out", "w");
3908 return ferror (f) || fclose (f) != 0;
3914 ac_clean_files="$ac_clean_files conftest.out"
3915 # Check that the compiler produces executables we can run. If not, either
3916 # the compiler is broken, or we cross compile.
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3918 printf %s "checking whether we are cross compiling... " >&6; }
3919 if test "$cross_compiling" != yes; then
3920 { { ac_try="$ac_link"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 printf "%s\n" "$ac_try_echo"; } >&5
3927 (eval "$ac_link") 2>&5
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 if { ac_try='./conftest$ac_cv_exeext'
3932 { { case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_try") 2>&5
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; }; then
3944 if test "$cross_compiling" = maybe; then
3947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error 77 "cannot run C compiled programs.
3950 If you meant to cross compile, use \`--host'.
3951 See \`config.log' for more details" "$LINENO" 5; }
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 printf "%s\n" "$cross_compiling" >&6; }
3958 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3961 printf %s "checking for suffix of object files... " >&6; }
3962 if test ${ac_cv_objext+y}
3964 printf %s "(cached) " >&6
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3977 rm -f conftest.o conftest.obj
3978 if { { ac_try="$ac_compile"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_compile") 2>&5
3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }
3990 for ac_file in conftest.o conftest.obj conftest.*; do
3991 test -f "$ac_file" || continue;
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3999 printf "%s\n" "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "cannot compute suffix of object files: cannot compile
4005 See \`config.log' for more details" "$LINENO" 5; }
4007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4010 printf "%s\n" "$ac_cv_objext" >&6; }
4011 OBJEXT=$ac_cv_objext
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4014 printf %s "checking whether the compiler supports GNU C... " >&6; }
4015 if test ${ac_cv_c_compiler_gnu+y}
4017 printf %s "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4033 if ac_fn_c_try_compile "$LINENO"
4039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4044 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 if test $ac_compiler_gnu = yes; then
4052 ac_test_CFLAGS=${CFLAGS+y}
4053 ac_save_CFLAGS=$CFLAGS
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4055 printf %s "checking whether $CC accepts -g... " >&6; }
4056 if test ${ac_cv_prog_cc_g+y}
4058 printf %s "(cached) " >&6
4060 ac_save_c_werror_flag=$ac_c_werror_flag
4061 ac_c_werror_flag=yes
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4075 if ac_fn_c_try_compile "$LINENO"
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_c_try_compile "$LINENO"
4112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4120 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4121 if test $ac_test_CFLAGS; then
4122 CFLAGS=$ac_save_CFLAGS
4123 elif test $ac_cv_prog_cc_g = yes; then
4124 if test "$GCC" = yes; then
4130 if test "$GCC" = yes; then
4137 if test x$ac_prog_cc_stdc = xno
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4140 printf %s "checking for $CC option to enable C11 features... " >&6; }
4141 if test ${ac_cv_prog_cc_c11+y}
4143 printf %s "(cached) " >&6
4145 ac_cv_prog_cc_c11=no
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 $ac_c_conftest_c11_program
4151 for ac_arg in '' -std=gnu11
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"
4156 ac_cv_prog_cc_c11=$ac_arg
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam
4159 test "x$ac_cv_prog_cc_c11" != "xno" && break
4161 rm -f conftest.$ac_ext
4165 if test "x$ac_cv_prog_cc_c11" = 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_c11" = 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_c11" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4177 CC="$CC $ac_cv_prog_cc_c11"
4179 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4183 if test x$ac_prog_cc_stdc = xno
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4186 printf %s "checking for $CC option to enable C99 features... " >&6; }
4187 if test ${ac_cv_prog_cc_c99+y}
4189 printf %s "(cached) " >&6
4191 ac_cv_prog_cc_c99=no
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 $ac_c_conftest_c99_program
4197 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"
4202 ac_cv_prog_cc_c99=$ac_arg
4204 rm -f core conftest.err conftest.$ac_objext conftest.beam
4205 test "x$ac_cv_prog_cc_c99" != "xno" && break
4207 rm -f conftest.$ac_ext
4211 if test "x$ac_cv_prog_cc_c99" = xno
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 printf "%s\n" "unsupported" >&6; }
4216 if test "x$ac_cv_prog_cc_c99" = x
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219 printf "%s\n" "none needed" >&6; }
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4222 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4223 CC="$CC $ac_cv_prog_cc_c99"
4225 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4229 if test x$ac_prog_cc_stdc = xno
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4232 printf %s "checking for $CC option to enable C89 features... " >&6; }
4233 if test ${ac_cv_prog_cc_c89+y}
4235 printf %s "(cached) " >&6
4237 ac_cv_prog_cc_c89=no
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 $ac_c_conftest_c89_program
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4245 CC="$ac_save_CC $ac_arg"
4246 if ac_fn_c_try_compile "$LINENO"
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 rm -f conftest.$ac_ext
4257 if test "x$ac_cv_prog_cc_c89" = xno
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 printf "%s\n" "unsupported" >&6; }
4262 if test "x$ac_cv_prog_cc_c89" = x
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 printf "%s\n" "none needed" >&6; }
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4269 CC="$CC $ac_cv_prog_cc_c89"
4271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4289 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4290 if test ${am_cv_prog_cc_c_o+y}
4292 printf %s "(cached) " >&6
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 # Make sure it works both with $CC and with simple cc.
4306 # Following AC_PROG_CC_C_O, we do the test twice because some
4307 # compilers refuse to overwrite an existing .o file with -o,
4308 # though they will create one.
4309 am_cv_prog_cc_c_o=yes
4311 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4312 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } \
4316 && test -f conftest2.$ac_objext; then
4319 am_cv_prog_cc_c_o=no
4323 rm -f core conftest*
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4327 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4328 if test "$am_cv_prog_cc_c_o" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC="$am_aux_dir/compile $CC"
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 DEPDIR="${am__leading_dot}deps"
4344 ac_config_commands="$ac_config_commands depfiles"
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4347 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4348 cat > confinc.mk << 'END'
4350 @echo this is the am__doit target >confinc.out
4355 # BSD make does it like this.
4356 echo '.include "confinc.mk" # ignored' > confmf.BSD
4357 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4358 echo 'include confinc.mk # ignored' > confmf.GNU
4360 for s in GNU BSD; do
4361 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4362 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }
4366 case $?:`cat confinc.out 2>/dev/null` in #(
4367 '0:this is the am__doit target') :
4370 am__include='.include' am__quote='"' ;; #(
4372 am__include='include' am__quote='' ;;
4377 if test "$am__include" != "#"; then
4378 _am_result="yes ($s style)"
4382 rm -f confinc.* confmf.*
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4384 printf "%s\n" "${_am_result}" >&6; }
4386 # Check whether --enable-dependency-tracking was given.
4387 if test ${enable_dependency_tracking+y}
4389 enableval=$enable_dependency_tracking;
4392 if test "x$enable_dependency_tracking" != xno; then
4393 am_depcomp="$ac_aux_dir/depcomp"
4397 if test "x$enable_dependency_tracking" != xno; then
4407 depcc="$CC" am_compiler_list=
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4410 printf %s "checking dependency style of $depcc... " >&6; }
4411 if test ${am_cv_CC_dependencies_compiler_type+y}
4413 printf %s "(cached) " >&6
4415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4416 # We make a subdir and do the tests there. Otherwise we can end up
4417 # making bogus files that we don't know about and never remove. For
4418 # instance it was reported that on HP-UX the gcc test will end up
4419 # making a dummy file named 'D' -- because '-MD' means "put the output
4423 # Copy depcomp to subdir because otherwise we won't find it if we're
4424 # using a relative directory.
4425 cp "$am_depcomp" conftest.dir
4427 # We will build objects and dependencies in a subdirectory because
4428 # it helps to detect inapplicable dependency modes. For instance
4429 # both Tru64's cc and ICC support -MD to output dependencies as a
4430 # side effect of compilation, but ICC will put the dependencies in
4431 # the current directory while Tru64 will put them in the object
4435 am_cv_CC_dependencies_compiler_type=none
4436 if test "$am_compiler_list" = ""; then
4437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4440 case " $depcc " in #(
4441 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444 for depmode in $am_compiler_list; do
4445 # Setup a source with many dependencies, because some compilers
4446 # like to wrap large dependency lists on column 80 (with \), and
4447 # we should not choose a depcomp mode which is confused by this.
4449 # We need to recreate these files for each test, as the compiler may
4450 # overwrite some of them when testing with obscure command lines.
4451 # This happens at least with the AIX C compiler.
4453 for i in 1 2 3 4 5 6; do
4454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4455 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4456 # Solaris 10 /bin/sh.
4457 echo '/* dummy */' > sub/conftst$i.h
4459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4461 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4462 # mode. It turns out that the SunPro C++ compiler does not properly
4463 # handle '-M -o', and we need to detect this. Also, some Intel
4464 # versions had trouble with output in subdirs.
4465 am__obj=sub/conftest.${OBJEXT-o}
4466 am__minus_obj="-o $am__obj"
4469 # This depmode causes a compiler race in universal mode.
4470 test "$am__universal" = false || continue
4473 # After this tag, mechanisms are not by side-effect, so they'll
4474 # only be used when explicitly requested.
4475 if test "x$enable_dependency_tracking" = xyes; then
4481 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4482 # This compiler won't grok '-c -o', but also, the minuso test has
4483 # not run yet. These depmodes are late enough in the game, and
4484 # so weak that their functioning should not be impacted.
4485 am__obj=conftest.${OBJEXT-o}
4490 if depmode=$depmode \
4491 source=sub/conftest.c object=$am__obj \
4492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4493 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4494 >/dev/null 2>conftest.err &&
4495 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4497 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4499 # icc doesn't choke on unknown options, it will just issue warnings
4500 # or remarks (even with -Werror). So we grep stderr for any message
4501 # that says an option was ignored or not supported.
4502 # When given -MP, icc 7.0 and 7.1 complain thusly:
4503 # icc: Command line warning: ignoring option '-M'; no argument required
4504 # The diagnosis changed in icc 8.0:
4505 # icc: Command line remark: option '-MP' not supported
4506 if (grep 'ignoring option' conftest.err ||
4507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4508 am_cv_CC_dependencies_compiler_type=$depmode
4517 am_cv_CC_dependencies_compiler_type=none
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4522 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4523 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4526 test "x$enable_dependency_tracking" != xno \
4527 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4529 am__fastdepCC_FALSE='#'
4531 am__fastdepCC_TRUE='#'
4532 am__fastdepCC_FALSE=
4538 ac_header= ac_cache=
4539 for ac_item in $ac_header_c_list
4541 if test $ac_cache; then
4542 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4543 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4544 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4546 ac_header= ac_cache=
4547 elif test $ac_header; then
4561 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4564 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4574 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4575 if test ${ac_cv_safe_to_define___extensions__+y}
4577 printf %s "(cached) " >&6
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4582 # define __EXTENSIONS__ 1
4583 $ac_includes_default
4592 if ac_fn_c_try_compile "$LINENO"
4594 ac_cv_safe_to_define___extensions__=yes
4596 ac_cv_safe_to_define___extensions__=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4601 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4604 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4605 if test ${ac_cv_should_define__xopen_source+y}
4607 printf %s "(cached) " >&6
4609 ac_cv_should_define__xopen_source=no
4610 if test $ac_cv_header_wchar_h = yes
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4625 if ac_fn_c_try_compile "$LINENO"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4632 #define _XOPEN_SOURCE 500
4643 if ac_fn_c_try_compile "$LINENO"
4645 ac_cv_should_define__xopen_source=yes
4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4653 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4655 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4657 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4659 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4661 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4663 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4665 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4667 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4669 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4671 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4673 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4675 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4677 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4679 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4681 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4683 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4685 if test $ac_cv_header_minix_config_h = yes
4688 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4690 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4692 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4697 if test $ac_cv_safe_to_define___extensions__ = yes
4699 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4702 if test $ac_cv_should_define__xopen_source = yes
4704 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4710 printf %s "checking for an ANSI C-conforming const... " >&6; }
4711 if test ${ac_cv_c_const+y}
4713 printf %s "(cached) " >&6
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4723 /* Ultrix mips cc rejects this sort of thing. */
4724 typedef int charset[2];
4725 const charset cs = { 0, 0 };
4726 /* SunOS 4.1.1 cc rejects this. */
4727 char const *const *pcpcc;
4729 /* NEC SVR4.0.2 mips cc rejects this. */
4730 struct point {int x, y;};
4731 static struct point const zero = {0,0};
4732 /* IBM XL C 1.02.0.0 rejects this.
4733 It does not let you subtract one const X* pointer from another in
4734 an arm of an if-expression whose if-part is not a constant
4736 const char *g = "string";
4737 pcpcc = &g + (g ? g-g : 0);
4738 /* HPUX 7.0 cc rejects these. */
4740 ppc = (char**) pcpcc;
4741 pcpcc = (char const *const *) ppc;
4742 { /* SCO 3.2v4 cc rejects this sort of thing. */
4745 char const *s = 0 ? (char *) 0 : (char const *) 0;
4750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4752 const int *foo = &x[0];
4755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4756 typedef const int *iptr;
4760 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4762 struct s { int j; const int *ap[3]; } bx;
4763 struct s *b = &bx; b->j = 5;
4765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4769 return !cs[0] && !zero.x;
4776 if ac_fn_c_try_compile "$LINENO"
4782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4785 printf "%s\n" "$ac_cv_c_const" >&6; }
4786 if test $ac_cv_c_const = no; then
4788 printf "%s\n" "#define const /**/" >>confdefs.h
4792 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4793 if test "x$ac_cv_type_size_t" = xyes
4798 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4802 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4803 # for constant arguments. Useless!
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4805 printf %s "checking for working alloca.h... " >&6; }
4806 if test ${ac_cv_working_alloca_h+y}
4808 printf %s "(cached) " >&6
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4816 char *p = (char *) alloca (2 * sizeof (int));
4822 if ac_fn_c_try_link "$LINENO"
4824 ac_cv_working_alloca_h=yes
4826 ac_cv_working_alloca_h=no
4828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4829 conftest$ac_exeext conftest.$ac_ext
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4832 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
4833 if test $ac_cv_working_alloca_h = yes; then
4835 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4840 printf %s "checking for alloca... " >&6; }
4841 if test ${ac_cv_func_alloca_works+y}
4843 printf %s "(cached) " >&6
4845 if test $ac_cv_working_alloca_h = yes; then
4846 ac_cv_func_alloca_works=yes
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4854 # define alloca __builtin_alloca
4855 # elif defined _MSC_VER
4856 # include <malloc.h>
4857 # define alloca _alloca
4862 void *alloca (size_t);
4869 char *p = (char *) alloca (1);
4875 if ac_fn_c_try_link "$LINENO"
4877 ac_cv_func_alloca_works=yes
4879 ac_cv_func_alloca_works=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4882 conftest$ac_exeext conftest.$ac_ext
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4885 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
4888 if test $ac_cv_func_alloca_works = yes; then
4890 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
4893 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4894 # that cause trouble. Some versions do not even contain alloca or
4895 # contain a buggy version. If you still want to use their alloca,
4896 # use ar to extract alloca.o from them instead of compiling alloca.c.
4898 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4900 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4904 printf %s "checking stack direction for C alloca... " >&6; }
4905 if test ${ac_cv_c_stack_direction+y}
4907 printf %s "(cached) " >&6
4909 if test "$cross_compiling" = yes
4911 ac_cv_c_stack_direction=0
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 $ac_includes_default
4917 find_stack_direction (int *addr, int depth)
4922 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4923 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4928 main (int argc, char **argv)
4930 return find_stack_direction (0, argc + !argv + 20) < 0;
4933 if ac_fn_c_try_run "$LINENO"
4935 ac_cv_c_stack_direction=1
4937 ac_cv_c_stack_direction=-1
4939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4940 conftest.$ac_objext conftest.beam conftest.$ac_ext
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4945 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
4946 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
4952 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4956 printf %s "checking for grep that handles long lines and -e... " >&6; }
4957 if test ${ac_cv_path_GREP+y}
4959 printf %s "(cached) " >&6
4961 if test -z "$GREP"; then
4962 ac_path_GREP_found=false
4963 # Loop through the user's path and test for each of PROGNAME-LIST
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4968 case $as_dir in #(((
4971 *) as_dir=$as_dir/ ;;
4973 for ac_prog in grep ggrep
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4977 as_fn_executable_p "$ac_path_GREP" || continue
4978 # Check for GNU ac_path_GREP and select it if it is found.
4979 # Check for GNU $ac_path_GREP
4980 case `"$ac_path_GREP" --version 2>&1` in
4982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4985 printf %s 0123456789 >"conftest.in"
4988 cat "conftest.in" "conftest.in" >"conftest.tmp"
4989 mv "conftest.tmp" "conftest.in"
4990 cp "conftest.in" "conftest.nl"
4991 printf "%s\n" 'GREP' >> "conftest.nl"
4992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994 as_fn_arith $ac_count + 1 && ac_count=$as_val
4995 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4996 # Best one so far, save it but keep looking for a better one
4997 ac_cv_path_GREP="$ac_path_GREP"
4998 ac_path_GREP_max=$ac_count
5000 # 10*(2^10) chars as input seems more than enough
5001 test $ac_count -gt 10 && break
5003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 $ac_path_GREP_found && break 3
5011 if test -z "$ac_cv_path_GREP"; then
5012 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5015 ac_cv_path_GREP=$GREP
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5020 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5021 GREP="$ac_cv_path_GREP"
5024 # Autoupdate added the next two lines to ensure that your configure
5025 # script's behavior did not change. They are probably safe to remove.
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5028 printf %s "checking for egrep... " >&6; }
5029 if test ${ac_cv_path_EGREP+y}
5031 printf %s "(cached) " >&6
5033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5034 then ac_cv_path_EGREP="$GREP -E"
5036 if test -z "$EGREP"; then
5037 ac_path_EGREP_found=false
5038 # Loop through the user's path and test for each of PROGNAME-LIST
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5043 case $as_dir in #(((
5046 *) as_dir=$as_dir/ ;;
5048 for ac_prog in egrep
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5052 as_fn_executable_p "$ac_path_EGREP" || continue
5053 # Check for GNU ac_path_EGREP and select it if it is found.
5054 # Check for GNU $ac_path_EGREP
5055 case `"$ac_path_EGREP" --version 2>&1` in
5057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5060 printf %s 0123456789 >"conftest.in"
5063 cat "conftest.in" "conftest.in" >"conftest.tmp"
5064 mv "conftest.tmp" "conftest.in"
5065 cp "conftest.in" "conftest.nl"
5066 printf "%s\n" 'EGREP' >> "conftest.nl"
5067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069 as_fn_arith $ac_count + 1 && ac_count=$as_val
5070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5071 # Best one so far, save it but keep looking for a better one
5072 ac_cv_path_EGREP="$ac_path_EGREP"
5073 ac_path_EGREP_max=$ac_count
5075 # 10*(2^10) chars as input seems more than enough
5076 test $ac_count -gt 10 && break
5078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081 $ac_path_EGREP_found && break 3
5086 if test -z "$ac_cv_path_EGREP"; then
5087 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5090 ac_cv_path_EGREP=$EGREP
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5096 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5097 EGREP="$ac_cv_path_EGREP"
5101 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5102 if test "x$ac_cv_header_string_h" = xyes
5104 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5107 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5108 if test "x$ac_cv_header_stdlib_h" = xyes
5110 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5113 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5114 if test "x$ac_cv_header_unistd_h" = xyes
5116 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5119 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5120 if test "x$ac_cv_header_stdarg_h" = xyes
5122 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
5125 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
5126 if test "x$ac_cv_header_math_h" = xyes
5128 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
5131 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
5132 if test "x$ac_cv_header_pwd_h" = xyes
5134 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
5138 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5139 if test "x$ac_cv_header_sys_types_h" = xyes
5141 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
5144 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
5145 if test "x$ac_cv_header_sys_stat_h" = xyes
5147 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
5152 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
5153 if test "x$ac_cv_func_strchr" = xyes
5155 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
5158 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
5159 if test "x$ac_cv_func_getcwd" = xyes
5161 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
5165 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5166 if test "x$ac_cv_func_strerror" = xyes
5168 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
5171 case " $LIBOBJS " in
5172 *" strerror.$ac_objext "* ) ;;
5173 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
5178 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
5179 if test "x$ac_cv_func_memmove" = xyes
5181 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
5184 case " $LIBOBJS " in
5185 *" memmove.$ac_objext "* ) ;;
5186 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
5191 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
5192 if test "x$ac_cv_func_memcpy" = xyes
5194 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
5197 case " $LIBOBJS " in
5198 *" memcpy.$ac_objext "* ) ;;
5199 *) LIBOBJS="$LIBOBJS memcpy.$ac_objext"
5204 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
5205 if test "x$ac_cv_func_strtoul" = xyes
5207 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
5210 case " $LIBOBJS " in
5211 *" strtoul.$ac_objext "* ) ;;
5212 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
5219 for ac_item in $ac_func_c_list
5221 if test $ac_func; then
5222 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
5223 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
5224 echo "#define $ac_item 1" >> confdefs.h
5232 if test "x$ac_cv_func_vprintf" = xno
5234 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5235 if test "x$ac_cv_func__doprnt" = xyes
5238 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
5245 printf %s "checking for main in -lsun... " >&6; }
5246 if test ${ac_cv_lib_sun_main+y}
5248 printf %s "(cached) " >&6
5250 ac_check_lib_save_LIBS=$LIBS
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5264 if ac_fn_c_try_link "$LINENO"
5266 ac_cv_lib_sun_main=yes
5268 ac_cv_lib_sun_main=no
5270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5271 conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
5275 printf "%s\n" "$ac_cv_lib_sun_main" >&6; }
5276 if test "x$ac_cv_lib_sun_main" = xyes
5278 printf "%s\n" "#define HAVE_LIBSUN 1" >>confdefs.h
5285 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
5286 if test "x$ac_cv_func_gethostname" = xyes
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
5292 printf %s "checking for gethostname in -lnsl... " >&6; }
5293 if test ${ac_cv_lib_nsl_gethostname+y}
5295 printf %s "(cached) " >&6
5297 ac_check_lib_save_LIBS=$LIBS
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5305 char gethostname ();
5309 return gethostname ();
5314 if ac_fn_c_try_link "$LINENO"
5316 ac_cv_lib_nsl_gethostname=yes
5318 ac_cv_lib_nsl_gethostname=no
5320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5321 conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
5325 printf "%s\n" "$ac_cv_lib_nsl_gethostname" >&6; }
5326 if test "x$ac_cv_lib_nsl_gethostname" = xyes
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
5332 printf %s "checking for gethostname in -lsocket... " >&6; }
5333 if test ${ac_cv_lib_socket_gethostname+y}
5335 printf %s "(cached) " >&6
5337 ac_check_lib_save_LIBS=$LIBS
5338 LIBS="-lsocket $LIBS"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5342 /* Override any GCC internal prototype to avoid an error.
5343 Use char because int might match the return type of a GCC
5344 builtin and then its argument prototype would still apply. */
5345 char gethostname ();
5349 return gethostname ();
5354 if ac_fn_c_try_link "$LINENO"
5356 ac_cv_lib_socket_gethostname=yes
5358 ac_cv_lib_socket_gethostname=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5361 conftest$ac_exeext conftest.$ac_ext
5362 LIBS=$ac_check_lib_save_LIBS
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
5365 printf "%s\n" "$ac_cv_lib_socket_gethostname" >&6; }
5366 if test "x$ac_cv_lib_socket_gethostname" = xyes
5368 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
5370 LIBS="-lsocket $LIBS"
5381 if test -n "$ac_tool_prefix"; then
5382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 printf %s "checking for $ac_word... " >&6; }
5386 if test ${ac_cv_prog_RANLIB+y}
5388 printf %s "(cached) " >&6
5390 if test -n "$RANLIB"; then
5391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 case $as_dir in #(((
5400 *) as_dir=$as_dir/ ;;
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5414 RANLIB=$ac_cv_prog_RANLIB
5415 if test -n "$RANLIB"; then
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5417 printf "%s\n" "$RANLIB" >&6; }
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 printf "%s\n" "no" >&6; }
5425 if test -z "$ac_cv_prog_RANLIB"; then
5426 ac_ct_RANLIB=$RANLIB
5427 # Extract the first word of "ranlib", so it can be a program name with args.
5428 set dummy ranlib; ac_word=$2
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 printf %s "checking for $ac_word... " >&6; }
5431 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5433 printf %s "(cached) " >&6
5435 if test -n "$ac_ct_RANLIB"; then
5436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 case $as_dir in #(((
5445 *) as_dir=$as_dir/ ;;
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_ac_ct_RANLIB="ranlib"
5450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5460 if test -n "$ac_ct_RANLIB"; then
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5462 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 printf "%s\n" "no" >&6; }
5468 if test "x$ac_ct_RANLIB" = x; then
5471 case $cross_compiling:$ac_tool_warned in
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5474 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned=yes ;;
5477 RANLIB=$ac_ct_RANLIB
5480 RANLIB="$ac_cv_prog_RANLIB"
5483 for ac_prog in 'bison -y' byacc
5485 # Extract the first word of "$ac_prog", so it can be a program name with args.
5486 set dummy $ac_prog; ac_word=$2
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 printf %s "checking for $ac_word... " >&6; }
5489 if test ${ac_cv_prog_YACC+y}
5491 printf %s "(cached) " >&6
5493 if test -n "$YACC"; then
5494 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 case $as_dir in #(((
5503 *) as_dir=$as_dir/ ;;
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_YACC="$ac_prog"
5508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5517 YACC=$ac_cv_prog_YACC
5518 if test -n "$YACC"; then
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5520 printf "%s\n" "$YACC" >&6; }
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 printf "%s\n" "no" >&6; }
5527 test -n "$YACC" && break
5529 test -n "$YACC" || YACC="yacc"
5531 for ac_prog in flex lex
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 printf %s "checking for $ac_word... " >&6; }
5537 if test ${ac_cv_prog_LEX+y}
5539 printf %s "(cached) " >&6
5541 if test -n "$LEX"; then
5542 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 case $as_dir in #(((
5551 *) as_dir=$as_dir/ ;;
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_LEX="$ac_prog"
5556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5566 if test -n "$LEX"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5568 printf "%s\n" "$LEX" >&6; }
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 printf "%s\n" "no" >&6; }
5575 test -n "$LEX" && break
5577 test -n "$LEX" || LEX=":"
5579 if test "x$LEX" != "x:"; then
5580 cat >conftest.l <<_ACEOF
5592 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5594 yyless ((yyinput () != 0));
5596 yyless ((input () != 0));
5599 f { unput (yytext[0]); }
5600 . { BEGIN INITIAL; }
5602 #ifdef YYTEXT_POINTER
5603 extern char *yytext;
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
5617 printf %s "checking for lex output file root... " >&6; }
5618 if test ${ac_cv_prog_lex_root+y}
5620 printf %s "(cached) " >&6
5623 ac_cv_prog_lex_root=unknown
5624 { { ac_try="$LEX conftest.l"
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5630 printf "%s\n" "$ac_try_echo"; } >&5
5631 (eval "$LEX conftest.l") 2>&5
5633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; } &&
5635 if test -f lex.yy.c; then
5636 ac_cv_prog_lex_root=lex.yy
5637 elif test -f lexyy.c; then
5638 ac_cv_prog_lex_root=lexyy
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5642 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
5643 if test "$ac_cv_prog_lex_root" = unknown
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
5646 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
5649 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
5657 printf %s "checking for lex library... " >&6; }
5658 if test ${ac_cv_lib_lex+y}
5660 printf %s "(cached) " >&6
5663 ac_save_LIBS="$LIBS"
5665 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
5666 case $ac_cv_lib_lex in #(
5672 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 `cat $LEX_OUTPUT_ROOT.c`
5681 if ac_fn_c_try_link "$LINENO"
5685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5686 conftest$ac_exeext conftest.$ac_ext
5691 LIBS="$ac_save_LIBS"
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5695 printf "%s\n" "$ac_cv_lib_lex" >&6; }
5696 if test "$ac_cv_lib_lex" = 'not found'
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
5699 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
5701 elif test "$ac_cv_lib_lex" = 'none needed'
5705 LEXLIB=$ac_cv_lib_lex
5707 ac_save_LIBS="$LIBS"
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
5710 printf %s "checking for library containing yywrap... " >&6; }
5711 if test ${ac_cv_search_yywrap+y}
5713 printf %s "(cached) " >&6
5715 ac_func_search_save_LIBS=$LIBS
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5719 /* Override any GCC internal prototype to avoid an error.
5720 Use char because int might match the return type of a GCC
5721 builtin and then its argument prototype would still apply. */
5731 for ac_lib in '' fl l
5733 if test -z "$ac_lib"; then
5734 ac_res="none required"
5737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5739 if ac_fn_c_try_link "$LINENO"
5741 ac_cv_search_yywrap=$ac_res
5743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5745 if test ${ac_cv_search_yywrap+y}
5750 if test ${ac_cv_search_yywrap+y}
5754 ac_cv_search_yywrap=no
5757 LIBS=$ac_func_search_save_LIBS
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
5760 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
5761 ac_res=$ac_cv_search_yywrap
5762 if test "$ac_res" != no
5764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5768 LIBS="$ac_save_LIBS"
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5776 printf %s "checking whether yytext is a pointer... " >&6; }
5777 if test ${ac_cv_prog_lex_yytext_pointer+y}
5779 printf %s "(cached) " >&6
5781 # POSIX says lex can declare yytext either as a pointer or an array; the
5782 # default is implementation-dependent. Figure out which it is, since
5783 # not all implementations provide the %pointer and %array declarations.
5784 ac_cv_prog_lex_yytext_pointer=no
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5788 #define YYTEXT_POINTER 1
5789 `cat $LEX_OUTPUT_ROOT.c`
5791 if ac_fn_c_try_compile "$LINENO"
5793 ac_cv_prog_lex_yytext_pointer=yes
5795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5799 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
5800 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5802 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
5807 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5810 if test "$LEX" = :; then
5811 LEX=${am_missing_run}flex
5814 # Check whether --enable-debug was given.
5815 if test ${enable_debug+y}
5817 enableval=$enable_debug;
5818 echo enabling debugging
5819 if test -n "$GCC"; then
5820 CFLAGS="$CFLAGS -Wall"
5828 # Check whether --with-media was given.
5829 if test ${with_media+y}
5831 withval=$with_media; if test "X$withval" != "Xno"; then
5832 if test "X$withval" = "Xyes"; then
5833 ac_cv_value_media='Letter'
5835 ac_cv_value_media=$withval
5838 ac_cv_value_media=${MEDIA-A4}
5841 ac_cv_value_media=${MEDIA-A4}
5845 MEDIA=$ac_cv_value_media
5849 # Check whether --with-encoding was given.
5850 if test ${with_encoding+y}
5852 withval=$with_encoding; if test "X$withval" != "Xno"; then
5853 if test "X$withval" = "Xyes"; then
5854 ac_cv_value_encoding='latin1'
5856 ac_cv_value_encoding=$withval
5859 ac_cv_value_encoding=${ENCODING-latin1}
5862 ac_cv_value_encoding=${ENCODING-latin1}
5866 ENCODING=$ac_cv_value_encoding
5870 # Extract the first word of "lpr", so it can be a program name with args.
5871 set dummy lpr; ac_word=$2
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 printf %s "checking for $ac_word... " >&6; }
5874 if test ${ac_cv_prog_SPOOLER+y}
5876 printf %s "(cached) " >&6
5878 if test -n "$SPOOLER"; then
5879 ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 case $as_dir in #(((
5888 *) as_dir=$as_dir/ ;;
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_SPOOLER="lpr"
5893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5902 SPOOLER=$ac_cv_prog_SPOOLER
5903 if test -n "$SPOOLER"; then
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPOOLER" >&5
5905 printf "%s\n" "$SPOOLER" >&6; }
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 printf "%s\n" "no" >&6; }
5912 # Extract the first word of "lp", so it can be a program name with args.
5913 set dummy lp; ac_word=$2
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 printf %s "checking for $ac_word... " >&6; }
5916 if test ${ac_cv_prog_SPOOLER+y}
5918 printf %s "(cached) " >&6
5920 if test -n "$SPOOLER"; then
5921 ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 case $as_dir in #(((
5930 *) as_dir=$as_dir/ ;;
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_SPOOLER="lp"
5935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5944 SPOOLER=$ac_cv_prog_SPOOLER
5945 if test -n "$SPOOLER"; then
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPOOLER" >&5
5947 printf "%s\n" "$SPOOLER" >&6; }
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 printf "%s\n" "no" >&6; }
5956 # Check whether --with-spooler was given.
5957 if test ${with_spooler+y}
5959 withval=$with_spooler; if test "X$withval" != "Xno"; then
5966 if test "X$SPOOLER" = "X"; then
5972 # Check whether --with-ps-level was given.
5973 if test ${with_ps_level+y}
5975 withval=$with_ps_level; if test "X$withval" != "Xno"; then
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5984 printf %s "checking for a sed that does not truncate output... " >&6; }
5985 if test ${ac_cv_path_SED+y}
5987 printf %s "(cached) " >&6
5989 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5990 for ac_i in 1 2 3 4 5 6 7; do
5991 ac_script="$ac_script$as_nl$ac_script"
5993 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5994 { ac_script=; unset ac_script;}
5995 if test -z "$SED"; then
5996 ac_path_SED_found=false
5997 # Loop through the user's path and test for each of PROGNAME-LIST
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 case $as_dir in #(((
6005 *) as_dir=$as_dir/ ;;
6007 for ac_prog in sed gsed
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6011 as_fn_executable_p "$ac_path_SED" || continue
6012 # Check for GNU ac_path_SED and select it if it is found.
6013 # Check for GNU $ac_path_SED
6014 case `"$ac_path_SED" --version 2>&1` in
6016 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6019 printf %s 0123456789 >"conftest.in"
6022 cat "conftest.in" "conftest.in" >"conftest.tmp"
6023 mv "conftest.tmp" "conftest.in"
6024 cp "conftest.in" "conftest.nl"
6025 printf "%s\n" '' >> "conftest.nl"
6026 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6028 as_fn_arith $ac_count + 1 && ac_count=$as_val
6029 if test $ac_count -gt ${ac_path_SED_max-0}; then
6030 # Best one so far, save it but keep looking for a better one
6031 ac_cv_path_SED="$ac_path_SED"
6032 ac_path_SED_max=$ac_count
6034 # 10*(2^10) chars as input seems more than enough
6035 test $ac_count -gt 10 && break
6037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6040 $ac_path_SED_found && break 3
6045 if test -z "$ac_cv_path_SED"; then
6046 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6054 printf "%s\n" "$ac_cv_path_SED" >&6; }
6055 SED="$ac_cv_path_SED"
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6060 printf %s "checking whether NLS is requested... " >&6; }
6061 # Check whether --enable-nls was given.
6062 if test ${enable_nls+y}
6064 enableval=$enable_nls; USE_NLS=$enableval
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6070 printf "%s\n" "$USE_NLS" >&6; }
6075 GETTEXT_MACRO_VERSION=0.20
6080 # Prepare PATH_SEPARATOR.
6081 # The user is always right.
6082 if test "${PATH_SEPARATOR+set}" != set; then
6083 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6084 # contains only /bin. Note that ksh looks also at the FPATH variable,
6085 # so we have to set that as well for the test.
6087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6088 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6089 || PATH_SEPARATOR=';'
6093 # Find out how to test for executable files. Don't use a zero-byte file,
6094 # as systems may use methods other than mode bits to determine executability.
6095 cat >conf$$.file <<_ASEOF
6099 chmod +x conf$$.file
6100 if test -x conf$$.file >/dev/null 2>&1; then
6101 ac_executable_p="test -x"
6103 ac_executable_p="test -f"
6107 # Extract the first word of "msgfmt", so it can be a program name with args.
6108 set dummy msgfmt; ac_word=$2
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 printf %s "checking for $ac_word... " >&6; }
6111 if test ${ac_cv_path_MSGFMT+y}
6113 printf %s "(cached) " >&6
6117 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6120 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6121 for ac_dir in $PATH; do
6123 test -z "$ac_dir" && ac_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6126 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6127 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6128 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6129 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6136 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6140 MSGFMT="$ac_cv_path_MSGFMT"
6141 if test "$MSGFMT" != ":"; then
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6143 printf "%s\n" "$MSGFMT" >&6; }
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 printf "%s\n" "no" >&6; }
6149 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6150 set dummy gmsgfmt; ac_word=$2
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 printf %s "checking for $ac_word... " >&6; }
6153 if test ${ac_cv_path_GMSGFMT+y}
6155 printf %s "(cached) " >&6
6159 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 case $as_dir in #(((
6169 *) as_dir=$as_dir/ ;;
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6173 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
6174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6181 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6185 GMSGFMT=$ac_cv_path_GMSGFMT
6186 if test -n "$GMSGFMT"; then
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6188 printf "%s\n" "$GMSGFMT" >&6; }
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 printf "%s\n" "no" >&6; }
6196 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6197 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6198 *) GMSGFMT_015=$GMSGFMT ;;
6203 # Prepare PATH_SEPARATOR.
6204 # The user is always right.
6205 if test "${PATH_SEPARATOR+set}" != set; then
6206 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6207 # contains only /bin. Note that ksh looks also at the FPATH variable,
6208 # so we have to set that as well for the test.
6210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6211 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6212 || PATH_SEPARATOR=';'
6216 # Find out how to test for executable files. Don't use a zero-byte file,
6217 # as systems may use methods other than mode bits to determine executability.
6218 cat >conf$$.file <<_ASEOF
6222 chmod +x conf$$.file
6223 if test -x conf$$.file >/dev/null 2>&1; then
6224 ac_executable_p="test -x"
6226 ac_executable_p="test -f"
6230 # Extract the first word of "xgettext", so it can be a program name with args.
6231 set dummy xgettext; ac_word=$2
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 printf %s "checking for $ac_word... " >&6; }
6234 if test ${ac_cv_path_XGETTEXT+y}
6236 printf %s "(cached) " >&6
6240 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6243 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6244 for ac_dir in $PATH; do
6246 test -z "$ac_dir" && ac_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6249 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6250 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6251 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6252 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6259 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6263 XGETTEXT="$ac_cv_path_XGETTEXT"
6264 if test "$XGETTEXT" != ":"; then
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6266 printf "%s\n" "$XGETTEXT" >&6; }
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 printf "%s\n" "no" >&6; }
6274 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6275 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6276 *) XGETTEXT_015=$XGETTEXT ;;
6281 # Prepare PATH_SEPARATOR.
6282 # The user is always right.
6283 if test "${PATH_SEPARATOR+set}" != set; then
6284 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6285 # contains only /bin. Note that ksh looks also at the FPATH variable,
6286 # so we have to set that as well for the test.
6288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6289 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6290 || PATH_SEPARATOR=';'
6294 # Find out how to test for executable files. Don't use a zero-byte file,
6295 # as systems may use methods other than mode bits to determine executability.
6296 cat >conf$$.file <<_ASEOF
6300 chmod +x conf$$.file
6301 if test -x conf$$.file >/dev/null 2>&1; then
6302 ac_executable_p="test -x"
6304 ac_executable_p="test -f"
6308 # Extract the first word of "msgmerge", so it can be a program name with args.
6309 set dummy msgmerge; ac_word=$2
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 printf %s "checking for $ac_word... " >&6; }
6312 if test ${ac_cv_path_MSGMERGE+y}
6314 printf %s "(cached) " >&6
6318 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6321 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6322 for ac_dir in $PATH; do
6324 test -z "$ac_dir" && ac_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6327 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6328 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6329 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6336 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6340 MSGMERGE="$ac_cv_path_MSGMERGE"
6341 if test "$MSGMERGE" != ":"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6343 printf "%s\n" "$MSGMERGE" >&6; }
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6350 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
6351 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
6353 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
6354 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
6356 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
6361 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6364 ac_config_commands="$ac_config_commands po-directories"
6368 if test "X$prefix" = "XNONE"; then
6369 acl_final_prefix="$ac_default_prefix"
6371 acl_final_prefix="$prefix"
6373 if test "X$exec_prefix" = "XNONE"; then
6374 acl_final_exec_prefix='${prefix}'
6376 acl_final_exec_prefix="$exec_prefix"
6378 acl_save_prefix="$prefix"
6379 prefix="$acl_final_prefix"
6380 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6381 prefix="$acl_save_prefix"
6385 # Make sure we can run config.sub.
6386 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6387 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6390 printf %s "checking build system type... " >&6; }
6391 if test ${ac_cv_build+y}
6393 printf %s "(cached) " >&6
6395 ac_build_alias=$build_alias
6396 test "x$ac_build_alias" = x &&
6397 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6398 test "x$ac_build_alias" = x &&
6399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6400 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6401 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6405 printf "%s\n" "$ac_cv_build" >&6; }
6406 case $ac_cv_build in
6408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6411 ac_save_IFS=$IFS; IFS='-'
6417 # Remember, the first character of IFS is used to create $*,
6418 # except with old shells:
6421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6425 printf %s "checking host system type... " >&6; }
6426 if test ${ac_cv_host+y}
6428 printf %s "(cached) " >&6
6430 if test "x$host_alias" = x; then
6431 ac_cv_host=$ac_cv_build
6433 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6434 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6439 printf "%s\n" "$ac_cv_host" >&6; }
6442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6445 ac_save_IFS=$IFS; IFS='-'
6451 # Remember, the first character of IFS is used to create $*,
6452 # except with old shells:
6455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6460 # Check whether --with-gnu-ld was given.
6461 if test ${with_gnu_ld+y}
6463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6468 # Prepare PATH_SEPARATOR.
6469 # The user is always right.
6470 if test "${PATH_SEPARATOR+set}" != set; then
6471 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6472 # contains only /bin. Note that ksh looks also at the FPATH variable,
6473 # so we have to set that as well for the test.
6475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6476 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6477 || PATH_SEPARATOR=';'
6481 if test -n "$LD"; then
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
6483 printf %s "checking for ld... " >&6; }
6484 elif test "$GCC" = yes; then
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6486 printf %s "checking for ld used by $CC... " >&6; }
6487 elif test "$with_gnu_ld" = yes; then
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6489 printf %s "checking for GNU ld... " >&6; }
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6492 printf %s "checking for non-GNU ld... " >&6; }
6494 if test -n "$LD"; then
6495 # Let the user override the test with a path.
6498 if test ${acl_cv_path_LD+y}
6500 printf %s "(cached) " >&6
6503 acl_cv_path_LD= # Final result of this test
6504 ac_prog=ld # Program to search in $PATH
6505 if test "$GCC" = yes; then
6506 # Check if gcc -print-prog-name=ld gives a path.
6509 # gcc leaves a trailing carriage return which upsets mingw
6510 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6512 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
6515 # Accept absolute paths.
6517 re_direlt='/[^/][^/]*/\.\./'
6518 # Canonicalize the pathname of ld
6519 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
6520 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
6521 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
6523 # Got the pathname. No search in PATH is needed.
6524 acl_cv_path_LD="$acl_output"
6528 # If it fails, then pretend we aren't using GCC.
6531 # If it is relative, then search for the first ld in PATH.
6536 if test -n "$ac_prog"; then
6537 # Search for $ac_prog in $PATH.
6538 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6539 for ac_dir in $PATH; do
6541 test -z "$ac_dir" && ac_dir=.
6542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6543 acl_cv_path_LD="$ac_dir/$ac_prog"
6544 # Check to see if the program is GNU ld. I'd rather use --version,
6545 # but apparently some variants of GNU ld only accept -v.
6546 # Break only if it was the GNU/non-GNU ld that we prefer.
6547 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6548 *GNU* | *'with BFD'*)
6549 test "$with_gnu_ld" != no && break
6552 test "$with_gnu_ld" != yes && break
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #if defined __powerpc64__ || defined __LP64__
6570 if ac_fn_c_try_compile "$LINENO"
6572 # The compiler produces 64-bit code. Add option '-b64' so that the
6573 # linker groks 64-bit object files.
6574 case "$acl_cv_path_LD " in
6576 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
6580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 #if defined __sparcv9 || defined __arch64__
6592 if ac_fn_c_try_compile "$LINENO"
6596 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
6597 # so that the linker groks 32-bit object files.
6598 case "$acl_cv_path_LD " in
6599 *" -m elf32_sparc "*) ;;
6600 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
6604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6610 LD="$acl_cv_path_LD"
6612 if test -n "$LD"; then
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6614 printf "%s\n" "$LD" >&6; }
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 printf "%s\n" "no" >&6; }
6618 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6621 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6622 if test ${acl_cv_prog_gnu_ld+y}
6624 printf %s "(cached) " >&6
6626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6627 case `$LD -v 2>&1 </dev/null` in
6628 *GNU* | *'with BFD'*)
6629 acl_cv_prog_gnu_ld=yes
6632 acl_cv_prog_gnu_ld=no
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6637 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
6638 with_gnu_ld=$acl_cv_prog_gnu_ld
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6645 printf %s "checking for shared library run path origin... " >&6; }
6646 if test ${acl_cv_rpath+y}
6648 printf %s "(cached) " >&6
6651 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6652 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6659 printf "%s\n" "$acl_cv_rpath" >&6; }
6661 acl_libext="$acl_cv_libext"
6662 acl_shlibext="$acl_cv_shlibext"
6663 acl_libname_spec="$acl_cv_libname_spec"
6664 acl_library_names_spec="$acl_cv_library_names_spec"
6665 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6666 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6667 acl_hardcode_direct="$acl_cv_hardcode_direct"
6668 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6669 # Check whether --enable-rpath was given.
6670 if test ${enable_rpath+y}
6672 enableval=$enable_rpath; :
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
6681 printf %s "checking 32-bit host C ABI... " >&6; }
6682 if test ${gl_cv_host_cpu_c_abi_32bit+y}
6684 printf %s "(cached) " >&6
6686 if test -n "$gl_cv_host_cpu_c_abi"; then
6687 case "$gl_cv_host_cpu_c_abi" in
6688 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
6689 gl_cv_host_cpu_c_abi_32bit=yes ;;
6690 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
6691 gl_cv_host_cpu_c_abi_32bit=no ;;
6693 gl_cv_host_cpu_c_abi_32bit=unknown ;;
6698 # CPUs that only support a 32-bit ABI.
6707 | microblaze | microblazeel \
6708 | nds32 | nds32le | nds32be \
6709 | nios2 | nios2eb | nios2el \
6712 | sh | sh1234 | sh1234elb \
6715 gl_cv_host_cpu_c_abi_32bit=yes
6718 # CPUs that only support a 64-bit ABI.
6719 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
6721 gl_cv_host_cpu_c_abi_32bit=no
6725 gl_cv_host_cpu_c_abi_32bit=yes
6729 # On x86_64 systems, the C compiler may be generating code in one of
6731 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
6732 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
6733 # with native Windows (mingw, MSVC).
6734 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
6735 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #if (defined __x86_64__ || defined __amd64__ \
6739 || defined _M_X64 || defined _M_AMD64) \
6740 && !(defined __ILP32__ || defined _ILP32)
6747 if ac_fn_c_try_compile "$LINENO"
6749 gl_cv_host_cpu_c_abi_32bit=no
6751 gl_cv_host_cpu_c_abi_32bit=yes
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6757 # Assume arm with EABI.
6758 # On arm64 systems, the C compiler may be generating code in one of
6760 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
6761 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
6762 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
6772 if ac_fn_c_try_compile "$LINENO"
6774 gl_cv_host_cpu_c_abi_32bit=no
6776 gl_cv_host_cpu_c_abi_32bit=yes
6778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6781 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
6782 # On hppa, the C compiler may be generating 32-bit code or 64-bit
6783 # code. In the latter case, it defines _LP64 and __LP64__.
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6793 if ac_fn_c_try_compile "$LINENO"
6795 gl_cv_host_cpu_c_abi_32bit=no
6797 gl_cv_host_cpu_c_abi_32bit=yes
6799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6803 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
6804 # 32-bit code. In the latter case, it defines _ILP32.
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6814 if ac_fn_c_try_compile "$LINENO"
6816 gl_cv_host_cpu_c_abi_32bit=yes
6818 gl_cv_host_cpu_c_abi_32bit=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6824 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
6835 if ac_fn_c_try_compile "$LINENO"
6837 gl_cv_host_cpu_c_abi_32bit=no
6839 gl_cv_host_cpu_c_abi_32bit=yes
6841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
6846 # No need to distinguish them here; the caller may distinguish
6847 # them based on the OS.
6848 # On powerpc64 systems, the C compiler may still be generating
6849 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
6850 # be generating 64-bit code.
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #if defined __powerpc64__ || defined __LP64__
6860 if ac_fn_c_try_compile "$LINENO"
6862 gl_cv_host_cpu_c_abi_32bit=no
6864 gl_cv_host_cpu_c_abi_32bit=yes
6866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6870 gl_cv_host_cpu_c_abi_32bit=yes
6874 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
6875 # Size of 'long' and 'void *':
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #if defined __LP64__
6885 if ac_fn_c_try_compile "$LINENO"
6887 gl_cv_host_cpu_c_abi_32bit=no
6889 gl_cv_host_cpu_c_abi_32bit=yes
6891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6895 # On s390x, the C compiler may be generating 64-bit (= s390x) code
6896 # or 31-bit (= s390) code.
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #if defined __LP64__ || defined __s390x__
6906 if ac_fn_c_try_compile "$LINENO"
6908 gl_cv_host_cpu_c_abi_32bit=no
6910 gl_cv_host_cpu_c_abi_32bit=yes
6912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6916 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
6917 # C compiler still generates 32-bit code.
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #if defined __sparcv9 || defined __arch64__
6927 if ac_fn_c_try_compile "$LINENO"
6929 gl_cv_host_cpu_c_abi_32bit=no
6931 gl_cv_host_cpu_c_abi_32bit=yes
6933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6937 gl_cv_host_cpu_c_abi_32bit=unknown
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
6944 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
6946 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6954 printf %s "checking how to run the C preprocessor... " >&6; }
6955 # On Suns, sometimes $CPP names a directory.
6956 if test -n "$CPP" && test -d "$CPP"; then
6959 if test -z "$CPP"; then
6960 if test ${ac_cv_prog_CPP+y}
6962 printf %s "(cached) " >&6
6964 # Double quotes because $CC needs to be expanded
6965 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6968 for ac_c_preproc_warn_flag in '' yes
6970 # Use a header file that comes with gcc, so configuring glibc
6971 # with a fresh cross-compiler works.
6972 # On the NeXT, cc -E runs the code through the compiler's parser,
6973 # not just through cpp. "Syntax error" is here to catch this case.
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6979 if ac_fn_c_try_cpp "$LINENO"
6983 # Broken: fails on valid input.
6986 rm -f conftest.err conftest.i conftest.$ac_ext
6988 # OK, works on sane cases. Now check whether nonexistent headers
6989 # can be detected and how.
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 #include <ac_nonexistent.h>
6994 if ac_fn_c_try_cpp "$LINENO"
6996 # Broken: success on invalid input.
6999 # Passes both tests.
7003 rm -f conftest.err conftest.i conftest.$ac_ext
7006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7007 rm -f conftest.i conftest.err conftest.$ac_ext
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7022 printf "%s\n" "$CPP" >&6; }
7024 for ac_c_preproc_warn_flag in '' yes
7026 # Use a header file that comes with gcc, so configuring glibc
7027 # with a fresh cross-compiler works.
7028 # On the NeXT, cc -E runs the code through the compiler's parser,
7029 # not just through cpp. "Syntax error" is here to catch this case.
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7035 if ac_fn_c_try_cpp "$LINENO"
7039 # Broken: fails on valid input.
7042 rm -f conftest.err conftest.i conftest.$ac_ext
7044 # OK, works on sane cases. Now check whether nonexistent headers
7045 # can be detected and how.
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <ac_nonexistent.h>
7050 if ac_fn_c_try_cpp "$LINENO"
7052 # Broken: success on invalid input.
7055 # Passes both tests.
7059 rm -f conftest.err conftest.i conftest.$ac_ext
7062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7063 rm -f conftest.i conftest.err conftest.$ac_ext
7068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7069 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7070 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7071 See \`config.log' for more details" "$LINENO" 5; }
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7086 printf %s "checking for ELF binary format... " >&6; }
7087 if test ${gl_cv_elf+y}
7089 printf %s "(cached) " >&6
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
7094 Extensible Linking Format
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "Extensible Linking Format" >/dev/null 2>&1
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7110 printf "%s\n" "$gl_cv_elf" >&6; }
7111 if test $gl_cv_elf = yes; then
7112 # Extract the ELF class of a file (5th byte) in decimal.
7113 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7114 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7118 od -A n -t d1 -j 4 -N 1
7124 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7128 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
7129 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
7131 case $HOST_CPU_C_ABI_32BIT in
7134 acl_is_expected_elfclass ()
7136 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
7141 acl_is_expected_elfclass ()
7143 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
7148 acl_is_expected_elfclass ()
7155 acl_is_expected_elfclass ()
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7162 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
7163 if test ${acl_cv_libdirstems+y}
7165 printf %s "(cached) " >&6
7172 if test $HOST_CPU_C_ABI_32BIT = no; then
7173 acl_libdirstem2=lib/64
7175 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7176 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7181 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7182 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7183 if test $HOST_CPU_C_ABI_32BIT != no; then
7184 # 32-bit or unknown ABI.
7185 if test -d /usr/lib32; then
7186 acl_libdirstem2=lib32
7189 if test $HOST_CPU_C_ABI_32BIT != yes; then
7190 # 64-bit or unknown ABI.
7191 if test -d /usr/lib64; then
7192 acl_libdirstem3=lib64
7195 if test -n "$searchpath"; then
7196 acl_save_IFS="${IFS= }"; IFS=":"
7197 for searchdir in $searchpath; do
7198 if test -d "$searchdir"; then
7199 case "$searchdir" in
7200 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7201 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7203 # Better ignore directories of this form. They are misleading.
7205 *) searchdir=`cd "$searchdir" && pwd`
7206 case "$searchdir" in
7207 */lib32 ) acl_libdirstem2=lib32 ;;
7208 */lib64 ) acl_libdirstem3=lib64 ;;
7214 if test $HOST_CPU_C_ABI_32BIT = yes; then
7218 if test $HOST_CPU_C_ABI_32BIT = no; then
7225 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7226 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7227 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7231 printf "%s\n" "$acl_cv_libdirstems" >&6; }
7232 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7233 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7234 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7248 acl_save_prefix="$prefix"
7249 prefix="$acl_final_prefix"
7250 acl_save_exec_prefix="$exec_prefix"
7251 exec_prefix="$acl_final_exec_prefix"
7253 eval additional_includedir=\"$includedir\"
7254 eval additional_libdir=\"$libdir\"
7255 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7256 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7258 exec_prefix="$acl_save_exec_prefix"
7259 prefix="$acl_save_prefix"
7262 # Check whether --with-libiconv-prefix was given.
7263 if test ${with_libiconv_prefix+y}
7265 withval=$with_libiconv_prefix;
7266 if test "X$withval" = "Xno"; then
7269 if test "X$withval" = "X"; then
7271 acl_save_prefix="$prefix"
7272 prefix="$acl_final_prefix"
7273 acl_save_exec_prefix="$exec_prefix"
7274 exec_prefix="$acl_final_exec_prefix"
7276 eval additional_includedir=\"$includedir\"
7277 eval additional_libdir=\"$libdir\"
7278 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7279 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7281 exec_prefix="$acl_save_exec_prefix"
7282 prefix="$acl_save_prefix"
7285 additional_includedir="$withval/include"
7286 additional_libdir="$withval/$acl_libdirstem"
7287 additional_libdir2="$withval/$acl_libdirstem2"
7288 additional_libdir3="$withval/$acl_libdirstem3"
7294 if test "X$additional_libdir2" = "X$additional_libdir"; then
7297 if test "X$additional_libdir3" = "X$additional_libdir"; then
7307 names_already_handled=
7308 names_next_round='iconv '
7309 while test -n "$names_next_round"; do
7310 names_this_round="$names_next_round"
7312 for name in $names_this_round; do
7314 for n in $names_already_handled; do
7315 if test "$n" = "$name"; then
7320 if test -z "$already_handled"; then
7321 names_already_handled="$names_already_handled $name"
7322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7323 eval value=\"\$HAVE_LIB$uppername\"
7324 if test -n "$value"; then
7325 if test "$value" = yes; then
7326 eval value=\"\$LIB$uppername\"
7327 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7328 eval value=\"\$LTLIB$uppername\"
7329 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7338 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7339 if test -n "$acl_shlibext"; then
7340 shrext=".$acl_shlibext" # typically: shrext=.so
7344 if test $use_additional = yes; then
7345 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7346 if test "X$found_dir" = "X"; then
7347 eval dir=\$$additional_libdir_variable
7348 if test -n "$dir"; then
7349 if test -n "$acl_shlibext"; then
7350 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7352 found_so="$dir/$libname$shrext"
7354 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7355 ver=`(cd "$dir" && \
7356 for f in "$libname$shrext".*; do echo "$f"; done \
7357 | sed -e "s,^$libname$shrext\\\\.,," \
7358 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7359 | sed 1q ) 2>/dev/null`
7360 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7362 found_so="$dir/$libname$shrext.$ver"
7365 eval library_names=\"$acl_library_names_spec\"
7366 for f in $library_names; do
7367 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7376 if test "X$found_dir" = "X"; then
7377 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7379 found_a="$dir/$libname.$acl_libext"
7382 if test "X$found_dir" != "X"; then
7383 if test -f "$dir/$libname.la"; then
7384 found_la="$dir/$libname.la"
7391 if test "X$found_dir" = "X"; then
7392 for x in $LDFLAGS $LTLIBICONV; do
7394 acl_save_prefix="$prefix"
7395 prefix="$acl_final_prefix"
7396 acl_save_exec_prefix="$exec_prefix"
7397 exec_prefix="$acl_final_exec_prefix"
7399 exec_prefix="$acl_save_exec_prefix"
7400 prefix="$acl_save_prefix"
7404 dir=`echo "X$x" | sed -e 's/^X-L//'`
7405 if test -n "$acl_shlibext"; then
7406 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7408 found_so="$dir/$libname$shrext"
7410 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7411 ver=`(cd "$dir" && \
7412 for f in "$libname$shrext".*; do echo "$f"; done \
7413 | sed -e "s,^$libname$shrext\\\\.,," \
7414 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7415 | sed 1q ) 2>/dev/null`
7416 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7418 found_so="$dir/$libname$shrext.$ver"
7421 eval library_names=\"$acl_library_names_spec\"
7422 for f in $library_names; do
7423 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7432 if test "X$found_dir" = "X"; then
7433 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7435 found_a="$dir/$libname.$acl_libext"
7438 if test "X$found_dir" != "X"; then
7439 if test -f "$dir/$libname.la"; then
7440 found_la="$dir/$libname.la"
7445 if test "X$found_dir" != "X"; then
7450 if test "X$found_dir" != "X"; then
7451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7452 if test "X$found_so" != "X"; then
7453 if test "$enable_rpath" = no \
7454 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7455 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7456 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7460 for x in $ltrpathdirs; do
7461 if test "X$x" = "X$found_dir"; then
7466 if test -z "$haveit"; then
7467 ltrpathdirs="$ltrpathdirs $found_dir"
7469 if test "$acl_hardcode_direct" = yes; then
7470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7472 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7473 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7475 for x in $rpathdirs; do
7476 if test "X$x" = "X$found_dir"; then
7481 if test -z "$haveit"; then
7482 rpathdirs="$rpathdirs $found_dir"
7486 for x in $LDFLAGS $LIBICONV; do
7488 acl_save_prefix="$prefix"
7489 prefix="$acl_final_prefix"
7490 acl_save_exec_prefix="$exec_prefix"
7491 exec_prefix="$acl_final_exec_prefix"
7493 exec_prefix="$acl_save_exec_prefix"
7494 prefix="$acl_save_prefix"
7496 if test "X$x" = "X-L$found_dir"; then
7501 if test -z "$haveit"; then
7502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7504 if test "$acl_hardcode_minus_L" != no; then
7505 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7507 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7513 if test "X$found_a" != "X"; then
7514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7516 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7519 additional_includedir=
7520 case "$found_dir" in
7521 */$acl_libdirstem | */$acl_libdirstem/)
7522 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7523 if test "$name" = 'iconv'; then
7524 LIBICONV_PREFIX="$basedir"
7526 additional_includedir="$basedir/include"
7528 */$acl_libdirstem2 | */$acl_libdirstem2/)
7529 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7530 if test "$name" = 'iconv'; then
7531 LIBICONV_PREFIX="$basedir"
7533 additional_includedir="$basedir/include"
7535 */$acl_libdirstem3 | */$acl_libdirstem3/)
7536 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7537 if test "$name" = 'iconv'; then
7538 LIBICONV_PREFIX="$basedir"
7540 additional_includedir="$basedir/include"
7543 if test "X$additional_includedir" != "X"; then
7544 if test "X$additional_includedir" != "X/usr/include"; then
7546 if test "X$additional_includedir" = "X/usr/local/include"; then
7547 if test -n "$GCC"; then
7549 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7553 if test -z "$haveit"; then
7554 for x in $CPPFLAGS $INCICONV; do
7556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 acl_save_exec_prefix="$exec_prefix"
7559 exec_prefix="$acl_final_exec_prefix"
7561 exec_prefix="$acl_save_exec_prefix"
7562 prefix="$acl_save_prefix"
7564 if test "X$x" = "X-I$additional_includedir"; then
7569 if test -z "$haveit"; then
7570 if test -d "$additional_includedir"; then
7571 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7577 if test -n "$found_la"; then
7578 save_libdir="$libdir"
7580 */* | *\\*) . "$found_la" ;;
7581 *) . "./$found_la" ;;
7583 libdir="$save_libdir"
7584 for dep in $dependency_libs; do
7587 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7588 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7589 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7590 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7592 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7593 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7594 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7595 if test -n "$GCC"; then
7597 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7601 if test -z "$haveit"; then
7603 for x in $LDFLAGS $LIBICONV; do
7605 acl_save_prefix="$prefix"
7606 prefix="$acl_final_prefix"
7607 acl_save_exec_prefix="$exec_prefix"
7608 exec_prefix="$acl_final_exec_prefix"
7610 exec_prefix="$acl_save_exec_prefix"
7611 prefix="$acl_save_prefix"
7613 if test "X$x" = "X-L$dependency_libdir"; then
7618 if test -z "$haveit"; then
7619 if test -d "$dependency_libdir"; then
7620 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
7624 for x in $LDFLAGS $LTLIBICONV; do
7626 acl_save_prefix="$prefix"
7627 prefix="$acl_final_prefix"
7628 acl_save_exec_prefix="$exec_prefix"
7629 exec_prefix="$acl_final_exec_prefix"
7631 exec_prefix="$acl_save_exec_prefix"
7632 prefix="$acl_save_prefix"
7634 if test "X$x" = "X-L$dependency_libdir"; then
7639 if test -z "$haveit"; then
7640 if test -d "$dependency_libdir"; then
7641 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
7648 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7649 if test "$enable_rpath" != no; then
7651 for x in $rpathdirs; do
7652 if test "X$x" = "X$dir"; then
7657 if test -z "$haveit"; then
7658 rpathdirs="$rpathdirs $dir"
7661 for x in $ltrpathdirs; do
7662 if test "X$x" = "X$dir"; then
7667 if test -z "$haveit"; then
7668 ltrpathdirs="$ltrpathdirs $dir"
7673 dep=`echo "X$dep" | sed -e 's/^X-l//'`
7674 if test "X$dep" != Xc \
7676 linux* | gnu* | k*bsd*-gnu) false ;;
7679 names_next_round="$names_next_round $dep"
7683 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7686 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7693 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7700 if test "X$rpathdirs" != "X"; then
7701 if test -n "$acl_hardcode_libdir_separator"; then
7703 for found_dir in $rpathdirs; do
7704 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7706 acl_save_libdir="$libdir"
7708 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7709 libdir="$acl_save_libdir"
7710 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7712 for found_dir in $rpathdirs; do
7713 acl_save_libdir="$libdir"
7715 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7716 libdir="$acl_save_libdir"
7717 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7721 if test "X$ltrpathdirs" != "X"; then
7722 for found_dir in $ltrpathdirs; do
7723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7756 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
7757 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
7759 printf %s "(cached) " >&6
7761 gt_save_LIBS="$LIBS"
7762 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 #include <CoreFoundation/CFPreferences.h>
7769 CFPreferencesCopyAppValue(NULL, NULL)
7774 if ac_fn_c_try_link "$LINENO"
7776 gt_cv_func_CFPreferencesCopyAppValue=yes
7778 gt_cv_func_CFPreferencesCopyAppValue=no
7780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS="$gt_save_LIBS"
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7785 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7786 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7788 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7792 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7793 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
7795 printf %s "(cached) " >&6
7797 gt_save_LIBS="$LIBS"
7798 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 #include <CoreFoundation/CFLocale.h>
7805 CFLocaleCopyPreferredLanguages();
7810 if ac_fn_c_try_link "$LINENO"
7812 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7814 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7817 conftest$ac_exeext conftest.$ac_ext
7818 LIBS="$gt_save_LIBS"
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7821 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7822 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7824 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7828 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7829 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7830 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7842 case " $gt_needs " in
7843 *" need-formatstring-macros "*) gt_api_version=3 ;;
7844 *" need-ngettext "*) gt_api_version=2 ;;
7845 *) gt_api_version=1 ;;
7847 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7848 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7850 if test "$USE_NLS" = "yes"; then
7851 gt_use_preinstalled_gnugettext=no
7854 if test $gt_api_version -ge 3; then
7855 gt_revision_test_code='
7856 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7857 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7859 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7862 gt_revision_test_code=
7864 if test $gt_api_version -ge 2; then
7865 gt_expression_test_code=' + * ngettext ("", "", 0)'
7867 gt_expression_test_code=
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7871 printf %s "checking for GNU gettext in libc... " >&6; }
7872 if eval test \${$gt_func_gnugettext_libc+y}
7874 printf %s "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7879 #include <libintl.h>
7880 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7881 extern int _nl_msg_cat_cntr;
7882 extern int *_nl_domain_bindings;
7883 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7885 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7887 $gt_revision_test_code
7893 bindtextdomain ("", "");
7894 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7900 if ac_fn_c_try_link "$LINENO"
7902 eval "$gt_func_gnugettext_libc=yes"
7904 eval "$gt_func_gnugettext_libc=no"
7906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7907 conftest$ac_exeext conftest.$ac_ext
7909 eval ac_res=\$$gt_func_gnugettext_libc
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7911 printf "%s\n" "$ac_res" >&6; }
7913 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7919 am_save_CPPFLAGS="$CPPFLAGS"
7921 for element in $INCICONV; do
7923 for x in $CPPFLAGS; do
7925 acl_save_prefix="$prefix"
7926 prefix="$acl_final_prefix"
7927 acl_save_exec_prefix="$exec_prefix"
7928 exec_prefix="$acl_final_exec_prefix"
7930 exec_prefix="$acl_save_exec_prefix"
7931 prefix="$acl_save_prefix"
7933 if test "X$x" = "X$element"; then
7938 if test -z "$haveit"; then
7939 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7945 printf %s "checking for iconv... " >&6; }
7946 if test ${am_cv_func_iconv+y}
7948 printf %s "(cached) " >&6
7951 am_cv_func_iconv="no, consider installing GNU libiconv"
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7962 iconv_t cd = iconv_open("","");
7963 iconv(cd,NULL,NULL,NULL,NULL);
7969 if ac_fn_c_try_link "$LINENO"
7971 am_cv_func_iconv=yes
7973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7974 conftest$ac_exeext conftest.$ac_ext
7975 if test "$am_cv_func_iconv" != yes; then
7976 am_save_LIBS="$LIBS"
7977 LIBS="$LIBS $LIBICONV"
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7987 iconv_t cd = iconv_open("","");
7988 iconv(cd,NULL,NULL,NULL,NULL);
7994 if ac_fn_c_try_link "$LINENO"
7997 am_cv_func_iconv=yes
7999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8000 conftest$ac_exeext conftest.$ac_ext
8001 LIBS="$am_save_LIBS"
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8006 printf "%s\n" "$am_cv_func_iconv" >&6; }
8007 if test "$am_cv_func_iconv" = yes; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8009 printf %s "checking for working iconv... " >&6; }
8010 if test ${am_cv_func_iconv_works+y}
8012 printf %s "(cached) " >&6
8015 am_save_LIBS="$LIBS"
8016 if test $am_cv_lib_iconv = yes; then
8017 LIBS="$LIBS $LIBICONV"
8019 am_cv_func_iconv_works=no
8020 for ac_iconv_const in '' 'const'; do
8021 if test "$cross_compiling" = yes
8024 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8025 *) am_cv_func_iconv_works="guessing yes" ;;
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8035 # define ICONV_CONST $ac_iconv_const
8042 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8043 successful returns. This is even documented in
8044 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8046 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8047 if (cd_utf8_to_88591 != (iconv_t)(-1))
8049 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8051 ICONV_CONST char *inptr = input;
8052 size_t inbytesleft = strlen (input);
8054 size_t outbytesleft = sizeof (buf);
8055 size_t res = iconv (cd_utf8_to_88591,
8056 &inptr, &inbytesleft,
8057 &outptr, &outbytesleft);
8060 iconv_close (cd_utf8_to_88591);
8063 /* Test against Solaris 10 bug: Failures are not distinguishable from
8064 successful returns. */
8066 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8067 if (cd_ascii_to_88591 != (iconv_t)(-1))
8069 static ICONV_CONST char input[] = "\263";
8071 ICONV_CONST char *inptr = input;
8072 size_t inbytesleft = strlen (input);
8074 size_t outbytesleft = sizeof (buf);
8075 size_t res = iconv (cd_ascii_to_88591,
8076 &inptr, &inbytesleft,
8077 &outptr, &outbytesleft);
8080 iconv_close (cd_ascii_to_88591);
8083 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8085 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8086 if (cd_88591_to_utf8 != (iconv_t)(-1))
8088 static ICONV_CONST char input[] = "\304";
8089 static char buf[2] = { (char)0xDE, (char)0xAD };
8090 ICONV_CONST char *inptr = input;
8091 size_t inbytesleft = 1;
8093 size_t outbytesleft = 1;
8094 size_t res = iconv (cd_88591_to_utf8,
8095 &inptr, &inbytesleft,
8096 &outptr, &outbytesleft);
8097 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8099 iconv_close (cd_88591_to_utf8);
8102 #if 0 /* This bug could be worked around by the caller. */
8103 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8105 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8106 if (cd_88591_to_utf8 != (iconv_t)(-1))
8108 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8110 ICONV_CONST char *inptr = input;
8111 size_t inbytesleft = strlen (input);
8113 size_t outbytesleft = sizeof (buf);
8114 size_t res = iconv (cd_88591_to_utf8,
8115 &inptr, &inbytesleft,
8116 &outptr, &outbytesleft);
8119 iconv_close (cd_88591_to_utf8);
8123 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8126 /* Try standardized names. */
8127 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8128 /* Try IRIX, OSF/1 names. */
8129 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8130 /* Try AIX names. */
8131 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8132 /* Try HP-UX names. */
8133 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8134 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8135 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8137 if (cd1 != (iconv_t)(-1))
8139 if (cd2 != (iconv_t)(-1))
8141 if (cd3 != (iconv_t)(-1))
8143 if (cd4 != (iconv_t)(-1))
8152 if ac_fn_c_try_run "$LINENO"
8154 am_cv_func_iconv_works=yes
8156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8157 conftest.$ac_objext conftest.beam conftest.$ac_ext
8160 test "$am_cv_func_iconv_works" = no || break
8162 LIBS="$am_save_LIBS"
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8166 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
8167 case "$am_cv_func_iconv_works" in
8168 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8169 *) am_func_iconv=yes ;;
8172 am_func_iconv=no am_cv_lib_iconv=no
8174 if test "$am_func_iconv" = yes; then
8176 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
8179 if test "$am_cv_lib_iconv" = yes; then
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8181 printf %s "checking how to link with libiconv... " >&6; }
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8183 printf "%s\n" "$LIBICONV" >&6; }
8185 CPPFLAGS="$am_save_CPPFLAGS"
8201 acl_save_prefix="$prefix"
8202 prefix="$acl_final_prefix"
8203 acl_save_exec_prefix="$exec_prefix"
8204 exec_prefix="$acl_final_exec_prefix"
8206 eval additional_includedir=\"$includedir\"
8207 eval additional_libdir=\"$libdir\"
8208 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8209 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8211 exec_prefix="$acl_save_exec_prefix"
8212 prefix="$acl_save_prefix"
8215 # Check whether --with-libintl-prefix was given.
8216 if test ${with_libintl_prefix+y}
8218 withval=$with_libintl_prefix;
8219 if test "X$withval" = "Xno"; then
8222 if test "X$withval" = "X"; then
8224 acl_save_prefix="$prefix"
8225 prefix="$acl_final_prefix"
8226 acl_save_exec_prefix="$exec_prefix"
8227 exec_prefix="$acl_final_exec_prefix"
8229 eval additional_includedir=\"$includedir\"
8230 eval additional_libdir=\"$libdir\"
8231 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8232 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8234 exec_prefix="$acl_save_exec_prefix"
8235 prefix="$acl_save_prefix"
8238 additional_includedir="$withval/include"
8239 additional_libdir="$withval/$acl_libdirstem"
8240 additional_libdir2="$withval/$acl_libdirstem2"
8241 additional_libdir3="$withval/$acl_libdirstem3"
8247 if test "X$additional_libdir2" = "X$additional_libdir"; then
8250 if test "X$additional_libdir3" = "X$additional_libdir"; then
8260 names_already_handled=
8261 names_next_round='intl '
8262 while test -n "$names_next_round"; do
8263 names_this_round="$names_next_round"
8265 for name in $names_this_round; do
8267 for n in $names_already_handled; do
8268 if test "$n" = "$name"; then
8273 if test -z "$already_handled"; then
8274 names_already_handled="$names_already_handled $name"
8275 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8276 eval value=\"\$HAVE_LIB$uppername\"
8277 if test -n "$value"; then
8278 if test "$value" = yes; then
8279 eval value=\"\$LIB$uppername\"
8280 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8281 eval value=\"\$LTLIB$uppername\"
8282 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8291 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8292 if test -n "$acl_shlibext"; then
8293 shrext=".$acl_shlibext" # typically: shrext=.so
8297 if test $use_additional = yes; then
8298 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8299 if test "X$found_dir" = "X"; then
8300 eval dir=\$$additional_libdir_variable
8301 if test -n "$dir"; then
8302 if test -n "$acl_shlibext"; then
8303 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8305 found_so="$dir/$libname$shrext"
8307 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8308 ver=`(cd "$dir" && \
8309 for f in "$libname$shrext".*; do echo "$f"; done \
8310 | sed -e "s,^$libname$shrext\\\\.,," \
8311 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8312 | sed 1q ) 2>/dev/null`
8313 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8315 found_so="$dir/$libname$shrext.$ver"
8318 eval library_names=\"$acl_library_names_spec\"
8319 for f in $library_names; do
8320 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8329 if test "X$found_dir" = "X"; then
8330 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8332 found_a="$dir/$libname.$acl_libext"
8335 if test "X$found_dir" != "X"; then
8336 if test -f "$dir/$libname.la"; then
8337 found_la="$dir/$libname.la"
8344 if test "X$found_dir" = "X"; then
8345 for x in $LDFLAGS $LTLIBINTL; do
8347 acl_save_prefix="$prefix"
8348 prefix="$acl_final_prefix"
8349 acl_save_exec_prefix="$exec_prefix"
8350 exec_prefix="$acl_final_exec_prefix"
8352 exec_prefix="$acl_save_exec_prefix"
8353 prefix="$acl_save_prefix"
8357 dir=`echo "X$x" | sed -e 's/^X-L//'`
8358 if test -n "$acl_shlibext"; then
8359 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8361 found_so="$dir/$libname$shrext"
8363 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8364 ver=`(cd "$dir" && \
8365 for f in "$libname$shrext".*; do echo "$f"; done \
8366 | sed -e "s,^$libname$shrext\\\\.,," \
8367 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8368 | sed 1q ) 2>/dev/null`
8369 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8371 found_so="$dir/$libname$shrext.$ver"
8374 eval library_names=\"$acl_library_names_spec\"
8375 for f in $library_names; do
8376 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8385 if test "X$found_dir" = "X"; then
8386 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8388 found_a="$dir/$libname.$acl_libext"
8391 if test "X$found_dir" != "X"; then
8392 if test -f "$dir/$libname.la"; then
8393 found_la="$dir/$libname.la"
8398 if test "X$found_dir" != "X"; then
8403 if test "X$found_dir" != "X"; then
8404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8405 if test "X$found_so" != "X"; then
8406 if test "$enable_rpath" = no \
8407 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8408 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8409 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8413 for x in $ltrpathdirs; do
8414 if test "X$x" = "X$found_dir"; then
8419 if test -z "$haveit"; then
8420 ltrpathdirs="$ltrpathdirs $found_dir"
8422 if test "$acl_hardcode_direct" = yes; then
8423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8425 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8426 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8428 for x in $rpathdirs; do
8429 if test "X$x" = "X$found_dir"; then
8434 if test -z "$haveit"; then
8435 rpathdirs="$rpathdirs $found_dir"
8439 for x in $LDFLAGS $LIBINTL; do
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8446 exec_prefix="$acl_save_exec_prefix"
8447 prefix="$acl_save_prefix"
8449 if test "X$x" = "X-L$found_dir"; then
8454 if test -z "$haveit"; then
8455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8457 if test "$acl_hardcode_minus_L" != no; then
8458 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8460 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8466 if test "X$found_a" != "X"; then
8467 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8469 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8472 additional_includedir=
8473 case "$found_dir" in
8474 */$acl_libdirstem | */$acl_libdirstem/)
8475 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8476 if test "$name" = 'intl'; then
8477 LIBINTL_PREFIX="$basedir"
8479 additional_includedir="$basedir/include"
8481 */$acl_libdirstem2 | */$acl_libdirstem2/)
8482 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8483 if test "$name" = 'intl'; then
8484 LIBINTL_PREFIX="$basedir"
8486 additional_includedir="$basedir/include"
8488 */$acl_libdirstem3 | */$acl_libdirstem3/)
8489 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8490 if test "$name" = 'intl'; then
8491 LIBINTL_PREFIX="$basedir"
8493 additional_includedir="$basedir/include"
8496 if test "X$additional_includedir" != "X"; then
8497 if test "X$additional_includedir" != "X/usr/include"; then
8499 if test "X$additional_includedir" = "X/usr/local/include"; then
8500 if test -n "$GCC"; then
8502 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8506 if test -z "$haveit"; then
8507 for x in $CPPFLAGS $INCINTL; do
8509 acl_save_prefix="$prefix"
8510 prefix="$acl_final_prefix"
8511 acl_save_exec_prefix="$exec_prefix"
8512 exec_prefix="$acl_final_exec_prefix"
8514 exec_prefix="$acl_save_exec_prefix"
8515 prefix="$acl_save_prefix"
8517 if test "X$x" = "X-I$additional_includedir"; then
8522 if test -z "$haveit"; then
8523 if test -d "$additional_includedir"; then
8524 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8530 if test -n "$found_la"; then
8531 save_libdir="$libdir"
8533 */* | *\\*) . "$found_la" ;;
8534 *) . "./$found_la" ;;
8536 libdir="$save_libdir"
8537 for dep in $dependency_libs; do
8540 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8541 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8542 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8543 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8545 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8546 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8547 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8548 if test -n "$GCC"; then
8550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8554 if test -z "$haveit"; then
8556 for x in $LDFLAGS $LIBINTL; do
8558 acl_save_prefix="$prefix"
8559 prefix="$acl_final_prefix"
8560 acl_save_exec_prefix="$exec_prefix"
8561 exec_prefix="$acl_final_exec_prefix"
8563 exec_prefix="$acl_save_exec_prefix"
8564 prefix="$acl_save_prefix"
8566 if test "X$x" = "X-L$dependency_libdir"; then
8571 if test -z "$haveit"; then
8572 if test -d "$dependency_libdir"; then
8573 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
8577 for x in $LDFLAGS $LTLIBINTL; do
8579 acl_save_prefix="$prefix"
8580 prefix="$acl_final_prefix"
8581 acl_save_exec_prefix="$exec_prefix"
8582 exec_prefix="$acl_final_exec_prefix"
8584 exec_prefix="$acl_save_exec_prefix"
8585 prefix="$acl_save_prefix"
8587 if test "X$x" = "X-L$dependency_libdir"; then
8592 if test -z "$haveit"; then
8593 if test -d "$dependency_libdir"; then
8594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
8601 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8602 if test "$enable_rpath" != no; then
8604 for x in $rpathdirs; do
8605 if test "X$x" = "X$dir"; then
8610 if test -z "$haveit"; then
8611 rpathdirs="$rpathdirs $dir"
8614 for x in $ltrpathdirs; do
8615 if test "X$x" = "X$dir"; then
8620 if test -z "$haveit"; then
8621 ltrpathdirs="$ltrpathdirs $dir"
8626 dep=`echo "X$dep" | sed -e 's/^X-l//'`
8627 if test "X$dep" != Xc \
8629 linux* | gnu* | k*bsd*-gnu) false ;;
8632 names_next_round="$names_next_round $dep"
8636 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8639 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8646 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8647 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8653 if test "X$rpathdirs" != "X"; then
8654 if test -n "$acl_hardcode_libdir_separator"; then
8656 for found_dir in $rpathdirs; do
8657 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8659 acl_save_libdir="$libdir"
8661 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8662 libdir="$acl_save_libdir"
8663 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8665 for found_dir in $rpathdirs; do
8666 acl_save_libdir="$libdir"
8668 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8669 libdir="$acl_save_libdir"
8670 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8674 if test "X$ltrpathdirs" != "X"; then
8675 for found_dir in $ltrpathdirs; do
8676 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8685 printf %s "checking for GNU gettext in libintl... " >&6; }
8686 if eval test \${$gt_func_gnugettext_libintl+y}
8688 printf %s "(cached) " >&6
8690 gt_save_CPPFLAGS="$CPPFLAGS"
8691 CPPFLAGS="$CPPFLAGS $INCINTL"
8692 gt_save_LIBS="$LIBS"
8693 LIBS="$LIBS $LIBINTL"
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8697 #include <libintl.h>
8698 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8699 extern int _nl_msg_cat_cntr;
8704 const char *_nl_expand_alias (const char *);
8705 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8707 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8709 $gt_revision_test_code
8715 bindtextdomain ("", "");
8716 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8722 if ac_fn_c_try_link "$LINENO"
8724 eval "$gt_func_gnugettext_libintl=yes"
8726 eval "$gt_func_gnugettext_libintl=no"
8728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8729 conftest$ac_exeext conftest.$ac_ext
8730 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8731 LIBS="$LIBS $LIBICONV"
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8735 #include <libintl.h>
8736 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8737 extern int _nl_msg_cat_cntr;
8742 const char *_nl_expand_alias (const char *);
8743 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8745 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8747 $gt_revision_test_code
8753 bindtextdomain ("", "");
8754 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8760 if ac_fn_c_try_link "$LINENO"
8762 LIBINTL="$LIBINTL $LIBICONV"
8763 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8764 eval "$gt_func_gnugettext_libintl=yes"
8767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8768 conftest$ac_exeext conftest.$ac_ext
8770 CPPFLAGS="$gt_save_CPPFLAGS"
8771 LIBS="$gt_save_LIBS"
8773 eval ac_res=\$$gt_func_gnugettext_libintl
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8775 printf "%s\n" "$ac_res" >&6; }
8778 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8779 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8780 && test "$PACKAGE" != gettext-runtime \
8781 && test "$PACKAGE" != gettext-tools; }; then
8782 gt_use_preinstalled_gnugettext=yes
8791 if test -n "$INTL_MACOSX_LIBS"; then
8792 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8793 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8794 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8795 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8799 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8800 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8802 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8810 printf %s "checking whether to use NLS... " >&6; }
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8812 printf "%s\n" "$USE_NLS" >&6; }
8813 if test "$USE_NLS" = "yes"; then
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8815 printf %s "checking where the gettext function comes from... " >&6; }
8816 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8817 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8818 gt_source="external libintl"
8823 gt_source="included intl directory"
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8826 printf "%s\n" "$gt_source" >&6; }
8829 if test "$USE_NLS" = "yes"; then
8831 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8832 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8834 printf %s "checking how to link with libintl... " >&6; }
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8836 printf "%s\n" "$LIBINTL" >&6; }
8838 for element in $INCINTL; do
8840 for x in $CPPFLAGS; do
8842 acl_save_prefix="$prefix"
8843 prefix="$acl_final_prefix"
8844 acl_save_exec_prefix="$exec_prefix"
8845 exec_prefix="$acl_final_exec_prefix"
8847 exec_prefix="$acl_save_exec_prefix"
8848 prefix="$acl_save_prefix"
8850 if test "X$x" = "X$element"; then
8855 if test -z "$haveit"; then
8856 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8863 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
8866 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
8885 printf "%s\n" "#define PATH_SEPARATOR ':'" >>confdefs.h
8888 printf "%s\n" "#define PATH_SEPARATOR_STR \":\"" >>confdefs.h
8893 # Extract the first word of "perl", so it can be a program name with args.
8894 set dummy perl; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_path_PERL+y}
8899 printf %s "(cached) " >&6
8903 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 case $as_dir in #(((
8913 *) as_dir=$as_dir/ ;;
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8917 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
8918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8928 PERL=$ac_cv_path_PERL
8929 if test -n "$PERL"; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8931 printf "%s\n" "$PERL" >&6; }
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 printf "%s\n" "no" >&6; }
8943 ac_config_files="$ac_config_files Makefile po/Makefile.in compat/Makefile afm/Makefile afmlib/Makefile src/Makefile src/tests/Makefile lib/Makefile scripts/Makefile states/Makefile states/hl/Makefile states/tests/Makefile docs/Makefile w32/Makefile"
8946 cat >confcache <<\_ACEOF
8947 # This file is a shell script that caches the results of configure
8948 # tests run on this system so they can be shared between configure
8949 # scripts and configure runs, see configure's option --config-cache.
8950 # It is not useful on other systems. If it contains results you don't
8951 # want to keep, you may remove or edit it.
8953 # config.status only pays attention to the cache file if you give it
8954 # the --recheck option to rerun configure.
8956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8962 # The following way of writing the cache mishandles newlines in values,
8963 # but we know of no workaround that is simple, portable, and efficient.
8964 # So, we kill variables containing newlines.
8965 # Ultrix sh set writes to stderr and can't be redirected directly,
8966 # and sets the high bit in the cache file unless we assign to the vars.
8968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8969 eval ac_val=\$$ac_var
8973 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8974 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8977 _ | IFS | as_nl) ;; #(
8978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8979 *) { eval $ac_var=; unset $ac_var;} ;;
8985 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8986 *${as_nl}ac_space=\ *)
8987 # `set' does not quote correctly, so add quotes: double-quote
8988 # substitution turns \\\\ into \\, and sed turns \\ into \.
8991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8994 # `set' quotes correctly as required by POSIX, so do not add quotes.
8995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9004 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9009 if test -w "$cache_file"; then
9010 if test "x$cache_file" != "x/dev/null"; then
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9012 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9013 if test ! -f "$cache_file" || test -h "$cache_file"; then
9014 cat confcache >"$cache_file"
9016 case $cache_file in #(
9018 mv -f confcache "$cache_file"$$ &&
9019 mv -f "$cache_file"$$ "$cache_file" ;; #(
9021 mv -f confcache "$cache_file" ;;
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9027 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9033 # Let make expand exec_prefix.
9034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9036 DEFS=-DHAVE_CONFIG_H
9041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9042 # 1. Remove the extension, and $U if already installed.
9043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9044 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9046 # will be set to the directory where LIBOBJS objects are built.
9047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9052 LTLIBOBJS=$ac_ltlibobjs
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9056 printf %s "checking that generated files are newer than configure... " >&6; }
9057 if test -n "$am_sleep_pid"; then
9058 # Hide warnings about reused PIDs.
9059 wait $am_sleep_pid 2>/dev/null
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
9062 printf "%s\n" "done" >&6; }
9063 if test -n "$EXEEXT"; then
9065 am__EXEEXT_FALSE='#'
9071 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9072 as_fn_error $? "conditional \"AMDEP\" was never defined.
9073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9075 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9076 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9080 : "${CONFIG_STATUS=./config.status}"
9082 ac_clean_files_save=$ac_clean_files
9083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9085 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9089 # Generated by $as_me.
9090 # Run this file to recreate the current configuration.
9091 # Compiler output produced by configure, useful for debugging
9092 # configure, is in config.log if it exists.
9098 SHELL=\${CONFIG_SHELL-$SHELL}
9101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9102 ## -------------------- ##
9103 ## M4sh Initialization. ##
9104 ## -------------------- ##
9106 # Be more Bourne compatible
9107 DUALCASE=1; export DUALCASE # for MKS sh
9109 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9114 # is contrary to our usage. Disable this feature.
9115 alias -g '${1+"$@"}'='"$@"'
9116 setopt NO_GLOB_SUBST
9118 case `(set -o) 2>/dev/null` in #(
9128 # Reset variables that may have inherited troublesome values from
9131 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9132 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9133 # side effect of setting IFS to empty, thus disabling word splitting.)
9134 # Quoting is to prevent editors from complaining about space-tab.
9144 # Ensure predictable behavior from utilities with locale-dependent output.
9150 # We cannot yet rely on "unset" to work, but we need these variables
9151 # to be unset--not just set to an empty or harmless value--now, to
9152 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9153 # also avoids known problems related to "unset" and subshell syntax
9154 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9155 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9156 do eval test \${$as_var+y} \
9157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9160 # Ensure that fds 0, 1, and 2 are open.
9161 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9162 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9163 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9165 # The user is always right.
9166 if ${PATH_SEPARATOR+false} :; then
9168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9175 # Find who we are. Look in the path if we contain no directory separator.
9178 *[\\/]* ) as_myself=$0 ;;
9179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 case $as_dir in #(((
9186 *) as_dir=$as_dir/ ;;
9188 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9194 # We did not find ourselves, most probably we were run as `sh COMMAND'
9195 # in which case we are not to be found in the path.
9196 if test "x$as_myself" = x; then
9199 if test ! -f "$as_myself"; then
9200 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9206 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9207 # ----------------------------------------
9208 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9209 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9210 # script with STATUS, using 1 if that was 0.
9213 as_status=$1; test $as_status -eq 0 && as_status=1
9215 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9218 printf "%s\n" "$as_me: error: $2" >&2
9219 as_fn_exit $as_status
9224 # as_fn_set_status STATUS
9225 # -----------------------
9226 # Set $? to STATUS, without forking.
9230 } # as_fn_set_status
9234 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9244 # Portably unset VAR.
9247 { eval $1=; unset $1;}
9249 as_unset=as_fn_unset
9251 # as_fn_append VAR VALUE
9252 # ----------------------
9253 # Append the text in VALUE to the end of the definition contained in VAR. Take
9254 # advantage of any shell optimizations that allow amortized linear growth over
9255 # repeated appends, instead of the typical quadratic growth present in naive
9257 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9259 eval 'as_fn_append ()
9270 # as_fn_arith ARG...
9271 # ------------------
9272 # Perform arithmetic evaluation on the ARGs, and store the result in the
9273 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9274 # must be portable across $(()) and expr.
9275 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9277 eval 'as_fn_arith ()
9284 as_val=`expr "$@" || test $? -eq 1`
9289 if expr a : '\(a\)' >/dev/null 2>&1 &&
9290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9297 as_basename=basename
9302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9308 as_me=`$as_basename -- "$0" ||
9309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9310 X"$0" : 'X\(//\)$' \| \
9311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9312 printf "%s\n" X/"$0" |
9313 sed '/^.*\/\([^/][^/]*\)\/*$/{
9327 # Avoid depending upon Character Ranges.
9328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9331 as_cr_digits='0123456789'
9332 as_cr_alnum=$as_cr_Letters$as_cr_digits
9335 # Determine whether it's possible to make 'echo' print without a newline.
9336 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9337 # for compatibility with existing Makefiles.
9338 ECHO_C= ECHO_N= ECHO_T=
9339 case `echo -n x` in #(((((
9341 case `echo 'xy\c'` in
9342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9351 # For backward compatibility with old third-party macros, we provide
9352 # the shell variables $as_echo and $as_echo_n. New code should use
9353 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9354 as_echo='printf %s\n'
9355 as_echo_n='printf %s'
9357 rm -f conf$$ conf$$.exe conf$$.file
9358 if test -d conf$$.dir; then
9359 rm -f conf$$.dir/conf$$.file
9362 mkdir conf$$.dir 2>/dev/null
9364 if (echo >conf$$.file) 2>/dev/null; then
9365 if ln -s conf$$.file conf$$ 2>/dev/null; then
9367 # ... but there are two gotchas:
9368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9370 # In both cases, we have to default to `cp -pR'.
9371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9373 elif ln conf$$.file conf$$ 2>/dev/null; then
9381 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9382 rmdir conf$$.dir 2>/dev/null
9387 # Create "$as_dir" as a directory, including parents if necessary.
9392 -*) as_dir=./$as_dir;;
9394 test -d "$as_dir" || eval $as_mkdir_p || {
9398 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9399 *) as_qdir=$as_dir;;
9401 as_dirs="'$as_qdir' $as_dirs"
9402 as_dir=`$as_dirname -- "$as_dir" ||
9403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9404 X"$as_dir" : 'X\(//\)[^/]' \| \
9405 X"$as_dir" : 'X\(//\)$' \| \
9406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9407 printf "%s\n" X"$as_dir" |
9408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9425 test -d "$as_dir" && break
9427 test -z "$as_dirs" || eval "mkdir $as_dirs"
9428 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9432 if mkdir -p . 2>/dev/null; then
9433 as_mkdir_p='mkdir -p "$as_dir"'
9435 test -d ./-p && rmdir ./-p
9440 # as_fn_executable_p FILE
9441 # -----------------------
9442 # Test if FILE is an executable regular file.
9443 as_fn_executable_p ()
9445 test -f "$1" && test -x "$1"
9446 } # as_fn_executable_p
9448 as_executable_p=as_fn_executable_p
9450 # Sed expression to map a string onto a valid CPP name.
9451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9453 # Sed expression to map a string onto a valid variable name.
9454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9458 ## ----------------------------------- ##
9459 ## Main body of $CONFIG_STATUS script. ##
9460 ## ----------------------------------- ##
9462 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9465 # Save the log message, to keep $0 and so on meaningful, and to
9466 # report actual input values of CONFIG_FILES etc. instead of their
9467 # values after options handling.
9469 This file was extended by GNU Enscript $as_me 1.6.6, which was
9470 generated by GNU Autoconf 2.71. Invocation command line was
9472 CONFIG_FILES = $CONFIG_FILES
9473 CONFIG_HEADERS = $CONFIG_HEADERS
9474 CONFIG_LINKS = $CONFIG_LINKS
9475 CONFIG_COMMANDS = $CONFIG_COMMANDS
9478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9483 case $ac_config_files in *"
9484 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9487 case $ac_config_headers in *"
9488 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9493 # Files that config.status was made for.
9494 config_files="$ac_config_files"
9495 config_headers="$ac_config_headers"
9496 config_commands="$ac_config_commands"
9500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9502 \`$as_me' instantiates files and other configuration actions
9503 from templates according to the current configuration. Unless the files
9504 and actions are specified as TAGs, all are instantiated by default.
9506 Usage: $0 [OPTION]... [TAG]...
9508 -h, --help print this help, then exit
9509 -V, --version print version number and configuration settings, then exit
9510 --config print configuration, then exit
9511 -q, --quiet, --silent
9512 do not print progress messages
9513 -d, --debug don't remove temporary files
9514 --recheck update $as_me by reconfiguring in the same conditions
9515 --file=FILE[:TEMPLATE]
9516 instantiate the configuration file FILE
9517 --header=FILE[:TEMPLATE]
9518 instantiate the configuration header FILE
9520 Configuration files:
9523 Configuration headers:
9526 Configuration commands:
9529 Report bugs to <bug-enscript@gnu.org>.
9530 GNU Enscript home page: <https://www.gnu.org/software/enscript/>.
9531 General help using GNU software: <https://www.gnu.org/gethelp/>."
9534 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9535 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9537 ac_cs_config='$ac_cs_config_escaped'
9539 GNU Enscript config.status 1.6.6
9540 configured by $0, generated by GNU Autoconf 2.71,
9541 with options \\"\$ac_cs_config\\"
9543 Copyright (C) 2021 Free Software Foundation, Inc.
9544 This config.status script is free software; the Free Software Foundation
9545 gives unlimited permission to copy, distribute and modify it."
9552 test -n "\$AWK" || AWK=awk
9555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9556 # The default lists apply if the user does not specify any file.
9562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9579 # Handling of the options.
9580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9583 printf "%s\n" "$ac_cs_version"; exit ;;
9584 --config | --confi | --conf | --con | --co | --c )
9585 printf "%s\n" "$ac_cs_config"; exit ;;
9586 --debug | --debu | --deb | --de | --d | -d )
9588 --file | --fil | --fi | --f )
9591 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9592 '') as_fn_error $? "missing file argument" ;;
9594 as_fn_append CONFIG_FILES " '$ac_optarg'"
9595 ac_need_defaults=false;;
9596 --header | --heade | --head | --hea )
9599 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9602 ac_need_defaults=false;;
9604 # Conflict between --help and --header
9605 as_fn_error $? "ambiguous option: \`$1'
9606 Try \`$0 --help' for more information.";;
9607 --help | --hel | -h )
9608 printf "%s\n" "$ac_cs_usage"; exit ;;
9609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9614 -*) as_fn_error $? "unrecognized option: \`$1'
9615 Try \`$0 --help' for more information." ;;
9617 *) as_fn_append ac_config_targets " $1"
9618 ac_need_defaults=false ;;
9624 ac_configure_extra_args=
9626 if $ac_cs_silent; then
9628 ac_configure_extra_args="$ac_configure_extra_args --silent"
9632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9633 if \$ac_cs_recheck; then
9634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9636 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9637 CONFIG_SHELL='$SHELL'
9643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9648 ## Running $as_me. ##
9650 printf "%s\n" "$ac_log"
9654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9658 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9659 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9660 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
9661 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
9662 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9663 LINGUAS="${LINGUAS-%UNSET%}"
9668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9670 # Handling of arguments.
9671 for ac_config_target in $ac_config_targets
9673 case $ac_config_target in
9674 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9676 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9678 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9679 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
9680 "afm/Makefile") CONFIG_FILES="$CONFIG_FILES afm/Makefile" ;;
9681 "afmlib/Makefile") CONFIG_FILES="$CONFIG_FILES afmlib/Makefile" ;;
9682 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9683 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
9684 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9685 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9686 "states/Makefile") CONFIG_FILES="$CONFIG_FILES states/Makefile" ;;
9687 "states/hl/Makefile") CONFIG_FILES="$CONFIG_FILES states/hl/Makefile" ;;
9688 "states/tests/Makefile") CONFIG_FILES="$CONFIG_FILES states/tests/Makefile" ;;
9689 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9690 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
9692 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9697 # If the user did not use the arguments to specify the items to instantiate,
9698 # then the envvar interface is used. Set only those that are not.
9699 # We use the long form for the default assignment because of an extremely
9700 # bizarre bug on SunOS 4.1.3.
9701 if $ac_need_defaults; then
9702 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9703 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9704 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9707 # Have a temporary directory for convenience. Make it in the build tree
9708 # simply because there is no reason against having it here, and in addition,
9709 # creating and moving files from /tmp can sometimes cause problems.
9710 # Hook for its removal unless debugging.
9711 # Note that there is a small window in which the directory will not be cleaned:
9712 # after its creation but before its name has been assigned to `$tmp'.
9716 trap 'exit_status=$?
9718 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9720 trap 'as_fn_exit 1' 1 2 13 15
9722 # Create a (secure) tmp directory for tmp files.
9725 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9729 tmp=./conf$$-$RANDOM
9730 (umask 077 && mkdir "$tmp")
9731 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9734 # Set up the scripts for CONFIG_FILES section.
9735 # No need to generate them if there are no CONFIG_FILES.
9736 # This happens for instance with `./config.status config.h'.
9737 if test -n "$CONFIG_FILES"; then
9740 ac_cr=`echo X | tr X '\015'`
9741 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9742 # But we know of no other shell where ac_cr would be empty at this
9743 # point, so we can use a bashism as a fallback.
9744 if test "x$ac_cr" = x; then
9745 eval ac_cr=\$\'\\r\'
9747 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9748 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9754 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9759 echo "cat >conf$$subs.awk <<_ACEOF" &&
9760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9764 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9766 for ac_last_try in false false false false false :; do
9767 . ./conf$$subs.sh ||
9768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9770 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9771 if test $ac_delim_n = $ac_delim_num; then
9773 elif $ac_last_try; then
9774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9782 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9786 s/^/S["/; s/!.*/"]=/
9796 s/\(.\{148\}\)..*/\1/
9798 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9810 s/\(.\{148\}\)..*/\1/
9812 s/["\\]/\\&/g; s/^/"/; s/$/"/
9816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9821 ' <conf$$subs.awk | sed '
9826 ' >>$CONFIG_STATUS || ac_write_fail=1
9827 rm -f conf$$subs.awk
9828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9830 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9831 for (key in S) S_is_set[key] = 1
9837 nfields = split(line, field, "@")
9839 len = length(field[1])
9840 for (i = 2; i < nfields; i++) {
9842 keylen = length(key)
9843 if (S_is_set[key]) {
9845 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9846 len += length(value) + length(field[++i])
9857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9858 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9859 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9862 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9863 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9866 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9867 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9868 # trailing colons and then remove the whole line if VPATH becomes empty
9869 # (actually we leave an empty line to preserve line numbers).
9870 if test "x$srcdir" = x.; then
9871 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9890 fi # test -n "$CONFIG_FILES"
9892 # Set up the scripts for CONFIG_HEADERS section.
9893 # No need to generate them if there are no CONFIG_HEADERS.
9894 # This happens for instance with `./config.status Makefile'.
9895 if test -n "$CONFIG_HEADERS"; then
9896 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9900 # Transform confdefs.h into an awk script `defines.awk', embedded as
9901 # here-document in config.status, that substitutes the proper values into
9902 # config.h.in to produce config.h.
9904 # Create a delimiter string that does not exist in confdefs.h, to ease
9905 # handling of long lines.
9907 for ac_last_try in false false :; do
9908 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9909 if test -z "$ac_tt"; then
9911 elif $ac_last_try; then
9912 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9918 # For the awk script, D is an array of macro values keyed by name,
9919 # likewise P contains macro parameters if any. Preserve backslash
9920 # newline sequences.
9922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9924 s/.\{148\}/&'"$ac_delim"'/g
9927 s/^[ ]*#[ ]*define[ ][ ]*/ /
9934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9941 D["\1"]=" \3\\\\\\n"\\/p
9943 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9948 s/.\{148\}/&'"$ac_delim"'/g
9953 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9956 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9958 ' <confdefs.h | sed '
9959 s/'"$ac_delim"'/"\\\
9960 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9963 for (key in D) D_is_set[key] = 1
9966 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9968 split(line, arg, " ")
9969 if (arg[1] == "#") {
9973 defundef = substr(arg[1], 2)
9976 split(mac1, mac2, "(") #)
9978 prefix = substr(line, 1, index(line, defundef) - 1)
9979 if (D_is_set[macro]) {
9980 # Preserve the white space surrounding the "#".
9981 print prefix "define", macro P[macro] D[macro]
9984 # Replace #undef with comments. This is necessary, for example,
9985 # in the case of _POSIX_SOURCE, which is predefined and required
9986 # on some systems where configure will not decide to define it.
9987 if (defundef == "undef") {
9988 print "/*", prefix defundef, macro, "*/"
9996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9997 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9998 fi # test -n "$CONFIG_HEADERS"
10001 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10006 :[FHLC]) ac_mode=$ac_tag; continue;;
10008 case $ac_mode$ac_tag in
10010 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10011 :[FH]-) ac_tag=-:-;;
10012 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10029 -) ac_f="$ac_tmp/stdin";;
10030 *) # Look for the file first in the build tree, then in the source tree
10031 # (if the path is not absolute). The absolute path cannot be DOS-style,
10032 # because $ac_f cannot contain `:'.
10036 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10038 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10040 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10041 as_fn_append ac_file_inputs " '$ac_f'"
10044 # Let's still pretend it is `configure' which instantiates (i.e., don't
10045 # use $as_me), people would be surprised to read:
10046 # /* config.h. Generated by config.status. */
10047 configure_input='Generated from '`
10048 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10050 if test x"$ac_file" != x-; then
10051 configure_input="$ac_file. $configure_input"
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10053 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10055 # Neutralize special characters interpreted by sed in replacement strings.
10056 case $configure_input in #(
10057 *\&* | *\|* | *\\* )
10058 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10059 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10060 *) ac_sed_conf_input=$configure_input;;
10064 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10070 ac_dir=`$as_dirname -- "$ac_file" ||
10071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10072 X"$ac_file" : 'X\(//\)[^/]' \| \
10073 X"$ac_file" : 'X\(//\)$' \| \
10074 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10075 printf "%s\n" X"$ac_file" |
10076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10080 /^X\(\/\/\)[^/].*/{
10093 as_dir="$ac_dir"; as_fn_mkdir_p
10097 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10099 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10100 # A ".." for each directory in $ac_dir_suffix.
10101 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10102 case $ac_top_builddir_sub in
10103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10107 ac_abs_top_builddir=$ac_pwd
10108 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10109 # for backward compatibility:
10110 ac_top_builddir=$ac_top_build_prefix
10113 .) # We are building in place.
10115 ac_top_srcdir=$ac_top_builddir_sub
10116 ac_abs_top_srcdir=$ac_pwd ;;
10117 [\\/]* | ?:[\\/]* ) # Absolute name.
10118 ac_srcdir=$srcdir$ac_dir_suffix;
10119 ac_top_srcdir=$srcdir
10120 ac_abs_top_srcdir=$srcdir ;;
10121 *) # Relative name.
10122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10123 ac_top_srcdir=$ac_top_build_prefix$srcdir
10124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10126 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10137 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10139 ac_MKDIR_P=$MKDIR_P
10141 [\\/$]* | ?:[\\/]* ) ;;
10142 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10147 # If the template does not know about datarootdir, expand it.
10148 # FIXME: This hack should be removed a few years after 2.60.
10149 ac_datarootdir_hack=; ac_datarootdir_seen=
10160 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10161 *datarootdir*) ac_datarootdir_seen=yes;;
10162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10164 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10167 ac_datarootdir_hack='
10168 s&@datadir@&$datadir&g
10169 s&@docdir@&$docdir&g
10170 s&@infodir@&$infodir&g
10171 s&@localedir@&$localedir&g
10172 s&@mandir@&$mandir&g
10173 s&\\\${datarootdir}&$datarootdir&g' ;;
10177 # Neutralize VPATH when `$srcdir' = `.'.
10178 # Shell code in configure.ac might set extrasub.
10179 # FIXME: do we really want to maintain this feature?
10180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10181 ac_sed_extra="$ac_vpsub
10184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10187 s|@configure_input@|$ac_sed_conf_input|;t t
10188 s&@top_builddir@&$ac_top_builddir_sub&;t t
10189 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10190 s&@srcdir@&$ac_srcdir&;t t
10191 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10192 s&@top_srcdir@&$ac_top_srcdir&;t t
10193 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10194 s&@builddir@&$ac_builddir&;t t
10195 s&@abs_builddir@&$ac_abs_builddir&;t t
10196 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10197 s&@INSTALL@&$ac_INSTALL&;t t
10198 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10199 $ac_datarootdir_hack
10201 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10207 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10209 which seems to be undefined. Please make sure it is defined" >&5
10210 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10211 which seems to be undefined. Please make sure it is defined" >&2;}
10213 rm -f "$ac_tmp/stdin"
10215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10224 if test x"$ac_file" != x-; then
10226 printf "%s\n" "/* $configure_input */" >&1 \
10227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10228 } >"$ac_tmp/config.h" \
10229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10232 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10235 mv "$ac_tmp/config.h" "$ac_file" \
10236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10239 printf "%s\n" "/* $configure_input */" >&1 \
10240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10241 || as_fn_error $? "could not create -" "$LINENO" 5
10243 # Compute "$ac_file"'s index in $config_headers.
10246 for _am_header in $config_headers :; do
10247 case $_am_header in
10248 $_am_arg | $_am_arg:* )
10251 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10254 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10255 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10256 X"$_am_arg" : 'X\(//\)[^/]' \| \
10257 X"$_am_arg" : 'X\(//\)$' \| \
10258 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10259 printf "%s\n" X"$_am_arg" |
10260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10264 /^X\(\/\/\)[^/].*/{
10276 s/.*/./; q'`/stamp-h$_am_stamp_count
10279 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10280 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10285 case $ac_file$ac_mode in
10286 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10287 # Older Autoconf quotes --file arguments for eval, but not when files
10288 # are listed without --file. Let's play safe and only enable the eval
10289 # if we detect the quoting.
10290 # TODO: see whether this extra hack can be removed once we start
10291 # requiring Autoconf 2.70 or later.
10292 case $CONFIG_FILES in #(
10294 eval set x "$CONFIG_FILES" ;; #(
10296 set x $CONFIG_FILES ;; #(
10301 # Used to flag and report bootstrapping failures.
10305 # Strip MF so we end up with the name of the file.
10306 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
10307 # Check whether this is an Automake generated Makefile which includes
10308 # dependency-tracking related rules and includes.
10309 # Grep'ing the whole file directly is not great: AIX grep has a line
10310 # limit of 2048, but all sed's we know have understand at least 4000.
10311 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
10313 am_dirpart=`$as_dirname -- "$am_mf" ||
10314 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10315 X"$am_mf" : 'X\(//\)[^/]' \| \
10316 X"$am_mf" : 'X\(//\)$' \| \
10317 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10318 printf "%s\n" X"$am_mf" |
10319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10323 /^X\(\/\/\)[^/].*/{
10336 am_filepart=`$as_basename -- "$am_mf" ||
10337 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
10338 X"$am_mf" : 'X\(//\)$' \| \
10339 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10340 printf "%s\n" X/"$am_mf" |
10341 sed '/^.*\/\([^/][^/]*\)\/*$/{
10354 { echo "$as_me:$LINENO: cd "$am_dirpart" \
10355 && sed -e '/# am--include-marker/d' "$am_filepart" \
10356 | $MAKE -f - am--depfiles" >&5
10357 (cd "$am_dirpart" \
10358 && sed -e '/# am--include-marker/d' "$am_filepart" \
10359 | $MAKE -f - am--depfiles) >&5 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } || am_rc=$?
10364 if test $am_rc -ne 0; then
10365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10366 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10367 as_fn_error $? "Something went wrong bootstrapping makefile fragments
10368 for automatic dependency tracking. If GNU make was not used, consider
10369 re-running the configure script with MAKE=\"gmake\" (or whatever is
10370 necessary). You can also try re-running configure with the
10371 '--disable-dependency-tracking' option to at least be able to build
10372 the package (albeit without support for automatic dependency tracking).
10373 See \`config.log' for more details" "$LINENO" 5; }
10375 { am_dirpart=; unset am_dirpart;}
10376 { am_filepart=; unset am_filepart;}
10377 { am_mf=; unset am_mf;}
10378 { am_rc=; unset am_rc;}
10379 rm -f conftest-deps.mk
10382 "po-directories":C)
10383 for ac_file in $CONFIG_FILES; do
10384 # Support "outfile[:infile[:infile...]]"
10386 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10388 # PO directories have a Makefile.in generated from Makefile.in.in.
10389 case "$ac_file" in */Makefile.in)
10390 # Adjust a relative srcdir.
10391 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10392 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10393 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10394 # In autoconf-2.13 it is called $ac_given_srcdir.
10395 # In autoconf-2.50 it is called $srcdir.
10396 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10397 case "$ac_given_srcdir" in
10398 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10399 /*) top_srcdir="$ac_given_srcdir" ;;
10400 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10402 # Treat a directory as a PO directory if and only if it has a
10403 # POTFILES.in file. This allows packages to have multiple PO
10404 # directories under different names or in different locations.
10405 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10406 rm -f "$ac_dir/POTFILES"
10407 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10408 gt_tab=`printf '\t'`
10409 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10410 POMAKEFILEDEPS="POTFILES.in"
10411 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10412 # on $ac_dir but don't depend on user-specified configuration
10414 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10415 # The LINGUAS file contains the set of available languages.
10416 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10417 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10419 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10420 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10422 # The set of available languages was given in configure.in.
10423 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
10426 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10427 # Compute UPDATEPOFILES
10428 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10429 # Compute DUMMYPOFILES
10430 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10432 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10433 case "$ac_given_srcdir" in
10435 *) srcdirpre='$(srcdir)/' ;;
10441 for lang in $ALL_LINGUAS; do
10442 POFILES="$POFILES $srcdirpre$lang.po"
10443 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10444 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10445 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10447 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10448 # environment variable.
10450 if test -n "$ALL_LINGUAS"; then
10451 for presentlang in $ALL_LINGUAS; do
10453 if test "%UNSET%" != "$LINGUAS"; then
10454 desiredlanguages="$LINGUAS"
10456 desiredlanguages="$ALL_LINGUAS"
10458 for desiredlang in $desiredlanguages; do
10459 # Use the presentlang catalog if desiredlang is
10460 # a. equal to presentlang, or
10461 # b. a variant of presentlang (because in this case,
10462 # presentlang can be used as a fallback for messages
10463 # which are not translated in the desiredlang catalog).
10464 case "$desiredlang" in
10465 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
10470 if test $useit = yes; then
10471 INST_LINGUAS="$INST_LINGUAS $presentlang"
10476 if test -n "$INST_LINGUAS"; then
10477 for lang in $INST_LINGUAS; do
10478 CATALOGS="$CATALOGS $lang.gmo"
10481 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10482 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10483 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10484 if test -f "$f"; then
10486 *.orig | *.bak | *~) ;;
10487 *) cat "$f" >> "$ac_dir/Makefile" ;;
10502 ac_clean_files=$ac_clean_files_save
10504 test $ac_write_fail = 0 ||
10505 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10508 # configure is writing to config.log, and then calls config.status.
10509 # config.status does its own redirection, appending to config.log.
10510 # Unfortunately, on DOS this fails, as config.log is still kept open
10511 # by configure, so config.status won't be able to write to it; its
10512 # output is simply discarded. So we exec the FD to /dev/null,
10513 # effectively closing config.log, so it can be properly (re)opened and
10514 # appended to by config.status. When coming back to configure, we
10515 # need to make the FD available again.
10516 if test "$no_create" != yes; then
10518 ac_config_status_args=
10519 test "$silent" = yes &&
10520 ac_config_status_args="$ac_config_status_args --quiet"
10522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10525 # would make configure fail if this is the last instruction.
10526 $ac_cs_success || as_fn_exit 1
10528 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10530 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10536 echo "Enscript is now configured to your system with the following"
10537 echo "user-definable options. Please, check that they are correct and"
10538 echo "match to your system's properties."
10540 echo "Option Change with configure's option Current value"
10541 echo "---------------------------------------------------------"
10542 echo "Media --with-media=MEDIA $MEDIA"
10543 echo "Encoding --with-encoding=ENCODING $ENCODING"
10544 echo "Spooler --with-spooler=SPOOLER $SPOOLER"
10545 echo "PS level --with-ps-level=LEVEL $PSLEVEL"