2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xdpyinfo 1.2.0.
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='xdpyinfo'
563 PACKAGE_TARNAME='xdpyinfo'
564 PACKAGE_VERSION='1.2.0'
565 PACKAGE_STRING='xdpyinfo 1.2.0'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
620 DPY_XCOMPOSITE_CFLAGS
630 DPY_XF86VIDMODE_CFLAGS
688 MAINTAINER_MODE_FALSE
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
754 enable_maintainer_mode
755 enable_dependency_tracking
756 enable_strict_compilation
764 ac_precious_vars='build_alias
782 DPY_XF86VIDMODE_CFLAGS
792 DPY_XCOMPOSITE_CFLAGS
804 # Initialize some variables set by options.
806 ac_init_version=false
807 ac_unrecognized_opts=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name=s,x,x,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
893 cache_file=config.cache ;;
895 -datadir | --datadir | --datadi | --datad)
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
947 eval enable_$ac_useropt=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=\$ac_optarg ;;
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=no ;;
1170 # Obsolete; use --with-x.
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1238 # Be sure to have absolute directory names.
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used" >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures xdpyinfo 1.2.0 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/xdpyinfo]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of xdpyinfo 1.2.0:";;
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --enable-strict-compilation
1427 Enable all warnings from compiler and make them
1428 errors (default: disabled)
1429 --enable-silent-rules less verbose build output (undo: `make V=1')
1430 --disable-silent-rules verbose build output (undo: `make V=0')
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --without-dga Disable dga support.
1436 --without-xf86misc Disable xf86misc support.
1437 --without-xinerama Disable xinerama support.
1438 --without-dmx Disable dmx support.
1439 --with-lint Use a lint-style source code checker (default:
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1451 PKG_CONFIG path to pkg-config utility
1453 C compiler flags for XDPYINFO, overriding pkg-config
1455 linker flags for XDPYINFO, overriding pkg-config
1457 C compiler flags for DPY_X11, overriding pkg-config
1459 linker flags for DPY_X11, overriding pkg-config
1461 C compiler flags for DPY_XEXT, overriding pkg-config
1463 linker flags for DPY_XEXT, overriding pkg-config
1465 C compiler flags for DPY_XKB, overriding pkg-config
1467 linker flags for DPY_XKB, overriding pkg-config
1468 DPY_XF86VIDMODE_CFLAGS
1469 C compiler flags for DPY_XF86VIDMODE, overriding pkg-config
1470 DPY_XF86VIDMODE_LIBS
1471 linker flags for DPY_XF86VIDMODE, overriding pkg-config
1473 C compiler flags for DPY_XF86DGA, overriding pkg-config
1475 linker flags for DPY_XF86DGA, overriding pkg-config
1477 C compiler flags for DPY_XF86MISC, overriding pkg-config
1479 linker flags for DPY_XF86MISC, overriding pkg-config
1481 C compiler flags for DPY_XINPUT, overriding pkg-config
1483 linker flags for DPY_XINPUT, overriding pkg-config
1485 C compiler flags for DPY_XRENDER, overriding pkg-config
1487 linker flags for DPY_XRENDER, overriding pkg-config
1488 DPY_XCOMPOSITE_CFLAGS
1489 C compiler flags for DPY_XCOMPOSITE, overriding pkg-config
1491 linker flags for DPY_XCOMPOSITE, overriding pkg-config
1493 C compiler flags for DPY_XINERAMA, overriding pkg-config
1495 linker flags for DPY_XINERAMA, overriding pkg-config
1497 C compiler flags for DPY_DMX, overriding pkg-config
1499 linker flags for DPY_DMX, overriding pkg-config
1501 C compiler flags for DPY_XTST, overriding pkg-config
1503 linker flags for DPY_XTST, overriding pkg-config
1504 LINT Path to a lint-style command
1505 LINT_FLAGS Flags for the lint-style command
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1540 .) # We are building in place.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1573 xdpyinfo configure 1.2.0
1574 generated by GNU Autoconf 2.68
1576 Copyright (C) 2010 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_compile
1625 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1626 # ---------------------------------------------
1627 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1629 ac_fn_c_check_decl ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 as_decl_name=`echo $2|sed 's/ *(.*//'`
1633 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1635 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1636 if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1645 #ifndef $as_decl_name
1647 (void) $as_decl_use;
1649 (void) $as_decl_name;
1657 if ac_fn_c_try_compile "$LINENO"; then :
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 } # ac_fn_c_check_decl
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } > conftest.i && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1767 if ac_fn_c_try_compile "$LINENO"; then :
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 } # ac_fn_c_check_header_compile
1780 cat >config.log <<_ACEOF
1781 This file contains any messages produced by compilers while
1782 running configure, to aid debugging if configure makes a mistake.
1784 It was created by xdpyinfo $as_me 1.2.0, which was
1785 generated by GNU Autoconf 2.68. Invocation command line was
1797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1804 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1806 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1807 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1809 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1810 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1811 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1812 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 $as_echo "PATH: $as_dir"
1837 # Keep a trace of the command line.
1838 # Strip out --no-create and --no-recursion so they do not pile up.
1839 # Strip out --silent because we don't want to record it for future runs.
1840 # Also quote any args containing shell meta-characters.
1841 # Make two passes to allow for proper duplicate-argument suppression.
1845 ac_must_keep_next=false
1851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1853 | -silent | --silent | --silen | --sile | --sil)
1856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1861 as_fn_append ac_configure_args1 " '$ac_arg'"
1862 if test $ac_must_keep_next = true; then
1863 ac_must_keep_next=false # Got value, back to normal.
1866 *=* | --config-cache | -C | -disable-* | --disable-* \
1867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1869 | -with-* | --with-* | -without-* | --without-* | --x)
1870 case "$ac_configure_args0 " in
1871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874 -* ) ac_must_keep_next=true ;;
1877 as_fn_append ac_configure_args " '$ac_arg'"
1882 { ac_configure_args0=; unset ac_configure_args0;}
1883 { ac_configure_args1=; unset ac_configure_args1;}
1885 # When interrupted or exit'd, cleanup temporary files, and complete
1886 # config.log. We remove comments because anyway the quotes in there
1887 # would cause problems or look ugly.
1888 # WARNING: Use '\'' to represent an apostrophe within the trap.
1889 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1890 trap 'exit_status=$?
1891 # Save into config.log some information that might help in debugging.
1895 $as_echo "## ---------------- ##
1896 ## Cache variables. ##
1897 ## ---------------- ##"
1899 # The following way of writing the cache mishandles newlines in values,
1901 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1902 eval ac_val=\$$ac_var
1906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1907 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1910 _ | IFS | as_nl) ;; #(
1911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1912 *) { eval $ac_var=; unset $ac_var;} ;;
1917 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1918 *${as_nl}ac_space=\ *)
1920 "s/'\''/'\''\\\\'\'''\''/g;
1921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1931 $as_echo "## ----------------- ##
1932 ## Output variables. ##
1933 ## ----------------- ##"
1935 for ac_var in $ac_subst_vars
1937 eval ac_val=\$$ac_var
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 $as_echo "$ac_var='\''$ac_val'\''"
1945 if test -n "$ac_subst_files"; then
1946 $as_echo "## ------------------- ##
1947 ## File substitutions. ##
1948 ## ------------------- ##"
1950 for ac_var in $ac_subst_files
1952 eval ac_val=\$$ac_var
1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 $as_echo "$ac_var='\''$ac_val'\''"
1961 if test -s confdefs.h; then
1962 $as_echo "## ----------- ##
1969 test "$ac_signal" != 0 &&
1970 $as_echo "$as_me: caught signal $ac_signal"
1971 $as_echo "$as_me: exit $exit_status"
1973 rm -f core *.core core.conftest.* &&
1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977 for ac_signal in 1 2 13 15; do
1978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1983 rm -f -r conftest* confdefs.h
1985 $as_echo "/* confdefs.h */" > confdefs.h
1987 # Predefined preprocessor variables.
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_URL "$PACKAGE_URL"
2014 # Let the site file select an alternate cache file if it wants to.
2015 # Prefer an explicitly selected file to automatically selected ones.
2018 if test -n "$CONFIG_SITE"; then
2019 # We do not want a PATH search for config.site.
2020 case $CONFIG_SITE in #((
2021 -*) ac_site_file1=./$CONFIG_SITE;;
2022 */*) ac_site_file1=$CONFIG_SITE;;
2023 *) ac_site_file1=./$CONFIG_SITE;;
2025 elif test "x$prefix" != xNONE; then
2026 ac_site_file1=$prefix/share/config.site
2027 ac_site_file2=$prefix/etc/config.site
2029 ac_site_file1=$ac_default_prefix/share/config.site
2030 ac_site_file2=$ac_default_prefix/etc/config.site
2032 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2034 test "x$ac_site_file" = xNONE && continue
2035 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2037 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2038 sed 's/^/| /' "$ac_site_file" >&5
2040 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 as_fn_error $? "failed to load site script $ac_site_file
2043 See \`config.log' for more details" "$LINENO" 5; }
2047 if test -r "$cache_file"; then
2048 # Some versions of bash will fail to source /dev/null (special files
2049 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2050 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2052 $as_echo "$as_me: loading cache $cache_file" >&6;}
2054 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055 *) . "./$cache_file";;
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2060 $as_echo "$as_me: creating cache $cache_file" >&6;}
2064 # Check that the precious variables saved in the cache have kept the same
2066 ac_cache_corrupted=false
2067 for ac_var in $ac_precious_vars; do
2068 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2069 eval ac_new_set=\$ac_env_${ac_var}_set
2070 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2071 eval ac_new_val=\$ac_env_${ac_var}_value
2072 case $ac_old_set,$ac_new_set in
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2075 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2076 ac_cache_corrupted=: ;;
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2080 ac_cache_corrupted=: ;;
2083 if test "x$ac_old_val" != "x$ac_new_val"; then
2084 # differences in whitespace do not lead to failure.
2085 ac_old_val_w=`echo x $ac_old_val`
2086 ac_new_val_w=`echo x $ac_new_val`
2087 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2089 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2090 ac_cache_corrupted=:
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2093 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2094 eval $ac_var=\$ac_old_val
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2097 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2099 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2102 # Pass precious variables to config.status.
2103 if test "$ac_new_set" = set; then
2105 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 *) ac_arg=$ac_var=$ac_new_val ;;
2108 case " $ac_configure_args " in
2109 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2110 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2114 if $ac_cache_corrupted; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2118 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2119 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2121 ## -------------------- ##
2122 ## Main body of script. ##
2123 ## -------------------- ##
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132 am__api_version='1.11'
2135 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2136 if test -f "$ac_dir/install-sh"; then
2138 ac_install_sh="$ac_aux_dir/install-sh -c"
2140 elif test -f "$ac_dir/install.sh"; then
2142 ac_install_sh="$ac_aux_dir/install.sh -c"
2144 elif test -f "$ac_dir/shtool"; then
2146 ac_install_sh="$ac_aux_dir/shtool install -c"
2150 if test -z "$ac_aux_dir"; then
2151 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2154 # These three variables are undocumented and unsupported,
2155 # and are intended to be withdrawn in a future Autoconf release.
2156 # They can cause serious problems if a builder's source tree is in a directory
2157 # whose full name contains unusual characters.
2158 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2159 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2160 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2163 # Find a good install program. We prefer a C program (faster),
2164 # so one script is as good as another. But avoid the broken or
2165 # incompatible versions:
2166 # SysV /etc/install, /usr/sbin/install
2167 # SunOS /usr/etc/install
2168 # IRIX /sbin/install
2170 # AmigaOS /C/install, which installs bootblocks on floppy discs
2171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174 # OS/2's system install, which has a completely different semantic
2175 # ./install, which can be erroneously created by make from ./install.sh.
2176 # Reject install programs that cannot install multiple files.
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2178 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2179 if test -z "$INSTALL"; then
2180 if ${ac_cv_path_install+:} false; then :
2181 $as_echo_n "(cached) " >&6
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 # Account for people who put trailing slashes in PATH elements.
2189 case $as_dir/ in #((
2190 ./ | .// | /[cC]/* | \
2191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2210 rm -rf conftest.one conftest.two conftest.dir
2211 echo one > conftest.one
2212 echo two > conftest.two
2214 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2215 test -s conftest.one && test -s conftest.two &&
2216 test -s conftest.dir/conftest.one &&
2217 test -s conftest.dir/conftest.two
2219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2232 rm -rf conftest.one conftest.two conftest.dir
2235 if test "${ac_cv_path_install+set}" = set; then
2236 INSTALL=$ac_cv_path_install
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for INSTALL within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 INSTALL=$ac_install_sh
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2246 $as_echo "$INSTALL" >&6; }
2248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249 # It thinks the first close brace ends the variable substitution.
2250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2257 $as_echo_n "checking whether build environment is sane... " >&6; }
2260 echo timestamp > conftest.file
2261 # Reject unsafe characters in $srcdir or the absolute working directory
2262 # name. Accept space and tab only in the latter.
2266 *[\\\"\#\$\&\'\`$am_lf]*)
2267 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2271 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2274 # Do `set' in a subshell so we don't clobber the current shell's
2275 # arguments. Must try -L first in case configure is actually a
2276 # symlink; some systems play weird games with the mod time of symlinks
2277 # (eg FreeBSD returns the mod time of the symlink's containing
2280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281 if test "$*" = "X"; then
2283 set X `ls -t "$srcdir/configure" conftest.file`
2286 if test "$*" != "X $srcdir/configure conftest.file" \
2287 && test "$*" != "X conftest.file $srcdir/configure"; then
2289 # If neither matched, then we have a broken ls. This can happen
2290 # if, for instance, CONFIG_SHELL is bash and it inherits a
2291 # broken ls alias from the environment. This has actually
2292 # happened. Such a system could not be considered "sane".
2293 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2294 alias in your environment" "$LINENO" 5
2297 test "$2" = conftest.file
2303 as_fn_error $? "newly created file is older than distributed files!
2304 Check your system clock" "$LINENO" 5
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2307 $as_echo "yes" >&6; }
2308 test "$program_prefix" != NONE &&
2309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310 # Use a double $ so make ignores it.
2311 test "$program_suffix" != NONE &&
2312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313 # Double any \ or $.
2314 # By default was `s,x,x', remove it if useless.
2315 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2318 # expand $ac_aux_dir to an absolute path
2319 am_aux_dir=`cd $ac_aux_dir && pwd`
2321 if test x"${MISSING+set}" != xset; then
2324 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2326 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2329 # Use eval to expand $SHELL
2330 if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2335 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2338 if test x"${install_sh}" != xset; then
2341 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2343 install_sh="\${SHELL} $am_aux_dir/install-sh"
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'. However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_STRIP+:} false; then :
2358 $as_echo_n "(cached) " >&6
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2383 $as_echo "$STRIP" >&6; }
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2391 if test -z "$ac_cv_prog_STRIP"; then
2393 # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2398 $as_echo_n "(cached) " >&6
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_STRIP="strip"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2423 $as_echo "$ac_ct_STRIP" >&6; }
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2429 if test "x$ac_ct_STRIP" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2436 ac_tool_warned=yes ;;
2441 STRIP="$ac_cv_prog_STRIP"
2445 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2448 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2449 if test -z "$MKDIR_P"; then
2450 if ${ac_cv_path_mkdir+:} false; then :
2451 $as_echo_n "(cached) " >&6
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2457 test -z "$as_dir" && as_dir=.
2458 for ac_prog in mkdir gmkdir; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2461 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2462 'mkdir (GNU coreutils) '* | \
2463 'mkdir (coreutils) '* | \
2464 'mkdir (fileutils) '4.1*)
2465 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2475 test -d ./--version && rmdir ./--version
2476 if test "${ac_cv_path_mkdir+set}" = set; then
2477 MKDIR_P="$ac_cv_path_mkdir -p"
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for MKDIR_P within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 MKDIR_P="$ac_install_sh -d"
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2487 $as_echo "$MKDIR_P" >&6; }
2491 [\\/$]* | ?:[\\/]*) ;;
2492 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2495 for ac_prog in gawk mawk nawk awk
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_AWK+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 if test -n "$AWK"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2527 $as_echo "$AWK" >&6; }
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2534 test -n "$AWK" && break
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2540 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2541 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2542 $as_echo_n "(cached) " >&6
2544 cat >conftest.make <<\_ACEOF
2547 @echo '@@@%%%=$(MAKE)=@@@%%%'
2549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2552 eval ac_cv_prog_make_${ac_make}_set=yes;;
2554 eval ac_cv_prog_make_${ac_make}_set=no;;
2558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 SET_MAKE="MAKE=${MAKE-make}"
2568 rm -rf .tst 2>/dev/null
2569 mkdir .tst 2>/dev/null
2570 if test -d .tst; then
2575 rmdir .tst 2>/dev/null
2577 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2579 # is not polluted with repeated "-I."
2580 am__isrc=' -I$(srcdir)'
2581 # test to see if srcdir already configured
2582 if test -f $srcdir/config.status; then
2583 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2587 # test whether we have cygpath
2588 if test -z "$CYGPATH_W"; then
2589 if (cygpath --version) >/dev/null 2>/dev/null; then
2590 CYGPATH_W='cygpath -w'
2597 # Define the identity of the package.
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE "$PACKAGE"
2607 cat >>confdefs.h <<_ACEOF
2608 #define VERSION "$VERSION"
2611 # Some tools Automake needs.
2613 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2616 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2619 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2622 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2625 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2627 # We need awk for the "check" target. The system "awk" is bad on
2629 # Always define AMTAR for backward compatibility.
2631 AMTAR=${AMTAR-"${am_missing_run}tar"}
2633 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2641 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2642 # Check whether --enable-maintainer-mode was given.
2643 if test "${enable_maintainer_mode+set}" = set; then :
2644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2646 USE_MAINTAINER_MODE=no
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2650 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2651 if test $USE_MAINTAINER_MODE = yes; then
2652 MAINTAINER_MODE_TRUE=
2653 MAINTAINER_MODE_FALSE='#'
2655 MAINTAINER_MODE_TRUE='#'
2656 MAINTAINER_MODE_FALSE=
2659 MAINT=$MAINTAINER_MODE_TRUE
2663 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2675 DEPDIR="${am__leading_dot}deps"
2677 ac_config_commands="$ac_config_commands depfiles"
2680 am_make=${MAKE-make}
2681 cat > confinc << 'END'
2683 @echo this is the am__doit target
2686 # If we don't find an include directive, just comment out the code.
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2688 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2692 # First try GNU make style include.
2693 echo "include confinc" > confmf
2694 # Ignore all kinds of additional output from `make'.
2695 case `$am_make -s -f confmf 2> /dev/null` in #(
2696 *the\ am__doit\ target*)
2702 # Now try BSD make style include.
2703 if test "$am__include" = "#"; then
2704 echo '.include "confinc"' > confmf
2705 case `$am_make -s -f confmf 2> /dev/null` in #(
2706 *the\ am__doit\ target*)
2707 am__include=.include
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2716 $as_echo "$_am_result" >&6; }
2717 rm -f confinc confmf
2719 # Check whether --enable-dependency-tracking was given.
2720 if test "${enable_dependency_tracking+set}" = set; then :
2721 enableval=$enable_dependency_tracking;
2724 if test "x$enable_dependency_tracking" != xno; then
2725 am_depcomp="$ac_aux_dir/depcomp"
2728 if test "x$enable_dependency_tracking" != xno; then
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_CC+:} false; then :
2748 $as_echo_n "(cached) " >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2781 if test -z "$ac_cv_prog_CC"; then
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784 set dummy gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813 $as_echo "$ac_ct_CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2819 if test "x$ac_ct_CC" = x; then
2822 case $cross_compiling:$ac_tool_warned in
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826 ac_tool_warned=yes ;;
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3016 test -n "$ac_ct_CC" && break
3019 if test "x$ac_ct_CC" = x; then
3022 case $cross_compiling:$ac_tool_warned in
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned=yes ;;
3035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error $? "no acceptable C compiler found in \$PATH
3038 See \`config.log' for more details" "$LINENO" 5; }
3040 # Provide some information about the compiler.
3041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3044 for ac_option in --version -v -V -qversion; do
3045 { { ac_try="$ac_compiler $ac_option >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054 if test -s conftest.err; then
3056 ... rest of stderr output deleted ...
3057 10q' conftest.err >conftest.er1
3058 cat conftest.er1 >&5
3060 rm -f conftest.er1 conftest.err
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3076 ac_clean_files_save=$ac_clean_files
3077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3078 # Try to create an executable without -o first, disregard a.out.
3079 # It will help us diagnose broken compilers, and finding out an intuition
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3082 $as_echo_n "checking whether the C compiler works... " >&6; }
3083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085 # The possible output files:
3086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3089 for ac_file in $ac_files
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3098 if { { ac_try="$ac_link_default"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link_default") 2>&5
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3112 # so that the user can short-circuit this test for compilers unknown to
3114 for ac_file in $ac_files ''
3116 test -f "$ac_file" || continue
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3121 # We found the default executable, but exeext='' is most
3125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 # We set ac_cv_exeext here because the later test for it is not
3130 # safe: cross compilers may not add the suffix if given an `-o'
3131 # argument, so we may need to know it at that point already.
3132 # Even if this section looks crufty: it has the advantage of
3139 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144 if test -z "$ac_file"; then :
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 $as_echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error 77 "C compiler cannot create executables
3153 See \`config.log' for more details" "$LINENO" 5; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3159 $as_echo_n "checking for C compiler default output file name... " >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3161 $as_echo "$ac_file" >&6; }
3162 ac_exeext=$ac_cv_exeext
3164 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3167 $as_echo_n "checking for suffix of executables... " >&6; }
3168 if { { ac_try="$ac_link"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_link") 2>&5
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }; then :
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 for ac_file in conftest.exe conftest conftest.*; do
3184 test -f "$ac_file" || continue
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 rm -f conftest conftest$ac_cv_exeext
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3200 $as_echo "$ac_cv_exeext" >&6; }
3202 rm -f conftest.$ac_ext
3203 EXEEXT=$ac_cv_exeext
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3211 FILE *f = fopen ("conftest.out", "w");
3212 return ferror (f) || fclose (f) != 0;
3218 ac_clean_files="$ac_clean_files conftest.out"
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3222 $as_echo_n "checking whether we are cross compiling... " >&6; }
3223 if test "$cross_compiling" != yes; then
3224 { { ac_try="$ac_link"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235 if { ac_try='./conftest$ac_cv_exeext'
3236 { { case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_try") 2>&5
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; }; then
3248 if test "$cross_compiling" = maybe; then
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot run C compiled programs.
3254 If you meant to cross compile, use \`--host'.
3255 See \`config.log' for more details" "$LINENO" 5; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3260 $as_echo "$cross_compiling" >&6; }
3262 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3263 ac_clean_files=$ac_clean_files_save
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3265 $as_echo_n "checking for suffix of object files... " >&6; }
3266 if ${ac_cv_objext+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 rm -f conftest.o conftest.obj
3281 if { { ac_try="$ac_compile"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_compile") 2>&5
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 for ac_file in conftest.o conftest.obj conftest.*; do
3293 test -f "$ac_file" || continue;
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details" "$LINENO" 5; }
3309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3312 $as_echo "$ac_cv_objext" >&6; }
3313 OBJEXT=$ac_cv_objext
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3316 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3317 if ${ac_cv_c_compiler_gnu+:} false; then :
3318 $as_echo_n "(cached) " >&6
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3334 if ac_fn_c_try_compile "$LINENO"; then :
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3344 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3345 if test $ac_compiler_gnu = yes; then
3350 ac_test_CFLAGS=${CFLAGS+set}
3351 ac_save_CFLAGS=$CFLAGS
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3353 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3354 if ${ac_cv_prog_cc_g+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 ac_save_c_werror_flag=$ac_c_werror_flag
3358 ac_c_werror_flag=yes
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 if ac_fn_c_try_compile "$LINENO"; then :
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3387 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_c_werror_flag=$ac_save_c_werror_flag
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3403 if ac_fn_c_try_compile "$LINENO"; then :
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3414 $as_echo "$ac_cv_prog_cc_g" >&6; }
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS=$ac_save_CFLAGS
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3424 if test "$GCC" = yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3431 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3432 if ${ac_cv_prog_cc_c89+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 ac_cv_prog_cc_c89=no
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 #include <sys/types.h>
3442 #include <sys/stat.h>
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3457 s = g (p, va_arg (v,int));
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_prog_cc_c89=$ac_arg
3497 rm -f core conftest.err conftest.$ac_objext
3498 test "x$ac_cv_prog_cc_c89" != "xno" && break
3500 rm -f conftest.$ac_ext
3505 case "x$ac_cv_prog_cc_c89" in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 $as_echo "none needed" >&6; } ;;
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 $as_echo "unsupported" >&6; } ;;
3513 CC="$CC $ac_cv_prog_cc_c89"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3517 if test "x$ac_cv_prog_cc_c89" != xno; then :
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 depcc="$CC" am_compiler_list=
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3530 $as_echo_n "checking dependency style of $depcc... " >&6; }
3531 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535 # We make a subdir and do the tests there. Otherwise we can end up
3536 # making bogus files that we don't know about and never remove. For
3537 # instance it was reported that on HP-UX the gcc test will end up
3538 # making a dummy file named `D' -- because `-MD' means `put the output
3541 # Copy depcomp to subdir because otherwise we won't find it if we're
3542 # using a relative directory.
3543 cp "$am_depcomp" conftest.dir
3545 # We will build objects and dependencies in a subdirectory because
3546 # it helps to detect inapplicable dependency modes. For instance
3547 # both Tru64's cc and ICC support -MD to output dependencies as a
3548 # side effect of compilation, but ICC will put the dependencies in
3549 # the current directory while Tru64 will put them in the object
3553 am_cv_CC_dependencies_compiler_type=none
3554 if test "$am_compiler_list" = ""; then
3555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3558 case " $depcc " in #(
3559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3562 for depmode in $am_compiler_list; do
3563 # Setup a source with many dependencies, because some compilers
3564 # like to wrap large dependency lists on column 80 (with \), and
3565 # we should not choose a depcomp mode which is confused by this.
3567 # We need to recreate these files for each test, as the compiler may
3568 # overwrite some of them when testing with obscure command lines.
3569 # This happens at least with the AIX C compiler.
3571 for i in 1 2 3 4 5 6; do
3572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3574 # Solaris 8's {/usr,}/bin/sh.
3575 touch sub/conftst$i.h
3577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3580 # mode. It turns out that the SunPro C++ compiler does not properly
3581 # handle `-M -o', and we need to detect this. Also, some Intel
3582 # versions had trouble with output in subdirs
3583 am__obj=sub/conftest.${OBJEXT-o}
3584 am__minus_obj="-o $am__obj"
3587 # This depmode causes a compiler race in universal mode.
3588 test "$am__universal" = false || continue
3591 # after this tag, mechanisms are not by side-effect, so they'll
3592 # only be used when explicitly requested
3593 if test "x$enable_dependency_tracking" = xyes; then
3599 msvisualcpp | msvcmsys)
3600 # This compiler won't grok `-c -o', but also, the minuso test has
3601 # not run yet. These depmodes are late enough in the game, and
3602 # so weak that their functioning should not be impacted.
3603 am__obj=conftest.${OBJEXT-o}
3608 if depmode=$depmode \
3609 source=sub/conftest.c object=$am__obj \
3610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3612 >/dev/null 2>conftest.err &&
3613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3617 # icc doesn't choke on unknown options, it will just issue warnings
3618 # or remarks (even with -Werror). So we grep stderr for any message
3619 # that says an option was ignored or not supported.
3620 # When given -MP, icc 7.0 and 7.1 complain thusly:
3621 # icc: Command line warning: ignoring option '-M'; no argument required
3622 # The diagnosis changed in icc 8.0:
3623 # icc: Command line remark: option '-MP' not supported
3624 if (grep 'ignoring option' conftest.err ||
3625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3626 am_cv_CC_dependencies_compiler_type=$depmode
3635 am_cv_CC_dependencies_compiler_type=none
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3644 test "x$enable_dependency_tracking" != xno \
3645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647 am__fastdepCC_FALSE='#'
3649 am__fastdepCC_TRUE='#'
3650 am__fastdepCC_FALSE=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3656 if ${ac_cv_prog_cc_c99+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 ac_cv_prog_cc_c99=no
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3664 #include <stdbool.h>
3669 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3670 #define debug(...) fprintf (stderr, __VA_ARGS__)
3671 #define showlist(...) puts (#__VA_ARGS__)
3672 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3674 test_varargs_macros (void)
3679 debug ("X = %d\n", x);
3680 showlist (The first, second, and third items.);
3681 report (x>y, "x is %d but y is %d", x, y);
3684 // Check long long types.
3685 #define BIG64 18446744073709551615ull
3686 #define BIG32 4294967295ul
3687 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3689 your preprocessor is broken;
3693 your preprocessor is broken;
3695 static long long int bignum = -9223372036854775807LL;
3696 static unsigned long long int ubignum = BIG64;
3698 struct incomplete_array
3706 const wchar_t *name;
3710 typedef const char *ccp;
3713 test_restrict (ccp restrict text)
3715 // See if C++-style comments work.
3716 // Iterate through items via the restricted pointer.
3717 // Also check for declarations in for loops.
3718 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3723 // Check varargs and va_copy.
3725 test_varargs (const char *format, ...)
3728 va_start (args, format);
3730 va_copy (args_copy, args);
3741 str = va_arg (args_copy, const char *);
3744 number = va_arg (args_copy, int);
3747 fnumber = va_arg (args_copy, double);
3762 _Bool success = false;
3765 if (test_restrict ("String literal") == 0)
3767 char *restrict newvar = "Another string";
3770 test_varargs ("s, d' f .", "string", 65, 34.234);
3771 test_varargs_macros ();
3773 // Check flexible array members.
3774 struct incomplete_array *ia =
3775 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3777 for (int i = 0; i < ia->datasize; ++i)
3778 ia->data[i] = i * 1.234;
3780 // Check named initializers.
3781 struct named_init ni = {
3783 .name = L"Test wide string",
3784 .average = 543.34343,
3789 int dynamic_array[ni.number];
3790 dynamic_array[ni.number - 1] = 543;
3792 // work around unused variable warnings
3793 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3794 || dynamic_array[ni.number - 1] != 543);
3800 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3802 CC="$ac_save_CC $ac_arg"
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_prog_cc_c99=$ac_arg
3806 rm -f core conftest.err conftest.$ac_objext
3807 test "x$ac_cv_prog_cc_c99" != "xno" && break
3809 rm -f conftest.$ac_ext
3814 case "x$ac_cv_prog_cc_c99" in
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3817 $as_echo "none needed" >&6; } ;;
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3820 $as_echo "unsupported" >&6; } ;;
3822 CC="$CC $ac_cv_prog_cc_c99"
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3824 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3826 if test "x$ac_cv_prog_cc_c99" != xno; then :
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3838 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3839 # On Suns, sometimes $CPP names a directory.
3840 if test -n "$CPP" && test -d "$CPP"; then
3843 if test -z "$CPP"; then
3844 if ${ac_cv_prog_CPP+:} false; then :
3845 $as_echo_n "(cached) " >&6
3847 # Double quotes because CPP needs to be expanded
3848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error" is here to catch this case.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3862 # include <limits.h>
3864 # include <assert.h>
3868 if ac_fn_c_try_cpp "$LINENO"; then :
3871 # Broken: fails on valid input.
3874 rm -f conftest.err conftest.i conftest.$ac_ext
3876 # OK, works on sane cases. Now check whether nonexistent headers
3877 # can be detected and how.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #include <ac_nonexistent.h>
3882 if ac_fn_c_try_cpp "$LINENO"; then :
3883 # Broken: success on invalid input.
3886 # Passes both tests.
3890 rm -f conftest.err conftest.i conftest.$ac_ext
3893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3894 rm -f conftest.i conftest.err conftest.$ac_ext
3895 if $ac_preproc_ok; then :
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3908 $as_echo "$CPP" >&6; }
3910 for ac_c_preproc_warn_flag in '' yes
3912 # Use a header file that comes with gcc, so configuring glibc
3913 # with a fresh cross-compiler works.
3914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915 # <limits.h> exists even on freestanding compilers.
3916 # On the NeXT, cc -E runs the code through the compiler's parser,
3917 # not just through cpp. "Syntax error" is here to catch this case.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3921 # include <limits.h>
3923 # include <assert.h>
3927 if ac_fn_c_try_cpp "$LINENO"; then :
3930 # Broken: fails on valid input.
3933 rm -f conftest.err conftest.i conftest.$ac_ext
3935 # OK, works on sane cases. Now check whether nonexistent headers
3936 # can be detected and how.
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <ac_nonexistent.h>
3941 if ac_fn_c_try_cpp "$LINENO"; then :
3942 # Broken: success on invalid input.
3945 # Passes both tests.
3949 rm -f conftest.err conftest.i conftest.$ac_ext
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.i conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then :
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details" "$LINENO" 5; }
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3971 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3972 if ${ac_cv_path_GREP+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 if test -z "$GREP"; then
3976 ac_path_GREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in grep ggrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3987 # Check for GNU ac_path_GREP and select it if it is found.
3988 # Check for GNU $ac_path_GREP
3989 case `"$ac_path_GREP" --version 2>&1` in
3991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994 $as_echo_n 0123456789 >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'GREP' >> "conftest.nl"
4001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 as_fn_arith $ac_count + 1 && ac_count=$as_val
4004 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_GREP="$ac_path_GREP"
4007 ac_path_GREP_max=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 $ac_path_GREP_found && break 3
4020 if test -z "$ac_cv_path_GREP"; then
4021 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 ac_cv_path_GREP=$GREP
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4029 $as_echo "$ac_cv_path_GREP" >&6; }
4030 GREP="$ac_cv_path_GREP"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4034 $as_echo_n "checking for egrep... " >&6; }
4035 if ${ac_cv_path_EGREP+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039 then ac_cv_path_EGREP="$GREP -E"
4041 if test -z "$EGREP"; then
4042 ac_path_EGREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in egrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4053 # Check for GNU ac_path_EGREP and select it if it is found.
4054 # Check for GNU $ac_path_EGREP
4055 case `"$ac_path_EGREP" --version 2>&1` in
4057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060 $as_echo_n 0123456789 >"conftest.in"
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'EGREP' >> "conftest.nl"
4067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_EGREP="$ac_path_EGREP"
4073 ac_path_EGREP_max=$ac_count
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081 $ac_path_EGREP_found && break 3
4086 if test -z "$ac_cv_path_EGREP"; then
4087 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4090 ac_cv_path_EGREP=$EGREP
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4096 $as_echo "$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4101 $as_echo_n "checking for ANSI C header files... " >&6; }
4102 if ${ac_cv_header_stdc+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_header_stdc=yes
4123 ac_cv_header_stdc=no
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 if test $ac_cv_header_stdc = yes; then
4128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "memchr" >/dev/null 2>&1; then :
4138 ac_cv_header_stdc=no
4144 if test $ac_cv_header_stdc = yes; then
4145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "free" >/dev/null 2>&1; then :
4155 ac_cv_header_stdc=no
4161 if test $ac_cv_header_stdc = yes; then
4162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4163 if test "$cross_compiling" = yes; then :
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4170 #if ((' ' & 0x0FF) == 0x020)
4171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174 # define ISLOWER(c) \
4175 (('a' <= (c) && (c) <= 'i') \
4176 || ('j' <= (c) && (c) <= 'r') \
4177 || ('s' <= (c) && (c) <= 'z'))
4178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 for (i = 0; i < 256; i++)
4187 if (XOR (islower (i), ISLOWER (i))
4188 || toupper (i) != TOUPPER (i))
4193 if ac_fn_c_try_run "$LINENO"; then :
4196 ac_cv_header_stdc=no
4198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4199 conftest.$ac_objext conftest.beam conftest.$ac_ext
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4205 $as_echo "$ac_cv_header_stdc" >&6; }
4206 if test $ac_cv_header_stdc = yes; then
4208 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4214 inttypes.h stdint.h unistd.h
4216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4220 cat >>confdefs.h <<_ACEOF
4221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4231 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4238 $as_echo_n "(cached) " >&6
4242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4264 if test -n "$PKG_CONFIG"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4266 $as_echo "$PKG_CONFIG" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4274 if test -z "$ac_cv_path_PKG_CONFIG"; then
4275 ac_pt_PKG_CONFIG=$PKG_CONFIG
4276 # Extract the first word of "pkg-config", so it can be a program name with args.
4277 set dummy pkg-config; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 case $ac_pt_PKG_CONFIG in
4285 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4307 if test -n "$ac_pt_PKG_CONFIG"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4309 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4315 if test "x$ac_pt_PKG_CONFIG" = x; then
4318 case $cross_compiling:$ac_tool_warned in
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322 ac_tool_warned=yes ;;
4324 PKG_CONFIG=$ac_pt_PKG_CONFIG
4327 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4331 if test -n "$PKG_CONFIG"; then
4332 _pkg_min_version=0.9.0
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4334 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4335 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337 $as_echo "yes" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4345 # Make sure we can run config.sub.
4346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4350 $as_echo_n "checking build system type... " >&6; }
4351 if ${ac_cv_build+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_build_alias=$build_alias
4355 test "x$ac_build_alias" = x &&
4356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4357 test "x$ac_build_alias" = x &&
4358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4364 $as_echo "$ac_cv_build" >&6; }
4365 case $ac_cv_build in
4367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4370 ac_save_IFS=$IFS; IFS='-'
4376 # Remember, the first character of IFS is used to create $*,
4377 # except with old shells:
4380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4384 $as_echo_n "checking host system type... " >&6; }
4385 if ${ac_cv_host+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 if test "x$host_alias" = x; then
4389 ac_cv_host=$ac_cv_build
4391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4397 $as_echo "$ac_cv_host" >&6; }
4400 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4403 ac_save_IFS=$IFS; IFS='-'
4409 # Remember, the first character of IFS is used to create $*,
4410 # except with old shells:
4413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4417 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4418 if ${ac_cv_path_SED+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4422 for ac_i in 1 2 3 4 5 6 7; do
4423 ac_script="$ac_script$as_nl$ac_script"
4425 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4426 { ac_script=; unset ac_script;}
4427 if test -z "$SED"; then
4428 ac_path_SED_found=false
4429 # Loop through the user's path and test for each of PROGNAME-LIST
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_prog in sed gsed; do
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4438 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4439 # Check for GNU ac_path_SED and select it if it is found.
4440 # Check for GNU $ac_path_SED
4441 case `"$ac_path_SED" --version 2>&1` in
4443 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4446 $as_echo_n 0123456789 >"conftest.in"
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 $as_echo '' >> "conftest.nl"
4453 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 as_fn_arith $ac_count + 1 && ac_count=$as_val
4456 if test $ac_count -gt ${ac_path_SED_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_SED="$ac_path_SED"
4459 ac_path_SED_max=$ac_count
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 $ac_path_SED_found && break 3
4472 if test -z "$ac_cv_path_SED"; then
4473 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4481 $as_echo "$ac_cv_path_SED" >&6; }
4482 SED="$ac_cv_path_SED"
4489 if test "x$GCC" = xyes ; then
4490 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4491 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4492 -Wbad-function-cast -Wformat=2"
4493 case `$CC -dumpversion` in
4495 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4499 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4500 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4506 if test "x$SUNCC" = "xyes"; then
4513 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4517 # Check whether --enable-strict-compilation was given.
4518 if test "${enable_strict_compilation+set}" = set; then :
4519 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4524 if test "x$STRICT_COMPILE" = "xyes"; then
4525 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4526 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4532 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4533 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4539 if test "x$GCC" = xyes ; then
4540 STRICT_CFLAGS="-pedantic -Werror"
4541 elif test "x$SUNCC" = "xyes"; then
4542 STRICT_CFLAGS="-errwarn"
4543 elif test "x$INTELCC" = "xyes"; then
4544 STRICT_CFLAGS="-Werror"
4547 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4552 cat >>confdefs.h <<_ACEOF
4553 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4556 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4557 if test "x$PVM" = "x"; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define PACKAGE_VERSION_MINOR $PVM
4565 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4566 if test "x$PVP" = "x"; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4576 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4577 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4578 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4579 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4584 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4585 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4586 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4587 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4588 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4595 if test x$APP_MAN_SUFFIX = x ; then
4598 if test x$APP_MAN_DIR = x ; then
4599 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4602 if test x$LIB_MAN_SUFFIX = x ; then
4605 if test x$LIB_MAN_DIR = x ; then
4606 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4609 if test x$FILE_MAN_SUFFIX = x ; then
4611 solaris*) FILE_MAN_SUFFIX=4 ;;
4612 *) FILE_MAN_SUFFIX=5 ;;
4615 if test x$FILE_MAN_DIR = x ; then
4616 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4619 if test x$MISC_MAN_SUFFIX = x ; then
4621 solaris*) MISC_MAN_SUFFIX=5 ;;
4622 *) MISC_MAN_SUFFIX=7 ;;
4625 if test x$MISC_MAN_DIR = x ; then
4626 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4629 if test x$DRIVER_MAN_SUFFIX = x ; then
4631 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4632 *) DRIVER_MAN_SUFFIX=4 ;;
4635 if test x$DRIVER_MAN_DIR = x ; then
4636 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4639 if test x$ADMIN_MAN_SUFFIX = x ; then
4641 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4642 *) ADMIN_MAN_SUFFIX=8 ;;
4645 if test x$ADMIN_MAN_DIR = x ; then
4646 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4663 XORG_MAN_PAGE="X Version 11"
4666 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4667 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4668 -e 's|__xservername__|Xorg|g' \
4669 -e 's|__xconfigfile__|xorg.conf|g' \
4670 -e 's|__projectroot__|\$(prefix)|g' \
4671 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4672 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4673 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4674 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4675 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4676 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4677 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4681 # Check whether --enable-silent-rules was given.
4682 if test "${enable_silent_rules+set}" = set; then :
4683 enableval=$enable_silent_rules;
4686 case $enable_silent_rules in
4687 yes) AM_DEFAULT_VERBOSITY=0;;
4688 no) AM_DEFAULT_VERBOSITY=1;;
4689 *) AM_DEFAULT_VERBOSITY=0;;
4695 ac_config_headers="$ac_config_headers config.h"
4698 # Checks for pkg-config packages
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5
4702 $as_echo_n "checking for XDPYINFO... " >&6; }
4704 if test -n "$XDPYINFO_CFLAGS"; then
4705 pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS"
4706 elif test -n "$PKG_CONFIG"; then
4707 if test -n "$PKG_CONFIG" && \
4708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst\""; } >&5
4709 ($PKG_CONFIG --exists --print-errors "xext x11 xtst") 2>&5
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }; then
4713 pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst" 2>/dev/null`
4720 if test -n "$XDPYINFO_LIBS"; then
4721 pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS"
4722 elif test -n "$PKG_CONFIG"; then
4723 if test -n "$PKG_CONFIG" && \
4724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst\""; } >&5
4725 ($PKG_CONFIG --exists --print-errors "xext x11 xtst") 2>&5
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }; then
4729 pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst" 2>/dev/null`
4739 if test $pkg_failed = yes; then
4741 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4742 _pkg_short_errors_supported=yes
4744 _pkg_short_errors_supported=no
4746 if test $_pkg_short_errors_supported = yes; then
4747 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext x11 xtst" 2>&1`
4749 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext x11 xtst" 2>&1`
4751 # Put the nasty error message in config.log where it belongs
4752 echo "$XDPYINFO_PKG_ERRORS" >&5
4754 as_fn_error $? "Package requirements (xext x11 xtst) were not met:
4756 $XDPYINFO_PKG_ERRORS
4758 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4759 installed software in a non-standard prefix.
4761 Alternatively, you may set the environment variables XDPYINFO_CFLAGS
4762 and XDPYINFO_LIBS to avoid the need to call pkg-config.
4763 See the pkg-config man page for more details.
4765 elif test $pkg_failed = untried; then
4766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4769 is in your PATH or set the PKG_CONFIG environment variable to the full
4772 Alternatively, you may set the environment variables XDPYINFO_CFLAGS
4773 and XDPYINFO_LIBS to avoid the need to call pkg-config.
4774 See the pkg-config man page for more details.
4776 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4777 See \`config.log' for more details" "$LINENO" 5; }
4779 XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS
4780 XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }
4786 # This is used below to allow <X11/Xlib.h> to be found
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5
4790 $as_echo_n "checking for DPY_X11... " >&6; }
4792 if test -n "$DPY_X11_CFLAGS"; then
4793 pkg_cv_DPY_X11_CFLAGS="$DPY_X11_CFLAGS"
4794 elif test -n "$PKG_CONFIG"; then
4795 if test -n "$PKG_CONFIG" && \
4796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4797 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; then
4801 pkg_cv_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
4808 if test -n "$DPY_X11_LIBS"; then
4809 pkg_cv_DPY_X11_LIBS="$DPY_X11_LIBS"
4810 elif test -n "$PKG_CONFIG"; then
4811 if test -n "$PKG_CONFIG" && \
4812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4813 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; then
4817 pkg_cv_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4827 if test $pkg_failed = yes; then
4829 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4830 _pkg_short_errors_supported=yes
4832 _pkg_short_errors_supported=no
4834 if test $_pkg_short_errors_supported = yes; then
4835 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
4837 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
4839 # Put the nasty error message in config.log where it belongs
4840 echo "$DPY_X11_PKG_ERRORS" >&5
4842 as_fn_error $? "Package requirements (x11) were not met:
4846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4847 installed software in a non-standard prefix.
4849 Alternatively, you may set the environment variables DPY_X11_CFLAGS
4850 and DPY_X11_LIBS to avoid the need to call pkg-config.
4851 See the pkg-config man page for more details.
4853 elif test $pkg_failed = untried; then
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4857 is in your PATH or set the PKG_CONFIG environment variable to the full
4860 Alternatively, you may set the environment variables DPY_X11_CFLAGS
4861 and DPY_X11_LIBS to avoid the need to call pkg-config.
4862 See the pkg-config man page for more details.
4864 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4865 See \`config.log' for more details" "$LINENO" 5; }
4867 DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS
4868 DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4870 $as_echo "yes" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5
4877 $as_echo_n "checking for DPY_XEXT... " >&6; }
4879 if test -n "$DPY_XEXT_CFLAGS"; then
4880 pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS"
4881 elif test -n "$PKG_CONFIG"; then
4882 if test -n "$PKG_CONFIG" && \
4883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4884 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887 test $ac_status = 0; }; then
4888 pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
4895 if test -n "$DPY_XEXT_LIBS"; then
4896 pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS"
4897 elif test -n "$PKG_CONFIG"; then
4898 if test -n "$PKG_CONFIG" && \
4899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4900 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; }; then
4904 pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
4914 if test $pkg_failed = yes; then
4916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4917 _pkg_short_errors_supported=yes
4919 _pkg_short_errors_supported=no
4921 if test $_pkg_short_errors_supported = yes; then
4922 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
4924 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
4926 # Put the nasty error message in config.log where it belongs
4927 echo "$DPY_XEXT_PKG_ERRORS" >&5
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4932 elif test $pkg_failed = untried; then
4935 DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS
4936 DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938 $as_echo "yes" >&6; }
4939 SAVE_CPPFLAGS="$CPPFLAGS"
4940 CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS"
4941 for ac_header in X11/extensions/multibuf.h X11/extensions/XShm.h
4943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
4946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4947 cat >>confdefs.h <<_ACEOF
4948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955 CPPFLAGS="$SAVE_CPPFLAGS"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5
4961 $as_echo_n "checking for DPY_XKB... " >&6; }
4963 if test -n "$DPY_XKB_CFLAGS"; then
4964 pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS"
4965 elif test -n "$PKG_CONFIG"; then
4966 if test -n "$PKG_CONFIG" && \
4967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4968 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4971 test $ac_status = 0; }; then
4972 pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
4979 if test -n "$DPY_XKB_LIBS"; then
4980 pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS"
4981 elif test -n "$PKG_CONFIG"; then
4982 if test -n "$PKG_CONFIG" && \
4983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4984 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }; then
4988 pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4998 if test $pkg_failed = yes; then
5000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5001 _pkg_short_errors_supported=yes
5003 _pkg_short_errors_supported=no
5005 if test $_pkg_short_errors_supported = yes; then
5006 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5008 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5010 # Put the nasty error message in config.log where it belongs
5011 echo "$DPY_XKB_PKG_ERRORS" >&5
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5016 elif test $pkg_failed = untried; then
5019 DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS
5020 DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022 $as_echo "yes" >&6; }
5023 SAVE_CPPFLAGS="$CPPFLAGS"
5024 CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS"
5025 for ac_header in X11/extensions/XKB.h X11/XKBlib.h
5027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5031 cat >>confdefs.h <<_ACEOF
5032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 CPPFLAGS="$SAVE_CPPFLAGS"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5
5045 $as_echo_n "checking for DPY_XF86VIDMODE... " >&6; }
5047 if test -n "$DPY_XF86VIDMODE_CFLAGS"; then
5048 pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS"
5049 elif test -n "$PKG_CONFIG"; then
5050 if test -n "$PKG_CONFIG" && \
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
5052 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then
5056 pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
5063 if test -n "$DPY_XF86VIDMODE_LIBS"; then
5064 pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS"
5065 elif test -n "$PKG_CONFIG"; then
5066 if test -n "$PKG_CONFIG" && \
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
5068 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
5070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then
5072 pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
5082 if test $pkg_failed = yes; then
5084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5085 _pkg_short_errors_supported=yes
5087 _pkg_short_errors_supported=no
5089 if test $_pkg_short_errors_supported = yes; then
5090 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm" 2>&1`
5092 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm" 2>&1`
5094 # Put the nasty error message in config.log where it belongs
5095 echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5100 elif test $pkg_failed = untried; then
5103 DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS
5104 DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5106 $as_echo "yes" >&6; }
5107 SAVE_CPPFLAGS="$CPPFLAGS"
5108 CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS"
5109 for ac_header in X11/extensions/xf86vmode.h X11/extensions/xf86vmstr.h X11/extensions/xf86vmproto.h
5111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5115 cat >>confdefs.h <<_ACEOF
5116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5123 CPPFLAGS="$SAVE_CPPFLAGS"
5127 # Check whether --with-dga was given.
5128 if test "${with_dga+set}" = set; then :
5129 withval=$with_dga; USE_DGA="$withval"
5134 if test "x$USE_DGA" != "xno" ; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5
5138 $as_echo_n "checking for DPY_XF86DGA... " >&6; }
5140 if test -n "$DPY_XF86DGA_CFLAGS"; then
5141 pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS"
5142 elif test -n "$PKG_CONFIG"; then
5143 if test -n "$PKG_CONFIG" && \
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
5145 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
5147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5148 test $ac_status = 0; }; then
5149 pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
5156 if test -n "$DPY_XF86DGA_LIBS"; then
5157 pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS"
5158 elif test -n "$PKG_CONFIG"; then
5159 if test -n "$PKG_CONFIG" && \
5160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
5161 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; }; then
5165 pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
5175 if test $pkg_failed = yes; then
5177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5178 _pkg_short_errors_supported=yes
5180 _pkg_short_errors_supported=no
5182 if test $_pkg_short_errors_supported = yes; then
5183 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86dga" 2>&1`
5185 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86dga" 2>&1`
5187 # Put the nasty error message in config.log where it belongs
5188 echo "$DPY_XF86DGA_PKG_ERRORS" >&5
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5193 elif test $pkg_failed = untried; then
5196 DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS
5197 DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199 $as_echo "yes" >&6; }
5200 SAVE_CPPFLAGS="$CPPFLAGS"
5201 CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS"
5202 for ac_header in X11/extensions/Xxf86dga.h X11/extensions/xf86dgaproto.h X11/extensions/xf86dga.h X11/extensions/xf86dgastr.h
5204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5206 #include <X11/Xproto.h>
5208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5209 cat >>confdefs.h <<_ACEOF
5210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5217 CPPFLAGS="$SAVE_CPPFLAGS"
5225 # Check whether --with-xf86misc was given.
5226 if test "${with_xf86misc+set}" = set; then :
5227 withval=$with_xf86misc; USE_XF86MISC="$withval"
5232 if test "x$USE_XF86MISC" != "xno" ; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5
5236 $as_echo_n "checking for DPY_XF86MISC... " >&6; }
5238 if test -n "$DPY_XF86MISC_CFLAGS"; then
5239 pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS"
5240 elif test -n "$PKG_CONFIG"; then
5241 if test -n "$PKG_CONFIG" && \
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5243 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; then
5247 pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
5254 if test -n "$DPY_XF86MISC_LIBS"; then
5255 pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS"
5256 elif test -n "$PKG_CONFIG"; then
5257 if test -n "$PKG_CONFIG" && \
5258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5259 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }; then
5263 pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
5273 if test $pkg_failed = yes; then
5275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5276 _pkg_short_errors_supported=yes
5278 _pkg_short_errors_supported=no
5280 if test $_pkg_short_errors_supported = yes; then
5281 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
5283 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
5285 # Put the nasty error message in config.log where it belongs
5286 echo "$DPY_XF86MISC_PKG_ERRORS" >&5
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5291 elif test $pkg_failed = untried; then
5294 DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS
5295 DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297 $as_echo "yes" >&6; }
5298 SAVE_CPPFLAGS="$CPPFLAGS"
5299 CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS"
5300 for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
5302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5304 #include <X11/Xproto.h>
5306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5307 cat >>confdefs.h <<_ACEOF
5308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5315 CPPFLAGS="$SAVE_CPPFLAGS"
5318 echo "without xf86misc"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5
5324 $as_echo_n "checking for DPY_XINPUT... " >&6; }
5326 if test -n "$DPY_XINPUT_CFLAGS"; then
5327 pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS"
5328 elif test -n "$PKG_CONFIG"; then
5329 if test -n "$PKG_CONFIG" && \
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
5331 ($PKG_CONFIG --exists --print-errors "xi") 2>&5
5333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5334 test $ac_status = 0; }; then
5335 pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null`
5342 if test -n "$DPY_XINPUT_LIBS"; then
5343 pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS"
5344 elif test -n "$PKG_CONFIG"; then
5345 if test -n "$PKG_CONFIG" && \
5346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
5347 ($PKG_CONFIG --exists --print-errors "xi") 2>&5
5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350 test $ac_status = 0; }; then
5351 pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null`
5361 if test $pkg_failed = yes; then
5363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5364 _pkg_short_errors_supported=yes
5366 _pkg_short_errors_supported=no
5368 if test $_pkg_short_errors_supported = yes; then
5369 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi" 2>&1`
5371 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi" 2>&1`
5373 # Put the nasty error message in config.log where it belongs
5374 echo "$DPY_XINPUT_PKG_ERRORS" >&5
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5379 elif test $pkg_failed = untried; then
5382 DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS
5383 DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386 SAVE_CPPFLAGS="$CPPFLAGS"
5387 CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS"
5388 for ac_header in X11/extensions/XInput.h
5390 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
5392 if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_X11_EXTENSIONS_XINPUT_H 1
5401 CPPFLAGS="$SAVE_CPPFLAGS"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5
5407 $as_echo_n "checking for DPY_XRENDER... " >&6; }
5409 if test -n "$DPY_XRENDER_CFLAGS"; then
5410 pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS"
5411 elif test -n "$PKG_CONFIG"; then
5412 if test -n "$PKG_CONFIG" && \
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
5414 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
5416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }; then
5418 pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
5425 if test -n "$DPY_XRENDER_LIBS"; then
5426 pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS"
5427 elif test -n "$PKG_CONFIG"; then
5428 if test -n "$PKG_CONFIG" && \
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
5430 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
5432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433 test $ac_status = 0; }; then
5434 pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
5444 if test $pkg_failed = yes; then
5446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5447 _pkg_short_errors_supported=yes
5449 _pkg_short_errors_supported=no
5451 if test $_pkg_short_errors_supported = yes; then
5452 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1`
5454 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1`
5456 # Put the nasty error message in config.log where it belongs
5457 echo "$DPY_XRENDER_PKG_ERRORS" >&5
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5462 elif test $pkg_failed = untried; then
5465 DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS
5466 DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469 SAVE_CPPFLAGS="$CPPFLAGS"
5470 CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS"
5471 for ac_header in X11/extensions/Xrender.h
5473 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
5475 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_X11_EXTENSIONS_XRENDER_H 1
5484 CPPFLAGS="$SAVE_CPPFLAGS"
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5
5490 $as_echo_n "checking for DPY_XCOMPOSITE... " >&6; }
5492 if test -n "$DPY_XCOMPOSITE_CFLAGS"; then
5493 pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS"
5494 elif test -n "$PKG_CONFIG"; then
5495 if test -n "$PKG_CONFIG" && \
5496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
5497 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }; then
5501 pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null`
5508 if test -n "$DPY_XCOMPOSITE_LIBS"; then
5509 pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS"
5510 elif test -n "$PKG_CONFIG"; then
5511 if test -n "$PKG_CONFIG" && \
5512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5
5513 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5
5515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5516 test $ac_status = 0; }; then
5517 pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null`
5527 if test $pkg_failed = yes; then
5529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5530 _pkg_short_errors_supported=yes
5532 _pkg_short_errors_supported=no
5534 if test $_pkg_short_errors_supported = yes; then
5535 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcomposite" 2>&1`
5537 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcomposite" 2>&1`
5539 # Put the nasty error message in config.log where it belongs
5540 echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 elif test $pkg_failed = untried; then
5548 DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS
5549 DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5552 SAVE_CPPFLAGS="$CPPFLAGS"
5553 CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS"
5554 for ac_header in X11/extensions/Xcomposite.h
5556 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h>
5558 if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then :
5559 cat >>confdefs.h <<_ACEOF
5560 #define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1
5567 CPPFLAGS="$SAVE_CPPFLAGS"
5571 # Check whether --with-xinerama was given.
5572 if test "${with_xinerama+set}" = set; then :
5573 withval=$with_xinerama; USE_XINERAMA="$withval"
5578 if test "x$USE_XINERAMA" != "xno" ; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5
5582 $as_echo_n "checking for DPY_XINERAMA... " >&6; }
5584 if test -n "$DPY_XINERAMA_CFLAGS"; then
5585 pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS"
5586 elif test -n "$PKG_CONFIG"; then
5587 if test -n "$PKG_CONFIG" && \
5588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
5589 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5592 test $ac_status = 0; }; then
5593 pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
5600 if test -n "$DPY_XINERAMA_LIBS"; then
5601 pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS"
5602 elif test -n "$PKG_CONFIG"; then
5603 if test -n "$PKG_CONFIG" && \
5604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
5605 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
5607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5608 test $ac_status = 0; }; then
5609 pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
5619 if test $pkg_failed = yes; then
5621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5622 _pkg_short_errors_supported=yes
5624 _pkg_short_errors_supported=no
5626 if test $_pkg_short_errors_supported = yes; then
5627 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xinerama" 2>&1`
5629 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xinerama" 2>&1`
5631 # Put the nasty error message in config.log where it belongs
5632 echo "$DPY_XINERAMA_PKG_ERRORS" >&5
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 elif test $pkg_failed = untried; then
5640 DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS
5641 DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5644 SAVE_CPPFLAGS="$CPPFLAGS"
5645 CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS"
5646 for ac_header in X11/extensions/Xinerama.h
5648 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
5650 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
5651 cat >>confdefs.h <<_ACEOF
5652 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
5659 CPPFLAGS="$SAVE_CPPFLAGS"
5662 echo "without xinerama"
5666 # Check whether --with-dmx was given.
5667 if test "${with_dmx+set}" = set; then :
5668 withval=$with_dmx; USE_DMX="$withval"
5673 if test "x$USE_DMX" != "xno" ; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5
5677 $as_echo_n "checking for DPY_DMX... " >&6; }
5679 if test -n "$DPY_DMX_CFLAGS"; then
5680 pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS"
5681 elif test -n "$PKG_CONFIG"; then
5682 if test -n "$PKG_CONFIG" && \
5683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
5684 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; then
5688 pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null`
5695 if test -n "$DPY_DMX_LIBS"; then
5696 pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS"
5697 elif test -n "$PKG_CONFIG"; then
5698 if test -n "$PKG_CONFIG" && \
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5
5700 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }; then
5704 pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null`
5714 if test $pkg_failed = yes; then
5716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5717 _pkg_short_errors_supported=yes
5719 _pkg_short_errors_supported=no
5721 if test $_pkg_short_errors_supported = yes; then
5722 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dmx" 2>&1`
5724 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors "dmx" 2>&1`
5726 # Put the nasty error message in config.log where it belongs
5727 echo "$DPY_DMX_PKG_ERRORS" >&5
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5732 elif test $pkg_failed = untried; then
5735 DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS
5736 DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 SAVE_CPPFLAGS="$CPPFLAGS"
5740 CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS"
5741 for ac_header in X11/extensions/dmxext.h
5743 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h>
5745 if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_X11_EXTENSIONS_DMXEXT_H 1
5754 CPPFLAGS="$SAVE_CPPFLAGS"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5
5763 $as_echo_n "checking for DPY_XTST... " >&6; }
5765 if test -n "$DPY_XTST_CFLAGS"; then
5766 pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS"
5767 elif test -n "$PKG_CONFIG"; then
5768 if test -n "$PKG_CONFIG" && \
5769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
5770 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }; then
5774 pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null`
5781 if test -n "$DPY_XTST_LIBS"; then
5782 pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS"
5783 elif test -n "$PKG_CONFIG"; then
5784 if test -n "$PKG_CONFIG" && \
5785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5
5786 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }; then
5790 pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null`
5800 if test $pkg_failed = yes; then
5802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5803 _pkg_short_errors_supported=yes
5805 _pkg_short_errors_supported=no
5807 if test $_pkg_short_errors_supported = yes; then
5808 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst" 2>&1`
5810 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst" 2>&1`
5812 # Put the nasty error message in config.log where it belongs
5813 echo "$DPY_XTST_PKG_ERRORS" >&5
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5818 elif test $pkg_failed = untried; then
5821 DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS
5822 DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 $as_echo "yes" >&6; }
5825 SAVE_CPPFLAGS="$CPPFLAGS"
5826 CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS"
5827 for ac_header in X11/extensions/record.h
5829 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
5831 if test "x$ac_cv_header_X11_extensions_record_h" = xyes; then :
5832 cat >>confdefs.h <<_ACEOF
5833 #define HAVE_X11_EXTENSIONS_RECORD_H 1
5840 CPPFLAGS="$SAVE_CPPFLAGS"
5848 # Check whether --with-lint was given.
5849 if test "${with_lint+set}" = set; then :
5850 withval=$with_lint; use_lint=$withval
5856 # Obtain platform specific info like program name and options
5857 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
5859 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
5861 lint_options="-badflag"
5863 *freebsd* | *netbsd*)
5865 lint_options="-u -b"
5869 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
5873 # Test for the presence of the program (either guessed by the code or spelled out by the user)
5874 if test "x$use_lint" = x"yes" ; then
5875 # Extract the first word of "$lint_name", so it can be a program name with args.
5876 set dummy $lint_name; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_path_LINT+:} false; then :
5880 $as_echo_n "(cached) " >&6
5884 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 LINT=$ac_cv_path_LINT
5906 if test -n "$LINT"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
5908 $as_echo "$LINT" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5915 if test "x$LINT" = "x"; then
5916 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
5918 elif test "x$use_lint" = x"no" ; then
5919 if test "x$LINT" != "x"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
5921 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
5924 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
5927 # User supplied flags override default flags
5928 if test "x$LINT_FLAGS" != "x"; then
5929 lint_options=$LINT_FLAGS
5932 LINT_FLAGS=$lint_options
5934 if test "x$LINT" != x; then
5945 ac_config_files="$ac_config_files Makefile"
5947 cat >confcache <<\_ACEOF
5948 # This file is a shell script that caches the results of configure
5949 # tests run on this system so they can be shared between configure
5950 # scripts and configure runs, see configure's option --config-cache.
5951 # It is not useful on other systems. If it contains results you don't
5952 # want to keep, you may remove or edit it.
5954 # config.status only pays attention to the cache file if you give it
5955 # the --recheck option to rerun configure.
5957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5963 # The following way of writing the cache mishandles newlines in values,
5964 # but we know of no workaround that is simple, portable, and efficient.
5965 # So, we kill variables containing newlines.
5966 # Ultrix sh set writes to stderr and can't be redirected directly,
5967 # and sets the high bit in the cache file unless we assign to the vars.
5969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5970 eval ac_val=\$$ac_var
5974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5978 _ | IFS | as_nl) ;; #(
5979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5980 *) { eval $ac_var=; unset $ac_var;} ;;
5986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5987 *${as_nl}ac_space=\ *)
5988 # `set' does not quote correctly, so add quotes: double-quote
5989 # substitution turns \\\\ into \\, and sed turns \\ into \.
5992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5995 # `set' quotes correctly as required by POSIX, so do not add quotes.
5996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6009 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6010 if test -w "$cache_file"; then
6011 if test "x$cache_file" != "x/dev/null"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6013 $as_echo "$as_me: updating cache $cache_file" >&6;}
6014 if test ! -f "$cache_file" || test -h "$cache_file"; then
6015 cat confcache >"$cache_file"
6017 case $cache_file in #(
6019 mv -f confcache "$cache_file"$$ &&
6020 mv -f "$cache_file"$$ "$cache_file" ;; #(
6022 mv -f confcache "$cache_file" ;;
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6034 # Let make expand exec_prefix.
6035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6037 DEFS=-DHAVE_CONFIG_H
6042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6043 # 1. Remove the extension, and $U if already installed.
6044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6047 # will be set to the directory where LIBOBJS objects are built.
6048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6053 LTLIBOBJS=$ac_ltlibobjs
6056 if test -n "$EXEEXT"; then
6058 am__EXEEXT_FALSE='#'
6064 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6065 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6068 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6069 as_fn_error $? "conditional \"AMDEP\" was never defined.
6070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6076 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
6077 as_fn_error $? "conditional \"LINT\" was never defined.
6078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6081 : "${CONFIG_STATUS=./config.status}"
6083 ac_clean_files_save=$ac_clean_files
6084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6090 # Generated by $as_me.
6091 # Run this file to recreate the current configuration.
6092 # Compiler output produced by configure, useful for debugging
6093 # configure, is in config.log if it exists.
6099 SHELL=\${CONFIG_SHELL-$SHELL}
6102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6103 ## -------------------- ##
6104 ## M4sh Initialization. ##
6105 ## -------------------- ##
6107 # Be more Bourne compatible
6108 DUALCASE=1; export DUALCASE # for MKS sh
6109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6113 # is contrary to our usage. Disable this feature.
6114 alias -g '${1+"$@"}'='"$@"'
6115 setopt NO_GLOB_SUBST
6117 case `(set -o) 2>/dev/null` in #(
6129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6130 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6133 # Prefer a ksh shell builtin over an external printf program on Solaris,
6134 # but without wasting forks for bash or zsh.
6135 if test -z "$BASH_VERSION$ZSH_VERSION" \
6136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6137 as_echo='print -r --'
6138 as_echo_n='print -rn --'
6139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6140 as_echo='printf %s\n'
6141 as_echo_n='printf %s'
6143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6144 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6145 as_echo_n='/usr/ucb/echo -n'
6147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6148 as_echo_n_body='eval
6152 expr "X$arg" : "X\\(.*\\)$as_nl";
6153 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6155 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6157 export as_echo_n_body
6158 as_echo_n='sh -c $as_echo_n_body as_echo'
6161 as_echo='sh -c $as_echo_body as_echo'
6164 # The user is always right.
6165 if test "${PATH_SEPARATOR+set}" != set; then
6167 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6168 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6175 # We need space, tab and new line, in precisely that order. Quoting is
6176 # there to prevent editors from complaining about space-tab.
6177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6178 # splitting by setting IFS to empty value.)
6181 # Find who we are. Look in the path if we contain no directory separator.
6184 *[\\/]* ) as_myself=$0 ;;
6185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6196 # We did not find ourselves, most probably we were run as `sh COMMAND'
6197 # in which case we are not to be found in the path.
6198 if test "x$as_myself" = x; then
6201 if test ! -f "$as_myself"; then
6202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6206 # Unset variables that we do not need and which cause bugs (e.g. in
6207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6208 # suppresses any "Segmentation fault" message there. '((' could
6209 # trigger a bug in pdksh 5.2.14.
6210 for as_var in BASH_ENV ENV MAIL MAILPATH
6211 do eval test x\${$as_var+set} = xset \
6212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6228 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6229 # ----------------------------------------
6230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6232 # script with STATUS, using 1 if that was 0.
6235 as_status=$1; test $as_status -eq 0 && as_status=1
6237 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6240 $as_echo "$as_me: error: $2" >&2
6241 as_fn_exit $as_status
6245 # as_fn_set_status STATUS
6246 # -----------------------
6247 # Set $? to STATUS, without forking.
6251 } # as_fn_set_status
6255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6265 # Portably unset VAR.
6268 { eval $1=; unset $1;}
6270 as_unset=as_fn_unset
6271 # as_fn_append VAR VALUE
6272 # ----------------------
6273 # Append the text in VALUE to the end of the definition contained in VAR. Take
6274 # advantage of any shell optimizations that allow amortized linear growth over
6275 # repeated appends, instead of the typical quadratic growth present in naive
6277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6278 eval 'as_fn_append ()
6289 # as_fn_arith ARG...
6290 # ------------------
6291 # Perform arithmetic evaluation on the ARGs, and store the result in the
6292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6293 # must be portable across $(()) and expr.
6294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6295 eval 'as_fn_arith ()
6302 as_val=`expr "$@" || test $? -eq 1`
6307 if expr a : '\(a\)' >/dev/null 2>&1 &&
6308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6315 as_basename=basename
6320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6326 as_me=`$as_basename -- "$0" ||
6327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6328 X"$0" : 'X\(//\)$' \| \
6329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6331 sed '/^.*\/\([^/][^/]*\)\/*$/{
6345 # Avoid depending upon Character Ranges.
6346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6349 as_cr_digits='0123456789'
6350 as_cr_alnum=$as_cr_Letters$as_cr_digits
6352 ECHO_C= ECHO_N= ECHO_T=
6353 case `echo -n x` in #(((((
6355 case `echo 'xy\c'` in
6356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6365 rm -f conf$$ conf$$.exe conf$$.file
6366 if test -d conf$$.dir; then
6367 rm -f conf$$.dir/conf$$.file
6370 mkdir conf$$.dir 2>/dev/null
6372 if (echo >conf$$.file) 2>/dev/null; then
6373 if ln -s conf$$.file conf$$ 2>/dev/null; then
6375 # ... but there are two gotchas:
6376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6378 # In both cases, we have to default to `cp -p'.
6379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6381 elif ln conf$$.file conf$$ 2>/dev/null; then
6389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6390 rmdir conf$$.dir 2>/dev/null
6395 # Create "$as_dir" as a directory, including parents if necessary.
6400 -*) as_dir=./$as_dir;;
6402 test -d "$as_dir" || eval $as_mkdir_p || {
6406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6407 *) as_qdir=$as_dir;;
6409 as_dirs="'$as_qdir' $as_dirs"
6410 as_dir=`$as_dirname -- "$as_dir" ||
6411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412 X"$as_dir" : 'X\(//\)[^/]' \| \
6413 X"$as_dir" : 'X\(//\)$' \| \
6414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6415 $as_echo X"$as_dir" |
6416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6433 test -d "$as_dir" && break
6435 test -z "$as_dirs" || eval "mkdir $as_dirs"
6436 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6440 if mkdir -p . 2>/dev/null; then
6441 as_mkdir_p='mkdir -p "$as_dir"'
6443 test -d ./-p && rmdir ./-p
6447 if test -x / >/dev/null 2>&1; then
6450 if ls -dL / >/dev/null 2>&1; then
6457 if test -d "$1"; then
6463 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6464 ???[sx]*):;;*)false;;esac;fi
6468 as_executable_p=$as_test_x
6470 # Sed expression to map a string onto a valid CPP name.
6471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6473 # Sed expression to map a string onto a valid variable name.
6474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6478 ## ----------------------------------- ##
6479 ## Main body of $CONFIG_STATUS script. ##
6480 ## ----------------------------------- ##
6482 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6485 # Save the log message, to keep $0 and so on meaningful, and to
6486 # report actual input values of CONFIG_FILES etc. instead of their
6487 # values after options handling.
6489 This file was extended by xdpyinfo $as_me 1.2.0, which was
6490 generated by GNU Autoconf 2.68. Invocation command line was
6492 CONFIG_FILES = $CONFIG_FILES
6493 CONFIG_HEADERS = $CONFIG_HEADERS
6494 CONFIG_LINKS = $CONFIG_LINKS
6495 CONFIG_COMMANDS = $CONFIG_COMMANDS
6498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6503 case $ac_config_files in *"
6504 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6507 case $ac_config_headers in *"
6508 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6513 # Files that config.status was made for.
6514 config_files="$ac_config_files"
6515 config_headers="$ac_config_headers"
6516 config_commands="$ac_config_commands"
6520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6522 \`$as_me' instantiates files and other configuration actions
6523 from templates according to the current configuration. Unless the files
6524 and actions are specified as TAGs, all are instantiated by default.
6526 Usage: $0 [OPTION]... [TAG]...
6528 -h, --help print this help, then exit
6529 -V, --version print version number and configuration settings, then exit
6530 --config print configuration, then exit
6531 -q, --quiet, --silent
6532 do not print progress messages
6533 -d, --debug don't remove temporary files
6534 --recheck update $as_me by reconfiguring in the same conditions
6535 --file=FILE[:TEMPLATE]
6536 instantiate the configuration file FILE
6537 --header=FILE[:TEMPLATE]
6538 instantiate the configuration header FILE
6540 Configuration files:
6543 Configuration headers:
6546 Configuration commands:
6549 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
6552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6553 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6555 xdpyinfo config.status 1.2.0
6556 configured by $0, generated by GNU Autoconf 2.68,
6557 with options \\"\$ac_cs_config\\"
6559 Copyright (C) 2010 Free Software Foundation, Inc.
6560 This config.status script is free software; the Free Software Foundation
6561 gives unlimited permission to copy, distribute and modify it."
6568 test -n "\$AWK" || AWK=awk
6571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6572 # The default lists apply if the user does not specify any file.
6578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6583 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6595 # Handling of the options.
6596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6598 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6599 $as_echo "$ac_cs_version"; exit ;;
6600 --config | --confi | --conf | --con | --co | --c )
6601 $as_echo "$ac_cs_config"; exit ;;
6602 --debug | --debu | --deb | --de | --d | -d )
6604 --file | --fil | --fi | --f )
6607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6608 '') as_fn_error $? "missing file argument" ;;
6610 as_fn_append CONFIG_FILES " '$ac_optarg'"
6611 ac_need_defaults=false;;
6612 --header | --heade | --head | --hea )
6615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6617 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6618 ac_need_defaults=false;;
6620 # Conflict between --help and --header
6621 as_fn_error $? "ambiguous option: \`$1'
6622 Try \`$0 --help' for more information.";;
6623 --help | --hel | -h )
6624 $as_echo "$ac_cs_usage"; exit ;;
6625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6630 -*) as_fn_error $? "unrecognized option: \`$1'
6631 Try \`$0 --help' for more information." ;;
6633 *) as_fn_append ac_config_targets " $1"
6634 ac_need_defaults=false ;;
6640 ac_configure_extra_args=
6642 if $ac_cs_silent; then
6644 ac_configure_extra_args="$ac_configure_extra_args --silent"
6648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6649 if \$ac_cs_recheck; then
6650 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6652 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6653 CONFIG_SHELL='$SHELL'
6659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6664 ## Running $as_me. ##
6670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6680 # Handling of arguments.
6681 for ac_config_target in $ac_config_targets
6683 case $ac_config_target in
6684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6685 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6693 # If the user did not use the arguments to specify the items to instantiate,
6694 # then the envvar interface is used. Set only those that are not.
6695 # We use the long form for the default assignment because of an extremely
6696 # bizarre bug on SunOS 4.1.3.
6697 if $ac_need_defaults; then
6698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6703 # Have a temporary directory for convenience. Make it in the build tree
6704 # simply because there is no reason against having it here, and in addition,
6705 # creating and moving files from /tmp can sometimes cause problems.
6706 # Hook for its removal unless debugging.
6707 # Note that there is a small window in which the directory will not be cleaned:
6708 # after its creation but before its name has been assigned to `$tmp'.
6712 trap 'exit_status=$?
6714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6716 trap 'as_fn_exit 1' 1 2 13 15
6718 # Create a (secure) tmp directory for tmp files.
6721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6725 tmp=./conf$$-$RANDOM
6726 (umask 077 && mkdir "$tmp")
6727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6730 # Set up the scripts for CONFIG_FILES section.
6731 # No need to generate them if there are no CONFIG_FILES.
6732 # This happens for instance with `./config.status config.h'.
6733 if test -n "$CONFIG_FILES"; then
6736 ac_cr=`echo X | tr X '\015'`
6737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6738 # But we know of no other shell where ac_cr would be empty at this
6739 # point, so we can use a bashism as a fallback.
6740 if test "x$ac_cr" = x; then
6741 eval ac_cr=\$\'\\r\'
6743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6750 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6755 echo "cat >conf$$subs.awk <<_ACEOF" &&
6756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6762 for ac_last_try in false false false false false :; do
6763 . ./conf$$subs.sh ||
6764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6767 if test $ac_delim_n = $ac_delim_num; then
6769 elif $ac_last_try; then
6770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6778 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6782 s/^/S["/; s/!.*/"]=/
6792 s/\(.\{148\}\)..*/\1/
6794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6806 s/\(.\{148\}\)..*/\1/
6808 s/["\\]/\\&/g; s/^/"/; s/$/"/
6812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6817 ' <conf$$subs.awk | sed '
6822 ' >>$CONFIG_STATUS || ac_write_fail=1
6823 rm -f conf$$subs.awk
6824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6826 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6827 for (key in S) S_is_set[key] = 1
6833 nfields = split(line, field, "@")
6835 len = length(field[1])
6836 for (i = 2; i < nfields; i++) {
6838 keylen = length(key)
6839 if (S_is_set[key]) {
6841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6842 len += length(value) + length(field[++i])
6853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6858 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6862 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6863 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6864 # trailing colons and then remove the whole line if VPATH becomes empty
6865 # (actually we leave an empty line to preserve line numbers).
6866 if test "x$srcdir" = x.; then
6867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6886 fi # test -n "$CONFIG_FILES"
6888 # Set up the scripts for CONFIG_HEADERS section.
6889 # No need to generate them if there are no CONFIG_HEADERS.
6890 # This happens for instance with `./config.status Makefile'.
6891 if test -n "$CONFIG_HEADERS"; then
6892 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6896 # Transform confdefs.h into an awk script `defines.awk', embedded as
6897 # here-document in config.status, that substitutes the proper values into
6898 # config.h.in to produce config.h.
6900 # Create a delimiter string that does not exist in confdefs.h, to ease
6901 # handling of long lines.
6903 for ac_last_try in false false :; do
6904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6905 if test -z "$ac_tt"; then
6907 elif $ac_last_try; then
6908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6914 # For the awk script, D is an array of macro values keyed by name,
6915 # likewise P contains macro parameters if any. Preserve backslash
6916 # newline sequences.
6918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6920 s/.\{148\}/&'"$ac_delim"'/g
6923 s/^[ ]*#[ ]*define[ ][ ]*/ /
6930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6937 D["\1"]=" \3\\\\\\n"\\/p
6939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6944 s/.\{148\}/&'"$ac_delim"'/g
6949 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6952 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6954 ' <confdefs.h | sed '
6955 s/'"$ac_delim"'/"\\\
6956 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6959 for (key in D) D_is_set[key] = 1
6962 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6964 split(line, arg, " ")
6965 if (arg[1] == "#") {
6969 defundef = substr(arg[1], 2)
6972 split(mac1, mac2, "(") #)
6974 prefix = substr(line, 1, index(line, defundef) - 1)
6975 if (D_is_set[macro]) {
6976 # Preserve the white space surrounding the "#".
6977 print prefix "define", macro P[macro] D[macro]
6980 # Replace #undef with comments. This is necessary, for example,
6981 # in the case of _POSIX_SOURCE, which is predefined and required
6982 # on some systems where configure will not decide to define it.
6983 if (defundef == "undef") {
6984 print "/*", prefix defundef, macro, "*/"
6992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6994 fi # test -n "$CONFIG_HEADERS"
6997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7002 :[FHLC]) ac_mode=$ac_tag; continue;;
7004 case $ac_mode$ac_tag in
7006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7007 :[FH]-) ac_tag=-:-;;
7008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7025 -) ac_f="$ac_tmp/stdin";;
7026 *) # Look for the file first in the build tree, then in the source tree
7027 # (if the path is not absolute). The absolute path cannot be DOS-style,
7028 # because $ac_f cannot contain `:'.
7032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7037 as_fn_append ac_file_inputs " '$ac_f'"
7040 # Let's still pretend it is `configure' which instantiates (i.e., don't
7041 # use $as_me), people would be surprised to read:
7042 # /* config.h. Generated by config.status. */
7043 configure_input='Generated from '`
7044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7046 if test x"$ac_file" != x-; then
7047 configure_input="$ac_file. $configure_input"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7049 $as_echo "$as_me: creating $ac_file" >&6;}
7051 # Neutralize special characters interpreted by sed in replacement strings.
7052 case $configure_input in #(
7053 *\&* | *\|* | *\\* )
7054 ac_sed_conf_input=`$as_echo "$configure_input" |
7055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7056 *) ac_sed_conf_input=$configure_input;;
7060 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7066 ac_dir=`$as_dirname -- "$ac_file" ||
7067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7068 X"$ac_file" : 'X\(//\)[^/]' \| \
7069 X"$ac_file" : 'X\(//\)$' \| \
7070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7071 $as_echo X"$ac_file" |
7072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7089 as_dir="$ac_dir"; as_fn_mkdir_p
7093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7096 # A ".." for each directory in $ac_dir_suffix.
7097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7098 case $ac_top_builddir_sub in
7099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7103 ac_abs_top_builddir=$ac_pwd
7104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7105 # for backward compatibility:
7106 ac_top_builddir=$ac_top_build_prefix
7109 .) # We are building in place.
7111 ac_top_srcdir=$ac_top_builddir_sub
7112 ac_abs_top_srcdir=$ac_pwd ;;
7113 [\\/]* | ?:[\\/]* ) # Absolute name.
7114 ac_srcdir=$srcdir$ac_dir_suffix;
7115 ac_top_srcdir=$srcdir
7116 ac_abs_top_srcdir=$srcdir ;;
7118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7119 ac_top_srcdir=$ac_top_build_prefix$srcdir
7120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7137 [\\/$]* | ?:[\\/]* ) ;;
7138 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7143 # If the template does not know about datarootdir, expand it.
7144 # FIXME: This hack should be removed a few years after 2.60.
7145 ac_datarootdir_hack=; ac_datarootdir_seen=
7156 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7157 *datarootdir*) ac_datarootdir_seen=yes;;
7158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7160 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7163 ac_datarootdir_hack='
7164 s&@datadir@&$datadir&g
7165 s&@docdir@&$docdir&g
7166 s&@infodir@&$infodir&g
7167 s&@localedir@&$localedir&g
7168 s&@mandir@&$mandir&g
7169 s&\\\${datarootdir}&$datarootdir&g' ;;
7173 # Neutralize VPATH when `$srcdir' = `.'.
7174 # Shell code in configure.ac might set extrasub.
7175 # FIXME: do we really want to maintain this feature?
7176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7177 ac_sed_extra="$ac_vpsub
7180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7183 s|@configure_input@|$ac_sed_conf_input|;t t
7184 s&@top_builddir@&$ac_top_builddir_sub&;t t
7185 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7186 s&@srcdir@&$ac_srcdir&;t t
7187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7188 s&@top_srcdir@&$ac_top_srcdir&;t t
7189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7190 s&@builddir@&$ac_builddir&;t t
7191 s&@abs_builddir@&$ac_abs_builddir&;t t
7192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7193 s&@INSTALL@&$ac_INSTALL&;t t
7194 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7195 $ac_datarootdir_hack
7197 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7198 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7201 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7203 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7205 which seems to be undefined. Please make sure it is defined" >&5
7206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7207 which seems to be undefined. Please make sure it is defined" >&2;}
7209 rm -f "$ac_tmp/stdin"
7211 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7212 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7220 if test x"$ac_file" != x-; then
7222 $as_echo "/* $configure_input */" \
7223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7224 } >"$ac_tmp/config.h" \
7225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7226 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7231 mv "$ac_tmp/config.h" "$ac_file" \
7232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7235 $as_echo "/* $configure_input */" \
7236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7237 || as_fn_error $? "could not create -" "$LINENO" 5
7239 # Compute "$ac_file"'s index in $config_headers.
7242 for _am_header in $config_headers :; do
7244 $_am_arg | $_am_arg:* )
7247 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7250 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7251 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7252 X"$_am_arg" : 'X\(//\)[^/]' \| \
7253 X"$_am_arg" : 'X\(//\)$' \| \
7254 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7255 $as_echo X"$_am_arg" |
7256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7272 s/.*/./; q'`/stamp-h$_am_stamp_count
7275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7276 $as_echo "$as_me: executing $ac_file commands" >&6;}
7281 case $ac_file$ac_mode in
7282 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7283 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7284 # are listed without --file. Let's play safe and only enable the eval
7285 # if we detect the quoting.
7286 case $CONFIG_FILES in
7287 *\'*) eval set x "$CONFIG_FILES" ;;
7288 *) set x $CONFIG_FILES ;;
7293 # Strip MF so we end up with the name of the file.
7294 mf=`echo "$mf" | sed -e 's/:.*$//'`
7295 # Check whether this is an Automake generated Makefile or not.
7296 # We used to match only the files named `Makefile.in', but
7297 # some people rename them; so instead we look at the file content.
7298 # Grep'ing the first line is not enough: some people post-process
7299 # each Makefile.in and add a new line on top of each file to say so.
7300 # Grep'ing the whole file is not good either: AIX grep has a line
7301 # limit of 2048, but all sed's we know have understand at least 4000.
7302 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7303 dirpart=`$as_dirname -- "$mf" ||
7304 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7305 X"$mf" : 'X\(//\)[^/]' \| \
7306 X"$mf" : 'X\(//\)$' \| \
7307 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7329 # Extract the definition of DEPDIR, am__include, and am__quote
7330 # from the Makefile without running `make'.
7331 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7332 test -z "$DEPDIR" && continue
7333 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7334 test -z "am__include" && continue
7335 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7336 # When using ansi2knr, U may be empty or an underscore; expand it
7337 U=`sed -n 's/^U = //p' < "$mf"`
7338 # Find all dependency output files, they are included files with
7339 # $(DEPDIR) in their names. We invoke sed twice because it is the
7340 # simplest approach to changing $(DEPDIR) to its actual value in the
7342 for file in `sed -n "
7343 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7344 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7345 # Make sure the directory exists.
7346 test -f "$dirpart/$file" && continue
7347 fdir=`$as_dirname -- "$file" ||
7348 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7349 X"$file" : 'X\(//\)[^/]' \| \
7350 X"$file" : 'X\(//\)$' \| \
7351 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7370 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7371 # echo "creating $dirpart/$file"
7372 echo '# dummy' > "$dirpart/$file"
7384 ac_clean_files=$ac_clean_files_save
7386 test $ac_write_fail = 0 ||
7387 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7390 # configure is writing to config.log, and then calls config.status.
7391 # config.status does its own redirection, appending to config.log.
7392 # Unfortunately, on DOS this fails, as config.log is still kept open
7393 # by configure, so config.status won't be able to write to it; its
7394 # output is simply discarded. So we exec the FD to /dev/null,
7395 # effectively closing config.log, so it can be properly (re)opened and
7396 # appended to by config.status. When coming back to configure, we
7397 # need to make the FD available again.
7398 if test "$no_create" != yes; then
7400 ac_config_status_args=
7401 test "$silent" = yes &&
7402 ac_config_status_args="$ac_config_status_args --quiet"
7404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7407 # would make configure fail if this is the last instruction.
7408 $ac_cs_success || as_fn_exit 1
7410 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7412 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}