2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sessreg 1.0.7.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='sessreg'
563 PACKAGE_TARNAME='sessreg'
564 PACKAGE_VERSION='1.0.7'
565 PACKAGE_STRING='sessreg 1.0.7'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
647 MAINTAINER_MODE_FALSE
666 INSTALL_STRIP_PROGRAM
718 program_transform_name
731 enable_option_checking
733 enable_dependency_tracking
734 enable_maintainer_mode
735 enable_strict_compilation
739 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=\$ac_optarg ;;
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
913 -help | --help | --hel | --he | -h)
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 htmldir=$ac_optarg ;;
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
943 -libdir | --libdir | --libdi | --libd)
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
955 -localedir | --localedir | --localedi | --localed | --locale)
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 # Obsolete; use --without-fp.
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1034 -psdir | --psdir | --psdi | --psd | --ps)
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 sbindir=$ac_optarg ;;
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 sharedstatedir=$ac_optarg ;;
1060 -site | --site | --sit)
1062 -site=* | --site=* | --sit=*)
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used" >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218 test "$silent" = yes && exec 6>/dev/null
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures sessreg 1.0.7 to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of sessreg 1.0.7:";;
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-largefile omit support for large files
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
1376 --enable-maintainer-mode enable make rules and dependencies not useful
1377 (and sometimes confusing) to the casual installer
1378 --enable-strict-compilation
1379 Enable all warnings from compiler and make them
1380 errors (default: disabled)
1381 --enable-silent-rules less verbose build output (undo: `make V=1')
1382 --disable-silent-rules verbose build output (undo: `make V=0')
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-lint Use a lint-style source code checker (default:
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1399 PKG_CONFIG path to pkg-config utility
1400 LINT Path to a lint-style command
1401 LINT_FLAGS Flags for the lint-style command
1403 C compiler flags for SESSREG, overriding pkg-config
1405 linker flags for SESSREG, overriding pkg-config
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1410 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1440 .) # We are building in place.
1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
1445 ac_srcdir=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1462 $SHELL "$ac_srcdir/configure" --help=recursive
1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 cd "$ac_pwd" || { ac_status=$?; break; }
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1473 sessreg configure 1.0.7
1474 generated by GNU Autoconf 2.68
1476 Copyright (C) 2010 Free Software Foundation, Inc.
1477 This configure script is free software; the Free Software Foundation
1478 gives unlimited permission to copy, distribute and modify it.
1483 ## ------------------------ ##
1484 ## Autoconf initialization. ##
1485 ## ------------------------ ##
1487 # ac_fn_c_try_compile LINENO
1488 # --------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_compile ()
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext
1494 if { { ac_try="$ac_compile"
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_compile") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest.$ac_objext; then :
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1523 } # ac_fn_c_try_compile
1525 # ac_fn_c_try_cpp LINENO
1526 # ----------------------
1527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if { { ac_try="$ac_cpp conftest.$ac_ext"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } > conftest.i && {
1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1562 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1563 # -------------------------------------------------------
1564 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1565 # the include files in INCLUDES and setting the cache variable VAR
1567 ac_fn_c_check_header_mongrel ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if eval \${$3+:} false; then :
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if eval \${$3+:} false; then :
1574 $as_echo_n "(cached) " >&6
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578 $as_echo "$ac_res" >&6; }
1580 # Is the header compilable?
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1582 $as_echo_n "checking $2 usability... " >&6; }
1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h. */
1588 if ac_fn_c_try_compile "$LINENO"; then :
1589 ac_header_compiler=yes
1591 ac_header_compiler=no
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1595 $as_echo "$ac_header_compiler" >&6; }
1597 # Is the header present?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1599 $as_echo_n "checking $2 presence... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1604 if ac_fn_c_try_cpp "$LINENO"; then :
1605 ac_header_preproc=yes
1607 ac_header_preproc=no
1609 rm -f conftest.err conftest.i conftest.$ac_ext
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1611 $as_echo "$ac_header_preproc" >&6; }
1613 # So? What about this header?
1614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1617 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1623 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1625 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1627 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1629 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ( $as_echo "## ---------------------------------------------------------------------- ##
1633 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1634 ## ---------------------------------------------------------------------- ##"
1635 ) | sed "s/^/$as_me: WARNING: /" >&2
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1643 eval "$3=\$ac_header_compiler"
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_mongrel
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_link"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>&5
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671 { { case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_try") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; }; }; then :
1683 $as_echo "$as_me: program exited with status $ac_status" >&5
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=$ac_status
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_compile
1726 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1727 # ---------------------------------------------
1728 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1730 ac_fn_c_check_decl ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 as_decl_name=`echo $2|sed 's/ *(.*//'`
1734 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1736 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1746 #ifndef $as_decl_name
1748 (void) $as_decl_use;
1750 (void) $as_decl_name;
1758 if ac_fn_c_try_compile "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_decl
1772 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1773 # ----------------------------------------------------
1774 # Tries to find if the field MEMBER exists in type AGGR, after including
1775 # INCLUDES, setting cache variable VAR accordingly.
1776 ac_fn_c_check_member ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1780 $as_echo_n "checking for $2.$3... " >&6; }
1781 if eval \${$4+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1797 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1807 if (sizeof ac_aggr.$3)
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_member
1829 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830 # -------------------------------------------
1831 # Tests whether TYPE exists after having included INCLUDES, setting cache
1832 # variable VAR accordingly.
1833 ac_fn_c_check_type ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_type
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 $as_test_x conftest$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1952 # include <limits.h>
1954 # include <assert.h>
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1981 if ac_fn_c_try_link "$LINENO"; then :
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_func
1995 cat >config.log <<_ACEOF
1996 This file contains any messages produced by compilers while
1997 running configure, to aid debugging if configure makes a mistake.
1999 It was created by sessreg $as_me 1.0.7, which was
2000 generated by GNU Autoconf 2.68. Invocation command line was
2012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 $as_echo "PATH: $as_dir"
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2060 ac_must_keep_next=false
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 -* ) ac_must_keep_next=true ;;
2092 as_fn_append ac_configure_args " '$ac_arg'"
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Save into config.log some information that might help in debugging.
2110 $as_echo "## ---------------- ##
2111 ## Cache variables. ##
2112 ## ---------------- ##"
2114 # The following way of writing the cache mishandles newlines in values,
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 _ | IFS | as_nl) ;; #(
2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127 *) { eval $ac_var=; unset $ac_var;} ;;
2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2146 $as_echo "## ----------------- ##
2147 ## Output variables. ##
2148 ## ----------------- ##"
2150 for ac_var in $ac_subst_vars
2152 eval ac_val=\$$ac_var
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 $as_echo "$ac_var='\''$ac_val'\''"
2160 if test -n "$ac_subst_files"; then
2161 $as_echo "## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##"
2165 for ac_var in $ac_subst_files
2167 eval ac_val=\$$ac_var
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 $as_echo "$ac_var='\''$ac_val'\''"
2176 if test -s confdefs.h; then
2177 $as_echo "## ----------- ##
2184 test "$ac_signal" != 0 &&
2185 $as_echo "$as_me: caught signal $ac_signal"
2186 $as_echo "$as_me: exit $exit_status"
2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 for ac_signal in 1 2 13 15; do
2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2198 rm -f -r conftest* confdefs.h
2200 $as_echo "/* confdefs.h */" > confdefs.h
2202 # Predefined preprocessor variables.
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_URL "$PACKAGE_URL"
2229 # Let the site file select an alternate cache file if it wants to.
2230 # Prefer an explicitly selected file to automatically selected ones.
2233 if test -n "$CONFIG_SITE"; then
2234 # We do not want a PATH search for config.site.
2235 case $CONFIG_SITE in #((
2236 -*) ac_site_file1=./$CONFIG_SITE;;
2237 */*) ac_site_file1=$CONFIG_SITE;;
2238 *) ac_site_file1=./$CONFIG_SITE;;
2240 elif test "x$prefix" != xNONE; then
2241 ac_site_file1=$prefix/share/config.site
2242 ac_site_file2=$prefix/etc/config.site
2244 ac_site_file1=$ac_default_prefix/share/config.site
2245 ac_site_file2=$ac_default_prefix/etc/config.site
2247 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2249 test "x$ac_site_file" = xNONE && continue
2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253 sed 's/^/| /' "$ac_site_file" >&5
2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2262 if test -r "$cache_file"; then
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 $as_echo "$as_me: loading cache $cache_file" >&6;}
2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 $as_echo "$as_me: creating cache $cache_file" >&6;}
2279 # Check that the precious variables saved in the cache have kept the same
2281 ac_cache_corrupted=false
2282 for ac_var in $ac_precious_vars; do
2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284 eval ac_new_set=\$ac_env_${ac_var}_set
2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286 eval ac_new_val=\$ac_env_${ac_var}_value
2287 case $ac_old_set,$ac_new_set in
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2298 if test "x$ac_old_val" != "x$ac_new_val"; then
2299 # differences in whitespace do not lead to failure.
2300 ac_old_val_w=`echo x $ac_old_val`
2301 ac_new_val_w=`echo x $ac_new_val`
2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305 ac_cache_corrupted=:
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309 eval $ac_var=\$ac_old_val
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2312 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2314 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2317 # Pass precious variables to config.status.
2318 if test "$ac_new_set" = set; then
2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 *) ac_arg=$ac_var=$ac_new_val ;;
2323 case " $ac_configure_args " in
2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329 if $ac_cache_corrupted; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2336 ## -------------------- ##
2337 ## Main body of script. ##
2338 ## -------------------- ##
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 ac_config_headers="$ac_config_headers config.h"
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359 $as_echo_n "checking for $ac_word... " >&6; }
2360 if ${ac_cv_prog_CC+:} false; then :
2361 $as_echo_n "(cached) " >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2386 $as_echo "$CC" >&6; }
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389 $as_echo "no" >&6; }
2394 if test -z "$ac_cv_prog_CC"; then
2396 # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_CC="gcc"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2426 $as_echo "$ac_ct_CC" >&6; }
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2432 if test "x$ac_ct_CC" = x; then
2435 case $cross_compiling:$ac_tool_warned in
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2439 ac_tool_warned=yes ;;
2447 if test -z "$CC"; then
2448 if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_CC+:} false; then :
2454 $as_echo_n "(cached) " >&6
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_CC="${ac_tool_prefix}cc"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CC"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2479 $as_echo "$CC" >&6; }
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2488 if test -z "$CC"; then
2489 # Extract the first word of "cc", so it can be a program name with args.
2490 set dummy cc; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_CC+:} false; then :
2494 $as_echo_n "(cached) " >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2508 ac_prog_rejected=yes
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 if test $ac_prog_rejected = yes; then
2520 # We found a bogon in the path, so make sure we never use it.
2521 set dummy $ac_cv_prog_CC
2523 if test $# != 0; then
2524 # We chose a different compiler from the bogus one.
2525 # However, it has the same basename, so the bogon will be chosen
2526 # first if we set CC to just the basename; use the full file name.
2528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534 if test -n "$CC"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536 $as_echo "$CC" >&6; }
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2544 if test -z "$CC"; then
2545 if test -n "$ac_tool_prefix"; then
2546 for ac_prog in cl.exe
2548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_CC+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test -n "$CC"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2578 $as_echo "$CC" >&6; }
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2585 test -n "$CC" && break
2588 if test -z "$CC"; then
2590 for ac_prog in cl.exe
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_ac_ct_CC="$ac_prog"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2622 $as_echo "$ac_ct_CC" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2629 test -n "$ac_ct_CC" && break
2632 if test "x$ac_ct_CC" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639 ac_tool_warned=yes ;;
2648 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $? "no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details" "$LINENO" 5; }
2653 # Provide some information about the compiler.
2654 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2657 for ac_option in --version -v -V -qversion; do
2658 { { ac_try="$ac_compiler $ac_option >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2667 if test -s conftest.err; then
2669 ... rest of stderr output deleted ...
2670 10q' conftest.err >conftest.er1
2671 cat conftest.er1 >&5
2673 rm -f conftest.er1 conftest.err
2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2675 test $ac_status = 0; }
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2689 ac_clean_files_save=$ac_clean_files
2690 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2691 # Try to create an executable without -o first, disregard a.out.
2692 # It will help us diagnose broken compilers, and finding out an intuition
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2695 $as_echo_n "checking whether the C compiler works... " >&6; }
2696 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2698 # The possible output files:
2699 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2702 for ac_file in $ac_files
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2706 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 if { { ac_try="$ac_link_default"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2717 $as_echo "$ac_try_echo"; } >&5
2718 (eval "$ac_link_default") 2>&5
2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721 test $ac_status = 0; }; then :
2722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2724 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2725 # so that the user can short-circuit this test for compilers unknown to
2727 for ac_file in $ac_files ''
2729 test -f "$ac_file" || continue
2731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2734 # We found the default executable, but exeext='' is most
2738 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 # We set ac_cv_exeext here because the later test for it is not
2743 # safe: cross compilers may not add the suffix if given an `-o'
2744 # argument, so we may need to know it at that point already.
2745 # Even if this section looks crufty: it has the advantage of
2752 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757 if test -z "$ac_file"; then :
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 $as_echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error 77 "C compiler cannot create executables
2766 See \`config.log' for more details" "$LINENO" 5; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2769 $as_echo "yes" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2772 $as_echo_n "checking for C compiler default output file name... " >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2774 $as_echo "$ac_file" >&6; }
2775 ac_exeext=$ac_cv_exeext
2777 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2778 ac_clean_files=$ac_clean_files_save
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2780 $as_echo_n "checking for suffix of executables... " >&6; }
2781 if { { ac_try="$ac_link"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788 (eval "$ac_link") 2>&5
2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; }; then :
2792 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2793 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2794 # work properly (i.e., refer to `conftest.exe'), while it won't with
2796 for ac_file in conftest.exe conftest conftest.*; do
2797 test -f "$ac_file" || continue
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2809 See \`config.log' for more details" "$LINENO" 5; }
2811 rm -f conftest conftest$ac_cv_exeext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2813 $as_echo "$ac_cv_exeext" >&6; }
2815 rm -f conftest.$ac_ext
2816 EXEEXT=$ac_cv_exeext
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2824 FILE *f = fopen ("conftest.out", "w");
2825 return ferror (f) || fclose (f) != 0;
2831 ac_clean_files="$ac_clean_files conftest.out"
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2835 $as_echo_n "checking whether we are cross compiling... " >&6; }
2836 if test "$cross_compiling" != yes; then
2837 { { ac_try="$ac_link"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_link") 2>&5
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; }
2848 if { ac_try='./conftest$ac_cv_exeext'
2849 { { case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_try") 2>&5
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; }; then
2861 if test "$cross_compiling" = maybe; then
2864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866 as_fn_error $? "cannot run C compiled programs.
2867 If you meant to cross compile, use \`--host'.
2868 See \`config.log' for more details" "$LINENO" 5; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2873 $as_echo "$cross_compiling" >&6; }
2875 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2876 ac_clean_files=$ac_clean_files_save
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2878 $as_echo_n "checking for suffix of object files... " >&6; }
2879 if ${ac_cv_objext+:} false; then :
2880 $as_echo_n "(cached) " >&6
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h. */
2893 rm -f conftest.o conftest.obj
2894 if { { ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_compile") 2>&5
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; then :
2905 for ac_file in conftest.o conftest.obj conftest.*; do
2906 test -f "$ac_file" || continue;
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914 $as_echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919 as_fn_error $? "cannot compute suffix of object files: cannot compile
2920 See \`config.log' for more details" "$LINENO" 5; }
2922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2925 $as_echo "$ac_cv_objext" >&6; }
2926 OBJEXT=$ac_cv_objext
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2929 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2930 if ${ac_cv_c_compiler_gnu+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2947 if ac_fn_c_try_compile "$LINENO"; then :
2952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2957 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2958 if test $ac_compiler_gnu = yes; then
2963 ac_test_CFLAGS=${CFLAGS+set}
2964 ac_save_CFLAGS=$CFLAGS
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2966 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2967 if ${ac_cv_prog_cc_g+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 ac_save_c_werror_flag=$ac_c_werror_flag
2971 ac_c_werror_flag=yes
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2985 if ac_fn_c_try_compile "$LINENO"; then :
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
3000 if ac_fn_c_try_compile "$LINENO"; then :
3003 ac_c_werror_flag=$ac_save_c_werror_flag
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3016 if ac_fn_c_try_compile "$LINENO"; then :
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_c_werror_flag=$ac_save_c_werror_flag
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3027 $as_echo "$ac_cv_prog_cc_g" >&6; }
3028 if test "$ac_test_CFLAGS" = set; then
3029 CFLAGS=$ac_save_CFLAGS
3030 elif test $ac_cv_prog_cc_g = yes; then
3031 if test "$GCC" = yes; then
3037 if test "$GCC" = yes; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3044 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3045 if ${ac_cv_prog_cc_c89+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_cv_prog_cc_c89=no
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3054 #include <sys/types.h>
3055 #include <sys/stat.h>
3056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3057 struct buf { int x; };
3058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3059 static char *e (p, i)
3065 static char *f (char * (*g) (char **, int), char **p, ...)
3070 s = g (p, va_arg (v,int));
3075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3076 function prototypes and stuff, but not '\xHH' hex character constants.
3077 These don't provoke an error unfortunately, instead are silently treated
3078 as 'x'. The following induces an error, until -std is added to get
3079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3080 array size at least. It's necessary to write '\x00'==0 to get something
3081 that's true only with -std. */
3082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3084 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3085 inside strings and character constants. */
3087 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3089 int test (int i, double x);
3090 struct s1 {int (*f) (int a);};
3091 struct s2 {int (*f) (double a);};
3092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3103 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3106 CC="$ac_save_CC $ac_arg"
3107 if ac_fn_c_try_compile "$LINENO"; then :
3108 ac_cv_prog_cc_c89=$ac_arg
3110 rm -f core conftest.err conftest.$ac_objext
3111 test "x$ac_cv_prog_cc_c89" != "xno" && break
3113 rm -f conftest.$ac_ext
3118 case "x$ac_cv_prog_cc_c89" in
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3121 $as_echo "none needed" >&6; } ;;
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3124 $as_echo "unsupported" >&6; } ;;
3126 CC="$CC $ac_cv_prog_cc_c89"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3130 if test "x$ac_cv_prog_cc_c89" != xno; then :
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3148 # On Suns, sometimes $CPP names a directory.
3149 if test -n "$CPP" && test -d "$CPP"; then
3152 if test -z "$CPP"; then
3153 if ${ac_cv_prog_CPP+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 # Double quotes because CPP needs to be expanded
3157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3160 for ac_c_preproc_warn_flag in '' yes
3162 # Use a header file that comes with gcc, so configuring glibc
3163 # with a fresh cross-compiler works.
3164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3165 # <limits.h> exists even on freestanding compilers.
3166 # On the NeXT, cc -E runs the code through the compiler's parser,
3167 # not just through cpp. "Syntax error" is here to catch this case.
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3171 # include <limits.h>
3173 # include <assert.h>
3177 if ac_fn_c_try_cpp "$LINENO"; then :
3180 # Broken: fails on valid input.
3183 rm -f conftest.err conftest.i conftest.$ac_ext
3185 # OK, works on sane cases. Now check whether nonexistent headers
3186 # can be detected and how.
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3191 if ac_fn_c_try_cpp "$LINENO"; then :
3192 # Broken: success on invalid input.
3195 # Passes both tests.
3199 rm -f conftest.err conftest.i conftest.$ac_ext
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.i conftest.err conftest.$ac_ext
3204 if $ac_preproc_ok; then :
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3217 $as_echo "$CPP" >&6; }
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3230 # include <limits.h>
3232 # include <assert.h>
3236 if ac_fn_c_try_cpp "$LINENO"; then :
3239 # Broken: fails on valid input.
3242 rm -f conftest.err conftest.i conftest.$ac_ext
3244 # OK, works on sane cases. Now check whether nonexistent headers
3245 # can be detected and how.
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248 #include <ac_nonexistent.h>
3250 if ac_fn_c_try_cpp "$LINENO"; then :
3251 # Broken: success on invalid input.
3254 # Passes both tests.
3258 rm -f conftest.err conftest.i conftest.$ac_ext
3261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3262 rm -f conftest.i conftest.err conftest.$ac_ext
3263 if $ac_preproc_ok; then :
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details" "$LINENO" 5; }
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3280 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3281 if ${ac_cv_path_GREP+:} false; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -z "$GREP"; then
3285 ac_path_GREP_found=false
3286 # Loop through the user's path and test for each of PROGNAME-LIST
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291 test -z "$as_dir" && as_dir=.
3292 for ac_prog in grep ggrep; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3296 # Check for GNU ac_path_GREP and select it if it is found.
3297 # Check for GNU $ac_path_GREP
3298 case `"$ac_path_GREP" --version 2>&1` in
3300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3303 $as_echo_n 0123456789 >"conftest.in"
3306 cat "conftest.in" "conftest.in" >"conftest.tmp"
3307 mv "conftest.tmp" "conftest.in"
3308 cp "conftest.in" "conftest.nl"
3309 $as_echo 'GREP' >> "conftest.nl"
3310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3312 as_fn_arith $ac_count + 1 && ac_count=$as_val
3313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3314 # Best one so far, save it but keep looking for a better one
3315 ac_cv_path_GREP="$ac_path_GREP"
3316 ac_path_GREP_max=$ac_count
3318 # 10*(2^10) chars as input seems more than enough
3319 test $ac_count -gt 10 && break
3321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324 $ac_path_GREP_found && break 3
3329 if test -z "$ac_cv_path_GREP"; then
3330 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3333 ac_cv_path_GREP=$GREP
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3338 $as_echo "$ac_cv_path_GREP" >&6; }
3339 GREP="$ac_cv_path_GREP"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3343 $as_echo_n "checking for egrep... " >&6; }
3344 if ${ac_cv_path_EGREP+:} false; then :
3345 $as_echo_n "(cached) " >&6
3347 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3348 then ac_cv_path_EGREP="$GREP -E"
3350 if test -z "$EGREP"; then
3351 ac_path_EGREP_found=false
3352 # Loop through the user's path and test for each of PROGNAME-LIST
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3357 test -z "$as_dir" && as_dir=.
3358 for ac_prog in egrep; do
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3361 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3362 # Check for GNU ac_path_EGREP and select it if it is found.
3363 # Check for GNU $ac_path_EGREP
3364 case `"$ac_path_EGREP" --version 2>&1` in
3366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3369 $as_echo_n 0123456789 >"conftest.in"
3372 cat "conftest.in" "conftest.in" >"conftest.tmp"
3373 mv "conftest.tmp" "conftest.in"
3374 cp "conftest.in" "conftest.nl"
3375 $as_echo 'EGREP' >> "conftest.nl"
3376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3378 as_fn_arith $ac_count + 1 && ac_count=$as_val
3379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3380 # Best one so far, save it but keep looking for a better one
3381 ac_cv_path_EGREP="$ac_path_EGREP"
3382 ac_path_EGREP_max=$ac_count
3384 # 10*(2^10) chars as input seems more than enough
3385 test $ac_count -gt 10 && break
3387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390 $ac_path_EGREP_found && break 3
3395 if test -z "$ac_cv_path_EGREP"; then
3396 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3399 ac_cv_path_EGREP=$EGREP
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3405 $as_echo "$ac_cv_path_EGREP" >&6; }
3406 EGREP="$ac_cv_path_EGREP"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3410 $as_echo_n "checking for ANSI C header files... " >&6; }
3411 if ${ac_cv_header_stdc+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_cv_header_stdc=yes
3432 ac_cv_header_stdc=no
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 if test $ac_cv_header_stdc = yes; then
3437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "memchr" >/dev/null 2>&1; then :
3447 ac_cv_header_stdc=no
3453 if test $ac_cv_header_stdc = yes; then
3454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 $EGREP "free" >/dev/null 2>&1; then :
3464 ac_cv_header_stdc=no
3470 if test $ac_cv_header_stdc = yes; then
3471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3472 if test "$cross_compiling" = yes; then :
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3479 #if ((' ' & 0x0FF) == 0x020)
3480 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3481 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3483 # define ISLOWER(c) \
3484 (('a' <= (c) && (c) <= 'i') \
3485 || ('j' <= (c) && (c) <= 'r') \
3486 || ('s' <= (c) && (c) <= 'z'))
3487 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3495 for (i = 0; i < 256; i++)
3496 if (XOR (islower (i), ISLOWER (i))
3497 || toupper (i) != TOUPPER (i))
3502 if ac_fn_c_try_run "$LINENO"; then :
3505 ac_cv_header_stdc=no
3507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3508 conftest.$ac_objext conftest.beam conftest.$ac_ext
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3514 $as_echo "$ac_cv_header_stdc" >&6; }
3515 if test $ac_cv_header_stdc = yes; then
3517 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3523 inttypes.h stdint.h unistd.h
3525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3526 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3529 cat >>confdefs.h <<_ACEOF
3530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3539 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3540 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3547 if test "$MINIX" = yes; then
3549 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3552 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3555 $as_echo "#define _MINIX 1" >>confdefs.h
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3561 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3562 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3568 # define __EXTENSIONS__ 1
3569 $ac_includes_default
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_safe_to_define___extensions__=yes
3581 ac_cv_safe_to_define___extensions__=no
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3586 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3587 test $ac_cv_safe_to_define___extensions__ = yes &&
3588 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3590 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3592 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3594 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3596 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3599 # Check whether --enable-largefile was given.
3600 if test "${enable_largefile+set}" = set; then :
3601 enableval=$enable_largefile;
3604 if test "$enable_largefile" != no; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3607 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3608 if ${ac_cv_sys_largefile_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 ac_cv_sys_largefile_CC=no
3612 if test "$GCC" != yes; then
3615 # IRIX 6.2 and later do not support large files by default,
3616 # so use the C compiler's -n32 option if that helps.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <sys/types.h>
3620 /* Check that off_t can represent 2**63 - 1 correctly.
3621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3622 since some C++ compilers masquerading as C compilers
3623 incorrectly reject 9223372036854775807. */
3624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3626 && LARGE_OFF_T % 2147483647 == 1)
3636 if ac_fn_c_try_compile "$LINENO"; then :
3639 rm -f core conftest.err conftest.$ac_objext
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_sys_largefile_CC=' -n32'; break
3644 rm -f core conftest.err conftest.$ac_objext
3648 rm -f conftest.$ac_ext
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3652 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3653 if test "$ac_cv_sys_largefile_CC" != no; then
3654 CC=$CC$ac_cv_sys_largefile_CC
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3658 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3659 if ${ac_cv_sys_file_offset_bits+:} false; then :
3660 $as_echo_n "(cached) " >&6
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <sys/types.h>
3666 /* Check that off_t can represent 2**63 - 1 correctly.
3667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3668 since some C++ compilers masquerading as C compilers
3669 incorrectly reject 9223372036854775807. */
3670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3672 && LARGE_OFF_T % 2147483647 == 1)
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_sys_file_offset_bits=no; break
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #define _FILE_OFFSET_BITS 64
3689 #include <sys/types.h>
3690 /* Check that off_t can represent 2**63 - 1 correctly.
3691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3692 since some C++ compilers masquerading as C compilers
3693 incorrectly reject 9223372036854775807. */
3694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3696 && LARGE_OFF_T % 2147483647 == 1)
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_sys_file_offset_bits=64; break
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_cv_sys_file_offset_bits=unknown
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3715 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3716 case $ac_cv_sys_file_offset_bits in #(
3719 cat >>confdefs.h <<_ACEOF
3720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3725 if test $ac_cv_sys_file_offset_bits = unknown; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3727 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3728 if ${ac_cv_sys_large_files+:} false; then :
3729 $as_echo_n "(cached) " >&6
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <sys/types.h>
3735 /* Check that off_t can represent 2**63 - 1 correctly.
3736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3737 since some C++ compilers masquerading as C compilers
3738 incorrectly reject 9223372036854775807. */
3739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3741 && LARGE_OFF_T % 2147483647 == 1)
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_sys_large_files=no; break
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #define _LARGE_FILES 1
3758 #include <sys/types.h>
3759 /* Check that off_t can represent 2**63 - 1 correctly.
3760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3761 since some C++ compilers masquerading as C compilers
3762 incorrectly reject 9223372036854775807. */
3763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3765 && LARGE_OFF_T % 2147483647 == 1)
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_sys_large_files=1; break
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_sys_large_files=unknown
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3784 $as_echo "$ac_cv_sys_large_files" >&6; }
3785 case $ac_cv_sys_large_files in #(
3788 cat >>confdefs.h <<_ACEOF
3789 #define _LARGE_FILES $ac_cv_sys_large_files
3798 # Initialize Automake
3799 am__api_version='1.11'
3802 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3803 if test -f "$ac_dir/install-sh"; then
3805 ac_install_sh="$ac_aux_dir/install-sh -c"
3807 elif test -f "$ac_dir/install.sh"; then
3809 ac_install_sh="$ac_aux_dir/install.sh -c"
3811 elif test -f "$ac_dir/shtool"; then
3813 ac_install_sh="$ac_aux_dir/shtool install -c"
3817 if test -z "$ac_aux_dir"; then
3818 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3821 # These three variables are undocumented and unsupported,
3822 # and are intended to be withdrawn in a future Autoconf release.
3823 # They can cause serious problems if a builder's source tree is in a directory
3824 # whose full name contains unusual characters.
3825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3830 # Find a good install program. We prefer a C program (faster),
3831 # so one script is as good as another. But avoid the broken or
3832 # incompatible versions:
3833 # SysV /etc/install, /usr/sbin/install
3834 # SunOS /usr/etc/install
3835 # IRIX /sbin/install
3837 # AmigaOS /C/install, which installs bootblocks on floppy discs
3838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3841 # OS/2's system install, which has a completely different semantic
3842 # ./install, which can be erroneously created by make from ./install.sh.
3843 # Reject install programs that cannot install multiple files.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3846 if test -z "$INSTALL"; then
3847 if ${ac_cv_path_install+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 # Account for people who put trailing slashes in PATH elements.
3856 case $as_dir/ in #((
3857 ./ | .// | /[cC]/* | \
3858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3862 # OSF1 and SCO ODT 3.0 have their own names for install.
3863 # Don't use installbsd from OSF since it installs stuff as root
3865 for ac_prog in ginstall scoinst install; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3868 if test $ac_prog = install &&
3869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3870 # AIX install. It has an incompatible calling convention.
3872 elif test $ac_prog = install &&
3873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3874 # program-specific install script used by HP pwplus--don't use.
3877 rm -rf conftest.one conftest.two conftest.dir
3878 echo one > conftest.one
3879 echo two > conftest.two
3881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3882 test -s conftest.one && test -s conftest.two &&
3883 test -s conftest.dir/conftest.one &&
3884 test -s conftest.dir/conftest.two
3886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3899 rm -rf conftest.one conftest.two conftest.dir
3902 if test "${ac_cv_path_install+set}" = set; then
3903 INSTALL=$ac_cv_path_install
3905 # As a last resort, use the slow shell script. Don't cache a
3906 # value for INSTALL within a source directory, because that will
3907 # break other packages using the cache if that directory is
3908 # removed, or if the value is a relative name.
3909 INSTALL=$ac_install_sh
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3913 $as_echo "$INSTALL" >&6; }
3915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3916 # It thinks the first close brace ends the variable substitution.
3917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3924 $as_echo_n "checking whether build environment is sane... " >&6; }
3927 echo timestamp > conftest.file
3928 # Reject unsafe characters in $srcdir or the absolute working directory
3929 # name. Accept space and tab only in the latter.
3933 *[\\\"\#\$\&\'\`$am_lf]*)
3934 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3937 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3938 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3941 # Do `set' in a subshell so we don't clobber the current shell's
3942 # arguments. Must try -L first in case configure is actually a
3943 # symlink; some systems play weird games with the mod time of symlinks
3944 # (eg FreeBSD returns the mod time of the symlink's containing
3947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3948 if test "$*" = "X"; then
3950 set X `ls -t "$srcdir/configure" conftest.file`
3953 if test "$*" != "X $srcdir/configure conftest.file" \
3954 && test "$*" != "X conftest.file $srcdir/configure"; then
3956 # If neither matched, then we have a broken ls. This can happen
3957 # if, for instance, CONFIG_SHELL is bash and it inherits a
3958 # broken ls alias from the environment. This has actually
3959 # happened. Such a system could not be considered "sane".
3960 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3961 alias in your environment" "$LINENO" 5
3964 test "$2" = conftest.file
3970 as_fn_error $? "newly created file is older than distributed files!
3971 Check your system clock" "$LINENO" 5
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 $as_echo "yes" >&6; }
3975 test "$program_prefix" != NONE &&
3976 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3977 # Use a double $ so make ignores it.
3978 test "$program_suffix" != NONE &&
3979 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3980 # Double any \ or $.
3981 # By default was `s,x,x', remove it if useless.
3982 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3983 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3985 # expand $ac_aux_dir to an absolute path
3986 am_aux_dir=`cd $ac_aux_dir && pwd`
3988 if test x"${MISSING+set}" != xset; then
3991 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3993 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3996 # Use eval to expand $SHELL
3997 if eval "$MISSING --run true"; then
3998 am_missing_run="$MISSING --run "
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4002 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4005 if test x"${install_sh}" != xset; then
4008 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4010 install_sh="\${SHELL} $am_aux_dir/install-sh"
4014 # Installed binaries are usually stripped using `strip' when the user
4015 # run `make install-strip'. However `strip' might not be the right
4016 # tool to use in cross-compilation environments, therefore Automake
4017 # will honor the `STRIP' environment variable to overrule this program.
4018 if test "$cross_compiling" != no; then
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}strip; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_STRIP+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 if test -n "$STRIP"; then
4028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 STRIP=$ac_cv_prog_STRIP
4048 if test -n "$STRIP"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4050 $as_echo "$STRIP" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4058 if test -z "$ac_cv_prog_STRIP"; then
4060 # Extract the first word of "strip", so it can be a program name with args.
4061 set dummy strip; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 if test -n "$ac_ct_STRIP"; then
4068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 ac_cv_prog_ac_ct_STRIP="strip"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4088 if test -n "$ac_ct_STRIP"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4090 $as_echo "$ac_ct_STRIP" >&6; }
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4096 if test "x$ac_ct_STRIP" = x; then
4099 case $cross_compiling:$ac_tool_warned in
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103 ac_tool_warned=yes ;;
4108 STRIP="$ac_cv_prog_STRIP"
4112 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4115 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4116 if test -z "$MKDIR_P"; then
4117 if ${ac_cv_path_mkdir+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in mkdir gmkdir; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4129 'mkdir (GNU coreutils) '* | \
4130 'mkdir (coreutils) '* | \
4131 'mkdir (fileutils) '4.1*)
4132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4142 test -d ./--version && rmdir ./--version
4143 if test "${ac_cv_path_mkdir+set}" = set; then
4144 MKDIR_P="$ac_cv_path_mkdir -p"
4146 # As a last resort, use the slow shell script. Don't cache a
4147 # value for MKDIR_P within a source directory, because that will
4148 # break other packages using the cache if that directory is
4149 # removed, or if the value is a relative name.
4150 MKDIR_P="$ac_install_sh -d"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4154 $as_echo "$MKDIR_P" >&6; }
4158 [\\/$]* | ?:[\\/]*) ;;
4159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4162 for ac_prog in gawk mawk nawk awk
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_AWK+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$AWK"; then
4172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_AWK="$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 if test -n "$AWK"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4194 $as_echo "$AWK" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$AWK" && break
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4208 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 cat >conftest.make <<\_ACEOF
4214 @echo '@@@%%%=$(MAKE)=@@@%%%'
4216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4219 eval ac_cv_prog_make_${ac_make}_set=yes;;
4221 eval ac_cv_prog_make_${ac_make}_set=no;;
4225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227 $as_echo "yes" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 SET_MAKE="MAKE=${MAKE-make}"
4235 rm -rf .tst 2>/dev/null
4236 mkdir .tst 2>/dev/null
4237 if test -d .tst; then
4242 rmdir .tst 2>/dev/null
4244 DEPDIR="${am__leading_dot}deps"
4246 ac_config_commands="$ac_config_commands depfiles"
4249 am_make=${MAKE-make}
4250 cat > confinc << 'END'
4252 @echo this is the am__doit target
4255 # If we don't find an include directive, just comment out the code.
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4257 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4261 # First try GNU make style include.
4262 echo "include confinc" > confmf
4263 # Ignore all kinds of additional output from `make'.
4264 case `$am_make -s -f confmf 2> /dev/null` in #(
4265 *the\ am__doit\ target*)
4271 # Now try BSD make style include.
4272 if test "$am__include" = "#"; then
4273 echo '.include "confinc"' > confmf
4274 case `$am_make -s -f confmf 2> /dev/null` in #(
4275 *the\ am__doit\ target*)
4276 am__include=.include
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4285 $as_echo "$_am_result" >&6; }
4286 rm -f confinc confmf
4288 # Check whether --enable-dependency-tracking was given.
4289 if test "${enable_dependency_tracking+set}" = set; then :
4290 enableval=$enable_dependency_tracking;
4293 if test "x$enable_dependency_tracking" != xno; then
4294 am_depcomp="$ac_aux_dir/depcomp"
4297 if test "x$enable_dependency_tracking" != xno; then
4306 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4307 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4308 # is not polluted with repeated "-I."
4309 am__isrc=' -I$(srcdir)'
4310 # test to see if srcdir already configured
4311 if test -f $srcdir/config.status; then
4312 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4316 # test whether we have cygpath
4317 if test -z "$CYGPATH_W"; then
4318 if (cygpath --version) >/dev/null 2>/dev/null; then
4319 CYGPATH_W='cygpath -w'
4326 # Define the identity of the package.
4331 cat >>confdefs.h <<_ACEOF
4332 #define PACKAGE "$PACKAGE"
4336 cat >>confdefs.h <<_ACEOF
4337 #define VERSION "$VERSION"
4340 # Some tools Automake needs.
4342 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4345 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4348 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4351 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4354 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4356 # We need awk for the "check" target. The system "awk" is bad on
4358 # Always define AMTAR for backward compatibility.
4360 AMTAR=${AMTAR-"${am_missing_run}tar"}
4362 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4367 depcc="$CC" am_compiler_list=
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4370 $as_echo_n "checking dependency style of $depcc... " >&6; }
4371 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4375 # We make a subdir and do the tests there. Otherwise we can end up
4376 # making bogus files that we don't know about and never remove. For
4377 # instance it was reported that on HP-UX the gcc test will end up
4378 # making a dummy file named `D' -- because `-MD' means `put the output
4381 # Copy depcomp to subdir because otherwise we won't find it if we're
4382 # using a relative directory.
4383 cp "$am_depcomp" conftest.dir
4385 # We will build objects and dependencies in a subdirectory because
4386 # it helps to detect inapplicable dependency modes. For instance
4387 # both Tru64's cc and ICC support -MD to output dependencies as a
4388 # side effect of compilation, but ICC will put the dependencies in
4389 # the current directory while Tru64 will put them in the object
4393 am_cv_CC_dependencies_compiler_type=none
4394 if test "$am_compiler_list" = ""; then
4395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398 case " $depcc " in #(
4399 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4402 for depmode in $am_compiler_list; do
4403 # Setup a source with many dependencies, because some compilers
4404 # like to wrap large dependency lists on column 80 (with \), and
4405 # we should not choose a depcomp mode which is confused by this.
4407 # We need to recreate these files for each test, as the compiler may
4408 # overwrite some of them when testing with obscure command lines.
4409 # This happens at least with the AIX C compiler.
4411 for i in 1 2 3 4 5 6; do
4412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4414 # Solaris 8's {/usr,}/bin/sh.
4415 touch sub/conftst$i.h
4417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4420 # mode. It turns out that the SunPro C++ compiler does not properly
4421 # handle `-M -o', and we need to detect this. Also, some Intel
4422 # versions had trouble with output in subdirs
4423 am__obj=sub/conftest.${OBJEXT-o}
4424 am__minus_obj="-o $am__obj"
4427 # This depmode causes a compiler race in universal mode.
4428 test "$am__universal" = false || continue
4431 # after this tag, mechanisms are not by side-effect, so they'll
4432 # only be used when explicitly requested
4433 if test "x$enable_dependency_tracking" = xyes; then
4439 msvisualcpp | msvcmsys)
4440 # This compiler won't grok `-c -o', but also, the minuso test has
4441 # not run yet. These depmodes are late enough in the game, and
4442 # so weak that their functioning should not be impacted.
4443 am__obj=conftest.${OBJEXT-o}
4448 if depmode=$depmode \
4449 source=sub/conftest.c object=$am__obj \
4450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4451 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4452 >/dev/null 2>conftest.err &&
4453 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4455 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4457 # icc doesn't choke on unknown options, it will just issue warnings
4458 # or remarks (even with -Werror). So we grep stderr for any message
4459 # that says an option was ignored or not supported.
4460 # When given -MP, icc 7.0 and 7.1 complain thusly:
4461 # icc: Command line warning: ignoring option '-M'; no argument required
4462 # The diagnosis changed in icc 8.0:
4463 # icc: Command line remark: option '-MP' not supported
4464 if (grep 'ignoring option' conftest.err ||
4465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4466 am_cv_CC_dependencies_compiler_type=$depmode
4475 am_cv_CC_dependencies_compiler_type=none
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484 test "x$enable_dependency_tracking" != xno \
4485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4487 am__fastdepCC_FALSE='#'
4489 am__fastdepCC_TRUE='#'
4490 am__fastdepCC_FALSE=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4497 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4498 # Check whether --enable-maintainer-mode was given.
4499 if test "${enable_maintainer_mode+set}" = set; then :
4500 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4502 USE_MAINTAINER_MODE=no
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4506 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4507 if test $USE_MAINTAINER_MODE = yes; then
4508 MAINTAINER_MODE_TRUE=
4509 MAINTAINER_MODE_FALSE='#'
4511 MAINTAINER_MODE_TRUE='#'
4512 MAINTAINER_MODE_FALSE=
4515 MAINT=$MAINTAINER_MODE_TRUE
4519 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4532 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4533 if ${ac_cv_prog_cc_c99+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 ac_cv_prog_cc_c99=no
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 #include <stdbool.h>
4546 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4547 #define debug(...) fprintf (stderr, __VA_ARGS__)
4548 #define showlist(...) puts (#__VA_ARGS__)
4549 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4551 test_varargs_macros (void)
4556 debug ("X = %d\n", x);
4557 showlist (The first, second, and third items.);
4558 report (x>y, "x is %d but y is %d", x, y);
4561 // Check long long types.
4562 #define BIG64 18446744073709551615ull
4563 #define BIG32 4294967295ul
4564 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4566 your preprocessor is broken;
4570 your preprocessor is broken;
4572 static long long int bignum = -9223372036854775807LL;
4573 static unsigned long long int ubignum = BIG64;
4575 struct incomplete_array
4583 const wchar_t *name;
4587 typedef const char *ccp;
4590 test_restrict (ccp restrict text)
4592 // See if C++-style comments work.
4593 // Iterate through items via the restricted pointer.
4594 // Also check for declarations in for loops.
4595 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4600 // Check varargs and va_copy.
4602 test_varargs (const char *format, ...)
4605 va_start (args, format);
4607 va_copy (args_copy, args);
4618 str = va_arg (args_copy, const char *);
4621 number = va_arg (args_copy, int);
4624 fnumber = va_arg (args_copy, double);
4639 _Bool success = false;
4642 if (test_restrict ("String literal") == 0)
4644 char *restrict newvar = "Another string";
4647 test_varargs ("s, d' f .", "string", 65, 34.234);
4648 test_varargs_macros ();
4650 // Check flexible array members.
4651 struct incomplete_array *ia =
4652 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4654 for (int i = 0; i < ia->datasize; ++i)
4655 ia->data[i] = i * 1.234;
4657 // Check named initializers.
4658 struct named_init ni = {
4660 .name = L"Test wide string",
4661 .average = 543.34343,
4666 int dynamic_array[ni.number];
4667 dynamic_array[ni.number - 1] = 543;
4669 // work around unused variable warnings
4670 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4671 || dynamic_array[ni.number - 1] != 543);
4677 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4679 CC="$ac_save_CC $ac_arg"
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_cv_prog_cc_c99=$ac_arg
4683 rm -f core conftest.err conftest.$ac_objext
4684 test "x$ac_cv_prog_cc_c99" != "xno" && break
4686 rm -f conftest.$ac_ext
4691 case "x$ac_cv_prog_cc_c99" in
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4694 $as_echo "none needed" >&6; } ;;
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4697 $as_echo "unsupported" >&6; } ;;
4699 CC="$CC $ac_cv_prog_cc_c99"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4701 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4703 if test "x$ac_cv_prog_cc_c99" != xno; then :
4710 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4711 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4717 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4718 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4724 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4725 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4734 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4741 $as_echo_n "(cached) " >&6
4745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4767 if test -n "$PKG_CONFIG"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4769 $as_echo "$PKG_CONFIG" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_path_PKG_CONFIG"; then
4778 ac_pt_PKG_CONFIG=$PKG_CONFIG
4779 # Extract the first word of "pkg-config", so it can be a program name with args.
4780 set dummy pkg-config; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 case $ac_pt_PKG_CONFIG in
4788 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4810 if test -n "$ac_pt_PKG_CONFIG"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4812 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4818 if test "x$ac_pt_PKG_CONFIG" = x; then
4821 case $cross_compiling:$ac_tool_warned in
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4827 PKG_CONFIG=$ac_pt_PKG_CONFIG
4830 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4834 if test -n "$PKG_CONFIG"; then
4835 _pkg_min_version=0.9.0
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4837 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4838 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840 $as_echo "yes" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 # Make sure we can run config.sub.
4849 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4850 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4853 $as_echo_n "checking build system type... " >&6; }
4854 if ${ac_cv_build+:} false; then :
4855 $as_echo_n "(cached) " >&6
4857 ac_build_alias=$build_alias
4858 test "x$ac_build_alias" = x &&
4859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4860 test "x$ac_build_alias" = x &&
4861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4867 $as_echo "$ac_cv_build" >&6; }
4868 case $ac_cv_build in
4870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4873 ac_save_IFS=$IFS; IFS='-'
4879 # Remember, the first character of IFS is used to create $*,
4880 # except with old shells:
4883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4887 $as_echo_n "checking host system type... " >&6; }
4888 if ${ac_cv_host+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 if test "x$host_alias" = x; then
4892 ac_cv_host=$ac_cv_build
4894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4900 $as_echo "$ac_cv_host" >&6; }
4903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4906 ac_save_IFS=$IFS; IFS='-'
4912 # Remember, the first character of IFS is used to create $*,
4913 # except with old shells:
4916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4920 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4921 if ${ac_cv_path_SED+:} false; then :
4922 $as_echo_n "(cached) " >&6
4924 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4925 for ac_i in 1 2 3 4 5 6 7; do
4926 ac_script="$ac_script$as_nl$ac_script"
4928 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4929 { ac_script=; unset ac_script;}
4930 if test -z "$SED"; then
4931 ac_path_SED_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in sed gsed; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4941 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4942 # Check for GNU ac_path_SED and select it if it is found.
4943 # Check for GNU $ac_path_SED
4944 case `"$ac_path_SED" --version 2>&1` in
4946 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4949 $as_echo_n 0123456789 >"conftest.in"
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo '' >> "conftest.nl"
4956 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_SED_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_SED="$ac_path_SED"
4962 ac_path_SED_max=$ac_count
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 $ac_path_SED_found && break 3
4975 if test -z "$ac_cv_path_SED"; then
4976 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4984 $as_echo "$ac_cv_path_SED" >&6; }
4985 SED="$ac_cv_path_SED"
4993 if test "x$GCC" = xyes ; then
4994 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4995 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4996 -Wbad-function-cast -Wformat=2"
4997 case `$CC -dumpversion` in
4999 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
5003 if test "x$SUNCC" = "xyes"; then
5010 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
5015 # Check whether --enable-strict-compilation was given.
5016 if test "${enable_strict_compilation+set}" = set; then :
5017 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5022 if test "x$GCC" = xyes ; then
5023 STRICT_CFLAGS="-pedantic -Werror"
5024 # Add -Werror=attributes if supported (gcc 4.2 & later)
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
5026 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
5027 save_CFLAGS="$CFLAGS"
5028 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5036 $as_echo "yes" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 CFLAGS="$save_CFLAGS"
5043 elif test "x$SUNCC" = "xyes"; then
5044 STRICT_CFLAGS="-errwarn"
5045 elif test "x$INTELCC" = "xyes"; then
5046 STRICT_CFLAGS="-Werror"
5048 if test "x$STRICT_COMPILE" = "xyes"; then
5049 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5056 cat >>confdefs.h <<_ACEOF
5057 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5060 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5061 if test "x$PVM" = "x"; then
5065 cat >>confdefs.h <<_ACEOF
5066 #define PACKAGE_VERSION_MINOR $PVM
5069 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5070 if test "x$PVP" = "x"; then
5074 cat >>confdefs.h <<_ACEOF
5075 #define PACKAGE_VERSION_PATCHLEVEL $PVP
5080 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5081 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5082 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5083 echo 'git directory not found: installing possibly empty changelog.' >&2)"
5088 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5089 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5090 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5091 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5092 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5099 if test x$APP_MAN_SUFFIX = x ; then
5102 if test x$APP_MAN_DIR = x ; then
5103 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5106 if test x$LIB_MAN_SUFFIX = x ; then
5109 if test x$LIB_MAN_DIR = x ; then
5110 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5113 if test x$FILE_MAN_SUFFIX = x ; then
5115 solaris*) FILE_MAN_SUFFIX=4 ;;
5116 *) FILE_MAN_SUFFIX=5 ;;
5119 if test x$FILE_MAN_DIR = x ; then
5120 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5123 if test x$MISC_MAN_SUFFIX = x ; then
5125 solaris*) MISC_MAN_SUFFIX=5 ;;
5126 *) MISC_MAN_SUFFIX=7 ;;
5129 if test x$MISC_MAN_DIR = x ; then
5130 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5133 if test x$DRIVER_MAN_SUFFIX = x ; then
5135 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5136 *) DRIVER_MAN_SUFFIX=4 ;;
5139 if test x$DRIVER_MAN_DIR = x ; then
5140 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5143 if test x$ADMIN_MAN_SUFFIX = x ; then
5145 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5146 *) ADMIN_MAN_SUFFIX=8 ;;
5149 if test x$ADMIN_MAN_DIR = x ; then
5150 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5167 XORG_MAN_PAGE="X Version 11"
5170 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5171 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5172 -e 's|__xservername__|Xorg|g' \
5173 -e 's|__xconfigfile__|xorg.conf|g' \
5174 -e 's|__projectroot__|\$(prefix)|g' \
5175 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
5176 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5177 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5178 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5179 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5180 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5181 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5185 # Check whether --enable-silent-rules was given.
5186 if test "${enable_silent_rules+set}" = set; then :
5187 enableval=$enable_silent_rules;
5190 case $enable_silent_rules in
5191 yes) AM_DEFAULT_VERBOSITY=0;;
5192 no) AM_DEFAULT_VERBOSITY=1;;
5193 *) AM_DEFAULT_VERBOSITY=0;;
5203 # Check whether --with-lint was given.
5204 if test "${with_lint+set}" = set; then :
5205 withval=$with_lint; use_lint=$withval
5211 # Obtain platform specific info like program name and options
5212 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
5214 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
5216 lint_options="-badflag"
5218 *freebsd* | *netbsd*)
5220 lint_options="-u -b"
5224 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
5228 # Test for the presence of the program (either guessed by the code or spelled out by the user)
5229 if test "x$use_lint" = x"yes" ; then
5230 # Extract the first word of "$lint_name", so it can be a program name with args.
5231 set dummy $lint_name; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_LINT+:} false; then :
5235 $as_echo_n "(cached) " >&6
5239 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 LINT=$ac_cv_path_LINT
5261 if test -n "$LINT"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
5263 $as_echo "$LINT" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5270 if test "x$LINT" = "x"; then
5271 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
5273 elif test "x$use_lint" = x"no" ; then
5274 if test "x$LINT" != "x"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
5276 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
5279 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
5282 # User supplied flags override default flags
5283 if test "x$LINT_FLAGS" != "x"; then
5284 lint_options=$LINT_FLAGS
5287 LINT_FLAGS=$lint_options
5289 if test "x$LINT" != x; then
5300 # Checks for header files.
5301 for ac_header in lastlog.h pwd.h utmp.h utmpx.h sys/param.h
5303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5306 cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5315 # Checks for typedefs, structures, and compiler characteristics.
5316 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5317 #include <sys/types.h>
5321 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_STRUCT_UTMP_UT_HOST 1
5329 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5330 #include <sys/types.h>
5334 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
5336 cat >>confdefs.h <<_ACEOF
5337 #define HAVE_STRUCT_UTMP_UT_ID 1
5342 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5343 #include <sys/types.h>
5347 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
5349 cat >>confdefs.h <<_ACEOF
5350 #define HAVE_STRUCT_UTMP_UT_PID 1
5355 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5356 #include <sys/types.h>
5360 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5369 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h>
5371 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then :
5373 cat >>confdefs.h <<_ACEOF
5374 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5380 ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
5381 #include <sys/types.h>
5385 #ifdef HAVE_LASTLOG_H
5386 #include <lastlog.h>
5390 if test "x$ac_cv_type_struct_lastlog" = xyes; then :
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE_STRUCT_LASTLOG 1
5400 # Checks for library functions.
5401 for ac_func in pututline updwtmpx utmpxname
5403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5405 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5406 cat >>confdefs.h <<_ACEOF
5407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5414 # Obtain compiler/linker options for depedencies
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5
5418 $as_echo_n "checking for SESSREG... " >&6; }
5420 if test -n "$SESSREG_CFLAGS"; then
5421 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS"
5422 elif test -n "$PKG_CONFIG"; then
5423 if test -n "$PKG_CONFIG" && \
5424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
5425 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
5427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }; then
5429 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
5436 if test -n "$SESSREG_LIBS"; then
5437 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS"
5438 elif test -n "$PKG_CONFIG"; then
5439 if test -n "$PKG_CONFIG" && \
5440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
5441 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
5443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5444 test $ac_status = 0; }; then
5445 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
5455 if test $pkg_failed = yes; then
5457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5458 _pkg_short_errors_supported=yes
5460 _pkg_short_errors_supported=no
5462 if test $_pkg_short_errors_supported = yes; then
5463 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
5465 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
5467 # Put the nasty error message in config.log where it belongs
5468 echo "$SESSREG_PKG_ERRORS" >&5
5470 as_fn_error $? "Package requirements (xproto) were not met:
5474 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5475 installed software in a non-standard prefix.
5477 Alternatively, you may set the environment variables SESSREG_CFLAGS
5478 and SESSREG_LIBS to avoid the need to call pkg-config.
5479 See the pkg-config man page for more details.
5481 elif test $pkg_failed = untried; then
5482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5484 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5485 is in your PATH or set the PKG_CONFIG environment variable to the full
5488 Alternatively, you may set the environment variables SESSREG_CFLAGS
5489 and SESSREG_LIBS to avoid the need to call pkg-config.
5490 See the pkg-config man page for more details.
5492 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5493 See \`config.log' for more details" "$LINENO" 5; }
5495 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS
5496 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5502 ac_config_files="$ac_config_files Makefile man/Makefile"
5504 cat >confcache <<\_ACEOF
5505 # This file is a shell script that caches the results of configure
5506 # tests run on this system so they can be shared between configure
5507 # scripts and configure runs, see configure's option --config-cache.
5508 # It is not useful on other systems. If it contains results you don't
5509 # want to keep, you may remove or edit it.
5511 # config.status only pays attention to the cache file if you give it
5512 # the --recheck option to rerun configure.
5514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5520 # The following way of writing the cache mishandles newlines in values,
5521 # but we know of no workaround that is simple, portable, and efficient.
5522 # So, we kill variables containing newlines.
5523 # Ultrix sh set writes to stderr and can't be redirected directly,
5524 # and sets the high bit in the cache file unless we assign to the vars.
5526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5527 eval ac_val=\$$ac_var
5531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5535 _ | IFS | as_nl) ;; #(
5536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5537 *) { eval $ac_var=; unset $ac_var;} ;;
5543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5544 *${as_nl}ac_space=\ *)
5545 # `set' does not quote correctly, so add quotes: double-quote
5546 # substitution turns \\\\ into \\, and sed turns \\ into \.
5549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5552 # `set' quotes correctly as required by POSIX, so do not add quotes.
5553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5567 if test -w "$cache_file"; then
5568 if test "x$cache_file" != "x/dev/null"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5570 $as_echo "$as_me: updating cache $cache_file" >&6;}
5571 if test ! -f "$cache_file" || test -h "$cache_file"; then
5572 cat confcache >"$cache_file"
5574 case $cache_file in #(
5576 mv -f confcache "$cache_file"$$ &&
5577 mv -f "$cache_file"$$ "$cache_file" ;; #(
5579 mv -f confcache "$cache_file" ;;
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5585 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5591 # Let make expand exec_prefix.
5592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5594 DEFS=-DHAVE_CONFIG_H
5599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5600 # 1. Remove the extension, and $U if already installed.
5601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5602 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5604 # will be set to the directory where LIBOBJS objects are built.
5605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5610 LTLIBOBJS=$ac_ltlibobjs
5613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5614 as_fn_error $? "conditional \"AMDEP\" was never defined.
5615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5618 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5621 if test -n "$EXEEXT"; then
5623 am__EXEEXT_FALSE='#'
5629 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5630 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5633 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
5634 as_fn_error $? "conditional \"LINT\" was never defined.
5635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5638 : "${CONFIG_STATUS=./config.status}"
5640 ac_clean_files_save=$ac_clean_files
5641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5647 # Generated by $as_me.
5648 # Run this file to recreate the current configuration.
5649 # Compiler output produced by configure, useful for debugging
5650 # configure, is in config.log if it exists.
5656 SHELL=\${CONFIG_SHELL-$SHELL}
5659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5660 ## -------------------- ##
5661 ## M4sh Initialization. ##
5662 ## -------------------- ##
5664 # Be more Bourne compatible
5665 DUALCASE=1; export DUALCASE # for MKS sh
5666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5670 # is contrary to our usage. Disable this feature.
5671 alias -g '${1+"$@"}'='"$@"'
5672 setopt NO_GLOB_SUBST
5674 case `(set -o) 2>/dev/null` in #(
5686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5690 # Prefer a ksh shell builtin over an external printf program on Solaris,
5691 # but without wasting forks for bash or zsh.
5692 if test -z "$BASH_VERSION$ZSH_VERSION" \
5693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5694 as_echo='print -r --'
5695 as_echo_n='print -rn --'
5696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5697 as_echo='printf %s\n'
5698 as_echo_n='printf %s'
5700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5702 as_echo_n='/usr/ucb/echo -n'
5704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5705 as_echo_n_body='eval
5709 expr "X$arg" : "X\\(.*\\)$as_nl";
5710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5714 export as_echo_n_body
5715 as_echo_n='sh -c $as_echo_n_body as_echo'
5718 as_echo='sh -c $as_echo_body as_echo'
5721 # The user is always right.
5722 if test "${PATH_SEPARATOR+set}" != set; then
5724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5732 # We need space, tab and new line, in precisely that order. Quoting is
5733 # there to prevent editors from complaining about space-tab.
5734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5735 # splitting by setting IFS to empty value.)
5738 # Find who we are. Look in the path if we contain no directory separator.
5741 *[\\/]* ) as_myself=$0 ;;
5742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5753 # We did not find ourselves, most probably we were run as `sh COMMAND'
5754 # in which case we are not to be found in the path.
5755 if test "x$as_myself" = x; then
5758 if test ! -f "$as_myself"; then
5759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5763 # Unset variables that we do not need and which cause bugs (e.g. in
5764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5765 # suppresses any "Segmentation fault" message there. '((' could
5766 # trigger a bug in pdksh 5.2.14.
5767 for as_var in BASH_ENV ENV MAIL MAILPATH
5768 do eval test x\${$as_var+set} = xset \
5769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5786 # ----------------------------------------
5787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5789 # script with STATUS, using 1 if that was 0.
5792 as_status=$1; test $as_status -eq 0 && as_status=1
5794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5797 $as_echo "$as_me: error: $2" >&2
5798 as_fn_exit $as_status
5802 # as_fn_set_status STATUS
5803 # -----------------------
5804 # Set $? to STATUS, without forking.
5808 } # as_fn_set_status
5812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5822 # Portably unset VAR.
5825 { eval $1=; unset $1;}
5827 as_unset=as_fn_unset
5828 # as_fn_append VAR VALUE
5829 # ----------------------
5830 # Append the text in VALUE to the end of the definition contained in VAR. Take
5831 # advantage of any shell optimizations that allow amortized linear growth over
5832 # repeated appends, instead of the typical quadratic growth present in naive
5834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5835 eval 'as_fn_append ()
5846 # as_fn_arith ARG...
5847 # ------------------
5848 # Perform arithmetic evaluation on the ARGs, and store the result in the
5849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5850 # must be portable across $(()) and expr.
5851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5852 eval 'as_fn_arith ()
5859 as_val=`expr "$@" || test $? -eq 1`
5864 if expr a : '\(a\)' >/dev/null 2>&1 &&
5865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5872 as_basename=basename
5877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5883 as_me=`$as_basename -- "$0" ||
5884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5885 X"$0" : 'X\(//\)$' \| \
5886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5888 sed '/^.*\/\([^/][^/]*\)\/*$/{
5902 # Avoid depending upon Character Ranges.
5903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5906 as_cr_digits='0123456789'
5907 as_cr_alnum=$as_cr_Letters$as_cr_digits
5909 ECHO_C= ECHO_N= ECHO_T=
5910 case `echo -n x` in #(((((
5912 case `echo 'xy\c'` in
5913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5922 rm -f conf$$ conf$$.exe conf$$.file
5923 if test -d conf$$.dir; then
5924 rm -f conf$$.dir/conf$$.file
5927 mkdir conf$$.dir 2>/dev/null
5929 if (echo >conf$$.file) 2>/dev/null; then
5930 if ln -s conf$$.file conf$$ 2>/dev/null; then
5932 # ... but there are two gotchas:
5933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5935 # In both cases, we have to default to `cp -p'.
5936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5938 elif ln conf$$.file conf$$ 2>/dev/null; then
5946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5947 rmdir conf$$.dir 2>/dev/null
5952 # Create "$as_dir" as a directory, including parents if necessary.
5957 -*) as_dir=./$as_dir;;
5959 test -d "$as_dir" || eval $as_mkdir_p || {
5963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5964 *) as_qdir=$as_dir;;
5966 as_dirs="'$as_qdir' $as_dirs"
5967 as_dir=`$as_dirname -- "$as_dir" ||
5968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5969 X"$as_dir" : 'X\(//\)[^/]' \| \
5970 X"$as_dir" : 'X\(//\)$' \| \
5971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5972 $as_echo X"$as_dir" |
5973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5990 test -d "$as_dir" && break
5992 test -z "$as_dirs" || eval "mkdir $as_dirs"
5993 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5997 if mkdir -p . 2>/dev/null; then
5998 as_mkdir_p='mkdir -p "$as_dir"'
6000 test -d ./-p && rmdir ./-p
6004 if test -x / >/dev/null 2>&1; then
6007 if ls -dL / >/dev/null 2>&1; then
6014 if test -d "$1"; then
6020 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6021 ???[sx]*):;;*)false;;esac;fi
6025 as_executable_p=$as_test_x
6027 # Sed expression to map a string onto a valid CPP name.
6028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6030 # Sed expression to map a string onto a valid variable name.
6031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6035 ## ----------------------------------- ##
6036 ## Main body of $CONFIG_STATUS script. ##
6037 ## ----------------------------------- ##
6039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6042 # Save the log message, to keep $0 and so on meaningful, and to
6043 # report actual input values of CONFIG_FILES etc. instead of their
6044 # values after options handling.
6046 This file was extended by sessreg $as_me 1.0.7, which was
6047 generated by GNU Autoconf 2.68. Invocation command line was
6049 CONFIG_FILES = $CONFIG_FILES
6050 CONFIG_HEADERS = $CONFIG_HEADERS
6051 CONFIG_LINKS = $CONFIG_LINKS
6052 CONFIG_COMMANDS = $CONFIG_COMMANDS
6055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6060 case $ac_config_files in *"
6061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6064 case $ac_config_headers in *"
6065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6070 # Files that config.status was made for.
6071 config_files="$ac_config_files"
6072 config_headers="$ac_config_headers"
6073 config_commands="$ac_config_commands"
6077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6079 \`$as_me' instantiates files and other configuration actions
6080 from templates according to the current configuration. Unless the files
6081 and actions are specified as TAGs, all are instantiated by default.
6083 Usage: $0 [OPTION]... [TAG]...
6085 -h, --help print this help, then exit
6086 -V, --version print version number and configuration settings, then exit
6087 --config print configuration, then exit
6088 -q, --quiet, --silent
6089 do not print progress messages
6090 -d, --debug don't remove temporary files
6091 --recheck update $as_me by reconfiguring in the same conditions
6092 --file=FILE[:TEMPLATE]
6093 instantiate the configuration file FILE
6094 --header=FILE[:TEMPLATE]
6095 instantiate the configuration header FILE
6097 Configuration files:
6100 Configuration headers:
6103 Configuration commands:
6106 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
6109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6110 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6112 sessreg config.status 1.0.7
6113 configured by $0, generated by GNU Autoconf 2.68,
6114 with options \\"\$ac_cs_config\\"
6116 Copyright (C) 2010 Free Software Foundation, Inc.
6117 This config.status script is free software; the Free Software Foundation
6118 gives unlimited permission to copy, distribute and modify it."
6125 test -n "\$AWK" || AWK=awk
6128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6129 # The default lists apply if the user does not specify any file.
6135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6152 # Handling of the options.
6153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6156 $as_echo "$ac_cs_version"; exit ;;
6157 --config | --confi | --conf | --con | --co | --c )
6158 $as_echo "$ac_cs_config"; exit ;;
6159 --debug | --debu | --deb | --de | --d | -d )
6161 --file | --fil | --fi | --f )
6164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6165 '') as_fn_error $? "missing file argument" ;;
6167 as_fn_append CONFIG_FILES " '$ac_optarg'"
6168 ac_need_defaults=false;;
6169 --header | --heade | --head | --hea )
6172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6174 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6175 ac_need_defaults=false;;
6177 # Conflict between --help and --header
6178 as_fn_error $? "ambiguous option: \`$1'
6179 Try \`$0 --help' for more information.";;
6180 --help | --hel | -h )
6181 $as_echo "$ac_cs_usage"; exit ;;
6182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6187 -*) as_fn_error $? "unrecognized option: \`$1'
6188 Try \`$0 --help' for more information." ;;
6190 *) as_fn_append ac_config_targets " $1"
6191 ac_need_defaults=false ;;
6197 ac_configure_extra_args=
6199 if $ac_cs_silent; then
6201 ac_configure_extra_args="$ac_configure_extra_args --silent"
6205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6206 if \$ac_cs_recheck; then
6207 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6209 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6210 CONFIG_SHELL='$SHELL'
6216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6221 ## Running $as_me. ##
6227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6231 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6237 # Handling of arguments.
6238 for ac_config_target in $ac_config_targets
6240 case $ac_config_target in
6241 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6242 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6244 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6246 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6251 # If the user did not use the arguments to specify the items to instantiate,
6252 # then the envvar interface is used. Set only those that are not.
6253 # We use the long form for the default assignment because of an extremely
6254 # bizarre bug on SunOS 4.1.3.
6255 if $ac_need_defaults; then
6256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6261 # Have a temporary directory for convenience. Make it in the build tree
6262 # simply because there is no reason against having it here, and in addition,
6263 # creating and moving files from /tmp can sometimes cause problems.
6264 # Hook for its removal unless debugging.
6265 # Note that there is a small window in which the directory will not be cleaned:
6266 # after its creation but before its name has been assigned to `$tmp'.
6270 trap 'exit_status=$?
6272 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6274 trap 'as_fn_exit 1' 1 2 13 15
6276 # Create a (secure) tmp directory for tmp files.
6279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6283 tmp=./conf$$-$RANDOM
6284 (umask 077 && mkdir "$tmp")
6285 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6288 # Set up the scripts for CONFIG_FILES section.
6289 # No need to generate them if there are no CONFIG_FILES.
6290 # This happens for instance with `./config.status config.h'.
6291 if test -n "$CONFIG_FILES"; then
6294 ac_cr=`echo X | tr X '\015'`
6295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6296 # But we know of no other shell where ac_cr would be empty at this
6297 # point, so we can use a bashism as a fallback.
6298 if test "x$ac_cr" = x; then
6299 eval ac_cr=\$\'\\r\'
6301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6313 echo "cat >conf$$subs.awk <<_ACEOF" &&
6314 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6318 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6320 for ac_last_try in false false false false false :; do
6321 . ./conf$$subs.sh ||
6322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6324 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6325 if test $ac_delim_n = $ac_delim_num; then
6327 elif $ac_last_try; then
6328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6336 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6340 s/^/S["/; s/!.*/"]=/
6350 s/\(.\{148\}\)..*/\1/
6352 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6364 s/\(.\{148\}\)..*/\1/
6366 s/["\\]/\\&/g; s/^/"/; s/$/"/
6370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6375 ' <conf$$subs.awk | sed '
6380 ' >>$CONFIG_STATUS || ac_write_fail=1
6381 rm -f conf$$subs.awk
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6384 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6385 for (key in S) S_is_set[key] = 1
6391 nfields = split(line, field, "@")
6393 len = length(field[1])
6394 for (i = 2; i < nfields; i++) {
6396 keylen = length(key)
6397 if (S_is_set[key]) {
6399 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6400 len += length(value) + length(field[++i])
6411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6422 # trailing colons and then remove the whole line if VPATH becomes empty
6423 # (actually we leave an empty line to preserve line numbers).
6424 if test "x$srcdir" = x.; then
6425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444 fi # test -n "$CONFIG_FILES"
6446 # Set up the scripts for CONFIG_HEADERS section.
6447 # No need to generate them if there are no CONFIG_HEADERS.
6448 # This happens for instance with `./config.status Makefile'.
6449 if test -n "$CONFIG_HEADERS"; then
6450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6454 # Transform confdefs.h into an awk script `defines.awk', embedded as
6455 # here-document in config.status, that substitutes the proper values into
6456 # config.h.in to produce config.h.
6458 # Create a delimiter string that does not exist in confdefs.h, to ease
6459 # handling of long lines.
6461 for ac_last_try in false false :; do
6462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6463 if test -z "$ac_tt"; then
6465 elif $ac_last_try; then
6466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6472 # For the awk script, D is an array of macro values keyed by name,
6473 # likewise P contains macro parameters if any. Preserve backslash
6474 # newline sequences.
6476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6478 s/.\{148\}/&'"$ac_delim"'/g
6481 s/^[ ]*#[ ]*define[ ][ ]*/ /
6488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6495 D["\1"]=" \3\\\\\\n"\\/p
6497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6502 s/.\{148\}/&'"$ac_delim"'/g
6507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6512 ' <confdefs.h | sed '
6513 s/'"$ac_delim"'/"\\\
6514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6517 for (key in D) D_is_set[key] = 1
6520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6522 split(line, arg, " ")
6523 if (arg[1] == "#") {
6527 defundef = substr(arg[1], 2)
6530 split(mac1, mac2, "(") #)
6532 prefix = substr(line, 1, index(line, defundef) - 1)
6533 if (D_is_set[macro]) {
6534 # Preserve the white space surrounding the "#".
6535 print prefix "define", macro P[macro] D[macro]
6538 # Replace #undef with comments. This is necessary, for example,
6539 # in the case of _POSIX_SOURCE, which is predefined and required
6540 # on some systems where configure will not decide to define it.
6541 if (defundef == "undef") {
6542 print "/*", prefix defundef, macro, "*/"
6550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6552 fi # test -n "$CONFIG_HEADERS"
6555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6560 :[FHLC]) ac_mode=$ac_tag; continue;;
6562 case $ac_mode$ac_tag in
6564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6565 :[FH]-) ac_tag=-:-;;
6566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6583 -) ac_f="$ac_tmp/stdin";;
6584 *) # Look for the file first in the build tree, then in the source tree
6585 # (if the path is not absolute). The absolute path cannot be DOS-style,
6586 # because $ac_f cannot contain `:'.
6590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6594 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6595 as_fn_append ac_file_inputs " '$ac_f'"
6598 # Let's still pretend it is `configure' which instantiates (i.e., don't
6599 # use $as_me), people would be surprised to read:
6600 # /* config.h. Generated by config.status. */
6601 configure_input='Generated from '`
6602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6604 if test x"$ac_file" != x-; then
6605 configure_input="$ac_file. $configure_input"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6607 $as_echo "$as_me: creating $ac_file" >&6;}
6609 # Neutralize special characters interpreted by sed in replacement strings.
6610 case $configure_input in #(
6611 *\&* | *\|* | *\\* )
6612 ac_sed_conf_input=`$as_echo "$configure_input" |
6613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6614 *) ac_sed_conf_input=$configure_input;;
6618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6624 ac_dir=`$as_dirname -- "$ac_file" ||
6625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6626 X"$ac_file" : 'X\(//\)[^/]' \| \
6627 X"$ac_file" : 'X\(//\)$' \| \
6628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6629 $as_echo X"$ac_file" |
6630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6647 as_dir="$ac_dir"; as_fn_mkdir_p
6651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6654 # A ".." for each directory in $ac_dir_suffix.
6655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6656 case $ac_top_builddir_sub in
6657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6661 ac_abs_top_builddir=$ac_pwd
6662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6663 # for backward compatibility:
6664 ac_top_builddir=$ac_top_build_prefix
6667 .) # We are building in place.
6669 ac_top_srcdir=$ac_top_builddir_sub
6670 ac_abs_top_srcdir=$ac_pwd ;;
6671 [\\/]* | ?:[\\/]* ) # Absolute name.
6672 ac_srcdir=$srcdir$ac_dir_suffix;
6673 ac_top_srcdir=$srcdir
6674 ac_abs_top_srcdir=$srcdir ;;
6676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6677 ac_top_srcdir=$ac_top_build_prefix$srcdir
6678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6695 [\\/$]* | ?:[\\/]* ) ;;
6696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6701 # If the template does not know about datarootdir, expand it.
6702 # FIXME: This hack should be removed a few years after 2.60.
6703 ac_datarootdir_hack=; ac_datarootdir_seen=
6714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6715 *datarootdir*) ac_datarootdir_seen=yes;;
6716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6718 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6721 ac_datarootdir_hack='
6722 s&@datadir@&$datadir&g
6723 s&@docdir@&$docdir&g
6724 s&@infodir@&$infodir&g
6725 s&@localedir@&$localedir&g
6726 s&@mandir@&$mandir&g
6727 s&\\\${datarootdir}&$datarootdir&g' ;;
6731 # Neutralize VPATH when `$srcdir' = `.'.
6732 # Shell code in configure.ac might set extrasub.
6733 # FIXME: do we really want to maintain this feature?
6734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6735 ac_sed_extra="$ac_vpsub
6738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6741 s|@configure_input@|$ac_sed_conf_input|;t t
6742 s&@top_builddir@&$ac_top_builddir_sub&;t t
6743 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6744 s&@srcdir@&$ac_srcdir&;t t
6745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6746 s&@top_srcdir@&$ac_top_srcdir&;t t
6747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6748 s&@builddir@&$ac_builddir&;t t
6749 s&@abs_builddir@&$ac_abs_builddir&;t t
6750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6751 s&@INSTALL@&$ac_INSTALL&;t t
6752 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6753 $ac_datarootdir_hack
6755 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6761 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6763 which seems to be undefined. Please make sure it is defined" >&5
6764 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6765 which seems to be undefined. Please make sure it is defined" >&2;}
6767 rm -f "$ac_tmp/stdin"
6769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6778 if test x"$ac_file" != x-; then
6780 $as_echo "/* $configure_input */" \
6781 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6782 } >"$ac_tmp/config.h" \
6783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6784 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6786 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6789 mv "$ac_tmp/config.h" "$ac_file" \
6790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6793 $as_echo "/* $configure_input */" \
6794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6795 || as_fn_error $? "could not create -" "$LINENO" 5
6797 # Compute "$ac_file"'s index in $config_headers.
6800 for _am_header in $config_headers :; do
6802 $_am_arg | $_am_arg:* )
6805 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6808 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6809 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6810 X"$_am_arg" : 'X\(//\)[^/]' \| \
6811 X"$_am_arg" : 'X\(//\)$' \| \
6812 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6813 $as_echo X"$_am_arg" |
6814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6830 s/.*/./; q'`/stamp-h$_am_stamp_count
6833 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6834 $as_echo "$as_me: executing $ac_file commands" >&6;}
6839 case $ac_file$ac_mode in
6840 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6841 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6842 # are listed without --file. Let's play safe and only enable the eval
6843 # if we detect the quoting.
6844 case $CONFIG_FILES in
6845 *\'*) eval set x "$CONFIG_FILES" ;;
6846 *) set x $CONFIG_FILES ;;
6851 # Strip MF so we end up with the name of the file.
6852 mf=`echo "$mf" | sed -e 's/:.*$//'`
6853 # Check whether this is an Automake generated Makefile or not.
6854 # We used to match only the files named `Makefile.in', but
6855 # some people rename them; so instead we look at the file content.
6856 # Grep'ing the first line is not enough: some people post-process
6857 # each Makefile.in and add a new line on top of each file to say so.
6858 # Grep'ing the whole file is not good either: AIX grep has a line
6859 # limit of 2048, but all sed's we know have understand at least 4000.
6860 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6861 dirpart=`$as_dirname -- "$mf" ||
6862 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6863 X"$mf" : 'X\(//\)[^/]' \| \
6864 X"$mf" : 'X\(//\)$' \| \
6865 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6887 # Extract the definition of DEPDIR, am__include, and am__quote
6888 # from the Makefile without running `make'.
6889 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6890 test -z "$DEPDIR" && continue
6891 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6892 test -z "am__include" && continue
6893 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6894 # When using ansi2knr, U may be empty or an underscore; expand it
6895 U=`sed -n 's/^U = //p' < "$mf"`
6896 # Find all dependency output files, they are included files with
6897 # $(DEPDIR) in their names. We invoke sed twice because it is the
6898 # simplest approach to changing $(DEPDIR) to its actual value in the
6900 for file in `sed -n "
6901 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6902 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6903 # Make sure the directory exists.
6904 test -f "$dirpart/$file" && continue
6905 fdir=`$as_dirname -- "$file" ||
6906 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6907 X"$file" : 'X\(//\)[^/]' \| \
6908 X"$file" : 'X\(//\)$' \| \
6909 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6928 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6929 # echo "creating $dirpart/$file"
6930 echo '# dummy' > "$dirpart/$file"
6942 ac_clean_files=$ac_clean_files_save
6944 test $ac_write_fail = 0 ||
6945 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6948 # configure is writing to config.log, and then calls config.status.
6949 # config.status does its own redirection, appending to config.log.
6950 # Unfortunately, on DOS this fails, as config.log is still kept open
6951 # by configure, so config.status won't be able to write to it; its
6952 # output is simply discarded. So we exec the FD to /dev/null,
6953 # effectively closing config.log, so it can be properly (re)opened and
6954 # appended to by config.status. When coming back to configure, we
6955 # need to make the FD available again.
6956 if test "$no_create" != yes; then
6958 ac_config_status_args=
6959 test "$silent" = yes &&
6960 ac_config_status_args="$ac_config_status_args --quiet"
6962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6965 # would make configure fail if this is the last instruction.
6966 $ac_cs_success || as_fn_exit 1
6968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}