Added Apoorv Upreti's GSoC2013 work: visual test suite.
See visualtest/README.txt for details.
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sdlvisualtest 0.01.
5 # Report bugs to <apoorvupreti@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir=.
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x; then :
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 *v*x* | *x*v* ) as_opts=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: apoorvupreti@gmail.com about your system, including any
270 $0: error possibly output before this message. Then install
271 $0: a modern shell, or manually run the script under such a
272 $0: shell if you do have one."
278 SHELL=${CONFIG_SHELL-/bin/sh}
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
289 # Portably unset VAR.
292 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # Create "$as_dir" as a directory, including parents if necessary.
321 -*) as_dir=./$as_dir;;
323 test -d "$as_dir" || eval $as_mkdir_p || {
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 test -d "$as_dir" && break
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
400 as_val=`expr "$@" || test $? -eq 1`
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
412 as_status=$1; test $as_status -eq 0 && as_status=1
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
498 # Exit status is that of the last command.
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 elif ln conf$$.file conf$$ 2>/dev/null; then
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
545 test -d ./-p && rmdir ./-p
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570 ac_default_prefix=/usr/local
572 ac_config_libobj_dir=.
579 # Identity of this package.
580 PACKAGE_NAME='sdlvisualtest'
581 PACKAGE_TARNAME='sdlvisualtest'
582 PACKAGE_VERSION='0.01'
583 PACKAGE_STRING='sdlvisualtest 0.01'
584 PACKAGE_BUGREPORT='apoorvupreti@gmail.com'
587 ac_subst_vars='LTLIBOBJS
648 program_transform_name
661 enable_option_checking
667 ac_precious_vars='build_alias
684 # Initialize some variables set by options.
686 ac_init_version=false
687 ac_unrecognized_opts=
689 # The variables have the same names as the options, with
690 # dashes changed to underlines.
698 program_transform_name=s,x,x,
706 # Installation directory options.
707 # These are left unexpanded so users can "make install exec_prefix=/foo"
708 # and all the variables that are supposed to be based on exec_prefix
709 # by default will actually change.
710 # Use braces instead of parens because sh, perl, etc. also accept them.
711 # (The list follows the same order as the GNU Coding Standards.)
712 bindir='${exec_prefix}/bin'
713 sbindir='${exec_prefix}/sbin'
714 libexecdir='${exec_prefix}/libexec'
715 datarootdir='${prefix}/share'
716 datadir='${datarootdir}'
717 sysconfdir='${prefix}/etc'
718 sharedstatedir='${prefix}/com'
719 localstatedir='${prefix}/var'
720 includedir='${prefix}/include'
721 oldincludedir='/usr/include'
722 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
723 infodir='${datarootdir}/info'
728 libdir='${exec_prefix}/lib'
729 localedir='${datarootdir}/locale'
730 mandir='${datarootdir}/man'
736 # If the previous option needs an argument, assign it.
737 if test -n "$ac_prev"; then
738 eval $ac_prev=\$ac_option
744 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749 # Accept the important Cygnus configure options, so we can diagnose typos.
751 case $ac_dashdash$ac_option in
755 -bindir | --bindir | --bindi | --bind | --bin | --bi)
757 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
760 -build | --build | --buil | --bui | --bu)
761 ac_prev=build_alias ;;
762 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763 build_alias=$ac_optarg ;;
765 -cache-file | --cache-file | --cache-fil | --cache-fi \
766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
767 ac_prev=cache_file ;;
768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
770 cache_file=$ac_optarg ;;
773 cache_file=config.cache ;;
775 -datadir | --datadir | --datadi | --datad)
777 -datadir=* | --datadir=* | --datadi=* | --datad=*)
778 datadir=$ac_optarg ;;
780 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
781 | --dataroo | --dataro | --datar)
782 ac_prev=datarootdir ;;
783 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
784 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
785 datarootdir=$ac_optarg ;;
787 -disable-* | --disable-*)
788 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error $? "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';;
801 eval enable_$ac_useropt=no ;;
803 -docdir | --docdir | --docdi | --doc | --do)
805 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813 -enable-* | --enable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error $? "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
827 eval enable_$ac_useropt=\$ac_optarg ;;
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
842 -help | --help | --hel | --he | -h)
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858 htmldir=$ac_optarg ;;
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
872 -libdir | --libdir | --libdi | --libd)
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
884 -localedir | --localedir | --localedi | --localed | --locale)
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 # Obsolete; use --without-fp.
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
963 -psdir | --psdir | --psdi | --psd | --ps)
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 sbindir=$ac_optarg ;;
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 sharedstatedir=$ac_optarg ;;
989 -site | --site | --sit)
991 -site=* | --site=* | --sit=*)
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1018 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid package name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1031 eval with_$ac_useropt=\$ac_optarg ;;
1033 -without-* | --without-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid package name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1047 eval with_$ac_useropt=no ;;
1050 # Obsolete; use --with-x.
1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054 | --x-incl | --x-inc | --x-in | --x-i)
1055 ac_prev=x_includes ;;
1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058 x_includes=$ac_optarg ;;
1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062 ac_prev=x_libraries ;;
1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065 x_libraries=$ac_optarg ;;
1067 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1068 Try \`$0 --help' for more information"
1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 case $ac_envvar in #(
1075 '' | [0-9]* | *[!_$as_cr_alnum]* )
1076 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1078 eval $ac_envvar=\$ac_optarg
1079 export $ac_envvar ;;
1082 # FIXME: should be removed in autoconf 3.0.
1083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1092 if test -n "$ac_prev"; then
1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094 as_fn_error $? "missing argument to $ac_option"
1097 if test -n "$ac_unrecognized_opts"; then
1098 case $enable_option_checking in
1100 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 # Check all directory arguments for consistency.
1106 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1111 eval ac_val=\$$ac_var
1112 # Remove trailing slashes.
1115 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116 eval $ac_var=\$ac_val;;
1118 # Be sure to have absolute directory names.
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1126 # There might be people who depend on the old broken behavior: `$host'
1127 # used to hold the argument of --host etc.
1128 # FIXME: To remove some day.
1131 target=$target_alias
1133 # FIXME: To remove some day.
1134 if test "x$host_alias" != x; then
1135 if test "x$build_alias" = x; then
1136 cross_compiling=maybe
1137 elif test "x$build_alias" != "x$host_alias"; then
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 as_fn_error $? "working directory cannot be determined"
1152 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153 as_fn_error $? "pwd does not report name of working directory"
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir=`$as_dirname -- "$as_myself" ||
1161 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$as_myself" : 'X\(//\)[^/]' \| \
1163 X"$as_myself" : 'X\(//\)$' \| \
1164 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1165 $as_echo X"$as_myself" |
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1188 ac_srcdir_defaulted=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1194 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1208 for ac_var in $ac_precious_vars; do
1209 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_env_${ac_var}_value=\$${ac_var}
1211 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216 # Report the --help message.
1218 if test "$ac_init_help" = "long"; then
1219 # Omit some internal or obsolete options to make the list less imposing.
1220 # This message is too long to be a string in the A/UX 3.1 sh.
1222 \`configure' configures sdlvisualtest 0.01 to adapt to many kinds of systems.
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE. See below for descriptions of some of the useful variables.
1229 Defaults for the options are specified in brackets.
1232 -h, --help display this help and exit
1233 --help=short display options specific to this package
1234 --help=recursive display the short help of all the included packages
1235 -V, --version display version information and exit
1236 -q, --quiet, --silent do not print \`checking ...' messages
1237 --cache-file=FILE cache test results in FILE [disabled]
1238 -C, --config-cache alias for \`--cache-file=config.cache'
1239 -n, --no-create do not create output files
1240 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1242 Installation directories:
1243 --prefix=PREFIX install architecture-independent files in PREFIX
1244 [$ac_default_prefix]
1245 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1253 For better control, use the options below.
1255 Fine tuning of the installation directories:
1256 --bindir=DIR user executables [EPREFIX/bin]
1257 --sbindir=DIR system admin executables [EPREFIX/sbin]
1258 --libexecdir=DIR program executables [EPREFIX/libexec]
1259 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1260 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1261 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1262 --libdir=DIR object code libraries [EPREFIX/lib]
1263 --includedir=DIR C header files [PREFIX/include]
1264 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1265 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1266 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1267 --infodir=DIR info documentation [DATAROOTDIR/info]
1268 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1269 --mandir=DIR man documentation [DATAROOTDIR/man]
1270 --docdir=DIR documentation root [DATAROOTDIR/doc/sdlvisualtest]
1271 --htmldir=DIR html documentation [DOCDIR]
1272 --dvidir=DIR dvi documentation [DOCDIR]
1273 --pdfdir=DIR pdf documentation [DOCDIR]
1274 --psdir=DIR ps documentation [DOCDIR]
1280 --x-includes=DIR X include files are in DIR
1281 --x-libraries=DIR X library files are in DIR
1284 --build=BUILD configure for building on BUILD [guessed]
1285 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive ) echo "Configuration of sdlvisualtest 0.01:";;
1296 --disable-option-checking ignore unrecognized --enable/--with options
1297 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1298 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1299 --disable-sdltest Do not try to compile and run a test SDL program
1302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1304 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1305 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1306 --with-x use the X Window System
1308 Some influential environment variables:
1309 CC C compiler command
1310 CFLAGS C compiler flags
1311 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1312 nonstandard directory <lib dir>
1313 LIBS libraries to pass to the linker, e.g. -l<library>
1314 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1315 you have headers in a nonstandard directory <include dir>
1316 PKG_CONFIG path to pkg-config utility
1318 directories to add to pkg-config's search path
1320 path overriding pkg-config's built-in search path
1321 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1322 SDL_LIBS linker flags for SDL, overriding pkg-config
1323 XMKMF Path to xmkmf, Makefile generator for X Window System
1326 Use these variables to override the choices made by `configure' or to help
1327 it to find libraries and programs with nonstandard names/locations.
1329 Report bugs to <apoorvupreti@gmail.com>.
1334 if test "$ac_init_help" = "recursive"; then
1335 # If there are subdirs, report their specific --help.
1336 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1337 test -d "$ac_dir" ||
1338 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1359 .) # We are building in place.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1383 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1392 sdlvisualtest configure 0.01
1393 generated by GNU Autoconf 2.69
1395 Copyright (C) 2012 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1402 ## ------------------------ ##
1403 ## Autoconf initialization. ##
1404 ## ------------------------ ##
1406 # ac_fn_c_try_compile LINENO
1407 # --------------------------
1408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1409 ac_fn_c_try_compile ()
1411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1412 rm -f conftest.$ac_objext
1413 if { { ac_try="$ac_compile"
1415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1416 *) ac_try_echo=$ac_try;;
1418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1419 $as_echo "$ac_try_echo"; } >&5
1420 (eval "$ac_compile") 2>conftest.err
1422 if test -s conftest.err; then
1423 grep -v '^ *+' conftest.err >conftest.er1
1424 cat conftest.er1 >&5
1425 mv -f conftest.er1 conftest.err
1427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1428 test $ac_status = 0; } && {
1429 test -z "$ac_c_werror_flag" ||
1430 test ! -s conftest.err
1431 } && test -s conftest.$ac_objext; then :
1434 $as_echo "$as_me: failed program was:" >&5
1435 sed 's/^/| /' conftest.$ac_ext >&5
1439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1440 as_fn_set_status $ac_retval
1442 } # ac_fn_c_try_compile
1444 # ac_fn_c_try_run LINENO
1445 # ----------------------
1446 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1447 # that executables *can* be run.
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 if { { ac_try="$ac_link"
1453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454 *) ac_try_echo=$ac_try;;
1456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_link") 2>&5
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1462 { { case "(($ac_try" in
1463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464 *) ac_try_echo=$ac_try;;
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468 (eval "$ac_try") 2>&5
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; }; }; then :
1474 $as_echo "$as_me: program exited with status $ac_status" >&5
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1478 ac_retval=$ac_status
1480 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status $ac_retval
1486 # ac_fn_c_try_link LINENO
1487 # -----------------------
1488 # Try to link conftest.$ac_ext, and return whether this succeeded.
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext conftest$ac_exeext
1493 if { { ac_try="$ac_link"
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_link") 2>conftest.err
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest$ac_exeext && {
1512 test "$cross_compiling" = yes ||
1513 test -x conftest$ac_exeext
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1523 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1524 # interfere with the next link command; also delete a directory that is
1525 # left behind by Apple's compiler. We do this before executing the actions.
1526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1530 } # ac_fn_c_try_link
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } > conftest.i && {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by sdlvisualtest $as_me 0.01, which was
1573 generated by GNU Autoconf 2.69. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 $as_echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1649 as_fn_append ac_configure_args1 " '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 as_fn_append ac_configure_args " '$ac_arg'"
1670 { ac_configure_args0=; unset ac_configure_args0;}
1671 { ac_configure_args1=; unset ac_configure_args1;}
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1683 $as_echo "## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##"
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1694 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1695 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1698 _ | IFS | as_nl) ;; #(
1699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1700 *) { eval $ac_var=; unset $ac_var;} ;;
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 $as_echo "## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##"
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 $as_echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1734 $as_echo "## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##"
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 $as_echo "$ac_var='\''$ac_val'\''"
1749 if test -s confdefs.h; then
1750 $as_echo "## ----------- ##
1757 test "$ac_signal" != 0 &&
1758 $as_echo "$as_me: caught signal $ac_signal"
1759 $as_echo "$as_me: exit $exit_status"
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 $as_echo "/* confdefs.h */" > confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_URL "$PACKAGE_URL"
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer an explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 # We do not want a PATH search for config.site.
1808 case $CONFIG_SITE in #((
1809 -*) ac_site_file1=./$CONFIG_SITE;;
1810 */*) ac_site_file1=$CONFIG_SITE;;
1811 *) ac_site_file1=./$CONFIG_SITE;;
1813 elif test "x$prefix" != xNONE; then
1814 ac_site_file1=$prefix/share/config.site
1815 ac_site_file2=$prefix/etc/config.site
1817 ac_site_file1=$ac_default_prefix/share/config.site
1818 ac_site_file2=$ac_default_prefix/etc/config.site
1820 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1822 test "x$ac_site_file" = xNONE && continue
1823 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1825 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1828 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1830 as_fn_error $? "failed to load site script $ac_site_file
1831 See \`config.log' for more details" "$LINENO" 5; }
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special files
1837 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1838 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1840 $as_echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1848 $as_echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1867 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 # differences in whitespace do not lead to failure.
1873 ac_old_val_w=`echo x $ac_old_val`
1874 ac_new_val_w=`echo x $ac_new_val`
1875 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1877 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 ac_cache_corrupted=:
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1881 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1882 eval $ac_var=\$ac_old_val
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1885 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1887 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1893 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 *) ac_arg=$ac_var=$ac_new_val ;;
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1902 if $ac_cache_corrupted; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1906 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1909 ## -------------------- ##
1910 ## Main body of script. ##
1911 ## -------------------- ##
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922 for ac_dir in $srcdir/../build-scripts; do
1923 if test -f "$ac_dir/install-sh"; then
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 elif test -f "$ac_dir/install.sh"; then
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 elif test -f "$ac_dir/shtool"; then
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1937 if test -z "$ac_aux_dir"; then
1938 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1955 $as_echo_n "checking build system type... " >&6; }
1956 if ${ac_cv_build+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 ac_build_alias=$build_alias
1960 test "x$ac_build_alias" = x &&
1961 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1962 test "x$ac_build_alias" = x &&
1963 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1964 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1965 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1969 $as_echo "$ac_cv_build" >&6; }
1970 case $ac_cv_build in
1972 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1975 ac_save_IFS=$IFS; IFS='-'
1981 # Remember, the first character of IFS is used to create $*,
1982 # except with old shells:
1985 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1989 $as_echo_n "checking host system type... " >&6; }
1990 if ${ac_cv_host+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 if test "x$host_alias" = x; then
1994 ac_cv_host=$ac_cv_build
1996 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1997 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2002 $as_echo "$ac_cv_host" >&6; }
2005 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2008 ac_save_IFS=$IFS; IFS='-'
2014 # Remember, the first character of IFS is used to create $*,
2015 # except with old shells:
2018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2032 $as_echo_n "checking for $ac_word... " >&6; }
2033 if ${ac_cv_prog_CC+:} false; then :
2034 $as_echo_n "(cached) " >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2059 $as_echo "$CC" >&6; }
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2062 $as_echo "no" >&6; }
2067 if test -z "$ac_cv_prog_CC"; then
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2072 $as_echo_n "checking for $ac_word... " >&6; }
2073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2074 $as_echo_n "(cached) " >&6
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CC="gcc"
2087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2099 $as_echo "$ac_ct_CC" >&6; }
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2102 $as_echo "no" >&6; }
2105 if test "x$ac_ct_CC" = x; then
2108 case $cross_compiling:$ac_tool_warned in
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2112 ac_tool_warned=yes ;;
2120 if test -z "$CC"; then
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}cc; ac_word=$2
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2125 $as_echo_n "checking for $ac_word... " >&6; }
2126 if ${ac_cv_prog_CC+:} false; then :
2127 $as_echo_n "(cached) " >&6
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="${ac_tool_prefix}cc"
2140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test -n "$CC"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2152 $as_echo "$CC" >&6; }
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2155 $as_echo "no" >&6; }
2161 if test -z "$CC"; then
2162 # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2165 $as_echo_n "checking for $ac_word... " >&6; }
2166 if ${ac_cv_prog_CC+:} false; then :
2167 $as_echo_n "(cached) " >&6
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181 ac_prog_rejected=yes
2185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 if test $ac_prog_rejected = yes; then
2193 # We found a bogon in the path, so make sure we never use it.
2194 set dummy $ac_cv_prog_CC
2196 if test $# != 0; then
2197 # We chose a different compiler from the bogus one.
2198 # However, it has the same basename, so the bogon will be chosen
2199 # first if we set CC to just the basename; use the full file name.
2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2207 if test -n "$CC"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2209 $as_echo "$CC" >&6; }
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2212 $as_echo "no" >&6; }
2217 if test -z "$CC"; then
2218 if test -n "$ac_tool_prefix"; then
2219 for ac_prog in cl.exe
2221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2224 $as_echo_n "checking for $ac_word... " >&6; }
2225 if ${ac_cv_prog_CC+:} false; then :
2226 $as_echo_n "(cached) " >&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 if test -n "$CC"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2251 $as_echo "$CC" >&6; }
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2254 $as_echo "no" >&6; }
2258 test -n "$CC" && break
2261 if test -z "$CC"; then
2263 for ac_prog in cl.exe
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2270 $as_echo_n "(cached) " >&6
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2295 $as_echo "$ac_ct_CC" >&6; }
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298 $as_echo "no" >&6; }
2302 test -n "$ac_ct_CC" && break
2305 if test "x$ac_ct_CC" = x; then
2308 case $cross_compiling:$ac_tool_warned in
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2312 ac_tool_warned=yes ;;
2321 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 as_fn_error $? "no acceptable C compiler found in \$PATH
2324 See \`config.log' for more details" "$LINENO" 5; }
2326 # Provide some information about the compiler.
2327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2330 for ac_option in --version -v -V -qversion; do
2331 { { ac_try="$ac_compiler $ac_option >&5"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2340 if test -s conftest.err; then
2342 ... rest of stderr output deleted ...
2343 10q' conftest.err >conftest.er1
2344 cat conftest.er1 >&5
2346 rm -f conftest.er1 conftest.err
2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348 test $ac_status = 0; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2362 ac_clean_files_save=$ac_clean_files
2363 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2364 # Try to create an executable without -o first, disregard a.out.
2365 # It will help us diagnose broken compilers, and finding out an intuition
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2368 $as_echo_n "checking whether the C compiler works... " >&6; }
2369 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2371 # The possible output files:
2372 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2375 for ac_file in $ac_files
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2379 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2384 if { { ac_try="$ac_link_default"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_link_default") 2>&5
2393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; }; then :
2395 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2396 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2397 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2398 # so that the user can short-circuit this test for compilers unknown to
2400 for ac_file in $ac_files ''
2402 test -f "$ac_file" || continue
2404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2407 # We found the default executable, but exeext='' is most
2411 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415 # We set ac_cv_exeext here because the later test for it is not
2416 # safe: cross compilers may not add the suffix if given an `-o'
2417 # argument, so we may need to know it at that point already.
2418 # Even if this section looks crufty: it has the advantage of
2425 test "$ac_cv_exeext" = no && ac_cv_exeext=
2430 if test -z "$ac_file"; then :
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error 77 "C compiler cannot create executables
2439 See \`config.log' for more details" "$LINENO" 5; }
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2445 $as_echo_n "checking for C compiler default output file name... " >&6; }
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2447 $as_echo "$ac_file" >&6; }
2448 ac_exeext=$ac_cv_exeext
2450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2451 ac_clean_files=$ac_clean_files_save
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2453 $as_echo_n "checking for suffix of executables... " >&6; }
2454 if { { ac_try="$ac_link"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>&5
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; }; then :
2465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467 # work properly (i.e., refer to `conftest.exe'), while it won't with
2469 for ac_file in conftest.exe conftest conftest.*; do
2470 test -f "$ac_file" || continue
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details" "$LINENO" 5; }
2484 rm -f conftest conftest$ac_cv_exeext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2486 $as_echo "$ac_cv_exeext" >&6; }
2488 rm -f conftest.$ac_ext
2489 EXEEXT=$ac_cv_exeext
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2497 FILE *f = fopen ("conftest.out", "w");
2498 return ferror (f) || fclose (f) != 0;
2504 ac_clean_files="$ac_clean_files conftest.out"
2505 # Check that the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2508 $as_echo_n "checking whether we are cross compiling... " >&6; }
2509 if test "$cross_compiling" != yes; then
2510 { { ac_try="$ac_link"
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_link") 2>&5
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; }
2521 if { ac_try='./conftest$ac_cv_exeext'
2522 { { case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_try") 2>&5
2530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531 test $ac_status = 0; }; }; then
2534 if test "$cross_compiling" = maybe; then
2537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 as_fn_error $? "cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details" "$LINENO" 5; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2546 $as_echo "$cross_compiling" >&6; }
2548 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2549 ac_clean_files=$ac_clean_files_save
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2551 $as_echo_n "checking for suffix of object files... " >&6; }
2552 if ${ac_cv_objext+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2566 rm -f conftest.o conftest.obj
2567 if { { ac_try="$ac_compile"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_compile") 2>&5
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; }; then :
2578 for ac_file in conftest.o conftest.obj conftest.*; do
2579 test -f "$ac_file" || continue;
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2587 $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $? "cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details" "$LINENO" 5; }
2595 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2598 $as_echo "$ac_cv_objext" >&6; }
2599 OBJEXT=$ac_cv_objext
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2602 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2603 if ${ac_cv_c_compiler_gnu+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2620 if ac_fn_c_try_compile "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2630 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2631 if test $ac_compiler_gnu = yes; then
2636 ac_test_CFLAGS=${CFLAGS+set}
2637 ac_save_CFLAGS=$CFLAGS
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2639 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2640 if ${ac_cv_prog_cc_g+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 ac_save_c_werror_flag=$ac_c_werror_flag
2644 ac_c_werror_flag=yes
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h. */
2658 if ac_fn_c_try_compile "$LINENO"; then :
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2673 if ac_fn_c_try_compile "$LINENO"; then :
2676 ac_c_werror_flag=$ac_save_c_werror_flag
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2689 if ac_fn_c_try_compile "$LINENO"; then :
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 ac_c_werror_flag=$ac_save_c_werror_flag
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2700 $as_echo "$ac_cv_prog_cc_g" >&6; }
2701 if test "$ac_test_CFLAGS" = set; then
2702 CFLAGS=$ac_save_CFLAGS
2703 elif test $ac_cv_prog_cc_g = yes; then
2704 if test "$GCC" = yes; then
2710 if test "$GCC" = yes; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2717 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2718 if ${ac_cv_prog_cc_c89+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 ac_cv_prog_cc_c89=no
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2742 s = g (p, va_arg (v,int));
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not '\xHH' hex character constants.
2749 These don't provoke an error unfortunately, instead are silently treated
2750 as 'x'. The following induces an error, until -std is added to get
2751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2752 array size at least. It's necessary to write '\x00'==0 to get something
2753 that's true only with -std. */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757 inside strings and character constants. */
2759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 CC="$ac_save_CC $ac_arg"
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780 ac_cv_prog_cc_c89=$ac_arg
2782 rm -f core conftest.err conftest.$ac_objext
2783 test "x$ac_cv_prog_cc_c89" != "xno" && break
2785 rm -f conftest.$ac_ext
2790 case "x$ac_cv_prog_cc_c89" in
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2793 $as_echo "none needed" >&6; } ;;
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2796 $as_echo "unsupported" >&6; } ;;
2798 CC="$CC $ac_cv_prog_cc_c89"
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2802 if test "x$ac_cv_prog_cc_c89" != xno; then :
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
2816 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
2817 if ${ac_cv_c_const+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2828 /* Ultrix mips cc rejects this sort of thing. */
2829 typedef int charset[2];
2830 const charset cs = { 0, 0 };
2831 /* SunOS 4.1.1 cc rejects this. */
2832 char const *const *pcpcc;
2834 /* NEC SVR4.0.2 mips cc rejects this. */
2835 struct point {int x, y;};
2836 static struct point const zero = {0,0};
2837 /* AIX XL C 1.02.0.0 rejects this.
2838 It does not let you subtract one const X* pointer from another in
2839 an arm of an if-expression whose if-part is not a constant
2841 const char *g = "string";
2842 pcpcc = &g + (g ? g-g : 0);
2843 /* HPUX 7.0 cc rejects these. */
2845 ppc = (char**) pcpcc;
2846 pcpcc = (char const *const *) ppc;
2847 { /* SCO 3.2v4 cc rejects this sort of thing. */
2850 char const *s = 0 ? (char *) 0 : (char const *) 0;
2855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2857 const int *foo = &x[0];
2860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2861 typedef const int *iptr;
2865 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
2866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2867 struct s { int j; const int *ap[3]; } bx;
2868 struct s *b = &bx; b->j = 5;
2870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2874 return !cs[0] && !zero.x;
2881 if ac_fn_c_try_compile "$LINENO"; then :
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
2889 $as_echo "$ac_cv_c_const" >&6; }
2890 if test $ac_cv_c_const = no; then
2892 $as_echo "#define const /**/" >>confdefs.h
2902 *-*-cygwin* | *-*-mingw32*)
2906 EXTRALIB="-lshlwapi"
2907 SYS_GL_LIBS="-lopengl32"
2909 *-*-beos* | *-*-haiku*)
2925 if test x$ac_cv_c_compiler_gnu = xyes; then
2936 # Extract the first word of "osmesa-config", so it can be a program name with args.
2937 set dummy osmesa-config; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 case $OSMESA_CONFIG in
2945 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2967 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2968 if test -n "$OSMESA_CONFIG"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
2970 $as_echo "$OSMESA_CONFIG" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 if test "x$OSMESA_CONFIG" = "xyes"; then
2978 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2979 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2980 CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2981 SYS_GL_LIBS="$OSMESA_LIBS"
2983 SYS_GL_LIBS="-lOSMesa"
2990 SYS_GL_LIBS="-lGLES_CM"
3014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3021 $as_echo_n "(cached) " >&6
3025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3047 if test -n "$PKG_CONFIG"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3049 $as_echo "$PKG_CONFIG" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_path_PKG_CONFIG"; then
3058 ac_pt_PKG_CONFIG=$PKG_CONFIG
3059 # Extract the first word of "pkg-config", so it can be a program name with args.
3060 set dummy pkg-config; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 case $ac_pt_PKG_CONFIG in
3068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3090 if test -n "$ac_pt_PKG_CONFIG"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3092 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3098 if test "x$ac_pt_PKG_CONFIG" = x; then
3101 case $cross_compiling:$ac_tool_warned in
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned=yes ;;
3107 PKG_CONFIG=$ac_pt_PKG_CONFIG
3110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3114 if test -n "$PKG_CONFIG"; then
3115 _pkg_min_version=0.9.0
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3117 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3118 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 $as_echo "yes" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 # Check whether --with-sdl-prefix was given.
3129 if test "${with_sdl_prefix+set}" = set; then :
3130 withval=$with_sdl_prefix; sdl_prefix="$withval"
3136 # Check whether --with-sdl-exec-prefix was given.
3137 if test "${with_sdl_exec_prefix+set}" = set; then :
3138 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
3143 # Check whether --enable-sdltest was given.
3144 if test "${enable_sdltest+set}" = set; then :
3145 enableval=$enable_sdltest;
3151 min_sdl_version=$SDL_VERSION
3153 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
3157 $as_echo_n "checking for SDL... " >&6; }
3159 if test -n "$SDL_CFLAGS"; then
3160 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
3161 elif test -n "$PKG_CONFIG"; then
3162 if test -n "$PKG_CONFIG" && \
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
3164 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then
3168 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
3175 if test -n "$SDL_LIBS"; then
3176 pkg_cv_SDL_LIBS="$SDL_LIBS"
3177 elif test -n "$PKG_CONFIG"; then
3178 if test -n "$PKG_CONFIG" && \
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
3180 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then
3184 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
3194 if test $pkg_failed = yes; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3199 _pkg_short_errors_supported=yes
3201 _pkg_short_errors_supported=no
3203 if test $_pkg_short_errors_supported = yes; then
3204 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1`
3206 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
3208 # Put the nasty error message in config.log where it belongs
3209 echo "$SDL_PKG_ERRORS" >&5
3212 elif test $pkg_failed = untried; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3217 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
3218 SDL_LIBS=$pkg_cv_SDL_LIBS
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3225 if test x$sdl_exec_prefix != x ; then
3226 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
3227 if test x${SDL_CONFIG+set} != xset ; then
3228 SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config
3231 if test x$sdl_prefix != x ; then
3232 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
3233 if test x${SDL_CONFIG+set} != xset ; then
3234 SDL_CONFIG=$sdl_prefix/bin/sdl2-config
3239 if test "x$sdl_pc" = xyes ; then
3241 SDL_CONFIG="pkg-config sdl2"
3243 as_save_PATH="$PATH"
3244 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
3245 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
3247 # Extract the first word of "sdl2-config", so it can be a program name with args.
3248 set dummy sdl2-config; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_path_SDL_CONFIG+:} false; then :
3252 $as_echo_n "(cached) " >&6
3256 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3278 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3279 if test -n "$SDL_CONFIG"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
3281 $as_echo "$SDL_CONFIG" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3288 PATH="$as_save_PATH"
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
3290 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
3293 if test "$SDL_CONFIG" = "no" ; then
3296 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
3297 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
3299 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
3300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3301 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
3302 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3303 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3304 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3305 if test "x$enable_sdltest" = "xyes" ; then
3306 ac_save_CFLAGS="$CFLAGS"
3307 ac_save_CXXFLAGS="$CXXFLAGS"
3308 ac_save_LIBS="$LIBS"
3309 CFLAGS="$CFLAGS $SDL_CFLAGS"
3310 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3311 LIBS="$LIBS $SDL_LIBS"
3313 if test "$cross_compiling" = yes; then :
3314 echo $ac_n "cross compiling; assumed OK... $ac_c"
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3325 my_strdup (char *str)
3331 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3332 strcpy (new_str, str);
3340 int main (int argc, char *argv[])
3342 int major, minor, micro;
3345 /* This hangs on some systems (?)
3346 system ("touch conf.sdltest");
3348 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3350 /* HP/UX 9 (%@#!) writes to sscanf strings */
3351 tmp_version = my_strdup("$min_sdl_version");
3352 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3353 printf("%s, bad version string\n", "$min_sdl_version");
3357 if (($sdl_major_version > major) ||
3358 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3359 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3365 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3366 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
3367 printf("*** best to upgrade to the required version.\n");
3368 printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n");
3369 printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
3370 printf("*** config.cache before re-running configure\n");
3377 if ac_fn_c_try_run "$LINENO"; then :
3382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3383 conftest.$ac_objext conftest.beam conftest.$ac_ext
3386 CFLAGS="$ac_save_CFLAGS"
3387 CXXFLAGS="$ac_save_CXXFLAGS"
3388 LIBS="$ac_save_LIBS"
3391 if test "x$no_sdl" = x ; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3399 if test "x$no_sdl" = x ; then
3402 if test "$SDL_CONFIG" = "no" ; then
3403 echo "*** The sdl2-config script installed by SDL could not be found"
3404 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3405 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3406 echo "*** full path to sdl2-config."
3408 if test -f conf.sdltest ; then
3411 echo "*** Could not run SDL test program, checking why..."
3412 CFLAGS="$CFLAGS $SDL_CFLAGS"
3413 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3414 LIBS="$LIBS $SDL_LIBS"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3421 int main(int argc, char *argv[])
3424 #define main K_and_R_C_main
3434 if ac_fn_c_try_link "$LINENO"; then :
3435 echo "*** The test program compiled, but did not run. This usually means"
3436 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3437 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3438 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3439 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3440 echo "*** is required on your system"
3442 echo "*** If you have an old version installed, it is best to remove it, although"
3443 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3445 echo "*** The test program failed to compile or link. See the file config.log for the"
3446 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3447 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3448 echo "*** may want to edit the sdl2-config script: $SDL_CONFIG"
3450 rm -f core conftest.err conftest.$ac_objext \
3451 conftest$ac_exeext conftest.$ac_ext
3452 CFLAGS="$ac_save_CFLAGS"
3453 CXXFLAGS="$ac_save_CXXFLAGS"
3454 LIBS="$ac_save_LIBS"
3459 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
3466 CFLAGS="$CFLAGS $SDL_CFLAGS"
3467 LIBS="$LIBS -lSDL2_test $SDL_LIBS $EXTRALIB"
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3480 if test -z "$CPP"; then
3481 if ${ac_cv_prog_CPP+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 # Double quotes because CPP needs to be expanded
3485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3499 # include <limits.h>
3501 # include <assert.h>
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3508 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: success on invalid input.
3523 # Passes both tests.
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3545 $as_echo "$CPP" >&6; }
3547 for ac_c_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: fails on valid input.
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3572 # OK, works on sane cases. Now check whether nonexistent headers
3573 # can be detected and how.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3579 # Broken: success on invalid input.
3582 # Passes both tests.
3586 rm -f conftest.err conftest.i conftest.$ac_ext
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.i conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then :
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log' for more details" "$LINENO" 5; }
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3608 $as_echo_n "checking for X... " >&6; }
3611 # Check whether --with-x was given.
3612 if test "${with_x+set}" = set; then :
3616 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3617 if test "x$with_x" = xno; then
3618 # The user explicitly disabled X.
3621 case $x_includes,$x_libraries in #(
3622 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3623 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 # One or both of the vars are not set, and there is no cached value.
3627 ac_x_includes=no ac_x_libraries=no
3628 rm -f -r conftest.dir
3629 if mkdir conftest.dir; then
3631 cat >Imakefile <<'_ACEOF'
3633 @echo incroot='${INCROOT}'
3635 @echo usrlibdir='${USRLIBDIR}'
3637 @echo libdir='${LIBDIR}'
3639 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3640 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3641 for ac_var in incroot usrlibdir libdir; do
3642 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3644 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3645 for ac_extension in a so sl dylib la dll; do
3646 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3647 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3648 ac_im_usrlibdir=$ac_im_libdir; break
3651 # Screen out bogus values from the imake configuration. They are
3652 # bogus both because they are the default anyway, and because
3653 # using them would break gcc on systems where it needs fixed includes.
3654 case $ac_im_incroot in
3655 /usr/include) ac_x_includes= ;;
3656 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3658 case $ac_im_usrlibdir in
3659 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3660 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3664 rm -f -r conftest.dir
3667 # Standard set of common directories for X headers.
3668 # Check X11 before X11Rn because it is often a symlink to the current release.
3682 /usr/local/X11/include
3683 /usr/local/X11R7/include
3684 /usr/local/X11R6/include
3685 /usr/local/X11R5/include
3686 /usr/local/X11R4/include
3688 /usr/local/include/X11
3689 /usr/local/include/X11R7
3690 /usr/local/include/X11R6
3691 /usr/local/include/X11R5
3692 /usr/local/include/X11R4
3696 /usr/XFree86/include/X11
3700 /usr/unsupported/include
3702 /usr/local/x11r5/include
3703 /usr/lpp/Xamples/include
3705 /usr/openwin/include
3706 /usr/openwin/share/include'
3708 if test "$ac_x_includes" = no; then
3709 # Guess where to find include files, by looking for Xlib.h.
3710 # First, try using that file with no special directory specified.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 #include <X11/Xlib.h>
3715 if ac_fn_c_try_cpp "$LINENO"; then :
3716 # We can compile using X headers with no special include directory.
3719 for ac_dir in $ac_x_header_dirs; do
3720 if test -r "$ac_dir/X11/Xlib.h"; then
3721 ac_x_includes=$ac_dir
3726 rm -f conftest.err conftest.i conftest.$ac_ext
3727 fi # $ac_x_includes = no
3729 if test "$ac_x_libraries" = no; then
3730 # Check for the libraries.
3731 # See if we find them without any special options.
3732 # Don't add to $LIBS permanently.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <X11/Xlib.h>
3746 if ac_fn_c_try_link "$LINENO"; then :
3748 # We can link X programs with no special library path.
3752 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3754 # Don't even attempt the hair of trying to link an X program!
3755 for ac_extension in a so sl dylib la dll; do
3756 if test -r "$ac_dir/libX11.$ac_extension"; then
3757 ac_x_libraries=$ac_dir
3763 rm -f core conftest.err conftest.$ac_objext \
3764 conftest$ac_exeext conftest.$ac_ext
3765 fi # $ac_x_libraries = no
3767 case $ac_x_includes,$ac_x_libraries in #(
3769 # Didn't find X, or a directory has "'" in its name.
3770 ac_cv_have_x="have_x=no";; #(
3772 # Record where we found X for the cache.
3773 ac_cv_have_x="have_x=yes\
3774 ac_x_includes='$ac_x_includes'\
3775 ac_x_libraries='$ac_x_libraries'"
3781 eval "$ac_cv_have_x"
3784 if test "$have_x" != yes; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3786 $as_echo "$have_x" >&6; }
3789 # If each of the values was on the command line, it overrides each guess.
3790 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3791 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3792 # Update the cache value to reflect the command line values.
3793 ac_cv_have_x="have_x=yes\
3794 ac_x_includes='$x_includes'\
3795 ac_x_libraries='$x_libraries'"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3797 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3800 if test x$have_x = xyes; then
3801 if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
3804 CFLAGS="$CFLAGS -I$ac_x_includes"
3806 if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
3809 XPATH="-L$ac_x_libraries"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
3814 $as_echo_n "checking for OpenGL support... " >&6; }
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3819 #include "SDL_opengl.h"
3830 if ac_fn_c_try_compile "$LINENO"; then :
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
3837 $as_echo "$have_opengl" >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
3840 $as_echo_n "checking for OpenGL ES support... " >&6; }
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3845 #if defined (__IPHONEOS__)
3846 #include <OpenGLES/ES1/gl.h>
3848 #include <GLES/gl.h>
3849 #endif /* __QNXNTO__ */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
3867 $as_echo "$have_opengles" >&6; }
3870 if test x$have_opengles = xyes; then
3871 CFLAGS="$CFLAGS -DHAVE_OPENGLES"
3872 GLLIB="$XPATH -lGLESv1_CM"
3873 elif test x$have_opengl = xyes; then
3874 CFLAGS="$CFLAGS -DHAVE_OPENGL"
3875 GLLIB="$XPATH $SYS_GL_LIBS"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
3883 $as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
3884 if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
3885 $as_echo_n "(cached) " >&6
3887 ac_check_lib_save_LIBS=$LIBS
3888 LIBS="-lSDL2_ttf $LIBS"
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3892 /* Override any GCC internal prototype to avoid an error.
3893 Use char because int might match the return type of a GCC
3894 builtin and then its argument prototype would still apply. */
3907 if ac_fn_c_try_link "$LINENO"; then :
3908 ac_cv_lib_SDL2_ttf_TTF_Init=yes
3910 ac_cv_lib_SDL2_ttf_TTF_Init=no
3912 rm -f core conftest.err conftest.$ac_objext \
3913 conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5
3917 $as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; }
3918 if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
3922 if test x$have_SDL_ttf = xyes; then
3923 CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
3924 SDL_TTF_LIB="-lSDL2_ttf"
3928 ac_config_headers="$ac_config_headers config.h"
3930 ac_config_files="$ac_config_files Makefile"
3932 cat >confcache <<\_ACEOF
3933 # This file is a shell script that caches the results of configure
3934 # tests run on this system so they can be shared between configure
3935 # scripts and configure runs, see configure's option --config-cache.
3936 # It is not useful on other systems. If it contains results you don't
3937 # want to keep, you may remove or edit it.
3939 # config.status only pays attention to the cache file if you give it
3940 # the --recheck option to rerun configure.
3942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3948 # The following way of writing the cache mishandles newlines in values,
3949 # but we know of no workaround that is simple, portable, and efficient.
3950 # So, we kill variables containing newlines.
3951 # Ultrix sh set writes to stderr and can't be redirected directly,
3952 # and sets the high bit in the cache file unless we assign to the vars.
3954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3955 eval ac_val=\$$ac_var
3959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3963 _ | IFS | as_nl) ;; #(
3964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3965 *) { eval $ac_var=; unset $ac_var;} ;;
3971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3972 *${as_nl}ac_space=\ *)
3973 # `set' does not quote correctly, so add quotes: double-quote
3974 # substitution turns \\\\ into \\, and sed turns \\ into \.
3977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3980 # `set' quotes correctly as required by POSIX, so do not add quotes.
3981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3995 if test -w "$cache_file"; then
3996 if test "x$cache_file" != "x/dev/null"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3998 $as_echo "$as_me: updating cache $cache_file" >&6;}
3999 if test ! -f "$cache_file" || test -h "$cache_file"; then
4000 cat confcache >"$cache_file"
4002 case $cache_file in #(
4004 mv -f confcache "$cache_file"$$ &&
4005 mv -f "$cache_file"$$ "$cache_file" ;; #(
4007 mv -f confcache "$cache_file" ;;
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4019 # Let make expand exec_prefix.
4020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4022 DEFS=-DHAVE_CONFIG_H
4027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4028 # 1. Remove the extension, and $U if already installed.
4029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4032 # will be set to the directory where LIBOBJS objects are built.
4033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4038 LTLIBOBJS=$ac_ltlibobjs
4042 : "${CONFIG_STATUS=./config.status}"
4044 ac_clean_files_save=$ac_clean_files
4045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4047 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4049 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4051 # Generated by $as_me.
4052 # Run this file to recreate the current configuration.
4053 # Compiler output produced by configure, useful for debugging
4054 # configure, is in config.log if it exists.
4060 SHELL=\${CONFIG_SHELL-$SHELL}
4063 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4064 ## -------------------- ##
4065 ## M4sh Initialization. ##
4066 ## -------------------- ##
4068 # Be more Bourne compatible
4069 DUALCASE=1; export DUALCASE # for MKS sh
4070 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4073 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4074 # is contrary to our usage. Disable this feature.
4075 alias -g '${1+"$@"}'='"$@"'
4076 setopt NO_GLOB_SUBST
4078 case `(set -o) 2>/dev/null` in #(
4090 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4091 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4094 # Prefer a ksh shell builtin over an external printf program on Solaris,
4095 # but without wasting forks for bash or zsh.
4096 if test -z "$BASH_VERSION$ZSH_VERSION" \
4097 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4098 as_echo='print -r --'
4099 as_echo_n='print -rn --'
4100 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4101 as_echo='printf %s\n'
4102 as_echo_n='printf %s'
4104 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4105 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4106 as_echo_n='/usr/ucb/echo -n'
4108 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4109 as_echo_n_body='eval
4113 expr "X$arg" : "X\\(.*\\)$as_nl";
4114 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4116 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4118 export as_echo_n_body
4119 as_echo_n='sh -c $as_echo_n_body as_echo'
4122 as_echo='sh -c $as_echo_body as_echo'
4125 # The user is always right.
4126 if test "${PATH_SEPARATOR+set}" != set; then
4128 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4129 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4136 # We need space, tab and new line, in precisely that order. Quoting is
4137 # there to prevent editors from complaining about space-tab.
4138 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4139 # splitting by setting IFS to empty value.)
4142 # Find who we are. Look in the path if we contain no directory separator.
4145 *[\\/]* ) as_myself=$0 ;;
4146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4157 # We did not find ourselves, most probably we were run as `sh COMMAND'
4158 # in which case we are not to be found in the path.
4159 if test "x$as_myself" = x; then
4162 if test ! -f "$as_myself"; then
4163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4167 # Unset variables that we do not need and which cause bugs (e.g. in
4168 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4169 # suppresses any "Segmentation fault" message there. '((' could
4170 # trigger a bug in pdksh 5.2.14.
4171 for as_var in BASH_ENV ENV MAIL MAILPATH
4172 do eval test x\${$as_var+set} = xset \
4173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4189 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4190 # ----------------------------------------
4191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4193 # script with STATUS, using 1 if that was 0.
4196 as_status=$1; test $as_status -eq 0 && as_status=1
4198 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4201 $as_echo "$as_me: error: $2" >&2
4202 as_fn_exit $as_status
4206 # as_fn_set_status STATUS
4207 # -----------------------
4208 # Set $? to STATUS, without forking.
4212 } # as_fn_set_status
4216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4226 # Portably unset VAR.
4229 { eval $1=; unset $1;}
4231 as_unset=as_fn_unset
4232 # as_fn_append VAR VALUE
4233 # ----------------------
4234 # Append the text in VALUE to the end of the definition contained in VAR. Take
4235 # advantage of any shell optimizations that allow amortized linear growth over
4236 # repeated appends, instead of the typical quadratic growth present in naive
4238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4239 eval 'as_fn_append ()
4250 # as_fn_arith ARG...
4251 # ------------------
4252 # Perform arithmetic evaluation on the ARGs, and store the result in the
4253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4254 # must be portable across $(()) and expr.
4255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4256 eval 'as_fn_arith ()
4263 as_val=`expr "$@" || test $? -eq 1`
4268 if expr a : '\(a\)' >/dev/null 2>&1 &&
4269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4276 as_basename=basename
4281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4287 as_me=`$as_basename -- "$0" ||
4288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4289 X"$0" : 'X\(//\)$' \| \
4290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4292 sed '/^.*\/\([^/][^/]*\)\/*$/{
4306 # Avoid depending upon Character Ranges.
4307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4310 as_cr_digits='0123456789'
4311 as_cr_alnum=$as_cr_Letters$as_cr_digits
4313 ECHO_C= ECHO_N= ECHO_T=
4314 case `echo -n x` in #(((((
4316 case `echo 'xy\c'` in
4317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4326 rm -f conf$$ conf$$.exe conf$$.file
4327 if test -d conf$$.dir; then
4328 rm -f conf$$.dir/conf$$.file
4331 mkdir conf$$.dir 2>/dev/null
4333 if (echo >conf$$.file) 2>/dev/null; then
4334 if ln -s conf$$.file conf$$ 2>/dev/null; then
4336 # ... but there are two gotchas:
4337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4339 # In both cases, we have to default to `cp -pR'.
4340 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4342 elif ln conf$$.file conf$$ 2>/dev/null; then
4350 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4351 rmdir conf$$.dir 2>/dev/null
4356 # Create "$as_dir" as a directory, including parents if necessary.
4361 -*) as_dir=./$as_dir;;
4363 test -d "$as_dir" || eval $as_mkdir_p || {
4367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4368 *) as_qdir=$as_dir;;
4370 as_dirs="'$as_qdir' $as_dirs"
4371 as_dir=`$as_dirname -- "$as_dir" ||
4372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4373 X"$as_dir" : 'X\(//\)[^/]' \| \
4374 X"$as_dir" : 'X\(//\)$' \| \
4375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4376 $as_echo X"$as_dir" |
4377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4394 test -d "$as_dir" && break
4396 test -z "$as_dirs" || eval "mkdir $as_dirs"
4397 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4401 if mkdir -p . 2>/dev/null; then
4402 as_mkdir_p='mkdir -p "$as_dir"'
4404 test -d ./-p && rmdir ./-p
4409 # as_fn_executable_p FILE
4410 # -----------------------
4411 # Test if FILE is an executable regular file.
4412 as_fn_executable_p ()
4414 test -f "$1" && test -x "$1"
4415 } # as_fn_executable_p
4417 as_executable_p=as_fn_executable_p
4419 # Sed expression to map a string onto a valid CPP name.
4420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4422 # Sed expression to map a string onto a valid variable name.
4423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4427 ## ----------------------------------- ##
4428 ## Main body of $CONFIG_STATUS script. ##
4429 ## ----------------------------------- ##
4431 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4434 # Save the log message, to keep $0 and so on meaningful, and to
4435 # report actual input values of CONFIG_FILES etc. instead of their
4436 # values after options handling.
4438 This file was extended by sdlvisualtest $as_me 0.01, which was
4439 generated by GNU Autoconf 2.69. Invocation command line was
4441 CONFIG_FILES = $CONFIG_FILES
4442 CONFIG_HEADERS = $CONFIG_HEADERS
4443 CONFIG_LINKS = $CONFIG_LINKS
4444 CONFIG_COMMANDS = $CONFIG_COMMANDS
4447 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4452 case $ac_config_files in *"
4453 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4456 case $ac_config_headers in *"
4457 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4462 # Files that config.status was made for.
4463 config_files="$ac_config_files"
4464 config_headers="$ac_config_headers"
4468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4470 \`$as_me' instantiates files and other configuration actions
4471 from templates according to the current configuration. Unless the files
4472 and actions are specified as TAGs, all are instantiated by default.
4474 Usage: $0 [OPTION]... [TAG]...
4476 -h, --help print this help, then exit
4477 -V, --version print version number and configuration settings, then exit
4478 --config print configuration, then exit
4479 -q, --quiet, --silent
4480 do not print progress messages
4481 -d, --debug don't remove temporary files
4482 --recheck update $as_me by reconfiguring in the same conditions
4483 --file=FILE[:TEMPLATE]
4484 instantiate the configuration file FILE
4485 --header=FILE[:TEMPLATE]
4486 instantiate the configuration header FILE
4488 Configuration files:
4491 Configuration headers:
4494 Report bugs to <apoorvupreti@gmail.com>."
4497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4498 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4500 sdlvisualtest config.status 0.01
4501 configured by $0, generated by GNU Autoconf 2.69,
4502 with options \\"\$ac_cs_config\\"
4504 Copyright (C) 2012 Free Software Foundation, Inc.
4505 This config.status script is free software; the Free Software Foundation
4506 gives unlimited permission to copy, distribute and modify it."
4510 test -n "\$AWK" || AWK=awk
4513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4514 # The default lists apply if the user does not specify any file.
4520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4537 # Handling of the options.
4538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4541 $as_echo "$ac_cs_version"; exit ;;
4542 --config | --confi | --conf | --con | --co | --c )
4543 $as_echo "$ac_cs_config"; exit ;;
4544 --debug | --debu | --deb | --de | --d | -d )
4546 --file | --fil | --fi | --f )
4549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4550 '') as_fn_error $? "missing file argument" ;;
4552 as_fn_append CONFIG_FILES " '$ac_optarg'"
4553 ac_need_defaults=false;;
4554 --header | --heade | --head | --hea )
4557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4559 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4560 ac_need_defaults=false;;
4562 # Conflict between --help and --header
4563 as_fn_error $? "ambiguous option: \`$1'
4564 Try \`$0 --help' for more information.";;
4565 --help | --hel | -h )
4566 $as_echo "$ac_cs_usage"; exit ;;
4567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4572 -*) as_fn_error $? "unrecognized option: \`$1'
4573 Try \`$0 --help' for more information." ;;
4575 *) as_fn_append ac_config_targets " $1"
4576 ac_need_defaults=false ;;
4582 ac_configure_extra_args=
4584 if $ac_cs_silent; then
4586 ac_configure_extra_args="$ac_configure_extra_args --silent"
4590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4591 if \$ac_cs_recheck; then
4592 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4594 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4595 CONFIG_SHELL='$SHELL'
4601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4606 ## Running $as_me. ##
4612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4617 # Handling of arguments.
4618 for ac_config_target in $ac_config_targets
4620 case $ac_config_target in
4621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4624 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4629 # If the user did not use the arguments to specify the items to instantiate,
4630 # then the envvar interface is used. Set only those that are not.
4631 # We use the long form for the default assignment because of an extremely
4632 # bizarre bug on SunOS 4.1.3.
4633 if $ac_need_defaults; then
4634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4638 # Have a temporary directory for convenience. Make it in the build tree
4639 # simply because there is no reason against having it here, and in addition,
4640 # creating and moving files from /tmp can sometimes cause problems.
4641 # Hook for its removal unless debugging.
4642 # Note that there is a small window in which the directory will not be cleaned:
4643 # after its creation but before its name has been assigned to `$tmp'.
4647 trap 'exit_status=$?
4649 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4651 trap 'as_fn_exit 1' 1 2 13 15
4653 # Create a (secure) tmp directory for tmp files.
4656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4660 tmp=./conf$$-$RANDOM
4661 (umask 077 && mkdir "$tmp")
4662 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4665 # Set up the scripts for CONFIG_FILES section.
4666 # No need to generate them if there are no CONFIG_FILES.
4667 # This happens for instance with `./config.status config.h'.
4668 if test -n "$CONFIG_FILES"; then
4671 ac_cr=`echo X | tr X '\015'`
4672 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4673 # But we know of no other shell where ac_cr would be empty at this
4674 # point, so we can use a bashism as a fallback.
4675 if test "x$ac_cr" = x; then
4676 eval ac_cr=\$\'\\r\'
4678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4685 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4690 echo "cat >conf$$subs.awk <<_ACEOF" &&
4691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4695 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4697 for ac_last_try in false false false false false :; do
4698 . ./conf$$subs.sh ||
4699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4702 if test $ac_delim_n = $ac_delim_num; then
4704 elif $ac_last_try; then
4705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4713 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4717 s/^/S["/; s/!.*/"]=/
4727 s/\(.\{148\}\)..*/\1/
4729 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4741 s/\(.\{148\}\)..*/\1/
4743 s/["\\]/\\&/g; s/^/"/; s/$/"/
4747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4752 ' <conf$$subs.awk | sed '
4757 ' >>$CONFIG_STATUS || ac_write_fail=1
4758 rm -f conf$$subs.awk
4759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4761 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4762 for (key in S) S_is_set[key] = 1
4768 nfields = split(line, field, "@")
4770 len = length(field[1])
4771 for (i = 2; i < nfields; i++) {
4773 keylen = length(key)
4774 if (S_is_set[key]) {
4776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4777 len += length(value) + length(field[++i])
4788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4789 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4793 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4794 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4797 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4798 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4799 # trailing colons and then remove the whole line if VPATH becomes empty
4800 # (actually we leave an empty line to preserve line numbers).
4801 if test "x$srcdir" = x.; then
4802 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4821 fi # test -n "$CONFIG_FILES"
4823 # Set up the scripts for CONFIG_HEADERS section.
4824 # No need to generate them if there are no CONFIG_HEADERS.
4825 # This happens for instance with `./config.status Makefile'.
4826 if test -n "$CONFIG_HEADERS"; then
4827 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4831 # Transform confdefs.h into an awk script `defines.awk', embedded as
4832 # here-document in config.status, that substitutes the proper values into
4833 # config.h.in to produce config.h.
4835 # Create a delimiter string that does not exist in confdefs.h, to ease
4836 # handling of long lines.
4838 for ac_last_try in false false :; do
4839 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4840 if test -z "$ac_tt"; then
4842 elif $ac_last_try; then
4843 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4849 # For the awk script, D is an array of macro values keyed by name,
4850 # likewise P contains macro parameters if any. Preserve backslash
4851 # newline sequences.
4853 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4855 s/.\{148\}/&'"$ac_delim"'/g
4858 s/^[ ]*#[ ]*define[ ][ ]*/ /
4865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4872 D["\1"]=" \3\\\\\\n"\\/p
4874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4879 s/.\{148\}/&'"$ac_delim"'/g
4884 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4887 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4889 ' <confdefs.h | sed '
4890 s/'"$ac_delim"'/"\\\
4891 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4894 for (key in D) D_is_set[key] = 1
4897 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4899 split(line, arg, " ")
4900 if (arg[1] == "#") {
4904 defundef = substr(arg[1], 2)
4907 split(mac1, mac2, "(") #)
4909 prefix = substr(line, 1, index(line, defundef) - 1)
4910 if (D_is_set[macro]) {
4911 # Preserve the white space surrounding the "#".
4912 print prefix "define", macro P[macro] D[macro]
4915 # Replace #undef with comments. This is necessary, for example,
4916 # in the case of _POSIX_SOURCE, which is predefined and required
4917 # on some systems where configure will not decide to define it.
4918 if (defundef == "undef") {
4919 print "/*", prefix defundef, macro, "*/"
4927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4928 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4929 fi # test -n "$CONFIG_HEADERS"
4932 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4937 :[FHLC]) ac_mode=$ac_tag; continue;;
4939 case $ac_mode$ac_tag in
4941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4942 :[FH]-) ac_tag=-:-;;
4943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4960 -) ac_f="$ac_tmp/stdin";;
4961 *) # Look for the file first in the build tree, then in the source tree
4962 # (if the path is not absolute). The absolute path cannot be DOS-style,
4963 # because $ac_f cannot contain `:'.
4967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4972 as_fn_append ac_file_inputs " '$ac_f'"
4975 # Let's still pretend it is `configure' which instantiates (i.e., don't
4976 # use $as_me), people would be surprised to read:
4977 # /* config.h. Generated by config.status. */
4978 configure_input='Generated from '`
4979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4981 if test x"$ac_file" != x-; then
4982 configure_input="$ac_file. $configure_input"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4984 $as_echo "$as_me: creating $ac_file" >&6;}
4986 # Neutralize special characters interpreted by sed in replacement strings.
4987 case $configure_input in #(
4988 *\&* | *\|* | *\\* )
4989 ac_sed_conf_input=`$as_echo "$configure_input" |
4990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4991 *) ac_sed_conf_input=$configure_input;;
4995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5001 ac_dir=`$as_dirname -- "$ac_file" ||
5002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5003 X"$ac_file" : 'X\(//\)[^/]' \| \
5004 X"$ac_file" : 'X\(//\)$' \| \
5005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5006 $as_echo X"$ac_file" |
5007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5024 as_dir="$ac_dir"; as_fn_mkdir_p
5028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5031 # A ".." for each directory in $ac_dir_suffix.
5032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5033 case $ac_top_builddir_sub in
5034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5038 ac_abs_top_builddir=$ac_pwd
5039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5040 # for backward compatibility:
5041 ac_top_builddir=$ac_top_build_prefix
5044 .) # We are building in place.
5046 ac_top_srcdir=$ac_top_builddir_sub
5047 ac_abs_top_srcdir=$ac_pwd ;;
5048 [\\/]* | ?:[\\/]* ) # Absolute name.
5049 ac_srcdir=$srcdir$ac_dir_suffix;
5050 ac_top_srcdir=$srcdir
5051 ac_abs_top_srcdir=$srcdir ;;
5053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5054 ac_top_srcdir=$ac_top_build_prefix$srcdir
5055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5069 # If the template does not know about datarootdir, expand it.
5070 # FIXME: This hack should be removed a few years after 2.60.
5071 ac_datarootdir_hack=; ac_datarootdir_seen=
5082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5083 *datarootdir*) ac_datarootdir_seen=yes;;
5084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5089 ac_datarootdir_hack='
5090 s&@datadir@&$datadir&g
5091 s&@docdir@&$docdir&g
5092 s&@infodir@&$infodir&g
5093 s&@localedir@&$localedir&g
5094 s&@mandir@&$mandir&g
5095 s&\\\${datarootdir}&$datarootdir&g' ;;
5099 # Neutralize VPATH when `$srcdir' = `.'.
5100 # Shell code in configure.ac might set extrasub.
5101 # FIXME: do we really want to maintain this feature?
5102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5103 ac_sed_extra="$ac_vpsub
5106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5109 s|@configure_input@|$ac_sed_conf_input|;t t
5110 s&@top_builddir@&$ac_top_builddir_sub&;t t
5111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5112 s&@srcdir@&$ac_srcdir&;t t
5113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5114 s&@top_srcdir@&$ac_top_srcdir&;t t
5115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5116 s&@builddir@&$ac_builddir&;t t
5117 s&@abs_builddir@&$ac_abs_builddir&;t t
5118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5119 $ac_datarootdir_hack
5121 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5127 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5129 which seems to be undefined. Please make sure it is defined" >&5
5130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5131 which seems to be undefined. Please make sure it is defined" >&2;}
5133 rm -f "$ac_tmp/stdin"
5135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5144 if test x"$ac_file" != x-; then
5146 $as_echo "/* $configure_input */" \
5147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5148 } >"$ac_tmp/config.h" \
5149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5152 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5155 mv "$ac_tmp/config.h" "$ac_file" \
5156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5159 $as_echo "/* $configure_input */" \
5160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5161 || as_fn_error $? "could not create -" "$LINENO" 5
5173 ac_clean_files=$ac_clean_files_save
5175 test $ac_write_fail = 0 ||
5176 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5179 # configure is writing to config.log, and then calls config.status.
5180 # config.status does its own redirection, appending to config.log.
5181 # Unfortunately, on DOS this fails, as config.log is still kept open
5182 # by configure, so config.status won't be able to write to it; its
5183 # output is simply discarded. So we exec the FD to /dev/null,
5184 # effectively closing config.log, so it can be properly (re)opened and
5185 # appended to by config.status. When coming back to configure, we
5186 # need to make the FD available again.
5187 if test "$no_create" != yes; then
5189 ac_config_status_args=
5190 test "$silent" = yes &&
5191 ac_config_status_args="$ac_config_status_args --quiet"
5193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5196 # would make configure fail if this is the last instruction.
5197 $ac_cs_success || as_fn_exit 1
5199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}