• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sdlvisualtest 0.01.
4#
5# Report bugs to <apoorvupreti@gmail.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
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## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
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+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
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'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || 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 :
202  as_have_required=yes
203else
204  as_have_required=no
205fi
206  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  test -z "$as_dir" && as_dir=.
215  as_found=:
216  case $as_dir in #(
217	 /*)
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 :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
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
235fi; }
236IFS=$as_save_IFS
237
238
239      if test "x$CONFIG_SHELL" != x; then :
240  export CONFIG_SHELL
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.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $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
258exit 255
259fi
260
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."
267  else
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."
273  fi
274  exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292  { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301  return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309  set +e
310  as_fn_set_status $1
311  exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320  case $as_dir in #(
321  -*) as_dir=./$as_dir;;
322  esac
323  test -d "$as_dir" || eval $as_mkdir_p || {
324    as_dirs=
325    while :; do
326      case $as_dir in #(
327      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328      *) as_qdir=$as_dir;;
329      esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338	    s//\1/
339	    q
340	  }
341	  /^X\(\/\/\)[^/].*/{
342	    s//\1/
343	    q
344	  }
345	  /^X\(\/\/\)$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\).*/{
350	    s//\1/
351	    q
352	  }
353	  s/.*/./; q'`
354      test -d "$as_dir" && break
355    done
356    test -z "$as_dirs" || eval "mkdir $as_dirs"
357  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
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
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376  eval 'as_fn_append ()
377  {
378    eval $1+=\$2
379  }'
380else
381  as_fn_append ()
382  {
383    eval $1=\$$1\$2
384  }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
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.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393  eval 'as_fn_arith ()
394  {
395    as_val=$(( $* ))
396  }'
397else
398  as_fn_arith ()
399  {
400    as_val=`expr "$@" || test $? -eq 1`
401  }
402fi # as_fn_arith
403
404
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.
410as_fn_error ()
411{
412  as_status=$1; test $as_status -eq 0 && as_status=1
413  if test "$4"; then
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
416  fi
417  $as_echo "$as_me: error: $2" >&2
418  as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423  as_expr=expr
424else
425  as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429  as_basename=basename
430else
431  as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435  as_dirname=dirname
436else
437  as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442	 X"$0" : 'X\(//\)$' \| \
443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445    sed '/^.*\/\([^/][^/]*\)\/*$/{
446	    s//\1/
447	    q
448	  }
449	  /^X\/\(\/\/\)$/{
450	    s//\1/
451	    q
452	  }
453	  /^X\/\(\/\).*/{
454	    s//\1/
455	    q
456	  }
457	  s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
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.  :-)
472  sed -n '
473    p
474    /[$]LINENO/=
475  ' <$as_myself |
476    sed '
477      s/[$]LINENO.*/&-/
478      t lineno
479      b
480      :lineno
481      N
482      :loop
483      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484      t loop
485      s/-\n.*//
486    ' >$as_me.lineno &&
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; }
489
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).
497  . "./$as_me.lineno"
498  # Exit status is that of the last command.
499  exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505  case `echo 'xy\c'` in
506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507  xy)  ECHO_C='\c';;
508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509       ECHO_T='	';;
510  esac;;
511*)
512  ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517  rm -f conf$$.dir/conf$$.file
518else
519  rm -f conf$$.dir
520  mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523  if ln -s conf$$.file conf$$ 2>/dev/null; then
524    as_ln_s='ln -s'
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 ||
530      as_ln_s='cp -pR'
531  elif ln conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s=ln
533  else
534    as_ln_s='cp -pR'
535  fi
536else
537  as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543  as_mkdir_p='mkdir -p "$as_dir"'
544else
545  test -d ./-p && rmdir ./-p
546  as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='sdlvisualtest'
581PACKAGE_TARNAME='sdlvisualtest'
582PACKAGE_VERSION='0.01'
583PACKAGE_STRING='sdlvisualtest 0.01'
584PACKAGE_BUGREPORT='apoorvupreti@gmail.com'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589SDL_TTF_LIB
590GLLIB
591CPP
592XMKMF
593SDL_CONFIG
594SDL_LIBS
595SDL_CFLAGS
596PKG_CONFIG_LIBDIR
597PKG_CONFIG_PATH
598PKG_CONFIG
599ISUNIX
600ISWINDOWS
601ISMACOSX
602EXTRALIB
603MATHLIB
604EXE
605OSMESA_CONFIG
606OBJEXT
607EXEEXT
608ac_ct_CC
609CPPFLAGS
610LDFLAGS
611CFLAGS
612CC
613host_os
614host_vendor
615host_cpu
616host
617build_os
618build_vendor
619build_cpu
620build
621target_alias
622host_alias
623build_alias
624LIBS
625ECHO_T
626ECHO_N
627ECHO_C
628DEFS
629mandir
630localedir
631libdir
632psdir
633pdfdir
634dvidir
635htmldir
636infodir
637docdir
638oldincludedir
639includedir
640localstatedir
641sharedstatedir
642sysconfdir
643datadir
644datarootdir
645libexecdir
646sbindir
647bindir
648program_transform_name
649prefix
650exec_prefix
651PACKAGE_URL
652PACKAGE_BUGREPORT
653PACKAGE_STRING
654PACKAGE_VERSION
655PACKAGE_TARNAME
656PACKAGE_NAME
657PATH_SEPARATOR
658SHELL'
659ac_subst_files=''
660ac_user_opts='
661enable_option_checking
662with_sdl_prefix
663with_sdl_exec_prefix
664enable_sdltest
665with_x
666'
667      ac_precious_vars='build_alias
668host_alias
669target_alias
670CC
671CFLAGS
672LDFLAGS
673LIBS
674CPPFLAGS
675PKG_CONFIG
676PKG_CONFIG_PATH
677PKG_CONFIG_LIBDIR
678SDL_CFLAGS
679SDL_LIBS
680XMKMF
681CPP'
682
683
684# Initialize some variables set by options.
685ac_init_help=
686ac_init_version=false
687ac_unrecognized_opts=
688ac_unrecognized_sep=
689# The variables have the same names as the options, with
690# dashes changed to underlines.
691cache_file=/dev/null
692exec_prefix=NONE
693no_create=
694no_recursion=
695prefix=NONE
696program_prefix=NONE
697program_suffix=NONE
698program_transform_name=s,x,x,
699silent=
700site=
701srcdir=
702verbose=
703x_includes=NONE
704x_libraries=NONE
705
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.)
712bindir='${exec_prefix}/bin'
713sbindir='${exec_prefix}/sbin'
714libexecdir='${exec_prefix}/libexec'
715datarootdir='${prefix}/share'
716datadir='${datarootdir}'
717sysconfdir='${prefix}/etc'
718sharedstatedir='${prefix}/com'
719localstatedir='${prefix}/var'
720includedir='${prefix}/include'
721oldincludedir='/usr/include'
722docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
723infodir='${datarootdir}/info'
724htmldir='${docdir}'
725dvidir='${docdir}'
726pdfdir='${docdir}'
727psdir='${docdir}'
728libdir='${exec_prefix}/lib'
729localedir='${datarootdir}/locale'
730mandir='${datarootdir}/man'
731
732ac_prev=
733ac_dashdash=
734for ac_option
735do
736  # If the previous option needs an argument, assign it.
737  if test -n "$ac_prev"; then
738    eval $ac_prev=\$ac_option
739    ac_prev=
740    continue
741  fi
742
743  case $ac_option in
744  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
745  *=)   ac_optarg= ;;
746  *)    ac_optarg=yes ;;
747  esac
748
749  # Accept the important Cygnus configure options, so we can diagnose typos.
750
751  case $ac_dashdash$ac_option in
752  --)
753    ac_dashdash=yes ;;
754
755  -bindir | --bindir | --bindi | --bind | --bin | --bi)
756    ac_prev=bindir ;;
757  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758    bindir=$ac_optarg ;;
759
760  -build | --build | --buil | --bui | --bu)
761    ac_prev=build_alias ;;
762  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763    build_alias=$ac_optarg ;;
764
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 ;;
771
772  --config-cache | -C)
773    cache_file=config.cache ;;
774
775  -datadir | --datadir | --datadi | --datad)
776    ac_prev=datadir ;;
777  -datadir=* | --datadir=* | --datadi=* | --datad=*)
778    datadir=$ac_optarg ;;
779
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 ;;
786
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
795      *"
796"enable_$ac_useropt"
797"*) ;;
798      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799	 ac_unrecognized_sep=', ';;
800    esac
801    eval enable_$ac_useropt=no ;;
802
803  -docdir | --docdir | --docdi | --doc | --do)
804    ac_prev=docdir ;;
805  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806    docdir=$ac_optarg ;;
807
808  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809    ac_prev=dvidir ;;
810  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811    dvidir=$ac_optarg ;;
812
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
821      *"
822"enable_$ac_useropt"
823"*) ;;
824      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825	 ac_unrecognized_sep=', ';;
826    esac
827    eval enable_$ac_useropt=\$ac_optarg ;;
828
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 ;;
837
838  -gas | --gas | --ga | --g)
839    # Obsolete; use --with-gas.
840    with_gas=yes ;;
841
842  -help | --help | --hel | --he | -h)
843    ac_init_help=long ;;
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 ;;
848
849  -host | --host | --hos | --ho)
850    ac_prev=host_alias ;;
851  -host=* | --host=* | --hos=* | --ho=*)
852    host_alias=$ac_optarg ;;
853
854  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855    ac_prev=htmldir ;;
856  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857  | --ht=*)
858    htmldir=$ac_optarg ;;
859
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 ;;
866
867  -infodir | --infodir | --infodi | --infod | --info | --inf)
868    ac_prev=infodir ;;
869  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870    infodir=$ac_optarg ;;
871
872  -libdir | --libdir | --libdi | --libd)
873    ac_prev=libdir ;;
874  -libdir=* | --libdir=* | --libdi=* | --libd=*)
875    libdir=$ac_optarg ;;
876
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 ;;
883
884  -localedir | --localedir | --localedi | --localed | --locale)
885    ac_prev=localedir ;;
886  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887    localedir=$ac_optarg ;;
888
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 ;;
895
896  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897    ac_prev=mandir ;;
898  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899    mandir=$ac_optarg ;;
900
901  -nfp | --nfp | --nf)
902    # Obsolete; use --without-fp.
903    with_fp=no ;;
904
905  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906  | --no-cr | --no-c | -n)
907    no_create=yes ;;
908
909  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911    no_recursion=yes ;;
912
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 ;;
921
922  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923    ac_prev=prefix ;;
924  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925    prefix=$ac_optarg ;;
926
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 ;;
933
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 ;;
940
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 ;;
957
958  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959    ac_prev=pdfdir ;;
960  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961    pdfdir=$ac_optarg ;;
962
963  -psdir | --psdir | --psdi | --psd | --ps)
964    ac_prev=psdir ;;
965  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966    psdir=$ac_optarg ;;
967
968  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969  | -silent | --silent | --silen | --sile | --sil)
970    silent=yes ;;
971
972  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973    ac_prev=sbindir ;;
974  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975  | --sbi=* | --sb=*)
976    sbindir=$ac_optarg ;;
977
978  -sharedstatedir | --sharedstatedir | --sharedstatedi \
979  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980  | --sharedst | --shareds | --shared | --share | --shar \
981  | --sha | --sh)
982    ac_prev=sharedstatedir ;;
983  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986  | --sha=* | --sh=*)
987    sharedstatedir=$ac_optarg ;;
988
989  -site | --site | --sit)
990    ac_prev=site ;;
991  -site=* | --site=* | --sit=*)
992    site=$ac_optarg ;;
993
994  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995    ac_prev=srcdir ;;
996  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997    srcdir=$ac_optarg ;;
998
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 ;;
1005
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 ;;
1010
1011  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012    verbose=yes ;;
1013
1014  -version | --version | --versio | --versi | --vers | -V)
1015    ac_init_version=: ;;
1016
1017  -with-* | --with-*)
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
1025      *"
1026"with_$ac_useropt"
1027"*) ;;
1028      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029	 ac_unrecognized_sep=', ';;
1030    esac
1031    eval with_$ac_useropt=\$ac_optarg ;;
1032
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
1041      *"
1042"with_$ac_useropt"
1043"*) ;;
1044      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045	 ac_unrecognized_sep=', ';;
1046    esac
1047    eval with_$ac_useropt=no ;;
1048
1049  --x)
1050    # Obsolete; use --with-x.
1051    with_x=yes ;;
1052
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 ;;
1059
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 ;;
1066
1067  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1068Try \`$0 --help' for more information"
1069    ;;
1070
1071  *=*)
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'" ;;
1077    esac
1078    eval $ac_envvar=\$ac_optarg
1079    export $ac_envvar ;;
1080
1081  *)
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}"
1087    ;;
1088
1089  esac
1090done
1091
1092if test -n "$ac_prev"; then
1093  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094  as_fn_error $? "missing argument to $ac_option"
1095fi
1096
1097if test -n "$ac_unrecognized_opts"; then
1098  case $enable_option_checking in
1099    no) ;;
1100    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1101    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102  esac
1103fi
1104
1105# Check all directory arguments for consistency.
1106for 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
1110do
1111  eval ac_val=\$$ac_var
1112  # Remove trailing slashes.
1113  case $ac_val in
1114    */ )
1115      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116      eval $ac_var=\$ac_val;;
1117  esac
1118  # Be sure to have absolute directory names.
1119  case $ac_val in
1120    [\\/$]* | ?:[\\/]* )  continue;;
1121    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1122  esac
1123  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1124done
1125
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.
1129build=$build_alias
1130host=$host_alias
1131target=$target_alias
1132
1133# FIXME: To remove some day.
1134if 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
1138    cross_compiling=yes
1139  fi
1140fi
1141
1142ac_tool_prefix=
1143test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144
1145test "$silent" = yes && exec 6>/dev/null
1146
1147
1148ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149ac_ls_di=`ls -di .` &&
1150ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151  as_fn_error $? "working directory cannot be determined"
1152test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153  as_fn_error $? "pwd does not report name of working directory"
1154
1155
1156# Find the source files, if location was not specified.
1157if 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167	    s//\1/
1168	    q
1169	  }
1170	  /^X\(\/\/\)[^/].*/{
1171	    s//\1/
1172	    q
1173	  }
1174	  /^X\(\/\/\)$/{
1175	    s//\1/
1176	    q
1177	  }
1178	  /^X\(\/\).*/{
1179	    s//\1/
1180	    q
1181	  }
1182	  s/.*/./; q'`
1183  srcdir=$ac_confdir
1184  if test ! -r "$srcdir/$ac_unique_file"; then
1185    srcdir=..
1186  fi
1187else
1188  ac_srcdir_defaulted=no
1189fi
1190if 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"
1193fi
1194ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1195ac_abs_confdir=`(
1196	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1197	pwd)`
1198# When building in place, set srcdir=.
1199if test "$ac_abs_confdir" = "$ac_pwd"; then
1200  srcdir=.
1201fi
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.
1205case $srcdir in
1206*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207esac
1208for 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}
1213done
1214
1215#
1216# Report the --help message.
1217#
1218if 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.
1221  cat <<_ACEOF
1222\`configure' configures sdlvisualtest 0.01 to adapt to many kinds of systems.
1223
1224Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227VAR=VALUE.  See below for descriptions of some of the useful variables.
1228
1229Defaults for the options are specified in brackets.
1230
1231Configuration:
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 \`..']
1241
1242Installation directories:
1243  --prefix=PREFIX         install architecture-independent files in PREFIX
1244                          [$ac_default_prefix]
1245  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1246                          [PREFIX]
1247
1248By default, \`make install' will install all the files in
1249\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1250an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251for instance \`--prefix=\$HOME'.
1252
1253For better control, use the options below.
1254
1255Fine 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]
1275_ACEOF
1276
1277  cat <<\_ACEOF
1278
1279X features:
1280  --x-includes=DIR    X include files are in DIR
1281  --x-libraries=DIR   X library files are in DIR
1282
1283System types:
1284  --build=BUILD     configure for building on BUILD [guessed]
1285  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1286_ACEOF
1287fi
1288
1289if test -n "$ac_init_help"; then
1290  case $ac_init_help in
1291     short | recursive ) echo "Configuration of sdlvisualtest 0.01:";;
1292   esac
1293  cat <<\_ACEOF
1294
1295Optional Features:
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
1300
1301Optional Packages:
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
1307
1308Some 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
1317  PKG_CONFIG_PATH
1318              directories to add to pkg-config's search path
1319  PKG_CONFIG_LIBDIR
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
1324  CPP         C preprocessor
1325
1326Use these variables to override the choices made by `configure' or to help
1327it to find libraries and programs with nonstandard names/locations.
1328
1329Report bugs to <apoorvupreti@gmail.com>.
1330_ACEOF
1331ac_status=$?
1332fi
1333
1334if 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"; } ||
1339      continue
1340    ac_builddir=.
1341
1342case "$ac_dir" in
1343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344*)
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/ ;;
1351  esac ;;
1352esac
1353ac_abs_top_builddir=$ac_pwd
1354ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355# for backward compatibility:
1356ac_top_builddir=$ac_top_build_prefix
1357
1358case $srcdir in
1359  .)  # We are building in place.
1360    ac_srcdir=.
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 ;;
1367  *) # Relative name.
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 ;;
1371esac
1372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374    cd "$ac_dir" || { ac_status=$?; continue; }
1375    # Check for guested configure.
1376    if test -f "$ac_srcdir/configure.gnu"; then
1377      echo &&
1378      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379    elif test -f "$ac_srcdir/configure"; then
1380      echo &&
1381      $SHELL "$ac_srcdir/configure" --help=recursive
1382    else
1383      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384    fi || ac_status=$?
1385    cd "$ac_pwd" || { ac_status=$?; break; }
1386  done
1387fi
1388
1389test -n "$ac_init_help" && exit $ac_status
1390if $ac_init_version; then
1391  cat <<\_ACEOF
1392sdlvisualtest configure 0.01
1393generated by GNU Autoconf 2.69
1394
1395Copyright (C) 2012 Free Software Foundation, Inc.
1396This configure script is free software; the Free Software Foundation
1397gives unlimited permission to copy, distribute and modify it.
1398_ACEOF
1399  exit
1400fi
1401
1402## ------------------------ ##
1403## Autoconf initialization. ##
1404## ------------------------ ##
1405
1406# ac_fn_c_try_compile LINENO
1407# --------------------------
1408# Try to compile conftest.$ac_ext, and return whether this succeeded.
1409ac_fn_c_try_compile ()
1410{
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"
1414case "(($ac_try" in
1415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1416  *) ac_try_echo=$ac_try;;
1417esac
1418eval 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
1421  ac_status=$?
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
1426  fi
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 :
1432  ac_retval=0
1433else
1434  $as_echo "$as_me: failed program was:" >&5
1435sed 's/^/| /' conftest.$ac_ext >&5
1436
1437	ac_retval=1
1438fi
1439  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1440  as_fn_set_status $ac_retval
1441
1442} # ac_fn_c_try_compile
1443
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.
1448ac_fn_c_try_run ()
1449{
1450  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451  if { { ac_try="$ac_link"
1452case "(($ac_try" in
1453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454  *) ac_try_echo=$ac_try;;
1455esac
1456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457$as_echo "$ac_try_echo"; } >&5
1458  (eval "$ac_link") 2>&5
1459  ac_status=$?
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;;
1465esac
1466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467$as_echo "$ac_try_echo"; } >&5
1468  (eval "$ac_try") 2>&5
1469  ac_status=$?
1470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471  test $ac_status = 0; }; }; then :
1472  ac_retval=0
1473else
1474  $as_echo "$as_me: program exited with status $ac_status" >&5
1475       $as_echo "$as_me: failed program was:" >&5
1476sed 's/^/| /' conftest.$ac_ext >&5
1477
1478       ac_retval=$ac_status
1479fi
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
1483
1484} # ac_fn_c_try_run
1485
1486# ac_fn_c_try_link LINENO
1487# -----------------------
1488# Try to link conftest.$ac_ext, and return whether this succeeded.
1489ac_fn_c_try_link ()
1490{
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"
1494case "(($ac_try" in
1495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496  *) ac_try_echo=$ac_try;;
1497esac
1498eval 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
1501  ac_status=$?
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
1506  fi
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
1514       }; then :
1515  ac_retval=0
1516else
1517  $as_echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
1519
1520	ac_retval=1
1521fi
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
1529
1530} # ac_fn_c_try_link
1531
1532# ac_fn_c_try_cpp LINENO
1533# ----------------------
1534# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_cpp ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  if { { ac_try="$ac_cpp conftest.$ac_ext"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval 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
1546  ac_status=$?
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
1551  fi
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
1556       }; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562    ac_retval=1
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_cpp
1568cat >config.log <<_ACEOF
1569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
1572It was created by sdlvisualtest $as_me 0.01, which was
1573generated by GNU Autoconf 2.69.  Invocation command line was
1574
1575  $ $0 $@
1576
1577_ACEOF
1578exec 5>>config.log
1579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
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`
1593
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`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607  IFS=$as_save_IFS
1608  test -z "$as_dir" && as_dir=.
1609    $as_echo "PATH: $as_dir"
1610  done
1611IFS=$as_save_IFS
1612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
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.
1630ac_configure_args=
1631ac_configure_args0=
1632ac_configure_args1=
1633ac_must_keep_next=false
1634for ac_pass in 1 2
1635do
1636  for ac_arg
1637  do
1638    case $ac_arg in
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)
1642      continue ;;
1643    *\'*)
1644      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645    esac
1646    case $ac_pass in
1647    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1648    2)
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.
1652      else
1653	case $ac_arg in
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 ;;
1660	    esac
1661	    ;;
1662	  -* ) ac_must_keep_next=true ;;
1663	esac
1664      fi
1665      as_fn_append ac_configure_args " '$ac_arg'"
1666      ;;
1667    esac
1668  done
1669done
1670{ ac_configure_args0=; unset ac_configure_args0;}
1671{ ac_configure_args1=; unset ac_configure_args1;}
1672
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.
1678trap 'exit_status=$?
1679  # Save into config.log some information that might help in debugging.
1680  {
1681    echo
1682
1683    $as_echo "## ---------------- ##
1684## Cache variables. ##
1685## ---------------- ##"
1686    echo
1687    # The following way of writing the cache mishandles newlines in values,
1688(
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
1691    case $ac_val in #(
1692    *${as_nl}*)
1693      case $ac_var in #(
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;} ;;
1696      esac
1697      case $ac_var in #(
1698      _ | IFS | as_nl) ;; #(
1699      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1700      *) { eval $ac_var=; unset $ac_var;} ;;
1701      esac ;;
1702    esac
1703  done
1704  (set) 2>&1 |
1705    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706    *${as_nl}ac_space=\ *)
1707      sed -n \
1708	"s/'\''/'\''\\\\'\'''\''/g;
1709	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710      ;; #(
1711    *)
1712      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713      ;;
1714    esac |
1715    sort
1716)
1717    echo
1718
1719    $as_echo "## ----------------- ##
1720## Output variables. ##
1721## ----------------- ##"
1722    echo
1723    for ac_var in $ac_subst_vars
1724    do
1725      eval ac_val=\$$ac_var
1726      case $ac_val in
1727      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728      esac
1729      $as_echo "$ac_var='\''$ac_val'\''"
1730    done | sort
1731    echo
1732
1733    if test -n "$ac_subst_files"; then
1734      $as_echo "## ------------------- ##
1735## File substitutions. ##
1736## ------------------- ##"
1737      echo
1738      for ac_var in $ac_subst_files
1739      do
1740	eval ac_val=\$$ac_var
1741	case $ac_val in
1742	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743	esac
1744	$as_echo "$ac_var='\''$ac_val'\''"
1745      done | sort
1746      echo
1747    fi
1748
1749    if test -s confdefs.h; then
1750      $as_echo "## ----------- ##
1751## confdefs.h. ##
1752## ----------- ##"
1753      echo
1754      cat confdefs.h
1755      echo
1756    fi
1757    test "$ac_signal" != 0 &&
1758      $as_echo "$as_me: caught signal $ac_signal"
1759    $as_echo "$as_me: exit $exit_status"
1760  } >&5
1761  rm -f core *.core core.conftest.* &&
1762    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763    exit $exit_status
1764' 0
1765for ac_signal in 1 2 13 15; do
1766  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1767done
1768ac_signal=0
1769
1770# confdefs.h avoids OS command line length limits that DEFS can exceed.
1771rm -f -r conftest* confdefs.h
1772
1773$as_echo "/* confdefs.h */" > confdefs.h
1774
1775# Predefined preprocessor variables.
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_NAME "$PACKAGE_NAME"
1779_ACEOF
1780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783_ACEOF
1784
1785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_VERSION "$PACKAGE_VERSION"
1787_ACEOF
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_STRING "$PACKAGE_STRING"
1791_ACEOF
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795_ACEOF
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_URL "$PACKAGE_URL"
1799_ACEOF
1800
1801
1802# Let the site file select an alternate cache file if it wants to.
1803# Prefer an explicitly selected file to automatically selected ones.
1804ac_site_file1=NONE
1805ac_site_file2=NONE
1806if 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;;
1812  esac
1813elif test "x$prefix" != xNONE; then
1814  ac_site_file1=$prefix/share/config.site
1815  ac_site_file2=$prefix/etc/config.site
1816else
1817  ac_site_file1=$ac_default_prefix/share/config.site
1818  ac_site_file2=$ac_default_prefix/etc/config.site
1819fi
1820for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1821do
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
1827    . "$ac_site_file" \
1828      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1830as_fn_error $? "failed to load site script $ac_site_file
1831See \`config.log' for more details" "$LINENO" 5; }
1832  fi
1833done
1834
1835if 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;}
1841    case $cache_file in
1842      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843      *)                      . "./$cache_file";;
1844    esac
1845  fi
1846else
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1848$as_echo "$as_me: creating cache $cache_file" >&6;}
1849  >$cache_file
1850fi
1851
1852# Check that the precious variables saved in the cache have kept the same
1853# value.
1854ac_cache_corrupted=false
1855for 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
1861    set,)
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=: ;;
1865    ,set)
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=: ;;
1869    ,);;
1870    *)
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=:
1879	else
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
1883	fi
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;}
1888      fi;;
1889  esac
1890  # Pass precious variables to config.status.
1891  if test "$ac_new_set" = set; then
1892    case $ac_new_val in
1893    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894    *) ac_arg=$ac_var=$ac_new_val ;;
1895    esac
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'" ;;
1899    esac
1900  fi
1901done
1902if $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
1908fi
1909## -------------------- ##
1910## Main body of script. ##
1911## -------------------- ##
1912
1913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
1921ac_aux_dir=
1922for ac_dir in $srcdir/../build-scripts; do
1923  if test -f "$ac_dir/install-sh"; then
1924    ac_aux_dir=$ac_dir
1925    ac_install_sh="$ac_aux_dir/install-sh -c"
1926    break
1927  elif test -f "$ac_dir/install.sh"; then
1928    ac_aux_dir=$ac_dir
1929    ac_install_sh="$ac_aux_dir/install.sh -c"
1930    break
1931  elif test -f "$ac_dir/shtool"; then
1932    ac_aux_dir=$ac_dir
1933    ac_install_sh="$ac_aux_dir/shtool install -c"
1934    break
1935  fi
1936done
1937if test -z "$ac_aux_dir"; then
1938  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
1939fi
1940
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.
1945ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
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
1953
1954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1955$as_echo_n "checking build system type... " >&6; }
1956if ${ac_cv_build+:} false; then :
1957  $as_echo_n "(cached) " >&6
1958else
1959  ac_build_alias=$build_alias
1960test "x$ac_build_alias" = x &&
1961  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1962test "x$ac_build_alias" = x &&
1963  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1964ac_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
1966
1967fi
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1969$as_echo "$ac_cv_build" >&6; }
1970case $ac_cv_build in
1971*-*-*) ;;
1972*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1973esac
1974build=$ac_cv_build
1975ac_save_IFS=$IFS; IFS='-'
1976set x $ac_cv_build
1977shift
1978build_cpu=$1
1979build_vendor=$2
1980shift; shift
1981# Remember, the first character of IFS is used to create $*,
1982# except with old shells:
1983build_os=$*
1984IFS=$ac_save_IFS
1985case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1986
1987
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1989$as_echo_n "checking host system type... " >&6; }
1990if ${ac_cv_host+:} false; then :
1991  $as_echo_n "(cached) " >&6
1992else
1993  if test "x$host_alias" = x; then
1994  ac_cv_host=$ac_cv_build
1995else
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
1998fi
1999
2000fi
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2002$as_echo "$ac_cv_host" >&6; }
2003case $ac_cv_host in
2004*-*-*) ;;
2005*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2006esac
2007host=$ac_cv_host
2008ac_save_IFS=$IFS; IFS='-'
2009set x $ac_cv_host
2010shift
2011host_cpu=$1
2012host_vendor=$2
2013shift; shift
2014# Remember, the first character of IFS is used to create $*,
2015# except with old shells:
2016host_os=$*
2017IFS=$ac_save_IFS
2018case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2019
2020
2021
2022
2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if 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.
2030set 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; }
2033if ${ac_cv_prog_CC+:} false; then :
2034  $as_echo_n "(cached) " >&6
2035else
2036  if test -n "$CC"; then
2037  ac_cv_prog_CC="$CC" # Let the user override the test.
2038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042  IFS=$as_save_IFS
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
2048    break 2
2049  fi
2050done
2051  done
2052IFS=$as_save_IFS
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2059$as_echo "$CC" >&6; }
2060else
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2062$as_echo "no" >&6; }
2063fi
2064
2065
2066fi
2067if test -z "$ac_cv_prog_CC"; then
2068  ac_ct_CC=$CC
2069  # Extract the first word of "gcc", so it can be a program name with args.
2070set 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; }
2073if ${ac_cv_prog_ac_ct_CC+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075else
2076  if test -n "$ac_ct_CC"; then
2077  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
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
2088    break 2
2089  fi
2090done
2091  done
2092IFS=$as_save_IFS
2093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if 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; }
2100else
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2102$as_echo "no" >&6; }
2103fi
2104
2105  if test "x$ac_ct_CC" = x; then
2106    CC=""
2107  else
2108    case $cross_compiling:$ac_tool_warned in
2109yes:)
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;}
2112ac_tool_warned=yes ;;
2113esac
2114    CC=$ac_ct_CC
2115  fi
2116else
2117  CC="$ac_cv_prog_CC"
2118fi
2119
2120if 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.
2123set 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; }
2126if ${ac_cv_prog_CC+:} false; then :
2127  $as_echo_n "(cached) " >&6
2128else
2129  if test -n "$CC"; then
2130  ac_cv_prog_CC="$CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
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
2141    break 2
2142  fi
2143done
2144  done
2145IFS=$as_save_IFS
2146
2147fi
2148fi
2149CC=$ac_cv_prog_CC
2150if test -n "$CC"; then
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2152$as_echo "$CC" >&6; }
2153else
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2155$as_echo "no" >&6; }
2156fi
2157
2158
2159  fi
2160fi
2161if test -z "$CC"; then
2162  # Extract the first word of "cc", so it can be a program name with args.
2163set 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; }
2166if ${ac_cv_prog_CC+:} false; then :
2167  $as_echo_n "(cached) " >&6
2168else
2169  if test -n "$CC"; then
2170  ac_cv_prog_CC="$CC" # Let the user override the test.
2171else
2172  ac_prog_rejected=no
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
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
2182       continue
2183     fi
2184    ac_cv_prog_CC="cc"
2185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2186    break 2
2187  fi
2188done
2189  done
2190IFS=$as_save_IFS
2191
2192if 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
2195  shift
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.
2200    shift
2201    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202  fi
2203fi
2204fi
2205fi
2206CC=$ac_cv_prog_CC
2207if test -n "$CC"; then
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2209$as_echo "$CC" >&6; }
2210else
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2212$as_echo "no" >&6; }
2213fi
2214
2215
2216fi
2217if test -z "$CC"; then
2218  if test -n "$ac_tool_prefix"; then
2219  for ac_prog in cl.exe
2220  do
2221    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2222set 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; }
2225if ${ac_cv_prog_CC+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  if test -n "$CC"; then
2229  ac_cv_prog_CC="$CC" # Let the user override the test.
2230else
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
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
2240    break 2
2241  fi
2242done
2243  done
2244IFS=$as_save_IFS
2245
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
2250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2251$as_echo "$CC" >&6; }
2252else
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2254$as_echo "no" >&6; }
2255fi
2256
2257
2258    test -n "$CC" && break
2259  done
2260fi
2261if test -z "$CC"; then
2262  ac_ct_CC=$CC
2263  for ac_prog in cl.exe
2264do
2265  # Extract the first word of "$ac_prog", so it can be a program name with args.
2266set 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; }
2269if ${ac_cv_prog_ac_ct_CC+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  if test -n "$ac_ct_CC"; then
2273  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274else
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
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
2284    break 2
2285  fi
2286done
2287  done
2288IFS=$as_save_IFS
2289
2290fi
2291fi
2292ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293if 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; }
2296else
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298$as_echo "no" >&6; }
2299fi
2300
2301
2302  test -n "$ac_ct_CC" && break
2303done
2304
2305  if test "x$ac_ct_CC" = x; then
2306    CC=""
2307  else
2308    case $cross_compiling:$ac_tool_warned in
2309yes:)
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;}
2312ac_tool_warned=yes ;;
2313esac
2314    CC=$ac_ct_CC
2315  fi
2316fi
2317
2318fi
2319
2320
2321test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323as_fn_error $? "no acceptable C compiler found in \$PATH
2324See \`config.log' for more details" "$LINENO" 5; }
2325
2326# Provide some information about the compiler.
2327$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2328set X $ac_compile
2329ac_compiler=$2
2330for ac_option in --version -v -V -qversion; do
2331  { { ac_try="$ac_compiler $ac_option >&5"
2332case "(($ac_try" in
2333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334  *) ac_try_echo=$ac_try;;
2335esac
2336eval 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
2339  ac_status=$?
2340  if test -s conftest.err; then
2341    sed '10a\
2342... rest of stderr output deleted ...
2343         10q' conftest.err >conftest.er1
2344    cat conftest.er1 >&5
2345  fi
2346  rm -f conftest.er1 conftest.err
2347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348  test $ac_status = 0; }
2349done
2350
2351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362ac_clean_files_save=$ac_clean_files
2363ac_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
2366# of exeext.
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; }
2369ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370
2371# The possible output files:
2372ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2373
2374ac_rmfiles=
2375for ac_file in $ac_files
2376do
2377  case $ac_file in
2378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2379    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2380  esac
2381done
2382rm -f $ac_rmfiles
2383
2384if { { ac_try="$ac_link_default"
2385case "(($ac_try" in
2386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387  *) ac_try_echo=$ac_try;;
2388esac
2389eval 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
2392  ac_status=$?
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
2399# Autoconf.
2400for ac_file in $ac_files ''
2401do
2402  test -f "$ac_file" || continue
2403  case $ac_file in
2404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2405	;;
2406    [ab].out )
2407	# We found the default executable, but exeext='' is most
2408	# certainly right.
2409	break;;
2410    *.* )
2411	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2412	then :; else
2413	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414	fi
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
2419	# actually working.
2420	break;;
2421    * )
2422	break;;
2423  esac
2424done
2425test "$ac_cv_exeext" = no && ac_cv_exeext=
2426
2427else
2428  ac_file=''
2429fi
2430if 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
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438as_fn_error 77 "C compiler cannot create executables
2439See \`config.log' for more details" "$LINENO" 5; }
2440else
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442$as_echo "yes" >&6; }
2443fi
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; }
2448ac_exeext=$ac_cv_exeext
2449
2450rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2451ac_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; }
2454if { { ac_try="$ac_link"
2455case "(($ac_try" in
2456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457  *) ac_try_echo=$ac_try;;
2458esac
2459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460$as_echo "$ac_try_echo"; } >&5
2461  (eval "$ac_link") 2>&5
2462  ac_status=$?
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
2468# `rm'.
2469for ac_file in conftest.exe conftest conftest.*; do
2470  test -f "$ac_file" || continue
2471  case $ac_file in
2472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2473    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474	  break;;
2475    * ) break;;
2476  esac
2477done
2478else
2479  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details" "$LINENO" 5; }
2483fi
2484rm -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; }
2487
2488rm -f conftest.$ac_ext
2489EXEEXT=$ac_cv_exeext
2490ac_exeext=$EXEEXT
2491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h.  */
2493#include <stdio.h>
2494int
2495main ()
2496{
2497FILE *f = fopen ("conftest.out", "w");
2498 return ferror (f) || fclose (f) != 0;
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504ac_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; }
2509if test "$cross_compiling" != yes; then
2510  { { ac_try="$ac_link"
2511case "(($ac_try" in
2512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513  *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516$as_echo "$ac_try_echo"; } >&5
2517  (eval "$ac_link") 2>&5
2518  ac_status=$?
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;;
2525esac
2526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527$as_echo "$ac_try_echo"; } >&5
2528  (eval "$ac_try") 2>&5
2529  ac_status=$?
2530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531  test $ac_status = 0; }; }; then
2532    cross_compiling=no
2533  else
2534    if test "$cross_compiling" = maybe; then
2535	cross_compiling=yes
2536    else
2537	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539as_fn_error $? "cannot run C compiled programs.
2540If you meant to cross compile, use \`--host'.
2541See \`config.log' for more details" "$LINENO" 5; }
2542    fi
2543  fi
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2546$as_echo "$cross_compiling" >&6; }
2547
2548rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2549ac_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; }
2552if ${ac_cv_objext+:} false; then :
2553  $as_echo_n "(cached) " >&6
2554else
2555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h.  */
2557
2558int
2559main ()
2560{
2561
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.o conftest.obj
2567if { { ac_try="$ac_compile"
2568case "(($ac_try" in
2569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570  *) ac_try_echo=$ac_try;;
2571esac
2572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573$as_echo "$ac_try_echo"; } >&5
2574  (eval "$ac_compile") 2>&5
2575  ac_status=$?
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;
2580  case $ac_file in
2581    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2582    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2583       break;;
2584  esac
2585done
2586else
2587  $as_echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592as_fn_error $? "cannot compute suffix of object files: cannot compile
2593See \`config.log' for more details" "$LINENO" 5; }
2594fi
2595rm -f conftest.$ac_cv_objext conftest.$ac_ext
2596fi
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2598$as_echo "$ac_cv_objext" >&6; }
2599OBJEXT=$ac_cv_objext
2600ac_objext=$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; }
2603if ${ac_cv_c_compiler_gnu+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h.  */
2608
2609int
2610main ()
2611{
2612#ifndef __GNUC__
2613       choke me
2614#endif
2615
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621  ac_compiler_gnu=yes
2622else
2623  ac_compiler_gnu=no
2624fi
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2630$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2631if test $ac_compiler_gnu = yes; then
2632  GCC=yes
2633else
2634  GCC=
2635fi
2636ac_test_CFLAGS=${CFLAGS+set}
2637ac_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; }
2640if ${ac_cv_prog_cc_g+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  ac_save_c_werror_flag=$ac_c_werror_flag
2644   ac_c_werror_flag=yes
2645   ac_cv_prog_cc_g=no
2646   CFLAGS="-g"
2647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648/* end confdefs.h.  */
2649
2650int
2651main ()
2652{
2653
2654  ;
2655  return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659  ac_cv_prog_cc_g=yes
2660else
2661  CFLAGS=""
2662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h.  */
2664
2665int
2666main ()
2667{
2668
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"; then :
2674
2675else
2676  ac_c_werror_flag=$ac_save_c_werror_flag
2677	 CFLAGS="-g"
2678	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h.  */
2680
2681int
2682main ()
2683{
2684
2685  ;
2686  return 0;
2687}
2688_ACEOF
2689if ac_fn_c_try_compile "$LINENO"; then :
2690  ac_cv_prog_cc_g=yes
2691fi
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693fi
2694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697   ac_c_werror_flag=$ac_save_c_werror_flag
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2700$as_echo "$ac_cv_prog_cc_g" >&6; }
2701if test "$ac_test_CFLAGS" = set; then
2702  CFLAGS=$ac_save_CFLAGS
2703elif test $ac_cv_prog_cc_g = yes; then
2704  if test "$GCC" = yes; then
2705    CFLAGS="-g -O2"
2706  else
2707    CFLAGS="-g"
2708  fi
2709else
2710  if test "$GCC" = yes; then
2711    CFLAGS="-O2"
2712  else
2713    CFLAGS=
2714  fi
2715fi
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; }
2718if ${ac_cv_prog_cc_c89+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  ac_cv_prog_cc_c89=no
2722ac_save_CC=$CC
2723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h.  */
2725#include <stdarg.h>
2726#include <stdio.h>
2727struct stat;
2728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2729struct buf { int x; };
2730FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731static char *e (p, i)
2732     char **p;
2733     int i;
2734{
2735  return p[i];
2736}
2737static char *f (char * (*g) (char **, int), char **p, ...)
2738{
2739  char *s;
2740  va_list v;
2741  va_start (v,p);
2742  s = g (p, va_arg (v,int));
2743  va_end (v);
2744  return s;
2745}
2746
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.  */
2754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755
2756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757   inside strings and character constants.  */
2758#define FOO(x) 'x'
2759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2760
2761int test (int i, double x);
2762struct s1 {int (*f) (int a);};
2763struct s2 {int (*f) (double a);};
2764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765int argc;
2766char **argv;
2767int
2768main ()
2769{
2770return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2771  ;
2772  return 0;
2773}
2774_ACEOF
2775for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2776	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777do
2778  CC="$ac_save_CC $ac_arg"
2779  if ac_fn_c_try_compile "$LINENO"; then :
2780  ac_cv_prog_cc_c89=$ac_arg
2781fi
2782rm -f core conftest.err conftest.$ac_objext
2783  test "x$ac_cv_prog_cc_c89" != "xno" && break
2784done
2785rm -f conftest.$ac_ext
2786CC=$ac_save_CC
2787
2788fi
2789# AC_CACHE_VAL
2790case "x$ac_cv_prog_cc_c89" in
2791  x)
2792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2793$as_echo "none needed" >&6; } ;;
2794  xno)
2795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2796$as_echo "unsupported" >&6; } ;;
2797  *)
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; } ;;
2801esac
2802if test "x$ac_cv_prog_cc_c89" != xno; then :
2803
2804fi
2805
2806ac_ext=c
2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811
2812
2813
2814
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; }
2817if ${ac_cv_c_const+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h.  */
2822
2823int
2824main ()
2825{
2826
2827#ifndef __cplusplus
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;
2833  char **ppc;
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
2840     expression */
2841  const char *g = "string";
2842  pcpcc = &g + (g ? g-g : 0);
2843  /* HPUX 7.0 cc rejects these. */
2844  ++pcpcc;
2845  ppc = (char**) pcpcc;
2846  pcpcc = (char const *const *) ppc;
2847  { /* SCO 3.2v4 cc rejects this sort of thing.  */
2848    char tx;
2849    char *t = &tx;
2850    char const *s = 0 ? (char *) 0 : (char const *) 0;
2851
2852    *t++ = 0;
2853    if (s) return 0;
2854  }
2855  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2856    int x[] = {25, 17};
2857    const int *foo = &x[0];
2858    ++foo;
2859  }
2860  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2861    typedef const int *iptr;
2862    iptr p = 0;
2863    ++p;
2864  }
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;
2869  }
2870  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2871    const int foo = 10;
2872    if (!foo) return 0;
2873  }
2874  return !cs[0] && !zero.x;
2875#endif
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882  ac_cv_c_const=yes
2883else
2884  ac_cv_c_const=no
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887fi
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
2889$as_echo "$ac_cv_c_const" >&6; }
2890if test $ac_cv_c_const = no; then
2891
2892$as_echo "#define const /**/" >>confdefs.h
2893
2894fi
2895
2896
2897ISUNIX="false"
2898ISWINDOWS="false"
2899ISMACOSX="false"
2900
2901case "$host" in
2902    *-*-cygwin* | *-*-mingw32*)
2903        ISWINDOWS="true"
2904        EXE=".exe"
2905        MATHLIB=""
2906        EXTRALIB="-lshlwapi"
2907        SYS_GL_LIBS="-lopengl32"
2908        ;;
2909    *-*-haiku*)
2910        EXE=""
2911        MATHLIB=""
2912        EXTRALIB=""
2913        SYS_GL_LIBS="-lGL"
2914        ;;
2915    *-*-darwin* )
2916        ISMACOSX="true"
2917        EXE=""
2918        MATHLIB=""
2919        EXTRALIB=""
2920
2921        ;;
2922    *-*-aix*)
2923        ISUNIX="true"
2924        EXE=""
2925        if test x$ac_cv_c_compiler_gnu = xyes; then
2926            CFLAGS="-mthreads"
2927        fi
2928        MATHLIB=""
2929        EXTRALIB=""
2930        SYS_GL_LIBS=""
2931        ;;
2932    *-*-mint*)
2933        EXE=""
2934        MATHLIB=""
2935        EXTRALIB=""
2936        # Extract the first word of "osmesa-config", so it can be a program name with args.
2937set 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; }
2940if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
2941  $as_echo_n "(cached) " >&6
2942else
2943  case $OSMESA_CONFIG in
2944  [\\/]* | ?:[\\/]*)
2945  ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2946  ;;
2947  *)
2948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
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
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963  test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2964  ;;
2965esac
2966fi
2967OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2968if test -n "$OSMESA_CONFIG"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
2970$as_echo "$OSMESA_CONFIG" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
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"
2982        else
2983            SYS_GL_LIBS="-lOSMesa"
2984        fi
2985        ;;
2986    *-*-qnx*)
2987        EXE=""
2988        MATHLIB=""
2989        EXTRALIB=""
2990        SYS_GL_LIBS="-lGLES_CM"
2991        ;;
2992    *)
2993                ISUNIX="true"
2994        EXE=""
2995        MATHLIB="-lm"
2996        EXTRALIB=""
2997        SYS_GL_LIBS="-lGL"
2998        ;;
2999esac
3000
3001
3002
3003
3004
3005
3006
3007SDL_VERSION=2.0.0
3008
3009
3010
3011
3012
3013
3014if 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.
3017set 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; }
3020if ${ac_cv_path_PKG_CONFIG+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  case $PKG_CONFIG in
3024  [\\/]* | ?:[\\/]*)
3025  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3026  ;;
3027  *)
3028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
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
3037    break 2
3038  fi
3039done
3040  done
3041IFS=$as_save_IFS
3042
3043  ;;
3044esac
3045fi
3046PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3047if test -n "$PKG_CONFIG"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3049$as_echo "$PKG_CONFIG" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if 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.
3060set 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; }
3063if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  case $ac_pt_PKG_CONFIG in
3067  [\\/]* | ?:[\\/]*)
3068  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3069  ;;
3070  *)
3071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
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
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086  ;;
3087esac
3088fi
3089ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3090if 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; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098  if test "x$ac_pt_PKG_CONFIG" = x; then
3099    PKG_CONFIG=""
3100  else
3101    case $cross_compiling:$ac_tool_warned in
3102yes:)
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;}
3105ac_tool_warned=yes ;;
3106esac
3107    PKG_CONFIG=$ac_pt_PKG_CONFIG
3108  fi
3109else
3110  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3111fi
3112
3113fi
3114if 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; }
3121	else
3122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124		PKG_CONFIG=""
3125	fi
3126fi
3127
3128# Check whether --with-sdl-prefix was given.
3129if test "${with_sdl_prefix+set}" = set; then :
3130  withval=$with_sdl_prefix; sdl_prefix="$withval"
3131else
3132  sdl_prefix=""
3133fi
3134
3135
3136# Check whether --with-sdl-exec-prefix was given.
3137if test "${with_sdl_exec_prefix+set}" = set; then :
3138  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
3139else
3140  sdl_exec_prefix=""
3141fi
3142
3143# Check whether --enable-sdltest was given.
3144if test "${enable_sdltest+set}" = set; then :
3145  enableval=$enable_sdltest;
3146else
3147  enable_sdltest=yes
3148fi
3149
3150
3151  min_sdl_version=$SDL_VERSION
3152
3153  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
3154
3155pkg_failed=no
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
3157$as_echo_n "checking for SDL... " >&6; }
3158
3159if 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
3165  ac_status=$?
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`
3169else
3170  pkg_failed=yes
3171fi
3172 else
3173    pkg_failed=untried
3174fi
3175if 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
3181  ac_status=$?
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`
3185else
3186  pkg_failed=yes
3187fi
3188 else
3189    pkg_failed=untried
3190fi
3191
3192
3193
3194if test $pkg_failed = yes; then
3195   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197
3198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3199        _pkg_short_errors_supported=yes
3200else
3201        _pkg_short_errors_supported=no
3202fi
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`
3205        else
3206	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
3207        fi
3208	# Put the nasty error message in config.log where it belongs
3209	echo "$SDL_PKG_ERRORS" >&5
3210
3211	sdl_pc=no
3212elif test $pkg_failed = untried; then
3213     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215	sdl_pc=no
3216else
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; }
3221	sdl_pc=yes
3222fi
3223  else
3224    sdl_pc=no
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
3229      fi
3230    fi
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
3235      fi
3236    fi
3237  fi
3238
3239  if test "x$sdl_pc" = xyes ; then
3240    no_sdl=""
3241    SDL_CONFIG="pkg-config sdl2"
3242  else
3243    as_save_PATH="$PATH"
3244    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
3245      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
3246    fi
3247    # Extract the first word of "sdl2-config", so it can be a program name with args.
3248set 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; }
3251if ${ac_cv_path_SDL_CONFIG+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  case $SDL_CONFIG in
3255  [\\/]* | ?:[\\/]*)
3256  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3257  ;;
3258  *)
3259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
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
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3275  ;;
3276esac
3277fi
3278SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3279if test -n "$SDL_CONFIG"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
3281$as_echo "$SDL_CONFIG" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
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; }
3291    no_sdl=""
3292
3293    if test "$SDL_CONFIG" = "no" ; then
3294      no_sdl=yes
3295    else
3296      SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
3297      SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
3298
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"
3312      rm -f conf.sdltest
3313      if test "$cross_compiling" = yes; then :
3314  echo $ac_n "cross compiling; assumed OK... $ac_c"
3315else
3316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319#include <stdio.h>
3320#include <stdlib.h>
3321#include <string.h>
3322#include "SDL.h"
3323
3324char*
3325my_strdup (char *str)
3326{
3327  char *new_str;
3328
3329  if (str)
3330    {
3331      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3332      strcpy (new_str, str);
3333    }
3334  else
3335    new_str = NULL;
3336
3337  return new_str;
3338}
3339
3340int main (int argc, char *argv[])
3341{
3342  int major, minor, micro;
3343  char *tmp_version;
3344
3345  /* This hangs on some systems (?)
3346  system ("touch conf.sdltest");
3347  */
3348  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3349
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, &micro) != 3) {
3353     printf("%s, bad version string\n", "$min_sdl_version");
3354     exit(1);
3355   }
3356
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)))
3360    {
3361      return 0;
3362    }
3363  else
3364    {
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");
3371      return 1;
3372    }
3373}
3374
3375
3376_ACEOF
3377if ac_fn_c_try_run "$LINENO"; then :
3378
3379else
3380  no_sdl=yes
3381fi
3382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3383  conftest.$ac_objext conftest.beam conftest.$ac_ext
3384fi
3385
3386        CFLAGS="$ac_save_CFLAGS"
3387        CXXFLAGS="$ac_save_CXXFLAGS"
3388        LIBS="$ac_save_LIBS"
3389      fi
3390    fi
3391    if test "x$no_sdl" = x ; then
3392      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393$as_echo "yes" >&6; }
3394    else
3395      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397    fi
3398  fi
3399  if test "x$no_sdl" = x ; then
3400     :
3401  else
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."
3407     else
3408       if test -f conf.sdltest ; then
3409        :
3410       else
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.  */
3417
3418#include <stdio.h>
3419#include "SDL.h"
3420
3421int main(int argc, char *argv[])
3422{ return 0; }
3423#undef  main
3424#define main K_and_R_C_main
3425
3426int
3427main ()
3428{
3429 return 0;
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434if 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"
3441	  echo "***"
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"
3444else
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"
3449fi
3450rm -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"
3455       fi
3456     fi
3457     SDL_CFLAGS=""
3458     SDL_LIBS=""
3459     as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
3460
3461  fi
3462
3463
3464  rm -f conf.sdltest
3465
3466CFLAGS="$CFLAGS $SDL_CFLAGS"
3467LIBS="$LIBS -lSDL2_test $SDL_LIBS $EXTRALIB"
3468
3469ac_ext=c
3470ac_cpp='$CPP $CPPFLAGS'
3471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473ac_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.
3477if test -n "$CPP" && test -d "$CPP"; then
3478  CPP=
3479fi
3480if test -z "$CPP"; then
3481  if ${ac_cv_prog_CPP+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484      # Double quotes because CPP needs to be expanded
3485    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3486    do
3487      ac_preproc_ok=false
3488for ac_c_preproc_warn_flag in '' yes
3489do
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.  */
3498#ifdef __STDC__
3499# include <limits.h>
3500#else
3501# include <assert.h>
3502#endif
3503		     Syntax error
3504_ACEOF
3505if ac_fn_c_try_cpp "$LINENO"; then :
3506
3507else
3508  # Broken: fails on valid input.
3509continue
3510fi
3511rm -f conftest.err conftest.i conftest.$ac_ext
3512
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>
3518_ACEOF
3519if ac_fn_c_try_cpp "$LINENO"; then :
3520  # Broken: success on invalid input.
3521continue
3522else
3523  # Passes both tests.
3524ac_preproc_ok=:
3525break
3526fi
3527rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529done
3530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531rm -f conftest.i conftest.err conftest.$ac_ext
3532if $ac_preproc_ok; then :
3533  break
3534fi
3535
3536    done
3537    ac_cv_prog_CPP=$CPP
3538
3539fi
3540  CPP=$ac_cv_prog_CPP
3541else
3542  ac_cv_prog_CPP=$CPP
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3545$as_echo "$CPP" >&6; }
3546ac_preproc_ok=false
3547for ac_c_preproc_warn_flag in '' yes
3548do
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.  */
3557#ifdef __STDC__
3558# include <limits.h>
3559#else
3560# include <assert.h>
3561#endif
3562		     Syntax error
3563_ACEOF
3564if ac_fn_c_try_cpp "$LINENO"; then :
3565
3566else
3567  # Broken: fails on valid input.
3568continue
3569fi
3570rm -f conftest.err conftest.i conftest.$ac_ext
3571
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>
3577_ACEOF
3578if ac_fn_c_try_cpp "$LINENO"; then :
3579  # Broken: success on invalid input.
3580continue
3581else
3582  # Passes both tests.
3583ac_preproc_ok=:
3584break
3585fi
3586rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588done
3589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590rm -f conftest.i conftest.err conftest.$ac_ext
3591if $ac_preproc_ok; then :
3592
3593else
3594  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3597See \`config.log' for more details" "$LINENO" 5; }
3598fi
3599
3600ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3608$as_echo_n "checking for X... " >&6; }
3609
3610
3611# Check whether --with-x was given.
3612if test "${with_x+set}" = set; then :
3613  withval=$with_x;
3614fi
3615
3616# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3617if test "x$with_x" = xno; then
3618  # The user explicitly disabled X.
3619  have_x=disabled
3620else
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
3625else
3626  # One or both of the vars are not set, and there is no cached value.
3627ac_x_includes=no ac_x_libraries=no
3628rm -f -r conftest.dir
3629if mkdir conftest.dir; then
3630  cd conftest.dir
3631  cat >Imakefile <<'_ACEOF'
3632incroot:
3633	@echo incroot='${INCROOT}'
3634usrlibdir:
3635	@echo usrlibdir='${USRLIBDIR}'
3636libdir:
3637	@echo libdir='${LIBDIR}'
3638_ACEOF
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'\`"
3643    done
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
3649      fi
3650    done
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;;
3657    esac
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 ;;
3661    esac
3662  fi
3663  cd ..
3664  rm -f -r conftest.dir
3665fi
3666
3667# Standard set of common directories for X headers.
3668# Check X11 before X11Rn because it is often a symlink to the current release.
3669ac_x_header_dirs='
3670/usr/X11/include
3671/usr/X11R7/include
3672/usr/X11R6/include
3673/usr/X11R5/include
3674/usr/X11R4/include
3675
3676/usr/include/X11
3677/usr/include/X11R7
3678/usr/include/X11R6
3679/usr/include/X11R5
3680/usr/include/X11R4
3681
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
3687
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
3693
3694/usr/X386/include
3695/usr/x386/include
3696/usr/XFree86/include/X11
3697
3698/usr/include
3699/usr/local/include
3700/usr/unsupported/include
3701/usr/athena/include
3702/usr/local/x11r5/include
3703/usr/lpp/Xamples/include
3704
3705/usr/openwin/include
3706/usr/openwin/share/include'
3707
3708if 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>
3714_ACEOF
3715if ac_fn_c_try_cpp "$LINENO"; then :
3716  # We can compile using X headers with no special include directory.
3717ac_x_includes=
3718else
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
3722    break
3723  fi
3724done
3725fi
3726rm -f conftest.err conftest.i conftest.$ac_ext
3727fi # $ac_x_includes = no
3728
3729if 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.
3733  ac_save_LIBS=$LIBS
3734  LIBS="-lX11 $LIBS"
3735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737#include <X11/Xlib.h>
3738int
3739main ()
3740{
3741XrmInitialize ()
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_link "$LINENO"; then :
3747  LIBS=$ac_save_LIBS
3748# We can link X programs with no special library path.
3749ac_x_libraries=
3750else
3751  LIBS=$ac_save_LIBS
3752for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3753do
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
3758      break 2
3759    fi
3760  done
3761done
3762fi
3763rm -f core conftest.err conftest.$ac_objext \
3764    conftest$ac_exeext conftest.$ac_ext
3765fi # $ac_x_libraries = no
3766
3767case $ac_x_includes,$ac_x_libraries in #(
3768  no,* | *,no | *\'*)
3769    # Didn't find X, or a directory has "'" in its name.
3770    ac_cv_have_x="have_x=no";; #(
3771  *)
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'"
3776esac
3777fi
3778;; #(
3779    *) have_x=yes;;
3780  esac
3781  eval "$ac_cv_have_x"
3782fi # $with_x != no
3783
3784if test "$have_x" != yes; then
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3786$as_echo "$have_x" >&6; }
3787  no_x=yes
3788else
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; }
3798fi
3799
3800if test x$have_x = xyes; then
3801    if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
3802        :
3803    else
3804        CFLAGS="$CFLAGS -I$ac_x_includes"
3805    fi
3806    if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
3807        :
3808    else
3809        XPATH="-L$ac_x_libraries"
3810    fi
3811fi
3812
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
3814$as_echo_n "checking for OpenGL support... " >&6; }
3815have_opengl=no
3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819 #include "SDL_opengl.h"
3820
3821int
3822main ()
3823{
3824
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831
3832have_opengl=yes
3833
3834fi
3835rm -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; }
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
3840$as_echo_n "checking for OpenGL ES support... " >&6; }
3841have_opengles=no
3842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844
3845 #if defined (__IPHONEOS__)
3846    #include <OpenGLES/ES1/gl.h>
3847 #else
3848    #include <GLES/gl.h>
3849 #endif /* __QNXNTO__ */
3850
3851int
3852main ()
3853{
3854
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861
3862have_opengles=yes
3863
3864fi
3865rm -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; }
3868
3869GLLIB=""
3870if test x$have_opengles = xyes; then
3871    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
3872    GLLIB="$XPATH -lGLESv1_CM"
3873elif test x$have_opengl = xyes; then
3874    CFLAGS="$CFLAGS -DHAVE_OPENGL"
3875    GLLIB="$XPATH $SYS_GL_LIBS"
3876else
3877    GLLIB=""
3878fi
3879
3880
3881
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; }
3884if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  ac_check_lib_save_LIBS=$LIBS
3888LIBS="-lSDL2_ttf  $LIBS"
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
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.  */
3895#ifdef __cplusplus
3896extern "C"
3897#endif
3898char TTF_Init ();
3899int
3900main ()
3901{
3902return TTF_Init ();
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907if ac_fn_c_try_link "$LINENO"; then :
3908  ac_cv_lib_SDL2_ttf_TTF_Init=yes
3909else
3910  ac_cv_lib_SDL2_ttf_TTF_Init=no
3911fi
3912rm -f core conftest.err conftest.$ac_objext \
3913    conftest$ac_exeext conftest.$ac_ext
3914LIBS=$ac_check_lib_save_LIBS
3915fi
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; }
3918if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
3919  have_SDL_ttf=yes
3920fi
3921
3922if test x$have_SDL_ttf = xyes; then
3923    CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
3924    SDL_TTF_LIB="-lSDL2_ttf"
3925fi
3926
3927
3928ac_config_headers="$ac_config_headers config.h"
3929
3930ac_config_files="$ac_config_files Makefile"
3931
3932cat >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.
3938#
3939# config.status only pays attention to the cache file if you give it
3940# the --recheck option to rerun configure.
3941#
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
3944# following values.
3945
3946_ACEOF
3947
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.
3953(
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
3956    case $ac_val in #(
3957    *${as_nl}*)
3958      case $ac_var in #(
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;} ;;
3961      esac
3962      case $ac_var in #(
3963      _ | IFS | as_nl) ;; #(
3964      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3965      *) { eval $ac_var=; unset $ac_var;} ;;
3966      esac ;;
3967    esac
3968  done
3969
3970  (set) 2>&1 |
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 \.
3975      sed -n \
3976	"s/'/'\\\\''/g;
3977	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3978      ;; #(
3979    *)
3980      # `set' quotes correctly as required by POSIX, so do not add quotes.
3981      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3982      ;;
3983    esac |
3984    sort
3985) |
3986  sed '
3987     /^ac_cv_env_/b end
3988     t clear
3989     :clear
3990     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3991     t end
3992     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3993     :end' >>confcache
3994if 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"
4001      else
4002        case $cache_file in #(
4003        */* | ?:*)
4004	  mv -f confcache "$cache_file"$$ &&
4005	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4006        *)
4007	  mv -f confcache "$cache_file" ;;
4008	esac
4009      fi
4010    fi
4011  else
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;}
4014  fi
4015fi
4016rm -f confcache
4017
4018test "x$prefix" = xNONE && prefix=$ac_default_prefix
4019# Let make expand exec_prefix.
4020test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4021
4022DEFS=-DHAVE_CONFIG_H
4023
4024ac_libobjs=
4025ac_ltlibobjs=
4026U=
4027for 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'
4035done
4036LIBOBJS=$ac_libobjs
4037
4038LTLIBOBJS=$ac_ltlibobjs
4039
4040
4041
4042: "${CONFIG_STATUS=./config.status}"
4043ac_write_fail=0
4044ac_clean_files_save=$ac_clean_files
4045ac_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;}
4048as_write_fail=0
4049cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4050#! $SHELL
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.
4055
4056debug=false
4057ac_cs_recheck=false
4058ac_cs_silent=false
4059
4060SHELL=\${CONFIG_SHELL-$SHELL}
4061export SHELL
4062_ASEOF
4063cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4064## -------------------- ##
4065## M4sh Initialization. ##
4066## -------------------- ##
4067
4068# Be more Bourne compatible
4069DUALCASE=1; export DUALCASE # for MKS sh
4070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4071  emulate sh
4072  NULLCMD=:
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
4077else
4078  case `(set -o) 2>/dev/null` in #(
4079  *posix*) :
4080    set -o posix ;; #(
4081  *) :
4082     ;;
4083esac
4084fi
4085
4086
4087as_nl='
4088'
4089export as_nl
4090# Printing a long string crashes Solaris 7 /usr/bin/printf.
4091as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4093as_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.
4096if 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 --'
4100elif (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'
4103else
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'
4107  else
4108    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4109    as_echo_n_body='eval
4110      arg=$1;
4111      case $arg in #(
4112      *"$as_nl"*)
4113	expr "X$arg" : "X\\(.*\\)$as_nl";
4114	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4115      esac;
4116      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4117    '
4118    export as_echo_n_body
4119    as_echo_n='sh -c $as_echo_n_body as_echo'
4120  fi
4121  export as_echo_body
4122  as_echo='sh -c $as_echo_body as_echo'
4123fi
4124
4125# The user is always right.
4126if test "${PATH_SEPARATOR+set}" != set; then
4127  PATH_SEPARATOR=:
4128  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4129    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4130      PATH_SEPARATOR=';'
4131  }
4132fi
4133
4134
4135# IFS
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.)
4140IFS=" ""	$as_nl"
4141
4142# Find who we are.  Look in the path if we contain no directory separator.
4143as_myself=
4144case $0 in #((
4145  *[\\/]* ) as_myself=$0 ;;
4146  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4152  done
4153IFS=$as_save_IFS
4154
4155     ;;
4156esac
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.
4159if test "x$as_myself" = x; then
4160  as_myself=$0
4161fi
4162if test ! -f "$as_myself"; then
4163  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4164  exit 1
4165fi
4166
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.
4171for as_var in BASH_ENV ENV MAIL MAILPATH
4172do eval test x\${$as_var+set} = xset \
4173  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4174done
4175PS1='$ '
4176PS2='> '
4177PS4='+ '
4178
4179# NLS nuisances.
4180LC_ALL=C
4181export LC_ALL
4182LANGUAGE=C
4183export LANGUAGE
4184
4185# CDPATH.
4186(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4187
4188
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.
4194as_fn_error ()
4195{
4196  as_status=$1; test $as_status -eq 0 && as_status=1
4197  if test "$4"; then
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
4200  fi
4201  $as_echo "$as_me: error: $2" >&2
4202  as_fn_exit $as_status
4203} # as_fn_error
4204
4205
4206# as_fn_set_status STATUS
4207# -----------------------
4208# Set $? to STATUS, without forking.
4209as_fn_set_status ()
4210{
4211  return $1
4212} # as_fn_set_status
4213
4214# as_fn_exit STATUS
4215# -----------------
4216# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4217as_fn_exit ()
4218{
4219  set +e
4220  as_fn_set_status $1
4221  exit $1
4222} # as_fn_exit
4223
4224# as_fn_unset VAR
4225# ---------------
4226# Portably unset VAR.
4227as_fn_unset ()
4228{
4229  { eval $1=; unset $1;}
4230}
4231as_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
4237# implementations.
4238if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4239  eval 'as_fn_append ()
4240  {
4241    eval $1+=\$2
4242  }'
4243else
4244  as_fn_append ()
4245  {
4246    eval $1=\$$1\$2
4247  }
4248fi # as_fn_append
4249
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.
4255if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4256  eval 'as_fn_arith ()
4257  {
4258    as_val=$(( $* ))
4259  }'
4260else
4261  as_fn_arith ()
4262  {
4263    as_val=`expr "$@" || test $? -eq 1`
4264  }
4265fi # as_fn_arith
4266
4267
4268if expr a : '\(a\)' >/dev/null 2>&1 &&
4269   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4270  as_expr=expr
4271else
4272  as_expr=false
4273fi
4274
4275if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4276  as_basename=basename
4277else
4278  as_basename=false
4279fi
4280
4281if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4282  as_dirname=dirname
4283else
4284  as_dirname=false
4285fi
4286
4287as_me=`$as_basename -- "$0" ||
4288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4289	 X"$0" : 'X\(//\)$' \| \
4290	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4291$as_echo X/"$0" |
4292    sed '/^.*\/\([^/][^/]*\)\/*$/{
4293	    s//\1/
4294	    q
4295	  }
4296	  /^X\/\(\/\/\)$/{
4297	    s//\1/
4298	    q
4299	  }
4300	  /^X\/\(\/\).*/{
4301	    s//\1/
4302	    q
4303	  }
4304	  s/.*/./; q'`
4305
4306# Avoid depending upon Character Ranges.
4307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4310as_cr_digits='0123456789'
4311as_cr_alnum=$as_cr_Letters$as_cr_digits
4312
4313ECHO_C= ECHO_N= ECHO_T=
4314case `echo -n x` in #(((((
4315-n*)
4316  case `echo 'xy\c'` in
4317  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4318  xy)  ECHO_C='\c';;
4319  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4320       ECHO_T='	';;
4321  esac;;
4322*)
4323  ECHO_N='-n';;
4324esac
4325
4326rm -f conf$$ conf$$.exe conf$$.file
4327if test -d conf$$.dir; then
4328  rm -f conf$$.dir/conf$$.file
4329else
4330  rm -f conf$$.dir
4331  mkdir conf$$.dir 2>/dev/null
4332fi
4333if (echo >conf$$.file) 2>/dev/null; then
4334  if ln -s conf$$.file conf$$ 2>/dev/null; then
4335    as_ln_s='ln -s'
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 ||
4341      as_ln_s='cp -pR'
4342  elif ln conf$$.file conf$$ 2>/dev/null; then
4343    as_ln_s=ln
4344  else
4345    as_ln_s='cp -pR'
4346  fi
4347else
4348  as_ln_s='cp -pR'
4349fi
4350rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4351rmdir conf$$.dir 2>/dev/null
4352
4353
4354# as_fn_mkdir_p
4355# -------------
4356# Create "$as_dir" as a directory, including parents if necessary.
4357as_fn_mkdir_p ()
4358{
4359
4360  case $as_dir in #(
4361  -*) as_dir=./$as_dir;;
4362  esac
4363  test -d "$as_dir" || eval $as_mkdir_p || {
4364    as_dirs=
4365    while :; do
4366      case $as_dir in #(
4367      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4368      *) as_qdir=$as_dir;;
4369      esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4378	    s//\1/
4379	    q
4380	  }
4381	  /^X\(\/\/\)[^/].*/{
4382	    s//\1/
4383	    q
4384	  }
4385	  /^X\(\/\/\)$/{
4386	    s//\1/
4387	    q
4388	  }
4389	  /^X\(\/\).*/{
4390	    s//\1/
4391	    q
4392	  }
4393	  s/.*/./; q'`
4394      test -d "$as_dir" && break
4395    done
4396    test -z "$as_dirs" || eval "mkdir $as_dirs"
4397  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4398
4399
4400} # as_fn_mkdir_p
4401if mkdir -p . 2>/dev/null; then
4402  as_mkdir_p='mkdir -p "$as_dir"'
4403else
4404  test -d ./-p && rmdir ./-p
4405  as_mkdir_p=false
4406fi
4407
4408
4409# as_fn_executable_p FILE
4410# -----------------------
4411# Test if FILE is an executable regular file.
4412as_fn_executable_p ()
4413{
4414  test -f "$1" && test -x "$1"
4415} # as_fn_executable_p
4416as_test_x='test -x'
4417as_executable_p=as_fn_executable_p
4418
4419# Sed expression to map a string onto a valid CPP name.
4420as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4421
4422# Sed expression to map a string onto a valid variable name.
4423as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4424
4425
4426exec 6>&1
4427## ----------------------------------- ##
4428## Main body of $CONFIG_STATUS script. ##
4429## ----------------------------------- ##
4430_ASEOF
4431test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4432
4433cat >>$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.
4437ac_log="
4438This file was extended by sdlvisualtest $as_me 0.01, which was
4439generated by GNU Autoconf 2.69.  Invocation command line was
4440
4441  CONFIG_FILES    = $CONFIG_FILES
4442  CONFIG_HEADERS  = $CONFIG_HEADERS
4443  CONFIG_LINKS    = $CONFIG_LINKS
4444  CONFIG_COMMANDS = $CONFIG_COMMANDS
4445  $ $0 $@
4446
4447on `(hostname || uname -n) 2>/dev/null | sed 1q`
4448"
4449
4450_ACEOF
4451
4452case $ac_config_files in *"
4453"*) set x $ac_config_files; shift; ac_config_files=$*;;
4454esac
4455
4456case $ac_config_headers in *"
4457"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4458esac
4459
4460
4461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4462# Files that config.status was made for.
4463config_files="$ac_config_files"
4464config_headers="$ac_config_headers"
4465
4466_ACEOF
4467
4468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4469ac_cs_usage="\
4470\`$as_me' instantiates files and other configuration actions
4471from templates according to the current configuration.  Unless the files
4472and actions are specified as TAGs, all are instantiated by default.
4473
4474Usage: $0 [OPTION]... [TAG]...
4475
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
4487
4488Configuration files:
4489$config_files
4490
4491Configuration headers:
4492$config_headers
4493
4494Report bugs to <apoorvupreti@gmail.com>."
4495
4496_ACEOF
4497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4498ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4499ac_cs_version="\\
4500sdlvisualtest config.status 0.01
4501configured by $0, generated by GNU Autoconf 2.69,
4502  with options \\"\$ac_cs_config\\"
4503
4504Copyright (C) 2012 Free Software Foundation, Inc.
4505This config.status script is free software; the Free Software Foundation
4506gives unlimited permission to copy, distribute and modify it."
4507
4508ac_pwd='$ac_pwd'
4509srcdir='$srcdir'
4510test -n "\$AWK" || AWK=awk
4511_ACEOF
4512
4513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4514# The default lists apply if the user does not specify any file.
4515ac_need_defaults=:
4516while test $# != 0
4517do
4518  case $1 in
4519  --*=?*)
4520    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4521    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4522    ac_shift=:
4523    ;;
4524  --*=)
4525    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4526    ac_optarg=
4527    ac_shift=:
4528    ;;
4529  *)
4530    ac_option=$1
4531    ac_optarg=$2
4532    ac_shift=shift
4533    ;;
4534  esac
4535
4536  case $ac_option in
4537  # Handling of the options.
4538  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4539    ac_cs_recheck=: ;;
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 )
4545    debug=: ;;
4546  --file | --fil | --fi | --f )
4547    $ac_shift
4548    case $ac_optarg in
4549    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4550    '') as_fn_error $? "missing file argument" ;;
4551    esac
4552    as_fn_append CONFIG_FILES " '$ac_optarg'"
4553    ac_need_defaults=false;;
4554  --header | --heade | --head | --hea )
4555    $ac_shift
4556    case $ac_optarg in
4557    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4558    esac
4559    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4560    ac_need_defaults=false;;
4561  --he | --h)
4562    # Conflict between --help and --header
4563    as_fn_error $? "ambiguous option: \`$1'
4564Try \`$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)
4569    ac_cs_silent=: ;;
4570
4571  # This is an error.
4572  -*) as_fn_error $? "unrecognized option: \`$1'
4573Try \`$0 --help' for more information." ;;
4574
4575  *) as_fn_append ac_config_targets " $1"
4576     ac_need_defaults=false ;;
4577
4578  esac
4579  shift
4580done
4581
4582ac_configure_extra_args=
4583
4584if $ac_cs_silent; then
4585  exec 6>/dev/null
4586  ac_configure_extra_args="$ac_configure_extra_args --silent"
4587fi
4588
4589_ACEOF
4590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4591if \$ac_cs_recheck; then
4592  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4593  shift
4594  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4595  CONFIG_SHELL='$SHELL'
4596  export CONFIG_SHELL
4597  exec "\$@"
4598fi
4599
4600_ACEOF
4601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4602exec 5>>config.log
4603{
4604  echo
4605  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4606## Running $as_me. ##
4607_ASBOX
4608  $as_echo "$ac_log"
4609} >&5
4610
4611_ACEOF
4612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4613_ACEOF
4614
4615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4616
4617# Handling of arguments.
4618for ac_config_target in $ac_config_targets
4619do
4620  case $ac_config_target in
4621    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4622    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4623
4624  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4625  esac
4626done
4627
4628
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.
4633if $ac_need_defaults; then
4634  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4635  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4636fi
4637
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'.
4644$debug ||
4645{
4646  tmp= ac_tmp=
4647  trap 'exit_status=$?
4648  : "${ac_tmp:=$tmp}"
4649  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4650' 0
4651  trap 'as_fn_exit 1' 1 2 13 15
4652}
4653# Create a (secure) tmp directory for tmp files.
4654
4655{
4656  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4657  test -d "$tmp"
4658}  ||
4659{
4660  tmp=./conf$$-$RANDOM
4661  (umask 077 && mkdir "$tmp")
4662} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4663ac_tmp=$tmp
4664
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'.
4668if test -n "$CONFIG_FILES"; then
4669
4670
4671ac_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.
4675if test "x$ac_cr" = x; then
4676  eval ac_cr=\$\'\\r\'
4677fi
4678ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4679if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4680  ac_cs_awk_cr='\\r'
4681else
4682  ac_cs_awk_cr=$ac_cr
4683fi
4684
4685echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4686_ACEOF
4687
4688
4689{
4690  echo "cat >conf$$subs.awk <<_ACEOF" &&
4691  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4692  echo "_ACEOF"
4693} >conf$$subs.sh ||
4694  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4695ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4696ac_delim='%!_!# '
4697for 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
4700
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
4703    break
4704  elif $ac_last_try; then
4705    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4706  else
4707    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4708  fi
4709done
4710rm -f conf$$subs.sh
4711
4712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4713cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4714_ACEOF
4715sed -n '
4716h
4717s/^/S["/; s/!.*/"]=/
4718p
4719g
4720s/^[^!]*!//
4721:repl
4722t repl
4723s/'"$ac_delim"'$//
4724t delim
4725:nl
4726h
4727s/\(.\{148\}\)..*/\1/
4728t more1
4729s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4730p
4731n
4732b repl
4733:more1
4734s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4735p
4736g
4737s/.\{148\}//
4738t nl
4739:delim
4740h
4741s/\(.\{148\}\)..*/\1/
4742t more2
4743s/["\\]/\\&/g; s/^/"/; s/$/"/
4744p
4745b
4746:more2
4747s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4748p
4749g
4750s/.\{148\}//
4751t delim
4752' <conf$$subs.awk | sed '
4753/^[^""]/{
4754  N
4755  s/\n//
4756}
4757' >>$CONFIG_STATUS || ac_write_fail=1
4758rm -f conf$$subs.awk
4759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4760_ACAWK
4761cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4762  for (key in S) S_is_set[key] = 1
4763  FS = ""
4764
4765}
4766{
4767  line = $ 0
4768  nfields = split(line, field, "@")
4769  substed = 0
4770  len = length(field[1])
4771  for (i = 2; i < nfields; i++) {
4772    key = field[i]
4773    keylen = length(key)
4774    if (S_is_set[key]) {
4775      value = S[key]
4776      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4777      len += length(value) + length(field[++i])
4778      substed = 1
4779    } else
4780      len += 1 + keylen
4781  }
4782
4783  print line
4784}
4785
4786_ACAWK
4787_ACEOF
4788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4789if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4790  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4791else
4792  cat
4793fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4794  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4795_ACEOF
4796
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).
4801if test "x$srcdir" = x.; then
4802  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4803h
4804s///
4805s/^/:/
4806s/[	 ]*$/:/
4807s/:\$(srcdir):/:/g
4808s/:\${srcdir}:/:/g
4809s/:@srcdir@:/:/g
4810s/^:*//
4811s/:*$//
4812x
4813s/\(=[	 ]*\).*/\1/
4814G
4815s/\n//
4816s/^[^=]*=[	 ]*$//
4817}'
4818fi
4819
4820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4821fi # test -n "$CONFIG_FILES"
4822
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'.
4826if test -n "$CONFIG_HEADERS"; then
4827cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4828BEGIN {
4829_ACEOF
4830
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.
4834
4835# Create a delimiter string that does not exist in confdefs.h, to ease
4836# handling of long lines.
4837ac_delim='%!_!# '
4838for ac_last_try in false false :; do
4839  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4840  if test -z "$ac_tt"; then
4841    break
4842  elif $ac_last_try; then
4843    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4844  else
4845    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4846  fi
4847done
4848
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.
4852
4853ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4854sed -n '
4855s/.\{148\}/&'"$ac_delim"'/g
4856t rset
4857:rset
4858s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
4859t def
4860d
4861:def
4862s/\\$//
4863t bsnl
4864s/["\\]/\\&/g
4865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4866D["\1"]=" \3"/p
4867s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
4868d
4869:bsnl
4870s/["\\]/\\&/g
4871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4872D["\1"]=" \3\\\\\\n"\\/p
4873t cont
4874s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4875t cont
4876d
4877:cont
4878n
4879s/.\{148\}/&'"$ac_delim"'/g
4880t clear
4881:clear
4882s/\\$//
4883t bsnlc
4884s/["\\]/\\&/g; s/^/"/; s/$/"/p
4885d
4886:bsnlc
4887s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4888b cont
4889' <confdefs.h | sed '
4890s/'"$ac_delim"'/"\\\
4891"/g' >>$CONFIG_STATUS || ac_write_fail=1
4892
4893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4894  for (key in D) D_is_set[key] = 1
4895  FS = ""
4896}
4897/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4898  line = \$ 0
4899  split(line, arg, " ")
4900  if (arg[1] == "#") {
4901    defundef = arg[2]
4902    mac1 = arg[3]
4903  } else {
4904    defundef = substr(arg[1], 2)
4905    mac1 = arg[2]
4906  }
4907  split(mac1, mac2, "(") #)
4908  macro = mac2[1]
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]
4913    next
4914  } else {
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, "*/"
4920      next
4921    }
4922  }
4923}
4924{ print }
4925_ACAWK
4926_ACEOF
4927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4928  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4929fi # test -n "$CONFIG_HEADERS"
4930
4931
4932eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
4933shift
4934for ac_tag
4935do
4936  case $ac_tag in
4937  :[FHLC]) ac_mode=$ac_tag; continue;;
4938  esac
4939  case $ac_mode$ac_tag in
4940  :[FHL]*:*);;
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;;
4944  esac
4945  ac_save_IFS=$IFS
4946  IFS=:
4947  set x $ac_tag
4948  IFS=$ac_save_IFS
4949  shift
4950  ac_file=$1
4951  shift
4952
4953  case $ac_mode in
4954  :L) ac_source=$1;;
4955  :[FH])
4956    ac_file_inputs=
4957    for ac_f
4958    do
4959      case $ac_f 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 `:'.
4964	 test -f "$ac_f" ||
4965	   case $ac_f in
4966	   [\\/$]*) false;;
4967	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4968	   esac ||
4969	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4970      esac
4971      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4972      as_fn_append ac_file_inputs " '$ac_f'"
4973    done
4974
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'
4980	`' by configure.'
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;}
4985    fi
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;;
4992    esac
4993
4994    case $ac_tag in
4995    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4996      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4997    esac
4998    ;;
4999  esac
5000
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5008	    s//\1/
5009	    q
5010	  }
5011	  /^X\(\/\/\)[^/].*/{
5012	    s//\1/
5013	    q
5014	  }
5015	  /^X\(\/\/\)$/{
5016	    s//\1/
5017	    q
5018	  }
5019	  /^X\(\/\).*/{
5020	    s//\1/
5021	    q
5022	  }
5023	  s/.*/./; q'`
5024  as_dir="$ac_dir"; as_fn_mkdir_p
5025  ac_builddir=.
5026
5027case "$ac_dir" in
5028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5029*)
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/ ;;
5036  esac ;;
5037esac
5038ac_abs_top_builddir=$ac_pwd
5039ac_abs_builddir=$ac_pwd$ac_dir_suffix
5040# for backward compatibility:
5041ac_top_builddir=$ac_top_build_prefix
5042
5043case $srcdir in
5044  .)  # We are building in place.
5045    ac_srcdir=.
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 ;;
5052  *) # Relative name.
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 ;;
5056esac
5057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5058
5059
5060  case $ac_mode in
5061  :F)
5062  #
5063  # CONFIG_FILE
5064  #
5065
5066_ACEOF
5067
5068cat >>$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.
5071ac_datarootdir_hack=; ac_datarootdir_seen=
5072ac_sed_dataroot='
5073/datarootdir/ {
5074  p
5075  q
5076}
5077/@datadir@/p
5078/@docdir@/p
5079/@infodir@/p
5080/@localedir@/p
5081/@mandir@/p'
5082case `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;}
5087_ACEOF
5088cat >>$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' ;;
5096esac
5097_ACEOF
5098
5099# Neutralize VPATH when `$srcdir' = `.'.
5100# Shell code in configure.ac might set extrasub.
5101# FIXME: do we really want to maintain this feature?
5102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5103ac_sed_extra="$ac_vpsub
5104$extrasub
5105_ACEOF
5106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5107:t
5108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5109s|@configure_input@|$ac_sed_conf_input|;t t
5110s&@top_builddir@&$ac_top_builddir_sub&;t t
5111s&@top_build_prefix@&$ac_top_build_prefix&;t t
5112s&@srcdir@&$ac_srcdir&;t t
5113s&@abs_srcdir@&$ac_abs_srcdir&;t t
5114s&@top_srcdir@&$ac_top_srcdir&;t t
5115s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5116s&@builddir@&$ac_builddir&;t t
5117s&@abs_builddir@&$ac_abs_builddir&;t t
5118s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5119$ac_datarootdir_hack
5120"
5121eval 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
5123
5124test -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'
5129which 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'
5131which seems to be undefined.  Please make sure it is defined" >&2;}
5132
5133  rm -f "$ac_tmp/stdin"
5134  case $ac_file in
5135  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5136  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5137  esac \
5138  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5139 ;;
5140  :H)
5141  #
5142  # CONFIG_HEADER
5143  #
5144  if test x"$ac_file" != x-; then
5145    {
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;}
5153    else
5154      rm -f "$ac_file"
5155      mv "$ac_tmp/config.h" "$ac_file" \
5156	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5157    fi
5158  else
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
5162  fi
5163 ;;
5164
5165
5166  esac
5167
5168done # for ac_tag
5169
5170
5171as_fn_exit 0
5172_ACEOF
5173ac_clean_files=$ac_clean_files_save
5174
5175test $ac_write_fail = 0 ||
5176  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5177
5178
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.
5187if test "$no_create" != yes; then
5188  ac_cs_success=:
5189  ac_config_status_args=
5190  test "$silent" = yes &&
5191    ac_config_status_args="$ac_config_status_args --quiet"
5192  exec 5>/dev/null
5193  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5194  exec 5>>config.log
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
5198fi
5199if 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;}
5202fi
5203
5204