1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for prboom 2.5.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='prboom'
574PACKAGE_TARNAME='prboom'
575PACKAGE_VERSION='2.5.0'
576PACKAGE_STRING='prboom 2.5.0'
577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652build
653build_cpu
654build_vendor
655build_os
656host
657host_cpu
658host_vendor
659host_os
660target
661target_cpu
662target_vendor
663target_os
664INSTALL_PROGRAM
665INSTALL_SCRIPT
666INSTALL_DATA
667am__isrc
668CYGPATH_W
669PACKAGE
670VERSION
671ACLOCAL
672AUTOCONF
673AUTOMAKE
674AUTOHEADER
675MAKEINFO
676install_sh
677STRIP
678INSTALL_STRIP_PROGRAM
679mkdir_p
680AWK
681SET_MAKE
682am__leading_dot
683AMTAR
684am__tar
685am__untar
686CC
687CFLAGS
688LDFLAGS
689CPPFLAGS
690ac_ct_CC
691EXEEXT
692OBJEXT
693DEPDIR
694am__include
695am__quote
696AMDEP_TRUE
697AMDEP_FALSE
698AMDEPBACKSLASH
699CCDEPMODE
700am__fastdepCC_TRUE
701am__fastdepCC_FALSE
702LN_S
703RANLIB
704CPP
705GREP
706EGREP
707BUILD_GL_TRUE
708BUILD_GL_FALSE
709SDL_CONFIG
710SDL_CFLAGS
711SDL_LIBS
712WAD_MMAP_TRUE
713WAD_MMAP_FALSE
714MIXER_CFLAGS
715MIXER_LIBS
716NET_CFLAGS
717NET_LIBS
718MATH_LIB
719GL_LIBS
720DOOMWADDIR
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724      ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *)	ac_optarg=yes ;;
795  esac
796
797  # Accept the important Cygnus configure options, so we can diagnose typos.
798
799  case $ac_dashdash$ac_option in
800  --)
801    ac_dashdash=yes ;;
802
803  -bindir | --bindir | --bindi | --bind | --bin | --bi)
804    ac_prev=bindir ;;
805  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806    bindir=$ac_optarg ;;
807
808  -build | --build | --buil | --bui | --bu)
809    ac_prev=build_alias ;;
810  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811    build_alias=$ac_optarg ;;
812
813  -cache-file | --cache-file | --cache-fil | --cache-fi \
814  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815    ac_prev=cache_file ;;
816  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818    cache_file=$ac_optarg ;;
819
820  --config-cache | -C)
821    cache_file=config.cache ;;
822
823  -datadir | --datadir | --datadi | --datad)
824    ac_prev=datadir ;;
825  -datadir=* | --datadir=* | --datadi=* | --datad=*)
826    datadir=$ac_optarg ;;
827
828  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829  | --dataroo | --dataro | --datar)
830    ac_prev=datarootdir ;;
831  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833    datarootdir=$ac_optarg ;;
834
835  -disable-* | --disable-*)
836    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837    # Reject names that are not valid shell variable names.
838    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840   { (exit 1); exit 1; }; }
841    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842    eval enable_$ac_feature=no ;;
843
844  -docdir | --docdir | --docdi | --doc | --do)
845    ac_prev=docdir ;;
846  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847    docdir=$ac_optarg ;;
848
849  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850    ac_prev=dvidir ;;
851  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852    dvidir=$ac_optarg ;;
853
854  -enable-* | --enable-*)
855    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859   { (exit 1); exit 1; }; }
860    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861    eval enable_$ac_feature=\$ac_optarg ;;
862
863  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865  | --exec | --exe | --ex)
866    ac_prev=exec_prefix ;;
867  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869  | --exec=* | --exe=* | --ex=*)
870    exec_prefix=$ac_optarg ;;
871
872  -gas | --gas | --ga | --g)
873    # Obsolete; use --with-gas.
874    with_gas=yes ;;
875
876  -help | --help | --hel | --he | -h)
877    ac_init_help=long ;;
878  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879    ac_init_help=recursive ;;
880  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881    ac_init_help=short ;;
882
883  -host | --host | --hos | --ho)
884    ac_prev=host_alias ;;
885  -host=* | --host=* | --hos=* | --ho=*)
886    host_alias=$ac_optarg ;;
887
888  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889    ac_prev=htmldir ;;
890  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891  | --ht=*)
892    htmldir=$ac_optarg ;;
893
894  -includedir | --includedir | --includedi | --included | --include \
895  | --includ | --inclu | --incl | --inc)
896    ac_prev=includedir ;;
897  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898  | --includ=* | --inclu=* | --incl=* | --inc=*)
899    includedir=$ac_optarg ;;
900
901  -infodir | --infodir | --infodi | --infod | --info | --inf)
902    ac_prev=infodir ;;
903  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904    infodir=$ac_optarg ;;
905
906  -libdir | --libdir | --libdi | --libd)
907    ac_prev=libdir ;;
908  -libdir=* | --libdir=* | --libdi=* | --libd=*)
909    libdir=$ac_optarg ;;
910
911  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912  | --libexe | --libex | --libe)
913    ac_prev=libexecdir ;;
914  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915  | --libexe=* | --libex=* | --libe=*)
916    libexecdir=$ac_optarg ;;
917
918  -localedir | --localedir | --localedi | --localed | --locale)
919    ac_prev=localedir ;;
920  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921    localedir=$ac_optarg ;;
922
923  -localstatedir | --localstatedir | --localstatedi | --localstated \
924  | --localstate | --localstat | --localsta | --localst | --locals)
925    ac_prev=localstatedir ;;
926  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928    localstatedir=$ac_optarg ;;
929
930  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931    ac_prev=mandir ;;
932  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933    mandir=$ac_optarg ;;
934
935  -nfp | --nfp | --nf)
936    # Obsolete; use --without-fp.
937    with_fp=no ;;
938
939  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940  | --no-cr | --no-c | -n)
941    no_create=yes ;;
942
943  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945    no_recursion=yes ;;
946
947  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949  | --oldin | --oldi | --old | --ol | --o)
950    ac_prev=oldincludedir ;;
951  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954    oldincludedir=$ac_optarg ;;
955
956  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957    ac_prev=prefix ;;
958  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959    prefix=$ac_optarg ;;
960
961  -program-prefix | --program-prefix | --program-prefi | --program-pref \
962  | --program-pre | --program-pr | --program-p)
963    ac_prev=program_prefix ;;
964  -program-prefix=* | --program-prefix=* | --program-prefi=* \
965  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966    program_prefix=$ac_optarg ;;
967
968  -program-suffix | --program-suffix | --program-suffi | --program-suff \
969  | --program-suf | --program-su | --program-s)
970    ac_prev=program_suffix ;;
971  -program-suffix=* | --program-suffix=* | --program-suffi=* \
972  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973    program_suffix=$ac_optarg ;;
974
975  -program-transform-name | --program-transform-name \
976  | --program-transform-nam | --program-transform-na \
977  | --program-transform-n | --program-transform- \
978  | --program-transform | --program-transfor \
979  | --program-transfo | --program-transf \
980  | --program-trans | --program-tran \
981  | --progr-tra | --program-tr | --program-t)
982    ac_prev=program_transform_name ;;
983  -program-transform-name=* | --program-transform-name=* \
984  | --program-transform-nam=* | --program-transform-na=* \
985  | --program-transform-n=* | --program-transform-=* \
986  | --program-transform=* | --program-transfor=* \
987  | --program-transfo=* | --program-transf=* \
988  | --program-trans=* | --program-tran=* \
989  | --progr-tra=* | --program-tr=* | --program-t=*)
990    program_transform_name=$ac_optarg ;;
991
992  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993    ac_prev=pdfdir ;;
994  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995    pdfdir=$ac_optarg ;;
996
997  -psdir | --psdir | --psdi | --psd | --ps)
998    ac_prev=psdir ;;
999  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000    psdir=$ac_optarg ;;
1001
1002  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003  | -silent | --silent | --silen | --sile | --sil)
1004    silent=yes ;;
1005
1006  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007    ac_prev=sbindir ;;
1008  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009  | --sbi=* | --sb=*)
1010    sbindir=$ac_optarg ;;
1011
1012  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014  | --sharedst | --shareds | --shared | --share | --shar \
1015  | --sha | --sh)
1016    ac_prev=sharedstatedir ;;
1017  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020  | --sha=* | --sh=*)
1021    sharedstatedir=$ac_optarg ;;
1022
1023  -site | --site | --sit)
1024    ac_prev=site ;;
1025  -site=* | --site=* | --sit=*)
1026    site=$ac_optarg ;;
1027
1028  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029    ac_prev=srcdir ;;
1030  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031    srcdir=$ac_optarg ;;
1032
1033  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034  | --syscon | --sysco | --sysc | --sys | --sy)
1035    ac_prev=sysconfdir ;;
1036  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038    sysconfdir=$ac_optarg ;;
1039
1040  -target | --target | --targe | --targ | --tar | --ta | --t)
1041    ac_prev=target_alias ;;
1042  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043    target_alias=$ac_optarg ;;
1044
1045  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046    verbose=yes ;;
1047
1048  -version | --version | --versio | --versi | --vers | -V)
1049    ac_init_version=: ;;
1050
1051  -with-* | --with-*)
1052    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid package name: $ac_package" >&2
1056   { (exit 1); exit 1; }; }
1057    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058    eval with_$ac_package=\$ac_optarg ;;
1059
1060  -without-* | --without-*)
1061    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      { echo "$as_me: error: invalid package name: $ac_package" >&2
1065   { (exit 1); exit 1; }; }
1066    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067    eval with_$ac_package=no ;;
1068
1069  --x)
1070    # Obsolete; use --with-x.
1071    with_x=yes ;;
1072
1073  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074  | --x-incl | --x-inc | --x-in | --x-i)
1075    ac_prev=x_includes ;;
1076  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078    x_includes=$ac_optarg ;;
1079
1080  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082    ac_prev=x_libraries ;;
1083  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085    x_libraries=$ac_optarg ;;
1086
1087  -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089   { (exit 1); exit 1; }; }
1090    ;;
1091
1092  *=*)
1093    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097   { (exit 1); exit 1; }; }
1098    eval $ac_envvar=\$ac_optarg
1099    export $ac_envvar ;;
1100
1101  *)
1102    # FIXME: should be removed in autoconf 3.0.
1103    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107    ;;
1108
1109  esac
1110done
1111
1112if test -n "$ac_prev"; then
1113  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114  { echo "$as_me: error: missing argument to $ac_option" >&2
1115   { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120		datadir sysconfdir sharedstatedir localstatedir includedir \
1121		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122		libdir localedir mandir
1123do
1124  eval ac_val=\$$ac_var
1125  case $ac_val in
1126    [\\/$]* | ?:[\\/]* )  continue;;
1127    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128  esac
1129  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130   { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142  if test "x$build_alias" = x; then
1143    cross_compiling=maybe
1144    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145    If a cross compiler is detected then cross compile mode will be used." >&2
1146  elif test "x$build_alias" != "x$host_alias"; then
1147    cross_compiling=yes
1148  fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160  { echo "$as_me: error: Working directory cannot be determined" >&2
1161   { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163  { echo "$as_me: error: pwd does not report name of working directory" >&2
1164   { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169  ac_srcdir_defaulted=yes
1170  # Try the directory containing this script, then the parent directory.
1171  ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173	 X"$0" : 'X\(//\)[^/]' \| \
1174	 X"$0" : 'X\(//\)$' \| \
1175	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178	    s//\1/
1179	    q
1180	  }
1181	  /^X\(\/\/\)[^/].*/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)$/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\).*/{
1190	    s//\1/
1191	    q
1192	  }
1193	  s/.*/./; q'`
1194  srcdir=$ac_confdir
1195  if test ! -r "$srcdir/$ac_unique_file"; then
1196    srcdir=..
1197  fi
1198else
1199  ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204   { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209   { (exit 1); exit 1; }; }
1210	pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213  srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223  eval ac_env_${ac_var}_value=\$${ac_var}
1224  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232  # Omit some internal or obsolete options to make the list less imposing.
1233  # This message is too long to be a string in the A/UX 3.1 sh.
1234  cat <<_ACEOF
1235\`configure' configures prboom 2.5.0 to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE.  See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245  -h, --help              display this help and exit
1246      --help=short        display options specific to this package
1247      --help=recursive    display the short help of all the included packages
1248  -V, --version           display version information and exit
1249  -q, --quiet, --silent   do not print \`checking...' messages
1250      --cache-file=FILE   cache test results in FILE [disabled]
1251  -C, --config-cache      alias for \`--cache-file=config.cache'
1252  -n, --no-create         do not create output files
1253      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256  --prefix=PREFIX         install architecture-independent files in PREFIX
1257			  [$ac_default_prefix]
1258  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259			  [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269  --bindir=DIR           user executables [EPREFIX/bin]
1270  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1271  --libexecdir=DIR       program executables [EPREFIX/libexec]
1272  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1273  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1274  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1275  --libdir=DIR           object code libraries [EPREFIX/lib]
1276  --includedir=DIR       C header files [PREFIX/include]
1277  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1278  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1279  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1280  --infodir=DIR          info documentation [DATAROOTDIR/info]
1281  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1282  --mandir=DIR           man documentation [DATAROOTDIR/man]
1283  --docdir=DIR           documentation root [DATAROOTDIR/doc/prboom]
1284  --htmldir=DIR          html documentation [DOCDIR]
1285  --dvidir=DIR           dvi documentation [DOCDIR]
1286  --pdfdir=DIR           pdf documentation [DOCDIR]
1287  --psdir=DIR            ps documentation [DOCDIR]
1288_ACEOF
1289
1290  cat <<\_ACEOF
1291
1292Program names:
1293  --program-prefix=PREFIX            prepend PREFIX to installed program names
1294  --program-suffix=SUFFIX            append SUFFIX to installed program names
1295  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1296
1297System types:
1298  --build=BUILD     configure for building on BUILD [guessed]
1299  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1300  --target=TARGET   configure for building compilers for TARGET [HOST]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305  case $ac_init_help in
1306     short | recursive ) echo "Configuration of prboom 2.5.0:";;
1307   esac
1308  cat <<\_ACEOF
1309
1310Optional Features:
1311  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1312  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1313  --disable-i386-asm      Do not use i386 assembly
1314  --disable-dependency-tracking  speeds up one-time build
1315  --enable-dependency-tracking   do not reject slow dependency extractors
1316  --enable-debug          turns on various debugging features, like range
1317                          checking and internal heap diagnostics
1318  --enable-profile        turns on profiling
1319  --disable-cpu-opt       turns off cpu specific optimisations
1320  --disable-gl            disable OpenGL rendering code
1321  --disable-sdltest       Do not try to compile and run a test SDL program
1322  --disable-dogs          disables support for helper dogs
1323  --enable-heapcheck      turns on continuous heap checking (very slow)
1324  --enable-heapdump       turns on dumping the heap state for debugging
1325
1326Optional Packages:
1327  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1328  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1329  --with-waddir           Path to install prboom.wad and look for other WAD
1330                          files
1331  --with-dmalloc          use dmalloc, as in
1332			  http://www.dmalloc.com/dmalloc.tar.gz
1333  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1334  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1335  --without-mixer         Do not use SDL_mixer even if available
1336  --without-net           Do not use SDL_net even if available
1337
1338Some influential environment variables:
1339  CC          C compiler command
1340  CFLAGS      C compiler flags
1341  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1342              nonstandard directory <lib dir>
1343  LIBS        libraries to pass to the linker, e.g. -l<library>
1344  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345              you have headers in a nonstandard directory <include dir>
1346  CPP         C preprocessor
1347
1348Use these variables to override the choices made by `configure' or to help
1349it to find libraries and programs with nonstandard names/locations.
1350
1351_ACEOF
1352ac_status=$?
1353fi
1354
1355if test "$ac_init_help" = "recursive"; then
1356  # If there are subdirs, report their specific --help.
1357  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358    test -d "$ac_dir" || continue
1359    ac_builddir=.
1360
1361case "$ac_dir" in
1362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363*)
1364  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1365  # A ".." for each directory in $ac_dir_suffix.
1366  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1367  case $ac_top_builddir_sub in
1368  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370  esac ;;
1371esac
1372ac_abs_top_builddir=$ac_pwd
1373ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374# for backward compatibility:
1375ac_top_builddir=$ac_top_build_prefix
1376
1377case $srcdir in
1378  .)  # We are building in place.
1379    ac_srcdir=.
1380    ac_top_srcdir=$ac_top_builddir_sub
1381    ac_abs_top_srcdir=$ac_pwd ;;
1382  [\\/]* | ?:[\\/]* )  # Absolute name.
1383    ac_srcdir=$srcdir$ac_dir_suffix;
1384    ac_top_srcdir=$srcdir
1385    ac_abs_top_srcdir=$srcdir ;;
1386  *) # Relative name.
1387    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388    ac_top_srcdir=$ac_top_build_prefix$srcdir
1389    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390esac
1391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392
1393    cd "$ac_dir" || { ac_status=$?; continue; }
1394    # Check for guested configure.
1395    if test -f "$ac_srcdir/configure.gnu"; then
1396      echo &&
1397      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398    elif test -f "$ac_srcdir/configure"; then
1399      echo &&
1400      $SHELL "$ac_srcdir/configure" --help=recursive
1401    else
1402      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403    fi || ac_status=$?
1404    cd "$ac_pwd" || { ac_status=$?; break; }
1405  done
1406fi
1407
1408test -n "$ac_init_help" && exit $ac_status
1409if $ac_init_version; then
1410  cat <<\_ACEOF
1411prboom configure 2.5.0
1412generated by GNU Autoconf 2.61
1413
1414Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1416This configure script is free software; the Free Software Foundation
1417gives unlimited permission to copy, distribute and modify it.
1418_ACEOF
1419  exit
1420fi
1421cat >config.log <<_ACEOF
1422This file contains any messages produced by compilers while
1423running configure, to aid debugging if configure makes a mistake.
1424
1425It was created by prboom $as_me 2.5.0, which was
1426generated by GNU Autoconf 2.61.  Invocation command line was
1427
1428  $ $0 $@
1429
1430_ACEOF
1431exec 5>>config.log
1432{
1433cat <<_ASUNAME
1434## --------- ##
1435## Platform. ##
1436## --------- ##
1437
1438hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1439uname -m = `(uname -m) 2>/dev/null || echo unknown`
1440uname -r = `(uname -r) 2>/dev/null || echo unknown`
1441uname -s = `(uname -s) 2>/dev/null || echo unknown`
1442uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443
1444/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1445/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1446
1447/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1448/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1449/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1450/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1451/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1452/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1453/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1454
1455_ASUNAME
1456
1457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458for as_dir in $PATH
1459do
1460  IFS=$as_save_IFS
1461  test -z "$as_dir" && as_dir=.
1462  echo "PATH: $as_dir"
1463done
1464IFS=$as_save_IFS
1465
1466} >&5
1467
1468cat >&5 <<_ACEOF
1469
1470
1471## ----------- ##
1472## Core tests. ##
1473## ----------- ##
1474
1475_ACEOF
1476
1477
1478# Keep a trace of the command line.
1479# Strip out --no-create and --no-recursion so they do not pile up.
1480# Strip out --silent because we don't want to record it for future runs.
1481# Also quote any args containing shell meta-characters.
1482# Make two passes to allow for proper duplicate-argument suppression.
1483ac_configure_args=
1484ac_configure_args0=
1485ac_configure_args1=
1486ac_must_keep_next=false
1487for ac_pass in 1 2
1488do
1489  for ac_arg
1490  do
1491    case $ac_arg in
1492    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1493    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1494    | -silent | --silent | --silen | --sile | --sil)
1495      continue ;;
1496    *\'*)
1497      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498    esac
1499    case $ac_pass in
1500    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1501    2)
1502      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1503      if test $ac_must_keep_next = true; then
1504	ac_must_keep_next=false # Got value, back to normal.
1505      else
1506	case $ac_arg in
1507	  *=* | --config-cache | -C | -disable-* | --disable-* \
1508	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1509	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1510	  | -with-* | --with-* | -without-* | --without-* | --x)
1511	    case "$ac_configure_args0 " in
1512	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1513	    esac
1514	    ;;
1515	  -* ) ac_must_keep_next=true ;;
1516	esac
1517      fi
1518      ac_configure_args="$ac_configure_args '$ac_arg'"
1519      ;;
1520    esac
1521  done
1522done
1523$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1524$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525
1526# When interrupted or exit'd, cleanup temporary files, and complete
1527# config.log.  We remove comments because anyway the quotes in there
1528# would cause problems or look ugly.
1529# WARNING: Use '\'' to represent an apostrophe within the trap.
1530# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1531trap 'exit_status=$?
1532  # Save into config.log some information that might help in debugging.
1533  {
1534    echo
1535
1536    cat <<\_ASBOX
1537## ---------------- ##
1538## Cache variables. ##
1539## ---------------- ##
1540_ASBOX
1541    echo
1542    # The following way of writing the cache mishandles newlines in values,
1543(
1544  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1545    eval ac_val=\$$ac_var
1546    case $ac_val in #(
1547    *${as_nl}*)
1548      case $ac_var in #(
1549      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1550echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1551      esac
1552      case $ac_var in #(
1553      _ | IFS | as_nl) ;; #(
1554      *) $as_unset $ac_var ;;
1555      esac ;;
1556    esac
1557  done
1558  (set) 2>&1 |
1559    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1560    *${as_nl}ac_space=\ *)
1561      sed -n \
1562	"s/'\''/'\''\\\\'\'''\''/g;
1563	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1564      ;; #(
1565    *)
1566      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567      ;;
1568    esac |
1569    sort
1570)
1571    echo
1572
1573    cat <<\_ASBOX
1574## ----------------- ##
1575## Output variables. ##
1576## ----------------- ##
1577_ASBOX
1578    echo
1579    for ac_var in $ac_subst_vars
1580    do
1581      eval ac_val=\$$ac_var
1582      case $ac_val in
1583      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584      esac
1585      echo "$ac_var='\''$ac_val'\''"
1586    done | sort
1587    echo
1588
1589    if test -n "$ac_subst_files"; then
1590      cat <<\_ASBOX
1591## ------------------- ##
1592## File substitutions. ##
1593## ------------------- ##
1594_ASBOX
1595      echo
1596      for ac_var in $ac_subst_files
1597      do
1598	eval ac_val=\$$ac_var
1599	case $ac_val in
1600	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601	esac
1602	echo "$ac_var='\''$ac_val'\''"
1603      done | sort
1604      echo
1605    fi
1606
1607    if test -s confdefs.h; then
1608      cat <<\_ASBOX
1609## ----------- ##
1610## confdefs.h. ##
1611## ----------- ##
1612_ASBOX
1613      echo
1614      cat confdefs.h
1615      echo
1616    fi
1617    test "$ac_signal" != 0 &&
1618      echo "$as_me: caught signal $ac_signal"
1619    echo "$as_me: exit $exit_status"
1620  } >&5
1621  rm -f core *.core core.conftest.* &&
1622    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1623    exit $exit_status
1624' 0
1625for ac_signal in 1 2 13 15; do
1626  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1627done
1628ac_signal=0
1629
1630# confdefs.h avoids OS command line length limits that DEFS can exceed.
1631rm -f -r conftest* confdefs.h
1632
1633# Predefined preprocessor variables.
1634
1635cat >>confdefs.h <<_ACEOF
1636#define PACKAGE_NAME "$PACKAGE_NAME"
1637_ACEOF
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_VERSION "$PACKAGE_VERSION"
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_STRING "$PACKAGE_STRING"
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657_ACEOF
1658
1659
1660# Let the site file select an alternate cache file if it wants to.
1661# Prefer explicitly selected file to automatically selected ones.
1662if test -n "$CONFIG_SITE"; then
1663  set x "$CONFIG_SITE"
1664elif test "x$prefix" != xNONE; then
1665  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1666else
1667  set x "$ac_default_prefix/share/config.site" \
1668	"$ac_default_prefix/etc/config.site"
1669fi
1670shift
1671for ac_site_file
1672do
1673  if test -r "$ac_site_file"; then
1674    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1675echo "$as_me: loading site script $ac_site_file" >&6;}
1676    sed 's/^/| /' "$ac_site_file" >&5
1677    . "$ac_site_file"
1678  fi
1679done
1680
1681if test -r "$cache_file"; then
1682  # Some versions of bash will fail to source /dev/null (special
1683  # files actually), so we avoid doing that.
1684  if test -f "$cache_file"; then
1685    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1686echo "$as_me: loading cache $cache_file" >&6;}
1687    case $cache_file in
1688      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1689      *)                      . "./$cache_file";;
1690    esac
1691  fi
1692else
1693  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1694echo "$as_me: creating cache $cache_file" >&6;}
1695  >$cache_file
1696fi
1697
1698# Check that the precious variables saved in the cache have kept the same
1699# value.
1700ac_cache_corrupted=false
1701for ac_var in $ac_precious_vars; do
1702  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1703  eval ac_new_set=\$ac_env_${ac_var}_set
1704  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1705  eval ac_new_val=\$ac_env_${ac_var}_value
1706  case $ac_old_set,$ac_new_set in
1707    set,)
1708      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1709echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1710      ac_cache_corrupted=: ;;
1711    ,set)
1712      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1713echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1714      ac_cache_corrupted=: ;;
1715    ,);;
1716    *)
1717      if test "x$ac_old_val" != "x$ac_new_val"; then
1718	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1719echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1720	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1721echo "$as_me:   former value:  $ac_old_val" >&2;}
1722	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1723echo "$as_me:   current value: $ac_new_val" >&2;}
1724	ac_cache_corrupted=:
1725      fi;;
1726  esac
1727  # Pass precious variables to config.status.
1728  if test "$ac_new_set" = set; then
1729    case $ac_new_val in
1730    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1731    *) ac_arg=$ac_var=$ac_new_val ;;
1732    esac
1733    case " $ac_configure_args " in
1734      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1735      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1736    esac
1737  fi
1738done
1739if $ac_cache_corrupted; then
1740  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1741echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1742  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1743echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1744   { (exit 1); exit 1; }; }
1745fi
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771ac_ext=c
1772ac_cpp='$CPP $CPPFLAGS'
1773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776
1777
1778ac_aux_dir=
1779for ac_dir in autotools "$srcdir"/autotools; do
1780  if test -f "$ac_dir/install-sh"; then
1781    ac_aux_dir=$ac_dir
1782    ac_install_sh="$ac_aux_dir/install-sh -c"
1783    break
1784  elif test -f "$ac_dir/install.sh"; then
1785    ac_aux_dir=$ac_dir
1786    ac_install_sh="$ac_aux_dir/install.sh -c"
1787    break
1788  elif test -f "$ac_dir/shtool"; then
1789    ac_aux_dir=$ac_dir
1790    ac_install_sh="$ac_aux_dir/shtool install -c"
1791    break
1792  fi
1793done
1794if test -z "$ac_aux_dir"; then
1795  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1796echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
1797   { (exit 1); exit 1; }; }
1798fi
1799
1800# These three variables are undocumented and unsupported,
1801# and are intended to be withdrawn in a future Autoconf release.
1802# They can cause serious problems if a builder's source tree is in a directory
1803# whose full name contains unusual characters.
1804ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1805ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1806ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1807
1808
1809
1810
1811# Make sure we can run config.sub.
1812$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1813  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1814echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1815   { (exit 1); exit 1; }; }
1816
1817{ echo "$as_me:$LINENO: checking build system type" >&5
1818echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1819if test "${ac_cv_build+set}" = set; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  ac_build_alias=$build_alias
1823test "x$ac_build_alias" = x &&
1824  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1825test "x$ac_build_alias" = x &&
1826  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1827echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1828   { (exit 1); exit 1; }; }
1829ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1830  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1831echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1832   { (exit 1); exit 1; }; }
1833
1834fi
1835{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1836echo "${ECHO_T}$ac_cv_build" >&6; }
1837case $ac_cv_build in
1838*-*-*) ;;
1839*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1840echo "$as_me: error: invalid value of canonical build" >&2;}
1841   { (exit 1); exit 1; }; };;
1842esac
1843build=$ac_cv_build
1844ac_save_IFS=$IFS; IFS='-'
1845set x $ac_cv_build
1846shift
1847build_cpu=$1
1848build_vendor=$2
1849shift; shift
1850# Remember, the first character of IFS is used to create $*,
1851# except with old shells:
1852build_os=$*
1853IFS=$ac_save_IFS
1854case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1855
1856
1857{ echo "$as_me:$LINENO: checking host system type" >&5
1858echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1859if test "${ac_cv_host+set}" = set; then
1860  echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862  if test "x$host_alias" = x; then
1863  ac_cv_host=$ac_cv_build
1864else
1865  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1866    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1867echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1868   { (exit 1); exit 1; }; }
1869fi
1870
1871fi
1872{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1873echo "${ECHO_T}$ac_cv_host" >&6; }
1874case $ac_cv_host in
1875*-*-*) ;;
1876*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1877echo "$as_me: error: invalid value of canonical host" >&2;}
1878   { (exit 1); exit 1; }; };;
1879esac
1880host=$ac_cv_host
1881ac_save_IFS=$IFS; IFS='-'
1882set x $ac_cv_host
1883shift
1884host_cpu=$1
1885host_vendor=$2
1886shift; shift
1887# Remember, the first character of IFS is used to create $*,
1888# except with old shells:
1889host_os=$*
1890IFS=$ac_save_IFS
1891case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1892
1893
1894{ echo "$as_me:$LINENO: checking target system type" >&5
1895echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1896if test "${ac_cv_target+set}" = set; then
1897  echo $ECHO_N "(cached) $ECHO_C" >&6
1898else
1899  if test "x$target_alias" = x; then
1900  ac_cv_target=$ac_cv_host
1901else
1902  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1903    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1904echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1905   { (exit 1); exit 1; }; }
1906fi
1907
1908fi
1909{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1910echo "${ECHO_T}$ac_cv_target" >&6; }
1911case $ac_cv_target in
1912*-*-*) ;;
1913*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1914echo "$as_me: error: invalid value of canonical target" >&2;}
1915   { (exit 1); exit 1; }; };;
1916esac
1917target=$ac_cv_target
1918ac_save_IFS=$IFS; IFS='-'
1919set x $ac_cv_target
1920shift
1921target_cpu=$1
1922target_vendor=$2
1923shift; shift
1924# Remember, the first character of IFS is used to create $*,
1925# except with old shells:
1926target_os=$*
1927IFS=$ac_save_IFS
1928case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1929
1930
1931# The aliases save the names the user supplied, while $host etc.
1932# will get canonicalized.
1933test -n "$target_alias" &&
1934  test "$program_prefix$program_suffix$program_transform_name" = \
1935    NONENONEs,x,x, &&
1936  program_prefix=${target_alias}-
1937
1938am__api_version='1.10'
1939
1940# Find a good install program.  We prefer a C program (faster),
1941# so one script is as good as another.  But avoid the broken or
1942# incompatible versions:
1943# SysV /etc/install, /usr/sbin/install
1944# SunOS /usr/etc/install
1945# IRIX /sbin/install
1946# AIX /bin/install
1947# AmigaOS /C/install, which installs bootblocks on floppy discs
1948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1949# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1951# OS/2's system install, which has a completely different semantic
1952# ./install, which can be erroneously created by make from ./install.sh.
1953{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1954echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1955if test -z "$INSTALL"; then
1956if test "${ac_cv_path_install+set}" = set; then
1957  echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  # Account for people who put trailing slashes in PATH elements.
1965case $as_dir/ in
1966  ./ | .// | /cC/* | \
1967  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1968  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1969  /usr/ucb/* ) ;;
1970  *)
1971    # OSF1 and SCO ODT 3.0 have their own names for install.
1972    # Don't use installbsd from OSF since it installs stuff as root
1973    # by default.
1974    for ac_prog in ginstall scoinst install; do
1975      for ac_exec_ext in '' $ac_executable_extensions; do
1976	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1977	  if test $ac_prog = install &&
1978	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1979	    # AIX install.  It has an incompatible calling convention.
1980	    :
1981	  elif test $ac_prog = install &&
1982	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1983	    # program-specific install script used by HP pwplus--don't use.
1984	    :
1985	  else
1986	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1987	    break 3
1988	  fi
1989	fi
1990      done
1991    done
1992    ;;
1993esac
1994done
1995IFS=$as_save_IFS
1996
1997
1998fi
1999  if test "${ac_cv_path_install+set}" = set; then
2000    INSTALL=$ac_cv_path_install
2001  else
2002    # As a last resort, use the slow shell script.  Don't cache a
2003    # value for INSTALL within a source directory, because that will
2004    # break other packages using the cache if that directory is
2005    # removed, or if the value is a relative name.
2006    INSTALL=$ac_install_sh
2007  fi
2008fi
2009{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2010echo "${ECHO_T}$INSTALL" >&6; }
2011
2012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013# It thinks the first close brace ends the variable substitution.
2014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2015
2016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2017
2018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2019
2020{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2021echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2022# Just in case
2023sleep 1
2024echo timestamp > conftest.file
2025# Do `set' in a subshell so we don't clobber the current shell's
2026# arguments.  Must try -L first in case configure is actually a
2027# symlink; some systems play weird games with the mod time of symlinks
2028# (eg FreeBSD returns the mod time of the symlink's containing
2029# directory).
2030if (
2031   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2032   if test "$*" = "X"; then
2033      # -L didn't work.
2034      set X `ls -t $srcdir/configure conftest.file`
2035   fi
2036   rm -f conftest.file
2037   if test "$*" != "X $srcdir/configure conftest.file" \
2038      && test "$*" != "X conftest.file $srcdir/configure"; then
2039
2040      # If neither matched, then we have a broken ls.  This can happen
2041      # if, for instance, CONFIG_SHELL is bash and it inherits a
2042      # broken ls alias from the environment.  This has actually
2043      # happened.  Such a system could not be considered "sane".
2044      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2045alias in your environment" >&5
2046echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2047alias in your environment" >&2;}
2048   { (exit 1); exit 1; }; }
2049   fi
2050
2051   test "$2" = conftest.file
2052   )
2053then
2054   # Ok.
2055   :
2056else
2057   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2058Check your system clock" >&5
2059echo "$as_me: error: newly created file is older than distributed files!
2060Check your system clock" >&2;}
2061   { (exit 1); exit 1; }; }
2062fi
2063{ echo "$as_me:$LINENO: result: yes" >&5
2064echo "${ECHO_T}yes" >&6; }
2065test "$program_prefix" != NONE &&
2066  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2067# Use a double $ so make ignores it.
2068test "$program_suffix" != NONE &&
2069  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2070# Double any \ or $.  echo might interpret backslashes.
2071# By default was `s,x,x', remove it if useless.
2072cat <<\_ACEOF >conftest.sed
2073s/[\\$]/&&/g;s/;s,x,x,$//
2074_ACEOF
2075program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2076rm -f conftest.sed
2077
2078# expand $ac_aux_dir to an absolute path
2079am_aux_dir=`cd $ac_aux_dir && pwd`
2080
2081test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2082# Use eval to expand $SHELL
2083if eval "$MISSING --run true"; then
2084  am_missing_run="$MISSING --run "
2085else
2086  am_missing_run=
2087  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2088echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2089fi
2090
2091{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2092echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2093if test -z "$MKDIR_P"; then
2094  if test "${ac_cv_path_mkdir+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_prog in mkdir gmkdir; do
2103	 for ac_exec_ext in '' $ac_executable_extensions; do
2104	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2105	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2106	     'mkdir (GNU coreutils) '* | \
2107	     'mkdir (coreutils) '* | \
2108	     'mkdir (fileutils) '4.1*)
2109	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2110	       break 3;;
2111	   esac
2112	 done
2113       done
2114done
2115IFS=$as_save_IFS
2116
2117fi
2118
2119  if test "${ac_cv_path_mkdir+set}" = set; then
2120    MKDIR_P="$ac_cv_path_mkdir -p"
2121  else
2122    # As a last resort, use the slow shell script.  Don't cache a
2123    # value for MKDIR_P within a source directory, because that will
2124    # break other packages using the cache if that directory is
2125    # removed, or if the value is a relative name.
2126    test -d ./--version && rmdir ./--version
2127    MKDIR_P="$ac_install_sh -d"
2128  fi
2129fi
2130{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2131echo "${ECHO_T}$MKDIR_P" >&6; }
2132
2133mkdir_p="$MKDIR_P"
2134case $mkdir_p in
2135  [\\/$]* | ?:[\\/]*) ;;
2136  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2137esac
2138
2139for ac_prog in gawk mawk nawk awk
2140do
2141  # Extract the first word of "$ac_prog", so it can be a program name with args.
2142set dummy $ac_prog; ac_word=$2
2143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145if test "${ac_cv_prog_AWK+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  if test -n "$AWK"; then
2149  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2150else
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  for ac_exec_ext in '' $ac_executable_extensions; do
2157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158    ac_cv_prog_AWK="$ac_prog"
2159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160    break 2
2161  fi
2162done
2163done
2164IFS=$as_save_IFS
2165
2166fi
2167fi
2168AWK=$ac_cv_prog_AWK
2169if test -n "$AWK"; then
2170  { echo "$as_me:$LINENO: result: $AWK" >&5
2171echo "${ECHO_T}$AWK" >&6; }
2172else
2173  { echo "$as_me:$LINENO: result: no" >&5
2174echo "${ECHO_T}no" >&6; }
2175fi
2176
2177
2178  test -n "$AWK" && break
2179done
2180
2181{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2182echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2183set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2184if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2185  echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187  cat >conftest.make <<\_ACEOF
2188SHELL = /bin/sh
2189all:
2190	@echo '@@@%%%=$(MAKE)=@@@%%%'
2191_ACEOF
2192# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2193case `${MAKE-make} -f conftest.make 2>/dev/null` in
2194  *@@@%%%=?*=@@@%%%*)
2195    eval ac_cv_prog_make_${ac_make}_set=yes;;
2196  *)
2197    eval ac_cv_prog_make_${ac_make}_set=no;;
2198esac
2199rm -f conftest.make
2200fi
2201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2202  { echo "$as_me:$LINENO: result: yes" >&5
2203echo "${ECHO_T}yes" >&6; }
2204  SET_MAKE=
2205else
2206  { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
2208  SET_MAKE="MAKE=${MAKE-make}"
2209fi
2210
2211rm -rf .tst 2>/dev/null
2212mkdir .tst 2>/dev/null
2213if test -d .tst; then
2214  am__leading_dot=.
2215else
2216  am__leading_dot=_
2217fi
2218rmdir .tst 2>/dev/null
2219
2220if test "`cd $srcdir && pwd`" != "`pwd`"; then
2221  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2222  # is not polluted with repeated "-I."
2223  am__isrc=' -I$(srcdir)'
2224  # test to see if srcdir already configured
2225  if test -f $srcdir/config.status; then
2226    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2227echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2228   { (exit 1); exit 1; }; }
2229  fi
2230fi
2231
2232# test whether we have cygpath
2233if test -z "$CYGPATH_W"; then
2234  if (cygpath --version) >/dev/null 2>/dev/null; then
2235    CYGPATH_W='cygpath -w'
2236  else
2237    CYGPATH_W=echo
2238  fi
2239fi
2240
2241
2242# Define the identity of the package.
2243 PACKAGE='prboom'
2244 VERSION='2.5.0'
2245
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE "$PACKAGE"
2249_ACEOF
2250
2251
2252cat >>confdefs.h <<_ACEOF
2253#define VERSION "$VERSION"
2254_ACEOF
2255
2256# Some tools Automake needs.
2257
2258ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2259
2260
2261AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2262
2263
2264AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2265
2266
2267AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2268
2269
2270MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2271
2272install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2273
2274# Installed binaries are usually stripped using `strip' when the user
2275# run `make install-strip'.  However `strip' might not be the right
2276# tool to use in cross-compilation environments, therefore Automake
2277# will honor the `STRIP' environment variable to overrule this program.
2278if test "$cross_compiling" != no; then
2279  if test -n "$ac_tool_prefix"; then
2280  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2281set dummy ${ac_tool_prefix}strip; ac_word=$2
2282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284if test "${ac_cv_prog_STRIP+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  if test -n "$STRIP"; then
2288  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2289else
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293  IFS=$as_save_IFS
2294  test -z "$as_dir" && as_dir=.
2295  for ac_exec_ext in '' $ac_executable_extensions; do
2296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299    break 2
2300  fi
2301done
2302done
2303IFS=$as_save_IFS
2304
2305fi
2306fi
2307STRIP=$ac_cv_prog_STRIP
2308if test -n "$STRIP"; then
2309  { echo "$as_me:$LINENO: result: $STRIP" >&5
2310echo "${ECHO_T}$STRIP" >&6; }
2311else
2312  { echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6; }
2314fi
2315
2316
2317fi
2318if test -z "$ac_cv_prog_STRIP"; then
2319  ac_ct_STRIP=$STRIP
2320  # Extract the first word of "strip", so it can be a program name with args.
2321set dummy strip; ac_word=$2
2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  if test -n "$ac_ct_STRIP"; then
2328  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2329else
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337    ac_cv_prog_ac_ct_STRIP="strip"
2338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339    break 2
2340  fi
2341done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346fi
2347ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2348if test -n "$ac_ct_STRIP"; then
2349  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2350echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2351else
2352  { echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6; }
2354fi
2355
2356  if test "x$ac_ct_STRIP" = x; then
2357    STRIP=":"
2358  else
2359    case $cross_compiling:$ac_tool_warned in
2360yes:)
2361{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2362whose name does not start with the host triplet.  If you think this
2363configuration is useful to you, please write to autoconf@gnu.org." >&5
2364echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2365whose name does not start with the host triplet.  If you think this
2366configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2367ac_tool_warned=yes ;;
2368esac
2369    STRIP=$ac_ct_STRIP
2370  fi
2371else
2372  STRIP="$ac_cv_prog_STRIP"
2373fi
2374
2375fi
2376INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2377
2378# We need awk for the "check" target.  The system "awk" is bad on
2379# some platforms.
2380# Always define AMTAR for backward compatibility.
2381
2382AMTAR=${AMTAR-"${am_missing_run}tar"}
2383
2384am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2385
2386
2387
2388
2389
2390ac_config_headers="$ac_config_headers config.h"
2391
2392
2393{ echo "$as_me:$LINENO: checking checking whether to use x86 asm versions of some functions" >&5
2394echo $ECHO_N "checking checking whether to use x86 asm versions of some functions... $ECHO_C" >&6; }
2395# Check whether --enable-i386-asm was given.
2396if test "${enable_i386_asm+set}" = set; then
2397  enableval=$enable_i386_asm;
2398else
2399
2400enable_i386_asm="no"
2401case "$target" in
2402        i?86-*) enable_i386_asm="yes" ;;
2403esac
2404fi
2405
2406if test "$enable_i386_asm" = yes; then
2407
2408cat >>confdefs.h <<\_ACEOF
2409#define I386_ASM 1
2410_ACEOF
2411
2412    { echo "$as_me:$LINENO: result: yes" >&5
2413echo "${ECHO_T}yes" >&6; }
2414else
2415    { echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6; }
2417fi
2418
2419
2420# Check whether --with-waddir was given.
2421if test "${with_waddir+set}" = set; then
2422  withval=$with_waddir; DOOMWADDIR="$withval"
2423else
2424  if test "x$prefix" != xNONE; then
2425  DOOMWADDIR="$prefix/share/doom"
2426else
2427  DOOMWADDIR="$ac_default_prefix/share/doom"
2428fi
2429
2430fi
2431
2432
2433cat >>confdefs.h <<_ACEOF
2434#define DOOMWADDIR "$DOOMWADDIR"
2435_ACEOF
2436
2437
2438ac_ext=c
2439ac_cpp='$CPP $CPPFLAGS'
2440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443if test -n "$ac_tool_prefix"; then
2444  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445set dummy ${ac_tool_prefix}gcc; ac_word=$2
2446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448if test "${ac_cv_prog_CC+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  if test -n "$CC"; then
2452  ac_cv_prog_CC="$CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459  for ac_exec_ext in '' $ac_executable_extensions; do
2460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466done
2467IFS=$as_save_IFS
2468
2469fi
2470fi
2471CC=$ac_cv_prog_CC
2472if test -n "$CC"; then
2473  { echo "$as_me:$LINENO: result: $CC" >&5
2474echo "${ECHO_T}$CC" >&6; }
2475else
2476  { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
2478fi
2479
2480
2481fi
2482if test -z "$ac_cv_prog_CC"; then
2483  ac_ct_CC=$CC
2484  # Extract the first word of "gcc", so it can be a program name with args.
2485set dummy gcc; ac_word=$2
2486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -n "$ac_ct_CC"; then
2492  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499  for ac_exec_ext in '' $ac_executable_extensions; do
2500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501    ac_cv_prog_ac_ct_CC="gcc"
2502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503    break 2
2504  fi
2505done
2506done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512if test -n "$ac_ct_CC"; then
2513  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514echo "${ECHO_T}$ac_ct_CC" >&6; }
2515else
2516  { echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6; }
2518fi
2519
2520  if test "x$ac_ct_CC" = x; then
2521    CC=""
2522  else
2523    case $cross_compiling:$ac_tool_warned in
2524yes:)
2525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526whose name does not start with the host triplet.  If you think this
2527configuration is useful to you, please write to autoconf@gnu.org." >&5
2528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529whose name does not start with the host triplet.  If you think this
2530configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531ac_tool_warned=yes ;;
2532esac
2533    CC=$ac_ct_CC
2534  fi
2535else
2536  CC="$ac_cv_prog_CC"
2537fi
2538
2539if test -z "$CC"; then
2540          if test -n "$ac_tool_prefix"; then
2541    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542set dummy ${ac_tool_prefix}cc; ac_word=$2
2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_CC+set}" = set; then
2546  echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548  if test -n "$CC"; then
2549  ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554  IFS=$as_save_IFS
2555  test -z "$as_dir" && as_dir=.
2556  for ac_exec_ext in '' $ac_executable_extensions; do
2557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558    ac_cv_prog_CC="${ac_tool_prefix}cc"
2559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560    break 2
2561  fi
2562done
2563done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
2570  { echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6; }
2572else
2573  { echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6; }
2575fi
2576
2577
2578  fi
2579fi
2580if test -z "$CC"; then
2581  # Extract the first word of "cc", so it can be a program name with args.
2582set dummy cc; ac_word=$2
2583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585if test "${ac_cv_prog_CC+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  if test -n "$CC"; then
2589  ac_cv_prog_CC="$CC" # Let the user override the test.
2590else
2591  ac_prog_rejected=no
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597  for ac_exec_ext in '' $ac_executable_extensions; do
2598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600       ac_prog_rejected=yes
2601       continue
2602     fi
2603    ac_cv_prog_CC="cc"
2604    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605    break 2
2606  fi
2607done
2608done
2609IFS=$as_save_IFS
2610
2611if test $ac_prog_rejected = yes; then
2612  # We found a bogon in the path, so make sure we never use it.
2613  set dummy $ac_cv_prog_CC
2614  shift
2615  if test $# != 0; then
2616    # We chose a different compiler from the bogus one.
2617    # However, it has the same basename, so the bogon will be chosen
2618    # first if we set CC to just the basename; use the full file name.
2619    shift
2620    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621  fi
2622fi
2623fi
2624fi
2625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
2627  { echo "$as_me:$LINENO: result: $CC" >&5
2628echo "${ECHO_T}$CC" >&6; }
2629else
2630  { echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6; }
2632fi
2633
2634
2635fi
2636if test -z "$CC"; then
2637  if test -n "$ac_tool_prefix"; then
2638  for ac_prog in cl.exe
2639  do
2640    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_CC+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  if test -n "$CC"; then
2648  ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655  for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669  { echo "$as_me:$LINENO: result: $CC" >&5
2670echo "${ECHO_T}$CC" >&6; }
2671else
2672  { echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6; }
2674fi
2675
2676
2677    test -n "$CC" && break
2678  done
2679fi
2680if test -z "$CC"; then
2681  ac_ct_CC=$CC
2682  for ac_prog in cl.exe
2683do
2684  # Extract the first word of "$ac_prog", so it can be a program name with args.
2685set dummy $ac_prog; ac_word=$2
2686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689  echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691  if test -n "$ac_ct_CC"; then
2692  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697  IFS=$as_save_IFS
2698  test -z "$as_dir" && as_dir=.
2699  for ac_exec_ext in '' $ac_executable_extensions; do
2700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701    ac_cv_prog_ac_ct_CC="$ac_prog"
2702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703    break 2
2704  fi
2705done
2706done
2707IFS=$as_save_IFS
2708
2709fi
2710fi
2711ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712if test -n "$ac_ct_CC"; then
2713  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714echo "${ECHO_T}$ac_ct_CC" >&6; }
2715else
2716  { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
2718fi
2719
2720
2721  test -n "$ac_ct_CC" && break
2722done
2723
2724  if test "x$ac_ct_CC" = x; then
2725    CC=""
2726  else
2727    case $cross_compiling:$ac_tool_warned in
2728yes:)
2729{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730whose name does not start with the host triplet.  If you think this
2731configuration is useful to you, please write to autoconf@gnu.org." >&5
2732echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733whose name does not start with the host triplet.  If you think this
2734configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2735ac_tool_warned=yes ;;
2736esac
2737    CC=$ac_ct_CC
2738  fi
2739fi
2740
2741fi
2742
2743
2744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745See \`config.log' for more details." >&5
2746echo "$as_me: error: no acceptable C compiler found in \$PATH
2747See \`config.log' for more details." >&2;}
2748   { (exit 1); exit 1; }; }
2749
2750# Provide some information about the compiler.
2751echo "$as_me:$LINENO: checking for C compiler version" >&5
2752ac_compiler=`set X $ac_compile; echo $2`
2753{ (ac_try="$ac_compiler --version >&5"
2754case "(($ac_try" in
2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756  *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759  (eval "$ac_compiler --version >&5") 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }
2763{ (ac_try="$ac_compiler -v >&5"
2764case "(($ac_try" in
2765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766  *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769  (eval "$ac_compiler -v >&5") 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }
2773{ (ac_try="$ac_compiler -V >&5"
2774case "(($ac_try" in
2775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776  *) ac_try_echo=$ac_try;;
2777esac
2778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779  (eval "$ac_compiler -V >&5") 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }
2783
2784cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h.  */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h.  */
2790
2791int
2792main ()
2793{
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799ac_clean_files_save=$ac_clean_files
2800ac_clean_files="$ac_clean_files a.out a.exe b.out"
2801# Try to create an executable without -o first, disregard a.out.
2802# It will help us diagnose broken compilers, and finding out an intuition
2803# of exeext.
2804{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807#
2808# List of possible output files, starting from the most likely.
2809# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810# only as a last resort.  b.out is created by i960 compilers.
2811ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2812#
2813# The IRIX 6 linker writes into existing files which may not be
2814# executable, retaining their permissions.  Remove them first so a
2815# subsequent execution test works.
2816ac_rmfiles=
2817for ac_file in $ac_files
2818do
2819  case $ac_file in
2820    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822  esac
2823done
2824rm -f $ac_rmfiles
2825
2826if { (ac_try="$ac_link_default"
2827case "(($ac_try" in
2828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829  *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832  (eval "$ac_link_default") 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; then
2836  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2839# so that the user can short-circuit this test for compilers unknown to
2840# Autoconf.
2841for ac_file in $ac_files ''
2842do
2843  test -f "$ac_file" || continue
2844  case $ac_file in
2845    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2846	;;
2847    [ab].out )
2848	# We found the default executable, but exeext='' is most
2849	# certainly right.
2850	break;;
2851    *.* )
2852        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853	then :; else
2854	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855	fi
2856	# We set ac_cv_exeext here because the later test for it is not
2857	# safe: cross compilers may not add the suffix if given an `-o'
2858	# argument, so we may need to know it at that point already.
2859	# Even if this section looks crufty: it has the advantage of
2860	# actually working.
2861	break;;
2862    * )
2863	break;;
2864  esac
2865done
2866test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
2868else
2869  ac_file=''
2870fi
2871
2872{ echo "$as_me:$LINENO: result: $ac_file" >&5
2873echo "${ECHO_T}$ac_file" >&6; }
2874if test -z "$ac_file"; then
2875  echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2879See \`config.log' for more details." >&5
2880echo "$as_me: error: C compiler cannot create executables
2881See \`config.log' for more details." >&2;}
2882   { (exit 77); exit 77; }; }
2883fi
2884
2885ac_exeext=$ac_cv_exeext
2886
2887# Check that the compiler produces executables we can run.  If not, either
2888# the compiler is broken, or we cross compile.
2889{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2891# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894  if { ac_try='./$ac_file'
2895  { (case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900  (eval "$ac_try") 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; }; then
2904    cross_compiling=no
2905  else
2906    if test "$cross_compiling" = maybe; then
2907	cross_compiling=yes
2908    else
2909	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910If you meant to cross compile, use \`--host'.
2911See \`config.log' for more details." >&5
2912echo "$as_me: error: cannot run C compiled programs.
2913If you meant to cross compile, use \`--host'.
2914See \`config.log' for more details." >&2;}
2915   { (exit 1); exit 1; }; }
2916    fi
2917  fi
2918fi
2919{ echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6; }
2921
2922rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923ac_clean_files=$ac_clean_files_save
2924# Check that the compiler produces executables we can run.  If not, either
2925# the compiler is broken, or we cross compile.
2926{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929echo "${ECHO_T}$cross_compiling" >&6; }
2930
2931{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933if { (ac_try="$ac_link"
2934case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939  (eval "$ac_link") 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; then
2943  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2945# work properly (i.e., refer to `conftest.exe'), while it won't with
2946# `rm'.
2947for ac_file in conftest.exe conftest conftest.*; do
2948  test -f "$ac_file" || continue
2949  case $ac_file in
2950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952	  break;;
2953    * ) break;;
2954  esac
2955done
2956else
2957  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." >&2;}
2961   { (exit 1); exit 1; }; }
2962fi
2963
2964rm -f conftest$ac_cv_exeext
2965{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966echo "${ECHO_T}$ac_cv_exeext" >&6; }
2967
2968rm -f conftest.$ac_ext
2969EXEEXT=$ac_cv_exeext
2970ac_exeext=$EXEEXT
2971{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2973if test "${ac_cv_objext+set}" = set; then
2974  echo $ECHO_N "(cached) $ECHO_C" >&6
2975else
2976  cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h.  */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h.  */
2982
2983int
2984main ()
2985{
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.o conftest.obj
2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_compile") 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; then
3002  for ac_file in conftest.o conftest.obj conftest.*; do
3003  test -f "$ac_file" || continue;
3004  case $ac_file in
3005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3006    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007       break;;
3008  esac
3009done
3010else
3011  echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015See \`config.log' for more details." >&5
3016echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017See \`config.log' for more details." >&2;}
3018   { (exit 1); exit 1; }; }
3019fi
3020
3021rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022fi
3023{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024echo "${ECHO_T}$ac_cv_objext" >&6; }
3025OBJEXT=$ac_cv_objext
3026ac_objext=$OBJEXT
3027{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3029if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030  echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032  cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043       choke me
3044#endif
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
3051if { (ac_try="$ac_compile"
3052case "(($ac_try" in
3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054  *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057  (eval "$ac_compile") 2>conftest.er1
3058  ac_status=$?
3059  grep -v '^ *+' conftest.er1 >conftest.err
3060  rm -f conftest.er1
3061  cat conftest.err >&5
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); } && {
3064	 test -z "$ac_c_werror_flag" ||
3065	 test ! -s conftest.err
3066       } && test -s conftest.$ac_objext; then
3067  ac_compiler_gnu=yes
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072	ac_compiler_gnu=no
3073fi
3074
3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078fi
3079{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081GCC=`test $ac_compiler_gnu = yes && echo yes`
3082ac_test_CFLAGS=${CFLAGS+set}
3083ac_save_CFLAGS=$CFLAGS
3084{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086if test "${ac_cv_prog_cc_g+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  ac_save_c_werror_flag=$ac_c_werror_flag
3090   ac_c_werror_flag=yes
3091   ac_cv_prog_cc_g=no
3092   CFLAGS="-g"
3093   cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115  (eval "$ac_compile") 2>conftest.er1
3116  ac_status=$?
3117  grep -v '^ *+' conftest.er1 >conftest.err
3118  rm -f conftest.er1
3119  cat conftest.err >&5
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } && {
3122	 test -z "$ac_c_werror_flag" ||
3123	 test ! -s conftest.err
3124       } && test -s conftest.$ac_objext; then
3125  ac_cv_prog_cc_g=yes
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130	CFLAGS=""
3131      cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138int
3139main ()
3140{
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150  *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153  (eval "$ac_compile") 2>conftest.er1
3154  ac_status=$?
3155  grep -v '^ *+' conftest.er1 >conftest.err
3156  rm -f conftest.er1
3157  cat conftest.err >&5
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); } && {
3160	 test -z "$ac_c_werror_flag" ||
3161	 test ! -s conftest.err
3162       } && test -s conftest.$ac_objext; then
3163  :
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168	ac_c_werror_flag=$ac_save_c_werror_flag
3169	 CFLAGS="-g"
3170	 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h.  */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192  (eval "$ac_compile") 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } && {
3199	 test -z "$ac_c_werror_flag" ||
3200	 test ! -s conftest.err
3201       } && test -s conftest.$ac_objext; then
3202  ac_cv_prog_cc_g=yes
3203else
3204  echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
3208fi
3209
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214fi
3215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217   ac_c_werror_flag=$ac_save_c_werror_flag
3218fi
3219{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221if test "$ac_test_CFLAGS" = set; then
3222  CFLAGS=$ac_save_CFLAGS
3223elif test $ac_cv_prog_cc_g = yes; then
3224  if test "$GCC" = yes; then
3225    CFLAGS="-g -O2"
3226  else
3227    CFLAGS="-g"
3228  fi
3229else
3230  if test "$GCC" = yes; then
3231    CFLAGS="-O2"
3232  else
3233    CFLAGS=
3234  fi
3235fi
3236{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238if test "${ac_cv_prog_cc_c89+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  ac_cv_prog_cc_c89=no
3242ac_save_CC=$CC
3243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h.  */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h.  */
3249#include <stdarg.h>
3250#include <stdio.h>
3251#include <sys/types.h>
3252#include <sys/stat.h>
3253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3254struct buf { int x; };
3255FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256static char *e (p, i)
3257     char **p;
3258     int i;
3259{
3260  return p[i];
3261}
3262static char *f (char * (*g) (char **, int), char **p, ...)
3263{
3264  char *s;
3265  va_list v;
3266  va_start (v,p);
3267  s = g (p, va_arg (v,int));
3268  va_end (v);
3269  return s;
3270}
3271
3272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3273   function prototypes and stuff, but not '\xHH' hex character constants.
3274   These don't provoke an error unfortunately, instead are silently treated
3275   as 'x'.  The following induces an error, until -std is added to get
3276   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3277   array size at least.  It's necessary to write '\x00'==0 to get something
3278   that's true only with -std.  */
3279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280
3281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282   inside strings and character constants.  */
3283#define FOO(x) 'x'
3284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285
3286int test (int i, double x);
3287struct s1 {int (*f) (int a);};
3288struct s2 {int (*f) (double a);};
3289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290int argc;
3291char **argv;
3292int
3293main ()
3294{
3295return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302do
3303  CC="$ac_save_CC $ac_arg"
3304  rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308  *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311  (eval "$ac_compile") 2>conftest.er1
3312  ac_status=$?
3313  grep -v '^ *+' conftest.er1 >conftest.err
3314  rm -f conftest.er1
3315  cat conftest.err >&5
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); } && {
3318	 test -z "$ac_c_werror_flag" ||
3319	 test ! -s conftest.err
3320       } && test -s conftest.$ac_objext; then
3321  ac_cv_prog_cc_c89=$ac_arg
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327fi
3328
3329rm -f core conftest.err conftest.$ac_objext
3330  test "x$ac_cv_prog_cc_c89" != "xno" && break
3331done
3332rm -f conftest.$ac_ext
3333CC=$ac_save_CC
3334
3335fi
3336# AC_CACHE_VAL
3337case "x$ac_cv_prog_cc_c89" in
3338  x)
3339    { echo "$as_me:$LINENO: result: none needed" >&5
3340echo "${ECHO_T}none needed" >&6; } ;;
3341  xno)
3342    { echo "$as_me:$LINENO: result: unsupported" >&5
3343echo "${ECHO_T}unsupported" >&6; } ;;
3344  *)
3345    CC="$CC $ac_cv_prog_cc_c89"
3346    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3348esac
3349
3350
3351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356DEPDIR="${am__leading_dot}deps"
3357
3358ac_config_commands="$ac_config_commands depfiles"
3359
3360
3361am_make=${MAKE-make}
3362cat > confinc << 'END'
3363am__doit:
3364	@echo done
3365.PHONY: am__doit
3366END
3367# If we don't find an include directive, just comment out the code.
3368{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3369echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3370am__include="#"
3371am__quote=
3372_am_result=none
3373# First try GNU make style include.
3374echo "include confinc" > confmf
3375# We grep out `Entering directory' and `Leaving directory'
3376# messages which can occur if `w' ends up in MAKEFLAGS.
3377# In particular we don't look at `^make:' because GNU make might
3378# be invoked under some other name (usually "gmake"), in which
3379# case it prints its new name instead of `make'.
3380if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3381   am__include=include
3382   am__quote=
3383   _am_result=GNU
3384fi
3385# Now try BSD make style include.
3386if test "$am__include" = "#"; then
3387   echo '.include "confinc"' > confmf
3388   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3389      am__include=.include
3390      am__quote="\""
3391      _am_result=BSD
3392   fi
3393fi
3394
3395
3396{ echo "$as_me:$LINENO: result: $_am_result" >&5
3397echo "${ECHO_T}$_am_result" >&6; }
3398rm -f confinc confmf
3399
3400# Check whether --enable-dependency-tracking was given.
3401if test "${enable_dependency_tracking+set}" = set; then
3402  enableval=$enable_dependency_tracking;
3403fi
3404
3405if test "x$enable_dependency_tracking" != xno; then
3406  am_depcomp="$ac_aux_dir/depcomp"
3407  AMDEPBACKSLASH='\'
3408fi
3409 if test "x$enable_dependency_tracking" != xno; then
3410  AMDEP_TRUE=
3411  AMDEP_FALSE='#'
3412else
3413  AMDEP_TRUE='#'
3414  AMDEP_FALSE=
3415fi
3416
3417
3418
3419depcc="$CC"   am_compiler_list=
3420
3421{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3422echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3423if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3424  echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3427  # We make a subdir and do the tests there.  Otherwise we can end up
3428  # making bogus files that we don't know about and never remove.  For
3429  # instance it was reported that on HP-UX the gcc test will end up
3430  # making a dummy file named `D' -- because `-MD' means `put the output
3431  # in D'.
3432  mkdir conftest.dir
3433  # Copy depcomp to subdir because otherwise we won't find it if we're
3434  # using a relative directory.
3435  cp "$am_depcomp" conftest.dir
3436  cd conftest.dir
3437  # We will build objects and dependencies in a subdirectory because
3438  # it helps to detect inapplicable dependency modes.  For instance
3439  # both Tru64's cc and ICC support -MD to output dependencies as a
3440  # side effect of compilation, but ICC will put the dependencies in
3441  # the current directory while Tru64 will put them in the object
3442  # directory.
3443  mkdir sub
3444
3445  am_cv_CC_dependencies_compiler_type=none
3446  if test "$am_compiler_list" = ""; then
3447     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3448  fi
3449  for depmode in $am_compiler_list; do
3450    # Setup a source with many dependencies, because some compilers
3451    # like to wrap large dependency lists on column 80 (with \), and
3452    # we should not choose a depcomp mode which is confused by this.
3453    #
3454    # We need to recreate these files for each test, as the compiler may
3455    # overwrite some of them when testing with obscure command lines.
3456    # This happens at least with the AIX C compiler.
3457    : > sub/conftest.c
3458    for i in 1 2 3 4 5 6; do
3459      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3460      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3461      # Solaris 8's {/usr,}/bin/sh.
3462      touch sub/conftst$i.h
3463    done
3464    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3465
3466    case $depmode in
3467    nosideeffect)
3468      # after this tag, mechanisms are not by side-effect, so they'll
3469      # only be used when explicitly requested
3470      if test "x$enable_dependency_tracking" = xyes; then
3471	continue
3472      else
3473	break
3474      fi
3475      ;;
3476    none) break ;;
3477    esac
3478    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3479    # mode.  It turns out that the SunPro C++ compiler does not properly
3480    # handle `-M -o', and we need to detect this.
3481    if depmode=$depmode \
3482       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3483       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3484       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3485         >/dev/null 2>conftest.err &&
3486       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3487       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3488       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3489       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3490      # icc doesn't choke on unknown options, it will just issue warnings
3491      # or remarks (even with -Werror).  So we grep stderr for any message
3492      # that says an option was ignored or not supported.
3493      # When given -MP, icc 7.0 and 7.1 complain thusly:
3494      #   icc: Command line warning: ignoring option '-M'; no argument required
3495      # The diagnosis changed in icc 8.0:
3496      #   icc: Command line remark: option '-MP' not supported
3497      if (grep 'ignoring option' conftest.err ||
3498          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3499        am_cv_CC_dependencies_compiler_type=$depmode
3500        break
3501      fi
3502    fi
3503  done
3504
3505  cd ..
3506  rm -rf conftest.dir
3507else
3508  am_cv_CC_dependencies_compiler_type=none
3509fi
3510
3511fi
3512{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3513echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3514CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3515
3516 if
3517  test "x$enable_dependency_tracking" != xno \
3518  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3519  am__fastdepCC_TRUE=
3520  am__fastdepCC_FALSE='#'
3521else
3522  am__fastdepCC_TRUE='#'
3523  am__fastdepCC_FALSE=
3524fi
3525
3526
3527{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3528echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3529LN_S=$as_ln_s
3530if test "$LN_S" = "ln -s"; then
3531  { echo "$as_me:$LINENO: result: yes" >&5
3532echo "${ECHO_T}yes" >&6; }
3533else
3534  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3535echo "${ECHO_T}no, using $LN_S" >&6; }
3536fi
3537
3538if test -n "$ac_tool_prefix"; then
3539  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3540set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3543if test "${ac_cv_prog_RANLIB+set}" = set; then
3544  echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546  if test -n "$RANLIB"; then
3547  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554  for ac_exec_ext in '' $ac_executable_extensions; do
3555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558    break 2
3559  fi
3560done
3561done
3562IFS=$as_save_IFS
3563
3564fi
3565fi
3566RANLIB=$ac_cv_prog_RANLIB
3567if test -n "$RANLIB"; then
3568  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3569echo "${ECHO_T}$RANLIB" >&6; }
3570else
3571  { echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6; }
3573fi
3574
3575
3576fi
3577if test -z "$ac_cv_prog_RANLIB"; then
3578  ac_ct_RANLIB=$RANLIB
3579  # Extract the first word of "ranlib", so it can be a program name with args.
3580set dummy ranlib; ac_word=$2
3581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3584  echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586  if test -n "$ac_ct_RANLIB"; then
3587  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594  for ac_exec_ext in '' $ac_executable_extensions; do
3595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596    ac_cv_prog_ac_ct_RANLIB="ranlib"
3597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3607if test -n "$ac_ct_RANLIB"; then
3608  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3609echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3610else
3611  { echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6; }
3613fi
3614
3615  if test "x$ac_ct_RANLIB" = x; then
3616    RANLIB=":"
3617  else
3618    case $cross_compiling:$ac_tool_warned in
3619yes:)
3620{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3621whose name does not start with the host triplet.  If you think this
3622configuration is useful to you, please write to autoconf@gnu.org." >&5
3623echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3624whose name does not start with the host triplet.  If you think this
3625configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3626ac_tool_warned=yes ;;
3627esac
3628    RANLIB=$ac_ct_RANLIB
3629  fi
3630else
3631  RANLIB="$ac_cv_prog_RANLIB"
3632fi
3633
3634
3635if test "x$GCC" = "xyes"; then
3636
3637cat >>confdefs.h <<\_ACEOF
3638#define PACKEDATTR __attribute__((packed))
3639_ACEOF
3640
3641else
3642  cat >>confdefs.h <<\_ACEOF
3643#define PACKEDATTR
3644_ACEOF
3645
3646  echo "-!- Your compiler is not gcc. We probably don't know how to force"
3647  echo '    structures to be packed with your compiler. You may have to edit'
3648  echo '    the source to insert the relevant pragmas so structures are packed.'
3649fi
3650
3651CFLAGS_OPT="-O2 -fomit-frame-pointer"
3652
3653
3654NEW_CFLAGS="$CFLAGS"
3655for ac_flag in -Wall
3656do
3657 { echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
3658echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6; }
3659 CFLAGS="$NEW_CFLAGS $ac_flag"
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670
3671  void f() {};
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677rm -f conftest.$ac_objext
3678if { (ac_try="$ac_compile"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684  (eval "$ac_compile") 2>conftest.er1
3685  ac_status=$?
3686  grep -v '^ *+' conftest.er1 >conftest.err
3687  rm -f conftest.er1
3688  cat conftest.err >&5
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); } && {
3691	 test -z "$ac_c_werror_flag" ||
3692	 test ! -s conftest.err
3693       } && test -s conftest.$ac_objext; then
3694
3695  NEW_CFLAGS="$CFLAGS"
3696  { echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6; }
3698
3699else
3700  echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703	{ echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6; }
3705fi
3706
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708done
3709CFLAGS="$NEW_CFLAGS"
3710
3711# Check whether --enable-debug was given.
3712if test "${enable_debug+set}" = set; then
3713  enableval=$enable_debug;
3714else
3715  enable_debug="no"
3716fi
3717
3718if test "$enable_debug" = "no"
3719then
3720
3721NEW_CFLAGS="$CFLAGS"
3722for ac_flag in -Wno-unused -Wno-switch
3723do
3724 { echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
3725echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6; }
3726 CFLAGS="$NEW_CFLAGS $ac_flag"
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733
3734int
3735main ()
3736{
3737
3738  void f() {};
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (ac_try="$ac_compile"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751  (eval "$ac_compile") 2>conftest.er1
3752  ac_status=$?
3753  grep -v '^ *+' conftest.er1 >conftest.err
3754  rm -f conftest.er1
3755  cat conftest.err >&5
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } && {
3758	 test -z "$ac_c_werror_flag" ||
3759	 test ! -s conftest.err
3760       } && test -s conftest.$ac_objext; then
3761
3762  NEW_CFLAGS="$CFLAGS"
3763  { echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6; }
3765
3766else
3767  echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770	{ echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6; }
3772fi
3773
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775done
3776CFLAGS="$NEW_CFLAGS"
3777
3778else
3779    CFLAGS_OPT="-g"
3780
3781NEW_CFLAGS="$CFLAGS"
3782for ac_flag in -Wmissing-noreturn -Wredundant-decls -Wnested-externs -Wold-style-definition -Wmissing-declarations -Wmissing-format-attribute -Wvariadic-macros -Wdisabled-optimization -Wlarger-than-128000 -Waggregate-return -Wvolatile-register-var
3783do
3784 { echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
3785echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6; }
3786 CFLAGS="$NEW_CFLAGS $ac_flag"
3787 cat >conftest.$ac_ext <<_ACEOF
3788/* confdefs.h.  */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h.  */
3793
3794int
3795main ()
3796{
3797
3798  void f() {};
3799
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (ac_try="$ac_compile"
3806case "(($ac_try" in
3807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808  *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811  (eval "$ac_compile") 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } && {
3818	 test -z "$ac_c_werror_flag" ||
3819	 test ! -s conftest.err
3820       } && test -s conftest.$ac_objext; then
3821
3822  NEW_CFLAGS="$CFLAGS"
3823  { echo "$as_me:$LINENO: result: yes" >&5
3824echo "${ECHO_T}yes" >&6; }
3825
3826else
3827  echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830	{ echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6; }
3832fi
3833
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835done
3836CFLAGS="$NEW_CFLAGS"
3837
3838
3839cat >>confdefs.h <<\_ACEOF
3840#define RANGECHECK 1
3841_ACEOF
3842
3843
3844cat >>confdefs.h <<\_ACEOF
3845#define INSTRUMENTED 1
3846_ACEOF
3847
3848
3849cat >>confdefs.h <<\_ACEOF
3850#define TIMEDIAG 1
3851_ACEOF
3852
3853fi
3854# Check whether --enable-profile was given.
3855if test "${enable_profile+set}" = set; then
3856  enableval=$enable_profile;
3857else
3858  enable_profile="no"
3859fi
3860
3861if test "$enable_profile" = "yes"
3862then
3863    CFLAGS_OPT="-pg"
3864fi
3865{ echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
3866echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
3867
3868# Check whether --with-dmalloc was given.
3869if test "${with_dmalloc+set}" = set; then
3870  withval=$with_dmalloc; if test "$withval" = yes; then
3871  { echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6; }
3873
3874cat >>confdefs.h <<\_ACEOF
3875#define WITH_DMALLOC 1
3876_ACEOF
3877
3878  LIBS="$LIBS -ldmalloc"
3879  LDFLAGS="$LDFLAGS -g"
3880else
3881  { echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6; }
3883fi
3884else
3885  { echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6; }
3887fi
3888
3889
3890
3891
3892
3893# Check whether --enable-cpu-opt was given.
3894if test "${enable_cpu_opt+set}" = set; then
3895  enableval=$enable_cpu_opt;
3896
3897else
3898
3899{ echo "$as_me:$LINENO: checking whether compiler supports -march=native" >&5
3900echo $ECHO_N "checking whether compiler supports -march=native... $ECHO_C" >&6; }
3901OLD_CFLAGS="$CFLAGS"
3902CFLAGS="$OLD_CFLAGS -march=native"
3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913
3914  void f() {};
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (ac_try="$ac_compile"
3922case "(($ac_try" in
3923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924  *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927  (eval "$ac_compile") 2>conftest.er1
3928  ac_status=$?
3929  grep -v '^ *+' conftest.er1 >conftest.err
3930  rm -f conftest.er1
3931  cat conftest.err >&5
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); } && {
3934	 test -z "$ac_c_werror_flag" ||
3935	 test ! -s conftest.err
3936       } && test -s conftest.$ac_objext; then
3937
3938  { echo "$as_me:$LINENO: result: yes" >&5
3939echo "${ECHO_T}yes" >&6; }
3940
3941else
3942  echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945
3946  { echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6; }
3948  CFLAGS="$OLD_CFLAGS"
3949
3950  case "$target" in
3951        # marginal gains from aligning code
3952  i386-*) ;;
3953  i486-*) CPU_CFLAGS="-mtune=i486" ;;
3954        # nothing special for pentium
3955        # CMOV op on ppro/II/686 can help us
3956  i686-*) CPU_CFLAGS="-march=i686" ;;
3957  esac
3958
3959NEW_CFLAGS="$CFLAGS"
3960for ac_flag in $CPU_CFLAGS
3961do
3962 { echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
3963echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6; }
3964 CFLAGS="$NEW_CFLAGS $ac_flag"
3965 cat >conftest.$ac_ext <<_ACEOF
3966/* confdefs.h.  */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
3970/* end confdefs.h.  */
3971
3972int
3973main ()
3974{
3975
3976  void f() {};
3977
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext
3983if { (ac_try="$ac_compile"
3984case "(($ac_try" in
3985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986  *) ac_try_echo=$ac_try;;
3987esac
3988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989  (eval "$ac_compile") 2>conftest.er1
3990  ac_status=$?
3991  grep -v '^ *+' conftest.er1 >conftest.err
3992  rm -f conftest.er1
3993  cat conftest.err >&5
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); } && {
3996	 test -z "$ac_c_werror_flag" ||
3997	 test ! -s conftest.err
3998       } && test -s conftest.$ac_objext; then
3999
4000  NEW_CFLAGS="$CFLAGS"
4001  { echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6; }
4003
4004else
4005  echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008	{ echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6; }
4010fi
4011
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013done
4014CFLAGS="$NEW_CFLAGS"
4015
4016
4017fi
4018
4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020
4021fi
4022
4023
4024
4025
4026NEW_CFLAGS="$CFLAGS"
4027for ac_flag in -Wextra -Wno-missing-field-initializers -Winline -Wwrite-strings -Wundef -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -ffast-math $CFLAGS_OPT
4028do
4029 { echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
4030echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6; }
4031 CFLAGS="$NEW_CFLAGS $ac_flag"
4032 cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h.  */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h.  */
4038
4039int
4040main ()
4041{
4042
4043  void f() {};
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (ac_try="$ac_compile"
4051case "(($ac_try" in
4052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053  *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056  (eval "$ac_compile") 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } && {
4063	 test -z "$ac_c_werror_flag" ||
4064	 test ! -s conftest.err
4065       } && test -s conftest.$ac_objext; then
4066
4067  NEW_CFLAGS="$CFLAGS"
4068  { echo "$as_me:$LINENO: result: yes" >&5
4069echo "${ECHO_T}yes" >&6; }
4070
4071else
4072  echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075	{ echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6; }
4077fi
4078
4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080done
4081CFLAGS="$NEW_CFLAGS"
4082
4083CFLAGS="$CFLAGS -I\$(top_srcdir)/src"
4084
4085{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4086echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4087if test "${ac_cv_c_const+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096
4097int
4098main ()
4099{
4100/* FIXME: Include the comments suggested by Paul. */
4101#ifndef __cplusplus
4102  /* Ultrix mips cc rejects this.  */
4103  typedef int charset[2];
4104  const charset cs;
4105  /* SunOS 4.1.1 cc rejects this.  */
4106  char const *const *pcpcc;
4107  char **ppc;
4108  /* NEC SVR4.0.2 mips cc rejects this.  */
4109  struct point {int x, y;};
4110  static struct point const zero = {0,0};
4111  /* AIX XL C 1.02.0.0 rejects this.
4112     It does not let you subtract one const X* pointer from another in
4113     an arm of an if-expression whose if-part is not a constant
4114     expression */
4115  const char *g = "string";
4116  pcpcc = &g + (g ? g-g : 0);
4117  /* HPUX 7.0 cc rejects these. */
4118  ++pcpcc;
4119  ppc = (char**) pcpcc;
4120  pcpcc = (char const *const *) ppc;
4121  { /* SCO 3.2v4 cc rejects this.  */
4122    char *t;
4123    char const *s = 0 ? (char *) 0 : (char const *) 0;
4124
4125    *t++ = 0;
4126    if (s) return 0;
4127  }
4128  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4129    int x[] = {25, 17};
4130    const int *foo = &x[0];
4131    ++foo;
4132  }
4133  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4134    typedef const int *iptr;
4135    iptr p = 0;
4136    ++p;
4137  }
4138  { /* AIX XL C 1.02.0.0 rejects this saying
4139       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4140    struct s { int j; const int *ap[3]; };
4141    struct s *b; b->j = 5;
4142  }
4143  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4144    const int foo = 10;
4145    if (!foo) return 0;
4146  }
4147  return !cs[0] && !zero.x;
4148#endif
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158  *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161  (eval "$ac_compile") 2>conftest.er1
4162  ac_status=$?
4163  grep -v '^ *+' conftest.er1 >conftest.err
4164  rm -f conftest.er1
4165  cat conftest.err >&5
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); } && {
4168	 test -z "$ac_c_werror_flag" ||
4169	 test ! -s conftest.err
4170       } && test -s conftest.$ac_objext; then
4171  ac_cv_c_const=yes
4172else
4173  echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176	ac_cv_c_const=no
4177fi
4178
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4182echo "${ECHO_T}$ac_cv_c_const" >&6; }
4183if test $ac_cv_c_const = no; then
4184
4185cat >>confdefs.h <<\_ACEOF
4186#define const
4187_ACEOF
4188
4189fi
4190
4191{ echo "$as_me:$LINENO: checking for inline" >&5
4192echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4193if test "${ac_cv_c_inline+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  ac_cv_c_inline=no
4197for ac_kw in inline __inline__ __inline; do
4198  cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h.  */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h.  */
4204#ifndef __cplusplus
4205typedef int foo_t;
4206static $ac_kw foo_t static_foo () {return 0; }
4207$ac_kw foo_t foo () {return 0; }
4208#endif
4209
4210_ACEOF
4211rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218  (eval "$ac_compile") 2>conftest.er1
4219  ac_status=$?
4220  grep -v '^ *+' conftest.er1 >conftest.err
4221  rm -f conftest.er1
4222  cat conftest.err >&5
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); } && {
4225	 test -z "$ac_c_werror_flag" ||
4226	 test ! -s conftest.err
4227       } && test -s conftest.$ac_objext; then
4228  ac_cv_c_inline=$ac_kw
4229else
4230  echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233
4234fi
4235
4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237  test "$ac_cv_c_inline" != no && break
4238done
4239
4240fi
4241{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4242echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4243
4244
4245case $ac_cv_c_inline in
4246  inline | yes) ;;
4247  *)
4248    case $ac_cv_c_inline in
4249      no) ac_val=;;
4250      *) ac_val=$ac_cv_c_inline;;
4251    esac
4252    cat >>confdefs.h <<_ACEOF
4253#ifndef __cplusplus
4254#define inline $ac_val
4255#endif
4256_ACEOF
4257    ;;
4258esac
4259
4260if test "$cross_compiling" != "yes"; then
4261        ac_ext=c
4262ac_cpp='$CPP $CPPFLAGS'
4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4267echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4268# On Suns, sometimes $CPP names a directory.
4269if test -n "$CPP" && test -d "$CPP"; then
4270  CPP=
4271fi
4272if test -z "$CPP"; then
4273  if test "${ac_cv_prog_CPP+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276      # Double quotes because CPP needs to be expanded
4277    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4278    do
4279      ac_preproc_ok=false
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282  # Use a header file that comes with gcc, so configuring glibc
4283  # with a fresh cross-compiler works.
4284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285  # <limits.h> exists even on freestanding compilers.
4286  # On the NeXT, cc -E runs the code through the compiler's parser,
4287  # not just through cpp. "Syntax error" is here to catch this case.
4288  cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h.  */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h.  */
4294#ifdef __STDC__
4295# include <limits.h>
4296#else
4297# include <assert.h>
4298#endif
4299		     Syntax error
4300_ACEOF
4301if { (ac_try="$ac_cpp conftest.$ac_ext"
4302case "(($ac_try" in
4303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304  *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } >/dev/null && {
4314	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4315	 test ! -s conftest.err
4316       }; then
4317  :
4318else
4319  echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322  # Broken: fails on valid input.
4323continue
4324fi
4325
4326rm -f conftest.err conftest.$ac_ext
4327
4328  # OK, works on sane cases.  Now check whether nonexistent headers
4329  # can be detected and how.
4330  cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336#include <ac_nonexistent.h>
4337_ACEOF
4338if { (ac_try="$ac_cpp conftest.$ac_ext"
4339case "(($ac_try" in
4340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341  *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345  ac_status=$?
4346  grep -v '^ *+' conftest.er1 >conftest.err
4347  rm -f conftest.er1
4348  cat conftest.err >&5
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); } >/dev/null && {
4351	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4352	 test ! -s conftest.err
4353       }; then
4354  # Broken: success on invalid input.
4355continue
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360  # Passes both tests.
4361ac_preproc_ok=:
4362break
4363fi
4364
4365rm -f conftest.err conftest.$ac_ext
4366
4367done
4368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369rm -f conftest.err conftest.$ac_ext
4370if $ac_preproc_ok; then
4371  break
4372fi
4373
4374    done
4375    ac_cv_prog_CPP=$CPP
4376
4377fi
4378  CPP=$ac_cv_prog_CPP
4379else
4380  ac_cv_prog_CPP=$CPP
4381fi
4382{ echo "$as_me:$LINENO: result: $CPP" >&5
4383echo "${ECHO_T}$CPP" >&6; }
4384ac_preproc_ok=false
4385for ac_c_preproc_warn_flag in '' yes
4386do
4387  # Use a header file that comes with gcc, so configuring glibc
4388  # with a fresh cross-compiler works.
4389  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4390  # <limits.h> exists even on freestanding compilers.
4391  # On the NeXT, cc -E runs the code through the compiler's parser,
4392  # not just through cpp. "Syntax error" is here to catch this case.
4393  cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h.  */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h.  */
4399#ifdef __STDC__
4400# include <limits.h>
4401#else
4402# include <assert.h>
4403#endif
4404		     Syntax error
4405_ACEOF
4406if { (ac_try="$ac_cpp conftest.$ac_ext"
4407case "(($ac_try" in
4408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409  *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4413  ac_status=$?
4414  grep -v '^ *+' conftest.er1 >conftest.err
4415  rm -f conftest.er1
4416  cat conftest.err >&5
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); } >/dev/null && {
4419	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4420	 test ! -s conftest.err
4421       }; then
4422  :
4423else
4424  echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427  # Broken: fails on valid input.
4428continue
4429fi
4430
4431rm -f conftest.err conftest.$ac_ext
4432
4433  # OK, works on sane cases.  Now check whether nonexistent headers
4434  # can be detected and how.
4435  cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441#include <ac_nonexistent.h>
4442_ACEOF
4443if { (ac_try="$ac_cpp conftest.$ac_ext"
4444case "(($ac_try" in
4445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446  *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4450  ac_status=$?
4451  grep -v '^ *+' conftest.er1 >conftest.err
4452  rm -f conftest.er1
4453  cat conftest.err >&5
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); } >/dev/null && {
4456	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4457	 test ! -s conftest.err
4458       }; then
4459  # Broken: success on invalid input.
4460continue
4461else
4462  echo "$as_me: failed program was:" >&5
4463sed 's/^/| /' conftest.$ac_ext >&5
4464
4465  # Passes both tests.
4466ac_preproc_ok=:
4467break
4468fi
4469
4470rm -f conftest.err conftest.$ac_ext
4471
4472done
4473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474rm -f conftest.err conftest.$ac_ext
4475if $ac_preproc_ok; then
4476  :
4477else
4478  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4479See \`config.log' for more details." >&5
4480echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4481See \`config.log' for more details." >&2;}
4482   { (exit 1); exit 1; }; }
4483fi
4484
4485ac_ext=c
4486ac_cpp='$CPP $CPPFLAGS'
4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491
4492{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4493echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4494if test "${ac_cv_path_GREP+set}" = set; then
4495  echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497  # Extract the first word of "grep ggrep" to use in msg output
4498if test -z "$GREP"; then
4499set dummy grep ggrep; ac_prog_name=$2
4500if test "${ac_cv_path_GREP+set}" = set; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  ac_path_GREP_found=false
4504# Loop through the user's path and test for each of PROGNAME-LIST
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507do
4508  IFS=$as_save_IFS
4509  test -z "$as_dir" && as_dir=.
4510  for ac_prog in grep ggrep; do
4511  for ac_exec_ext in '' $ac_executable_extensions; do
4512    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4513    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4514    # Check for GNU ac_path_GREP and select it if it is found.
4515  # Check for GNU $ac_path_GREP
4516case `"$ac_path_GREP" --version 2>&1` in
4517*GNU*)
4518  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519*)
4520  ac_count=0
4521  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4522  while :
4523  do
4524    cat "conftest.in" "conftest.in" >"conftest.tmp"
4525    mv "conftest.tmp" "conftest.in"
4526    cp "conftest.in" "conftest.nl"
4527    echo 'GREP' >> "conftest.nl"
4528    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530    ac_count=`expr $ac_count + 1`
4531    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4532      # Best one so far, save it but keep looking for a better one
4533      ac_cv_path_GREP="$ac_path_GREP"
4534      ac_path_GREP_max=$ac_count
4535    fi
4536    # 10*(2^10) chars as input seems more than enough
4537    test $ac_count -gt 10 && break
4538  done
4539  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540esac
4541
4542
4543    $ac_path_GREP_found && break 3
4544  done
4545done
4546
4547done
4548IFS=$as_save_IFS
4549
4550
4551fi
4552
4553GREP="$ac_cv_path_GREP"
4554if test -z "$GREP"; then
4555  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4556echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4557   { (exit 1); exit 1; }; }
4558fi
4559
4560else
4561  ac_cv_path_GREP=$GREP
4562fi
4563
4564
4565fi
4566{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4567echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4568 GREP="$ac_cv_path_GREP"
4569
4570
4571{ echo "$as_me:$LINENO: checking for egrep" >&5
4572echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4573if test "${ac_cv_path_EGREP+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4577   then ac_cv_path_EGREP="$GREP -E"
4578   else
4579     # Extract the first word of "egrep" to use in msg output
4580if test -z "$EGREP"; then
4581set dummy egrep; ac_prog_name=$2
4582if test "${ac_cv_path_EGREP+set}" = set; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585  ac_path_EGREP_found=false
4586# Loop through the user's path and test for each of PROGNAME-LIST
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592  for ac_prog in egrep; do
4593  for ac_exec_ext in '' $ac_executable_extensions; do
4594    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4595    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4596    # Check for GNU ac_path_EGREP and select it if it is found.
4597  # Check for GNU $ac_path_EGREP
4598case `"$ac_path_EGREP" --version 2>&1` in
4599*GNU*)
4600  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4601*)
4602  ac_count=0
4603  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4604  while :
4605  do
4606    cat "conftest.in" "conftest.in" >"conftest.tmp"
4607    mv "conftest.tmp" "conftest.in"
4608    cp "conftest.in" "conftest.nl"
4609    echo 'EGREP' >> "conftest.nl"
4610    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612    ac_count=`expr $ac_count + 1`
4613    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4614      # Best one so far, save it but keep looking for a better one
4615      ac_cv_path_EGREP="$ac_path_EGREP"
4616      ac_path_EGREP_max=$ac_count
4617    fi
4618    # 10*(2^10) chars as input seems more than enough
4619    test $ac_count -gt 10 && break
4620  done
4621  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622esac
4623
4624
4625    $ac_path_EGREP_found && break 3
4626  done
4627done
4628
4629done
4630IFS=$as_save_IFS
4631
4632
4633fi
4634
4635EGREP="$ac_cv_path_EGREP"
4636if test -z "$EGREP"; then
4637  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4638echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4639   { (exit 1); exit 1; }; }
4640fi
4641
4642else
4643  ac_cv_path_EGREP=$EGREP
4644fi
4645
4646
4647   fi
4648fi
4649{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4650echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4651 EGREP="$ac_cv_path_EGREP"
4652
4653
4654{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4655echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4656if test "${ac_cv_header_stdc+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665#include <stdlib.h>
4666#include <stdarg.h>
4667#include <string.h>
4668#include <float.h>
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678rm -f conftest.$ac_objext
4679if { (ac_try="$ac_compile"
4680case "(($ac_try" in
4681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682  *) ac_try_echo=$ac_try;;
4683esac
4684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685  (eval "$ac_compile") 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } && {
4692	 test -z "$ac_c_werror_flag" ||
4693	 test ! -s conftest.err
4694       } && test -s conftest.$ac_objext; then
4695  ac_cv_header_stdc=yes
4696else
4697  echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700	ac_cv_header_stdc=no
4701fi
4702
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704
4705if test $ac_cv_header_stdc = yes; then
4706  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4707  cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h.  */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h.  */
4713#include <string.h>
4714
4715_ACEOF
4716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717  $EGREP "memchr" >/dev/null 2>&1; then
4718  :
4719else
4720  ac_cv_header_stdc=no
4721fi
4722rm -f conftest*
4723
4724fi
4725
4726if test $ac_cv_header_stdc = yes; then
4727  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4728  cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h.  */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h.  */
4734#include <stdlib.h>
4735
4736_ACEOF
4737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738  $EGREP "free" >/dev/null 2>&1; then
4739  :
4740else
4741  ac_cv_header_stdc=no
4742fi
4743rm -f conftest*
4744
4745fi
4746
4747if test $ac_cv_header_stdc = yes; then
4748  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4749  if test "$cross_compiling" = yes; then
4750  :
4751else
4752  cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h.  */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h.  */
4758#include <ctype.h>
4759#include <stdlib.h>
4760#if ((' ' & 0x0FF) == 0x020)
4761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4763#else
4764# define ISLOWER(c) \
4765		   (('a' <= (c) && (c) <= 'i') \
4766		     || ('j' <= (c) && (c) <= 'r') \
4767		     || ('s' <= (c) && (c) <= 'z'))
4768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4769#endif
4770
4771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4772int
4773main ()
4774{
4775  int i;
4776  for (i = 0; i < 256; i++)
4777    if (XOR (islower (i), ISLOWER (i))
4778	|| toupper (i) != TOUPPER (i))
4779      return 2;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest$ac_exeext
4784if { (ac_try="$ac_link"
4785case "(($ac_try" in
4786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787  *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790  (eval "$ac_link") 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4794  { (case "(($ac_try" in
4795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796  *) ac_try_echo=$ac_try;;
4797esac
4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799  (eval "$ac_try") 2>&5
4800  ac_status=$?
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); }; }; then
4803  :
4804else
4805  echo "$as_me: program exited with status $ac_status" >&5
4806echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809( exit $ac_status )
4810ac_cv_header_stdc=no
4811fi
4812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4813fi
4814
4815
4816fi
4817fi
4818{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4819echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4820if test $ac_cv_header_stdc = yes; then
4821
4822cat >>confdefs.h <<\_ACEOF
4823#define STDC_HEADERS 1
4824_ACEOF
4825
4826fi
4827
4828# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4839		  inttypes.h stdint.h unistd.h
4840do
4841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4845  echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847  cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h.  */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h.  */
4853$ac_includes_default
4854
4855#include <$ac_header>
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (ac_try="$ac_compile"
4859case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864  (eval "$ac_compile") 2>conftest.er1
4865  ac_status=$?
4866  grep -v '^ *+' conftest.er1 >conftest.err
4867  rm -f conftest.er1
4868  cat conftest.err >&5
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); } && {
4871	 test -z "$ac_c_werror_flag" ||
4872	 test ! -s conftest.err
4873       } && test -s conftest.$ac_objext; then
4874  eval "$as_ac_Header=yes"
4875else
4876  echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879	eval "$as_ac_Header=no"
4880fi
4881
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883fi
4884ac_res=`eval echo '${'$as_ac_Header'}'`
4885	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4886echo "${ECHO_T}$ac_res" >&6; }
4887if test `eval echo '${'$as_ac_Header'}'` = yes; then
4888  cat >>confdefs.h <<_ACEOF
4889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890_ACEOF
4891
4892fi
4893
4894done
4895
4896
4897{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4898echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4899if test "${ac_cv_c_bigendian+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  # See if sys/param.h defines the BYTE_ORDER macro.
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <sys/types.h>
4910#include <sys/param.h>
4911
4912int
4913main ()
4914{
4915#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4916	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4917 bogus endian macros
4918#endif
4919
4920  ;
4921  return 0;
4922}
4923_ACEOF
4924rm -f conftest.$ac_objext
4925if { (ac_try="$ac_compile"
4926case "(($ac_try" in
4927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928  *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931  (eval "$ac_compile") 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } && {
4938	 test -z "$ac_c_werror_flag" ||
4939	 test ! -s conftest.err
4940       } && test -s conftest.$ac_objext; then
4941  # It does; now see whether it defined to BIG_ENDIAN or not.
4942cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948#include <sys/types.h>
4949#include <sys/param.h>
4950
4951int
4952main ()
4953{
4954#if BYTE_ORDER != BIG_ENDIAN
4955 not big endian
4956#endif
4957
4958  ;
4959  return 0;
4960}
4961_ACEOF
4962rm -f conftest.$ac_objext
4963if { (ac_try="$ac_compile"
4964case "(($ac_try" in
4965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966  *) ac_try_echo=$ac_try;;
4967esac
4968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969  (eval "$ac_compile") 2>conftest.er1
4970  ac_status=$?
4971  grep -v '^ *+' conftest.er1 >conftest.err
4972  rm -f conftest.er1
4973  cat conftest.err >&5
4974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975  (exit $ac_status); } && {
4976	 test -z "$ac_c_werror_flag" ||
4977	 test ! -s conftest.err
4978       } && test -s conftest.$ac_objext; then
4979  ac_cv_c_bigendian=yes
4980else
4981  echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984	ac_cv_c_bigendian=no
4985fi
4986
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988else
4989  echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992	# It does not; compile a test program.
4993if test "$cross_compiling" = yes; then
4994  # try to guess the endianness by grepping values into an object file
4995  ac_cv_c_bigendian=unknown
4996  cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h.  */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h.  */
5002short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5003short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5004void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5005short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5006short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5007void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5008int
5009main ()
5010{
5011 _ascii (); _ebcdic ();
5012  ;
5013  return 0;
5014}
5015_ACEOF
5016rm -f conftest.$ac_objext
5017if { (ac_try="$ac_compile"
5018case "(($ac_try" in
5019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020  *) ac_try_echo=$ac_try;;
5021esac
5022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023  (eval "$ac_compile") 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } && {
5030	 test -z "$ac_c_werror_flag" ||
5031	 test ! -s conftest.err
5032       } && test -s conftest.$ac_objext; then
5033  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5034  ac_cv_c_bigendian=yes
5035fi
5036if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5037  if test "$ac_cv_c_bigendian" = unknown; then
5038    ac_cv_c_bigendian=no
5039  else
5040    # finding both strings is unlikely to happen, but who knows?
5041    ac_cv_c_bigendian=unknown
5042  fi
5043fi
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048
5049fi
5050
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052else
5053  cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h.  */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h.  */
5059$ac_includes_default
5060int
5061main ()
5062{
5063
5064  /* Are we little or big endian?  From Harbison&Steele.  */
5065  union
5066  {
5067    long int l;
5068    char c[sizeof (long int)];
5069  } u;
5070  u.l = 1;
5071  return u.c[sizeof (long int) - 1] == 1;
5072
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest$ac_exeext
5078if { (ac_try="$ac_link"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_link") 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088  { (case "(($ac_try" in
5089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090  *) ac_try_echo=$ac_try;;
5091esac
5092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093  (eval "$ac_try") 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; }; then
5097  ac_cv_c_bigendian=no
5098else
5099  echo "$as_me: program exited with status $ac_status" >&5
5100echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103( exit $ac_status )
5104ac_cv_c_bigendian=yes
5105fi
5106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5107fi
5108
5109
5110fi
5111
5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113fi
5114{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5115echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5116case $ac_cv_c_bigendian in
5117  yes)
5118
5119cat >>confdefs.h <<\_ACEOF
5120#define WORDS_BIGENDIAN 1
5121_ACEOF
5122 ;;
5123  no)
5124     ;;
5125  *)
5126    { { echo "$as_me:$LINENO: error: unknown endianness
5127presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5128echo "$as_me: error: unknown endianness
5129presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5130   { (exit 1); exit 1; }; } ;;
5131esac
5132
5133fi
5134
5135{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5136echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5137if test "${ac_cv_type_uid_t+set}" = set; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h.  */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h.  */
5146#include <sys/types.h>
5147
5148_ACEOF
5149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150  $EGREP "uid_t" >/dev/null 2>&1; then
5151  ac_cv_type_uid_t=yes
5152else
5153  ac_cv_type_uid_t=no
5154fi
5155rm -f conftest*
5156
5157fi
5158{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5159echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5160if test $ac_cv_type_uid_t = no; then
5161
5162cat >>confdefs.h <<\_ACEOF
5163#define uid_t int
5164_ACEOF
5165
5166
5167cat >>confdefs.h <<\_ACEOF
5168#define gid_t int
5169_ACEOF
5170
5171fi
5172
5173{ echo "$as_me:$LINENO: checking for size_t" >&5
5174echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5175if test "${ac_cv_type_size_t+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  cat >conftest.$ac_ext <<_ACEOF
5179/* confdefs.h.  */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h.  */
5184$ac_includes_default
5185typedef size_t ac__type_new_;
5186int
5187main ()
5188{
5189if ((ac__type_new_ *) 0)
5190  return 0;
5191if (sizeof (ac__type_new_))
5192  return 0;
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197rm -f conftest.$ac_objext
5198if { (ac_try="$ac_compile"
5199case "(($ac_try" in
5200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201  *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204  (eval "$ac_compile") 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } && {
5211	 test -z "$ac_c_werror_flag" ||
5212	 test ! -s conftest.err
5213       } && test -s conftest.$ac_objext; then
5214  ac_cv_type_size_t=yes
5215else
5216  echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219	ac_cv_type_size_t=no
5220fi
5221
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5225echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5226if test $ac_cv_type_size_t = yes; then
5227  :
5228else
5229
5230cat >>confdefs.h <<_ACEOF
5231#define size_t unsigned int
5232_ACEOF
5233
5234fi
5235
5236{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5237echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
5238if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h.  */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h.  */
5247#include <signal.h>
5248/* NetBSD declares sys_siglist in unistd.h.  */
5249#ifdef HAVE_UNISTD_H
5250# include <unistd.h>
5251#endif
5252
5253
5254int
5255main ()
5256{
5257#ifndef sys_siglist
5258  (void) sys_siglist;
5259#endif
5260
5261  ;
5262  return 0;
5263}
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272  (eval "$ac_compile") 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } && {
5279	 test -z "$ac_c_werror_flag" ||
5280	 test ! -s conftest.err
5281       } && test -s conftest.$ac_objext; then
5282  ac_cv_have_decl_sys_siglist=yes
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287	ac_cv_have_decl_sys_siglist=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291fi
5292{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5293echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
5294if test $ac_cv_have_decl_sys_siglist = yes; then
5295
5296cat >>confdefs.h <<_ACEOF
5297#define HAVE_DECL_SYS_SIGLIST 1
5298_ACEOF
5299
5300
5301else
5302  cat >>confdefs.h <<_ACEOF
5303#define HAVE_DECL_SYS_SIGLIST 0
5304_ACEOF
5305
5306
5307fi
5308
5309
5310
5311{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5312echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5313if test "${ac_cv_header_sys_wait_h+set}" = set; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322#include <sys/types.h>
5323#include <sys/wait.h>
5324#ifndef WEXITSTATUS
5325# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5326#endif
5327#ifndef WIFEXITED
5328# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5329#endif
5330
5331int
5332main ()
5333{
5334  int s;
5335  wait (&s);
5336  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345  *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348  (eval "$ac_compile") 2>conftest.er1
5349  ac_status=$?
5350  grep -v '^ *+' conftest.er1 >conftest.err
5351  rm -f conftest.er1
5352  cat conftest.err >&5
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } && {
5355	 test -z "$ac_c_werror_flag" ||
5356	 test ! -s conftest.err
5357       } && test -s conftest.$ac_objext; then
5358  ac_cv_header_sys_wait_h=yes
5359else
5360  echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363	ac_cv_header_sys_wait_h=no
5364fi
5365
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367fi
5368{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5369echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5370if test $ac_cv_header_sys_wait_h = yes; then
5371
5372cat >>confdefs.h <<\_ACEOF
5373#define HAVE_SYS_WAIT_H 1
5374_ACEOF
5375
5376fi
5377
5378
5379
5380
5381for ac_header in unistd.h asm/byteorder.h sched.h
5382do
5383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389fi
5390ac_res=`eval echo '${'$as_ac_Header'}'`
5391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5392echo "${ECHO_T}$ac_res" >&6; }
5393else
5394  # Is the header compilable?
5395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5397cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h.  */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h.  */
5403$ac_includes_default
5404#include <$ac_header>
5405_ACEOF
5406rm -f conftest.$ac_objext
5407if { (ac_try="$ac_compile"
5408case "(($ac_try" in
5409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410  *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413  (eval "$ac_compile") 2>conftest.er1
5414  ac_status=$?
5415  grep -v '^ *+' conftest.er1 >conftest.err
5416  rm -f conftest.er1
5417  cat conftest.err >&5
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); } && {
5420	 test -z "$ac_c_werror_flag" ||
5421	 test ! -s conftest.err
5422       } && test -s conftest.$ac_objext; then
5423  ac_header_compiler=yes
5424else
5425  echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428	ac_header_compiler=no
5429fi
5430
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433echo "${ECHO_T}$ac_header_compiler" >&6; }
5434
5435# Is the header present?
5436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5438cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444#include <$ac_header>
5445_ACEOF
5446if { (ac_try="$ac_cpp conftest.$ac_ext"
5447case "(($ac_try" in
5448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449  *) ac_try_echo=$ac_try;;
5450esac
5451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5453  ac_status=$?
5454  grep -v '^ *+' conftest.er1 >conftest.err
5455  rm -f conftest.er1
5456  cat conftest.err >&5
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); } >/dev/null && {
5459	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5460	 test ! -s conftest.err
5461       }; then
5462  ac_header_preproc=yes
5463else
5464  echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467  ac_header_preproc=no
5468fi
5469
5470rm -f conftest.err conftest.$ac_ext
5471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5472echo "${ECHO_T}$ac_header_preproc" >&6; }
5473
5474# So?  What about this header?
5475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5476  yes:no: )
5477    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5481    ac_header_preproc=yes
5482    ;;
5483  no:yes:* )
5484    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5486    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5487echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5488    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5490    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5491echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5494    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5496
5497    ;;
5498esac
5499{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  eval "$as_ac_Header=\$ac_header_preproc"
5505fi
5506ac_res=`eval echo '${'$as_ac_Header'}'`
5507	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5508echo "${ECHO_T}$ac_res" >&6; }
5509
5510fi
5511if test `eval echo '${'$as_ac_Header'}'` = yes; then
5512  cat >>confdefs.h <<_ACEOF
5513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514_ACEOF
5515
5516fi
5517
5518done
5519
5520
5521{ echo "$as_me:$LINENO: checking for stricmp" >&5
5522echo $ECHO_N "checking for stricmp... $ECHO_C" >&6; }
5523if test "${ac_cv_func_stricmp+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h.  */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h.  */
5532/* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp.
5533   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5534#define stricmp innocuous_stricmp
5535
5536/* System header to define __stub macros and hopefully few prototypes,
5537    which can conflict with char stricmp (); below.
5538    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5539    <limits.h> exists even on freestanding compilers.  */
5540
5541#ifdef __STDC__
5542# include <limits.h>
5543#else
5544# include <assert.h>
5545#endif
5546
5547#undef stricmp
5548
5549/* Override any GCC internal prototype to avoid an error.
5550   Use char because int might match the return type of a GCC
5551   builtin and then its argument prototype would still apply.  */
5552#ifdef __cplusplus
5553extern "C"
5554#endif
5555char stricmp ();
5556/* The GNU C library defines this for functions which it implements
5557    to always fail with ENOSYS.  Some functions are actually named
5558    something starting with __ and the normal name is an alias.  */
5559#if defined __stub_stricmp || defined __stub___stricmp
5560choke me
5561#endif
5562
5563int
5564main ()
5565{
5566return stricmp ();
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext conftest$ac_exeext
5572if { (ac_try="$ac_link"
5573case "(($ac_try" in
5574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575  *) ac_try_echo=$ac_try;;
5576esac
5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578  (eval "$ac_link") 2>conftest.er1
5579  ac_status=$?
5580  grep -v '^ *+' conftest.er1 >conftest.err
5581  rm -f conftest.er1
5582  cat conftest.err >&5
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); } && {
5585	 test -z "$ac_c_werror_flag" ||
5586	 test ! -s conftest.err
5587       } && test -s conftest$ac_exeext &&
5588       $as_test_x conftest$ac_exeext; then
5589  ac_cv_func_stricmp=yes
5590else
5591  echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
5594	ac_cv_func_stricmp=no
5595fi
5596
5597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5598      conftest$ac_exeext conftest.$ac_ext
5599fi
5600{ echo "$as_me:$LINENO: result: $ac_cv_func_stricmp" >&5
5601echo "${ECHO_T}$ac_cv_func_stricmp" >&6; }
5602if test $ac_cv_func_stricmp = yes; then
5603  :
5604else
5605
5606cat >>confdefs.h <<\_ACEOF
5607#define stricmp strcasecmp
5608_ACEOF
5609
5610fi
5611
5612{ echo "$as_me:$LINENO: checking for strnicmp" >&5
5613echo $ECHO_N "checking for strnicmp... $ECHO_C" >&6; }
5614if test "${ac_cv_func_strnicmp+set}" = set; then
5615  echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617  cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h.  */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h.  */
5623/* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp.
5624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5625#define strnicmp innocuous_strnicmp
5626
5627/* System header to define __stub macros and hopefully few prototypes,
5628    which can conflict with char strnicmp (); below.
5629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630    <limits.h> exists even on freestanding compilers.  */
5631
5632#ifdef __STDC__
5633# include <limits.h>
5634#else
5635# include <assert.h>
5636#endif
5637
5638#undef strnicmp
5639
5640/* Override any GCC internal prototype to avoid an error.
5641   Use char because int might match the return type of a GCC
5642   builtin and then its argument prototype would still apply.  */
5643#ifdef __cplusplus
5644extern "C"
5645#endif
5646char strnicmp ();
5647/* The GNU C library defines this for functions which it implements
5648    to always fail with ENOSYS.  Some functions are actually named
5649    something starting with __ and the normal name is an alias.  */
5650#if defined __stub_strnicmp || defined __stub___strnicmp
5651choke me
5652#endif
5653
5654int
5655main ()
5656{
5657return strnicmp ();
5658  ;
5659  return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext conftest$ac_exeext
5663if { (ac_try="$ac_link"
5664case "(($ac_try" in
5665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666  *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669  (eval "$ac_link") 2>conftest.er1
5670  ac_status=$?
5671  grep -v '^ *+' conftest.er1 >conftest.err
5672  rm -f conftest.er1
5673  cat conftest.err >&5
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } && {
5676	 test -z "$ac_c_werror_flag" ||
5677	 test ! -s conftest.err
5678       } && test -s conftest$ac_exeext &&
5679       $as_test_x conftest$ac_exeext; then
5680  ac_cv_func_strnicmp=yes
5681else
5682  echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685	ac_cv_func_strnicmp=no
5686fi
5687
5688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5689      conftest$ac_exeext conftest.$ac_ext
5690fi
5691{ echo "$as_me:$LINENO: result: $ac_cv_func_strnicmp" >&5
5692echo "${ECHO_T}$ac_cv_func_strnicmp" >&6; }
5693if test $ac_cv_func_strnicmp = yes; then
5694  :
5695else
5696
5697cat >>confdefs.h <<\_ACEOF
5698#define strnicmp strncasecmp
5699_ACEOF
5700
5701fi
5702
5703{ echo "$as_me:$LINENO: checking for min" >&5
5704echo $ECHO_N "checking for min... $ECHO_C" >&6; }
5705if test "${ac_cv_func_min+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h.  */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h.  */
5714/* Define min to an innocuous variant, in case <limits.h> declares min.
5715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5716#define min innocuous_min
5717
5718/* System header to define __stub macros and hopefully few prototypes,
5719    which can conflict with char min (); below.
5720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5721    <limits.h> exists even on freestanding compilers.  */
5722
5723#ifdef __STDC__
5724# include <limits.h>
5725#else
5726# include <assert.h>
5727#endif
5728
5729#undef min
5730
5731/* Override any GCC internal prototype to avoid an error.
5732   Use char because int might match the return type of a GCC
5733   builtin and then its argument prototype would still apply.  */
5734#ifdef __cplusplus
5735extern "C"
5736#endif
5737char min ();
5738/* The GNU C library defines this for functions which it implements
5739    to always fail with ENOSYS.  Some functions are actually named
5740    something starting with __ and the normal name is an alias.  */
5741#if defined __stub_min || defined __stub___min
5742choke me
5743#endif
5744
5745int
5746main ()
5747{
5748return min ();
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext conftest$ac_exeext
5754if { (ac_try="$ac_link"
5755case "(($ac_try" in
5756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757  *) ac_try_echo=$ac_try;;
5758esac
5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760  (eval "$ac_link") 2>conftest.er1
5761  ac_status=$?
5762  grep -v '^ *+' conftest.er1 >conftest.err
5763  rm -f conftest.er1
5764  cat conftest.err >&5
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); } && {
5767	 test -z "$ac_c_werror_flag" ||
5768	 test ! -s conftest.err
5769       } && test -s conftest$ac_exeext &&
5770       $as_test_x conftest$ac_exeext; then
5771  ac_cv_func_min=yes
5772else
5773  echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
5776	ac_cv_func_min=no
5777fi
5778
5779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5780      conftest$ac_exeext conftest.$ac_ext
5781fi
5782{ echo "$as_me:$LINENO: result: $ac_cv_func_min" >&5
5783echo "${ECHO_T}$ac_cv_func_min" >&6; }
5784if test $ac_cv_func_min = yes; then
5785
5786cat >>confdefs.h <<\_ACEOF
5787#define MIN min
5788_ACEOF
5789
5790fi
5791
5792{ echo "$as_me:$LINENO: checking for max" >&5
5793echo $ECHO_N "checking for max... $ECHO_C" >&6; }
5794if test "${ac_cv_func_max+set}" = set; then
5795  echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797  cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h.  */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h.  */
5803/* Define max to an innocuous variant, in case <limits.h> declares max.
5804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5805#define max innocuous_max
5806
5807/* System header to define __stub macros and hopefully few prototypes,
5808    which can conflict with char max (); below.
5809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810    <limits.h> exists even on freestanding compilers.  */
5811
5812#ifdef __STDC__
5813# include <limits.h>
5814#else
5815# include <assert.h>
5816#endif
5817
5818#undef max
5819
5820/* Override any GCC internal prototype to avoid an error.
5821   Use char because int might match the return type of a GCC
5822   builtin and then its argument prototype would still apply.  */
5823#ifdef __cplusplus
5824extern "C"
5825#endif
5826char max ();
5827/* The GNU C library defines this for functions which it implements
5828    to always fail with ENOSYS.  Some functions are actually named
5829    something starting with __ and the normal name is an alias.  */
5830#if defined __stub_max || defined __stub___max
5831choke me
5832#endif
5833
5834int
5835main ()
5836{
5837return max ();
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext conftest$ac_exeext
5843if { (ac_try="$ac_link"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849  (eval "$ac_link") 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } && {
5856	 test -z "$ac_c_werror_flag" ||
5857	 test ! -s conftest.err
5858       } && test -s conftest$ac_exeext &&
5859       $as_test_x conftest$ac_exeext; then
5860  ac_cv_func_max=yes
5861else
5862  echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865	ac_cv_func_max=no
5866fi
5867
5868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869      conftest$ac_exeext conftest.$ac_ext
5870fi
5871{ echo "$as_me:$LINENO: result: $ac_cv_func_max" >&5
5872echo "${ECHO_T}$ac_cv_func_max" >&6; }
5873if test $ac_cv_func_max = yes; then
5874
5875cat >>confdefs.h <<\_ACEOF
5876#define MAX max
5877_ACEOF
5878
5879fi
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890for ac_func in getopt inet_aton inet_pton inet_ntop snprintf vsnprintf mmap usleep sched_setaffinity
5891do
5892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5896  echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898  cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h.  */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h.  */
5904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5905   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5906#define $ac_func innocuous_$ac_func
5907
5908/* System header to define __stub macros and hopefully few prototypes,
5909    which can conflict with char $ac_func (); below.
5910    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911    <limits.h> exists even on freestanding compilers.  */
5912
5913#ifdef __STDC__
5914# include <limits.h>
5915#else
5916# include <assert.h>
5917#endif
5918
5919#undef $ac_func
5920
5921/* Override any GCC internal prototype to avoid an error.
5922   Use char because int might match the return type of a GCC
5923   builtin and then its argument prototype would still apply.  */
5924#ifdef __cplusplus
5925extern "C"
5926#endif
5927char $ac_func ();
5928/* The GNU C library defines this for functions which it implements
5929    to always fail with ENOSYS.  Some functions are actually named
5930    something starting with __ and the normal name is an alias.  */
5931#if defined __stub_$ac_func || defined __stub___$ac_func
5932choke me
5933#endif
5934
5935int
5936main ()
5937{
5938return $ac_func ();
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext conftest$ac_exeext
5944if { (ac_try="$ac_link"
5945case "(($ac_try" in
5946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947  *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950  (eval "$ac_link") 2>conftest.er1
5951  ac_status=$?
5952  grep -v '^ *+' conftest.er1 >conftest.err
5953  rm -f conftest.er1
5954  cat conftest.err >&5
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); } && {
5957	 test -z "$ac_c_werror_flag" ||
5958	 test ! -s conftest.err
5959       } && test -s conftest$ac_exeext &&
5960       $as_test_x conftest$ac_exeext; then
5961  eval "$as_ac_var=yes"
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966	eval "$as_ac_var=no"
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970      conftest$ac_exeext conftest.$ac_ext
5971fi
5972ac_res=`eval echo '${'$as_ac_var'}'`
5973	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5974echo "${ECHO_T}$ac_res" >&6; }
5975if test `eval echo '${'$as_ac_var'}'` = yes; then
5976  cat >>confdefs.h <<_ACEOF
5977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5978_ACEOF
5979
5980fi
5981done
5982
5983
5984
5985{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
5986echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
5987if test "${ac_cv_lib_m_pow+set}" = set; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990  ac_check_lib_save_LIBS=$LIBS
5991LIBS="-lm  $LIBS"
5992cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h.  */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h.  */
5998
5999/* Override any GCC internal prototype to avoid an error.
6000   Use char because int might match the return type of a GCC
6001   builtin and then its argument prototype would still apply.  */
6002#ifdef __cplusplus
6003extern "C"
6004#endif
6005char pow ();
6006int
6007main ()
6008{
6009return pow ();
6010  ;
6011  return 0;
6012}
6013_ACEOF
6014rm -f conftest.$ac_objext conftest$ac_exeext
6015if { (ac_try="$ac_link"
6016case "(($ac_try" in
6017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018  *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021  (eval "$ac_link") 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } && {
6028	 test -z "$ac_c_werror_flag" ||
6029	 test ! -s conftest.err
6030       } && test -s conftest$ac_exeext &&
6031       $as_test_x conftest$ac_exeext; then
6032  ac_cv_lib_m_pow=yes
6033else
6034  echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037	ac_cv_lib_m_pow=no
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6041      conftest$ac_exeext conftest.$ac_ext
6042LIBS=$ac_check_lib_save_LIBS
6043fi
6044{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6045echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
6046if test $ac_cv_lib_m_pow = yes; then
6047  cat >>confdefs.h <<_ACEOF
6048#define HAVE_LIBM 1
6049_ACEOF
6050
6051  LIBS="-lm $LIBS"
6052
6053fi
6054
6055case "$target" in
6056    *-*-cygwin* | *-*-mingw32*)
6057        SYS_GL_LIBS="-lopengl32"
6058        ;;
6059    *-*-beos*)
6060        SYS_GL_LIBS="-lGL -lGLU"
6061        ;;
6062    *-*-aix*)
6063        if test x$ac_cv_c_compiler_gnu = xyes; then
6064            CFLAGS="$CFLAGS -mthreads"
6065        fi
6066        ;;
6067    *)
6068	SYS_GL_LIBS="-lGL -lGLU"
6069	;;
6070esac
6071
6072# Check whether --enable-gl was given.
6073if test "${enable_gl+set}" = set; then
6074  enableval=$enable_gl;
6075else
6076  enable_gl="yes"
6077fi
6078
6079if test "$enable_gl" = "yes"
6080then
6081    { echo "$as_me:$LINENO: checking for OpenGL support" >&5
6082echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
6083    have_opengl=no
6084    cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h.  */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h.  */
6090
6091     #include <GL/gl.h>
6092
6093int
6094main ()
6095{
6096
6097
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext
6103if { (ac_try="$ac_compile"
6104case "(($ac_try" in
6105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106  *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109  (eval "$ac_compile") 2>conftest.er1
6110  ac_status=$?
6111  grep -v '^ *+' conftest.er1 >conftest.err
6112  rm -f conftest.er1
6113  cat conftest.err >&5
6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115  (exit $ac_status); } && {
6116	 test -z "$ac_c_werror_flag" ||
6117	 test ! -s conftest.err
6118       } && test -s conftest.$ac_objext; then
6119
6120    have_opengl=yes
6121
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130    { echo "$as_me:$LINENO: result: $have_opengl" >&5
6131echo "${ECHO_T}$have_opengl" >&6; }
6132    if test x$have_opengl = xyes; then
6133
6134cat >>confdefs.h <<\_ACEOF
6135#define GL_DOOM 1
6136_ACEOF
6137
6138
6139cat >>confdefs.h <<\_ACEOF
6140#define USE_GLU_IMAGESCALE 1
6141_ACEOF
6142
6143
6144cat >>confdefs.h <<\_ACEOF
6145#define USE_GLU_MIPMAP 1
6146_ACEOF
6147
6148        GL_LIBS="$SYS_GL_LIBS"
6149    else
6150        { { echo "$as_me:$LINENO: error: You must have the relevant OpenGL development libraries & headers installed to compile with OpenGL support" >&5
6151echo "$as_me: error: You must have the relevant OpenGL development libraries & headers installed to compile with OpenGL support" >&2;}
6152   { (exit 1); exit 1; }; }
6153    fi
6154fi
6155 if test "$enable_gl" = "yes"; then
6156  BUILD_GL_TRUE=
6157  BUILD_GL_FALSE='#'
6158else
6159  BUILD_GL_TRUE='#'
6160  BUILD_GL_FALSE=
6161fi
6162
6163
6164
6165# Check whether --with-sdl-prefix was given.
6166if test "${with_sdl_prefix+set}" = set; then
6167  withval=$with_sdl_prefix; sdl_prefix="$withval"
6168else
6169  sdl_prefix=""
6170fi
6171
6172
6173# Check whether --with-sdl-exec-prefix was given.
6174if test "${with_sdl_exec_prefix+set}" = set; then
6175  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
6176else
6177  sdl_exec_prefix=""
6178fi
6179
6180# Check whether --enable-sdltest was given.
6181if test "${enable_sdltest+set}" = set; then
6182  enableval=$enable_sdltest;
6183else
6184  enable_sdltest=yes
6185fi
6186
6187
6188  if test x$sdl_exec_prefix != x ; then
6189    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
6190    if test x${SDL_CONFIG+set} != xset ; then
6191      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
6192    fi
6193  fi
6194  if test x$sdl_prefix != x ; then
6195    sdl_args="$sdl_args --prefix=$sdl_prefix"
6196    if test x${SDL_CONFIG+set} != xset ; then
6197      SDL_CONFIG=$sdl_prefix/bin/sdl-config
6198    fi
6199  fi
6200
6201  if test "x$prefix" != xNONE; then
6202    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
6203  fi
6204  # Extract the first word of "sdl-config", so it can be a program name with args.
6205set dummy sdl-config; ac_word=$2
6206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  case $SDL_CONFIG in
6212  [\\/]* | ?:[\\/]*)
6213  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6214  ;;
6215  *)
6216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219  IFS=$as_save_IFS
6220  test -z "$as_dir" && as_dir=.
6221  for ac_exec_ext in '' $ac_executable_extensions; do
6222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225    break 2
6226  fi
6227done
6228done
6229IFS=$as_save_IFS
6230
6231  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6232  ;;
6233esac
6234fi
6235SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6236if test -n "$SDL_CONFIG"; then
6237  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
6238echo "${ECHO_T}$SDL_CONFIG" >&6; }
6239else
6240  { echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6; }
6242fi
6243
6244
6245  min_sdl_version=1.1.3
6246  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
6247echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
6248  no_sdl=""
6249  if test "$SDL_CONFIG" = "no" ; then
6250    no_sdl=yes
6251  else
6252    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
6253    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
6254
6255    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
6256           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6257    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
6258           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6259    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
6260           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6261    if test "x$enable_sdltest" = "xyes" ; then
6262      ac_save_CFLAGS="$CFLAGS"
6263      ac_save_CXXFLAGS="$CXXFLAGS"
6264      ac_save_LIBS="$LIBS"
6265      CFLAGS="$CFLAGS $SDL_CFLAGS"
6266      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6267      LIBS="$LIBS $SDL_LIBS"
6268      rm -f conf.sdltest
6269      if test "$cross_compiling" = yes; then
6270  echo $ac_n "cross compiling; assumed OK... $ac_c"
6271else
6272  cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h.  */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h.  */
6278
6279#include <stdio.h>
6280#include <stdlib.h>
6281#include <string.h>
6282#include "SDL.h"
6283
6284char*
6285my_strdup (char *str)
6286{
6287  char *new_str;
6288
6289  if (str)
6290    {
6291      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
6292      strcpy (new_str, str);
6293    }
6294  else
6295    new_str = NULL;
6296
6297  return new_str;
6298}
6299
6300int main (int argc, char *argv[])
6301{
6302  int major, minor, micro;
6303  char *tmp_version;
6304
6305  /* This hangs on some systems (?)
6306  system ("touch conf.sdltest");
6307  */
6308  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
6309
6310  /* HP/UX 9 (%@#!) writes to sscanf strings */
6311  tmp_version = my_strdup("$min_sdl_version");
6312  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6313     printf("%s, bad version string\n", "$min_sdl_version");
6314     exit(1);
6315   }
6316
6317   if (($sdl_major_version > major) ||
6318      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
6319      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
6320    {
6321      return 0;
6322    }
6323  else
6324    {
6325      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
6326      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
6327      printf("*** best to upgrade to the required version.\n");
6328      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
6329      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
6330      printf("*** config.cache before re-running configure\n");
6331      return 1;
6332    }
6333}
6334
6335
6336_ACEOF
6337rm -f conftest$ac_exeext
6338if { (ac_try="$ac_link"
6339case "(($ac_try" in
6340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341  *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344  (eval "$ac_link") 2>&5
6345  ac_status=$?
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6348  { (case "(($ac_try" in
6349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350  *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353  (eval "$ac_try") 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; }; then
6357  :
6358else
6359  echo "$as_me: program exited with status $ac_status" >&5
6360echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363( exit $ac_status )
6364no_sdl=yes
6365fi
6366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367fi
6368
6369
6370       CFLAGS="$ac_save_CFLAGS"
6371       CXXFLAGS="$ac_save_CXXFLAGS"
6372       LIBS="$ac_save_LIBS"
6373     fi
6374  fi
6375  if test "x$no_sdl" = x ; then
6376     { echo "$as_me:$LINENO: result: yes" >&5
6377echo "${ECHO_T}yes" >&6; }
6378     sdl_main="yes"
6379  else
6380     { echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6; }
6382     if test "$SDL_CONFIG" = "no" ; then
6383       echo "*** The sdl-config script installed by SDL could not be found"
6384       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
6385       echo "*** your path, or set the SDL_CONFIG environment variable to the"
6386       echo "*** full path to sdl-config."
6387     else
6388       if test -f conf.sdltest ; then
6389        :
6390       else
6391          echo "*** Could not run SDL test program, checking why..."
6392          CFLAGS="$CFLAGS $SDL_CFLAGS"
6393          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6394          LIBS="$LIBS $SDL_LIBS"
6395          cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h.  */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h.  */
6401
6402#include <stdio.h>
6403#include "SDL.h"
6404
6405int main(int argc, char *argv[])
6406{ return 0; }
6407#undef  main
6408#define main K_and_R_C_main
6409
6410int
6411main ()
6412{
6413 return 0;
6414  ;
6415  return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
6419if { (ac_try="$ac_link"
6420case "(($ac_try" in
6421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422  *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425  (eval "$ac_link") 2>conftest.er1
6426  ac_status=$?
6427  grep -v '^ *+' conftest.er1 >conftest.err
6428  rm -f conftest.er1
6429  cat conftest.err >&5
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); } && {
6432	 test -z "$ac_c_werror_flag" ||
6433	 test ! -s conftest.err
6434       } && test -s conftest$ac_exeext &&
6435       $as_test_x conftest$ac_exeext; then
6436   echo "*** The test program compiled, but did not run. This usually means"
6437          echo "*** that the run-time linker is not finding SDL or finding the wrong"
6438          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
6439          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6440          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
6441          echo "*** is required on your system"
6442	  echo "***"
6443          echo "*** If you have an old version installed, it is best to remove it, although"
6444          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6445else
6446  echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449	 echo "*** The test program failed to compile or link. See the file config.log for the"
6450          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
6451          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
6452          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
6453fi
6454
6455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6456      conftest$ac_exeext conftest.$ac_ext
6457          CFLAGS="$ac_save_CFLAGS"
6458          CXXFLAGS="$ac_save_CXXFLAGS"
6459          LIBS="$ac_save_LIBS"
6460       fi
6461     fi
6462     SDL_CFLAGS=""
6463     SDL_LIBS=""
6464     :
6465  fi
6466
6467
6468  rm -f conf.sdltest
6469
6470if test "$sdl_main" != "yes"
6471then
6472 { { echo "$as_me:$LINENO: error: *** You must have the SDL libraries installed before you can compile prboom
6473 *** See http://prboom.sourceforge.net/linux.html
6474 " >&5
6475echo "$as_me: error: *** You must have the SDL libraries installed before you can compile prboom
6476 *** See http://prboom.sourceforge.net/linux.html
6477 " >&2;}
6478   { (exit 1); exit 1; }; }
6479fi
6480
6481savelibs="$LIBS"
6482LIBS="$LIBS $SDL_LIBS"
6483
6484for ac_func in SDL_JoystickGetAxis
6485do
6486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492  cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h.  */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h.  */
6498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6499   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6500#define $ac_func innocuous_$ac_func
6501
6502/* System header to define __stub macros and hopefully few prototypes,
6503    which can conflict with char $ac_func (); below.
6504    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6505    <limits.h> exists even on freestanding compilers.  */
6506
6507#ifdef __STDC__
6508# include <limits.h>
6509#else
6510# include <assert.h>
6511#endif
6512
6513#undef $ac_func
6514
6515/* Override any GCC internal prototype to avoid an error.
6516   Use char because int might match the return type of a GCC
6517   builtin and then its argument prototype would still apply.  */
6518#ifdef __cplusplus
6519extern "C"
6520#endif
6521char $ac_func ();
6522/* The GNU C library defines this for functions which it implements
6523    to always fail with ENOSYS.  Some functions are actually named
6524    something starting with __ and the normal name is an alias.  */
6525#if defined __stub_$ac_func || defined __stub___$ac_func
6526choke me
6527#endif
6528
6529int
6530main ()
6531{
6532return $ac_func ();
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext conftest$ac_exeext
6538if { (ac_try="$ac_link"
6539case "(($ac_try" in
6540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541  *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544  (eval "$ac_link") 2>conftest.er1
6545  ac_status=$?
6546  grep -v '^ *+' conftest.er1 >conftest.err
6547  rm -f conftest.er1
6548  cat conftest.err >&5
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } && {
6551	 test -z "$ac_c_werror_flag" ||
6552	 test ! -s conftest.err
6553       } && test -s conftest$ac_exeext &&
6554       $as_test_x conftest$ac_exeext; then
6555  eval "$as_ac_var=yes"
6556else
6557  echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560	eval "$as_ac_var=no"
6561fi
6562
6563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6564      conftest$ac_exeext conftest.$ac_ext
6565fi
6566ac_res=`eval echo '${'$as_ac_var'}'`
6567	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6568echo "${ECHO_T}$ac_res" >&6; }
6569if test `eval echo '${'$as_ac_var'}'` = yes; then
6570  cat >>confdefs.h <<_ACEOF
6571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6572_ACEOF
6573
6574fi
6575done
6576
6577LIBS="$savelibs"
6578
6579# Check whether --with-mixer was given.
6580if test "${with_mixer+set}" = set; then
6581  withval=$with_mixer;
6582else
6583
6584{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
6585echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
6586if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
6587  echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589  ac_check_lib_save_LIBS=$LIBS
6590LIBS="-lSDL_mixer $SDL_LIBS $MIXER_LIBS $LIBS"
6591cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h.  */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h.  */
6597
6598/* Override any GCC internal prototype to avoid an error.
6599   Use char because int might match the return type of a GCC
6600   builtin and then its argument prototype would still apply.  */
6601#ifdef __cplusplus
6602extern "C"
6603#endif
6604char Mix_OpenAudio ();
6605int
6606main ()
6607{
6608return Mix_OpenAudio ();
6609  ;
6610  return 0;
6611}
6612_ACEOF
6613rm -f conftest.$ac_objext conftest$ac_exeext
6614if { (ac_try="$ac_link"
6615case "(($ac_try" in
6616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617  *) ac_try_echo=$ac_try;;
6618esac
6619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620  (eval "$ac_link") 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } && {
6627	 test -z "$ac_c_werror_flag" ||
6628	 test ! -s conftest.err
6629       } && test -s conftest$ac_exeext &&
6630       $as_test_x conftest$ac_exeext; then
6631  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
6632else
6633  echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636	ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
6637fi
6638
6639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6640      conftest$ac_exeext conftest.$ac_ext
6641LIBS=$ac_check_lib_save_LIBS
6642fi
6643{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
6644echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
6645if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
6646  cat >>confdefs.h <<_ACEOF
6647#define HAVE_LIBSDL_MIXER 1
6648_ACEOF
6649
6650  LIBS="-lSDL_mixer $LIBS"
6651
6652fi
6653
6654fi
6655
6656
6657
6658# Check whether --with-net was given.
6659if test "${with_net+set}" = set; then
6660  withval=$with_net;
6661        NET_LIBS=
6662
6663else
6664
6665        { echo "$as_me:$LINENO: checking for SDLNet_UDP_Bind in -lSDL_net" >&5
6666echo $ECHO_N "checking for SDLNet_UDP_Bind in -lSDL_net... $ECHO_C" >&6; }
6667if test "${ac_cv_lib_SDL_net_SDLNet_UDP_Bind+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  ac_check_lib_save_LIBS=$LIBS
6671LIBS="-lSDL_net $SDL_LIBS $LIBS"
6672cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h.  */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h.  */
6678
6679/* Override any GCC internal prototype to avoid an error.
6680   Use char because int might match the return type of a GCC
6681   builtin and then its argument prototype would still apply.  */
6682#ifdef __cplusplus
6683extern "C"
6684#endif
6685char SDLNet_UDP_Bind ();
6686int
6687main ()
6688{
6689return SDLNet_UDP_Bind ();
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694rm -f conftest.$ac_objext conftest$ac_exeext
6695if { (ac_try="$ac_link"
6696case "(($ac_try" in
6697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698  *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701  (eval "$ac_link") 2>conftest.er1
6702  ac_status=$?
6703  grep -v '^ *+' conftest.er1 >conftest.err
6704  rm -f conftest.er1
6705  cat conftest.err >&5
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); } && {
6708	 test -z "$ac_c_werror_flag" ||
6709	 test ! -s conftest.err
6710       } && test -s conftest$ac_exeext &&
6711       $as_test_x conftest$ac_exeext; then
6712  ac_cv_lib_SDL_net_SDLNet_UDP_Bind=yes
6713else
6714  echo "$as_me: failed program was:" >&5
6715sed 's/^/| /' conftest.$ac_ext >&5
6716
6717	ac_cv_lib_SDL_net_SDLNet_UDP_Bind=no
6718fi
6719
6720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6721      conftest$ac_exeext conftest.$ac_ext
6722LIBS=$ac_check_lib_save_LIBS
6723fi
6724{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_SDLNet_UDP_Bind" >&5
6725echo "${ECHO_T}$ac_cv_lib_SDL_net_SDLNet_UDP_Bind" >&6; }
6726if test $ac_cv_lib_SDL_net_SDLNet_UDP_Bind = yes; then
6727
6728
6729cat >>confdefs.h <<\_ACEOF
6730#define HAVE_NET 1
6731_ACEOF
6732
6733
6734cat >>confdefs.h <<\_ACEOF
6735#define HAVE_LIBSDL_NET 1
6736_ACEOF
6737
6738
6739cat >>confdefs.h <<\_ACEOF
6740#define USE_SDL_NET 1
6741_ACEOF
6742
6743      NET_LIBS=-lSDL_net
6744      sdl_net=yes
6745      save_CFLAGS="$CFLAGS"
6746      CFLAGS="$CFLAGS $SDL_CFLAGS"
6747      cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753
6754          #include "SDL_net.h"
6755
6756int
6757main ()
6758{
6759
6760          UDPpacket *p;
6761          int n = sizeof(p->src);
6762
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767rm -f conftest.$ac_objext
6768if { (ac_try="$ac_compile"
6769case "(($ac_try" in
6770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771  *) ac_try_echo=$ac_try;;
6772esac
6773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774  (eval "$ac_compile") 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } && {
6781	 test -z "$ac_c_werror_flag" ||
6782	 test ! -s conftest.err
6783       } && test -s conftest.$ac_objext; then
6784
6785cat >>confdefs.h <<\_ACEOF
6786#define SDL_NET_UDP_PACKET_SRC 1
6787_ACEOF
6788
6789else
6790  echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793
6794fi
6795
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797      CFLAGS="$save_CFLAGS"
6798
6799else
6800
6801            { echo "$as_me:$LINENO: WARNING: *** SDL networking library not found. The game will not be compiled with network game support." >&5
6802echo "$as_me: WARNING: *** SDL networking library not found. The game will not be compiled with network game support." >&2;}
6803
6804fi
6805
6806
6807fi
6808
6809
6810
6811{ echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
6812echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6; }
6813if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
6814  echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816  ac_check_lib_save_LIBS=$LIBS
6817LIBS="-lpng  $LIBS"
6818cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h.  */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h.  */
6824
6825/* Override any GCC internal prototype to avoid an error.
6826   Use char because int might match the return type of a GCC
6827   builtin and then its argument prototype would still apply.  */
6828#ifdef __cplusplus
6829extern "C"
6830#endif
6831char png_create_info_struct ();
6832int
6833main ()
6834{
6835return png_create_info_struct ();
6836  ;
6837  return 0;
6838}
6839_ACEOF
6840rm -f conftest.$ac_objext conftest$ac_exeext
6841if { (ac_try="$ac_link"
6842case "(($ac_try" in
6843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844  *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847  (eval "$ac_link") 2>conftest.er1
6848  ac_status=$?
6849  grep -v '^ *+' conftest.er1 >conftest.err
6850  rm -f conftest.er1
6851  cat conftest.err >&5
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); } && {
6854	 test -z "$ac_c_werror_flag" ||
6855	 test ! -s conftest.err
6856       } && test -s conftest$ac_exeext &&
6857       $as_test_x conftest$ac_exeext; then
6858  ac_cv_lib_png_png_create_info_struct=yes
6859else
6860  echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863	ac_cv_lib_png_png_create_info_struct=no
6864fi
6865
6866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6867      conftest$ac_exeext conftest.$ac_ext
6868LIBS=$ac_check_lib_save_LIBS
6869fi
6870{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
6871echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6; }
6872if test $ac_cv_lib_png_png_create_info_struct = yes; then
6873  cat >>confdefs.h <<_ACEOF
6874#define HAVE_LIBPNG 1
6875_ACEOF
6876
6877  LIBS="-lpng $LIBS"
6878
6879fi
6880
6881cat >conftest.$ac_ext <<_ACEOF
6882/* confdefs.h.  */
6883_ACEOF
6884cat confdefs.h >>conftest.$ac_ext
6885cat >>conftest.$ac_ext <<_ACEOF
6886/* end confdefs.h.  */
6887#include <netinet/in.h>
6888
6889_ACEOF
6890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891  $EGREP "sockaddr_in6" >/dev/null 2>&1; then
6892
6893cat >>confdefs.h <<\_ACEOF
6894#define HAVE_IPv6 1
6895_ACEOF
6896
6897fi
6898rm -f conftest*
6899
6900
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define HIGHRES 1
6904_ACEOF
6905
6906
6907cat >>confdefs.h <<\_ACEOF
6908#define SIMPLECHECKS 1
6909_ACEOF
6910
6911
6912cat >>confdefs.h <<\_ACEOF
6913#define ZONEIDCHECK 1
6914_ACEOF
6915
6916
6917# Check whether --enable-dogs was given.
6918if test "${enable_dogs+set}" = set; then
6919  enableval=$enable_dogs;
6920else
6921  enable_dogs="yes"
6922fi
6923
6924if test x"$enable_dogs" = xyes
6925then
6926
6927cat >>confdefs.h <<\_ACEOF
6928#define DOGS 1
6929_ACEOF
6930
6931fi
6932
6933# Check whether --enable-heapcheck was given.
6934if test "${enable_heapcheck+set}" = set; then
6935  enableval=$enable_heapcheck;
6936else
6937  enable_heapcheck="no"
6938fi
6939
6940# Check whether --enable-heapdump was given.
6941if test "${enable_heapdump+set}" = set; then
6942  enableval=$enable_heapdump;
6943else
6944  enable_heapdump="no"
6945fi
6946
6947if test "$enable_heapcheck" = "yes"
6948then
6949
6950cat >>confdefs.h <<\_ACEOF
6951#define CHECKHEAP 1
6952_ACEOF
6953
6954fi
6955if test "$enable_heapdump" = "yes"
6956then
6957
6958cat >>confdefs.h <<\_ACEOF
6959#define HEAPDUMP 1
6960_ACEOF
6961
6962fi
6963
6964 if test "$ac_cv_func_mmap" = yes; then
6965  WAD_MMAP_TRUE=
6966  WAD_MMAP_FALSE='#'
6967else
6968  WAD_MMAP_TRUE='#'
6969  WAD_MMAP_FALSE=
6970fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981ac_config_files="$ac_config_files Makefile src/Makefile src/POSIX/Makefile src/SDL/Makefile src/MAC/Makefile doc/Makefile data/Makefile ICONS/Makefile VisualC6/Makefile VisualC8/Makefile prboom.spec"
6982
6983cat >confcache <<\_ACEOF
6984# This file is a shell script that caches the results of configure
6985# tests run on this system so they can be shared between configure
6986# scripts and configure runs, see configure's option --config-cache.
6987# It is not useful on other systems.  If it contains results you don't
6988# want to keep, you may remove or edit it.
6989#
6990# config.status only pays attention to the cache file if you give it
6991# the --recheck option to rerun configure.
6992#
6993# `ac_cv_env_foo' variables (set or unset) will be overridden when
6994# loading this file, other *unset* `ac_cv_foo' will be assigned the
6995# following values.
6996
6997_ACEOF
6998
6999# The following way of writing the cache mishandles newlines in values,
7000# but we know of no workaround that is simple, portable, and efficient.
7001# So, we kill variables containing newlines.
7002# Ultrix sh set writes to stderr and can't be redirected directly,
7003# and sets the high bit in the cache file unless we assign to the vars.
7004(
7005  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7006    eval ac_val=\$$ac_var
7007    case $ac_val in #(
7008    *${as_nl}*)
7009      case $ac_var in #(
7010      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7011echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7012      esac
7013      case $ac_var in #(
7014      _ | IFS | as_nl) ;; #(
7015      *) $as_unset $ac_var ;;
7016      esac ;;
7017    esac
7018  done
7019
7020  (set) 2>&1 |
7021    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7022    *${as_nl}ac_space=\ *)
7023      # `set' does not quote correctly, so add quotes (double-quote
7024      # substitution turns \\\\ into \\, and sed turns \\ into \).
7025      sed -n \
7026	"s/'/'\\\\''/g;
7027	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7028      ;; #(
7029    *)
7030      # `set' quotes correctly as required by POSIX, so do not add quotes.
7031      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7032      ;;
7033    esac |
7034    sort
7035) |
7036  sed '
7037     /^ac_cv_env_/b end
7038     t clear
7039     :clear
7040     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7041     t end
7042     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7043     :end' >>confcache
7044if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7045  if test -w "$cache_file"; then
7046    test "x$cache_file" != "x/dev/null" &&
7047      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7048echo "$as_me: updating cache $cache_file" >&6;}
7049    cat confcache >$cache_file
7050  else
7051    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7052echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7053  fi
7054fi
7055rm -f confcache
7056
7057test "x$prefix" = xNONE && prefix=$ac_default_prefix
7058# Let make expand exec_prefix.
7059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7060
7061DEFS=-DHAVE_CONFIG_H
7062
7063ac_libobjs=
7064ac_ltlibobjs=
7065for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7066  # 1. Remove the extension, and $U if already installed.
7067  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7068  ac_i=`echo "$ac_i" | sed "$ac_script"`
7069  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7070  #    will be set to the directory where LIBOBJS objects are built.
7071  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7072  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7073done
7074LIBOBJS=$ac_libobjs
7075
7076LTLIBOBJS=$ac_ltlibobjs
7077
7078
7079if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7080  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7081Usually this means the macro was only invoked conditionally." >&5
7082echo "$as_me: error: conditional \"AMDEP\" was never defined.
7083Usually this means the macro was only invoked conditionally." >&2;}
7084   { (exit 1); exit 1; }; }
7085fi
7086if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7087  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7088Usually this means the macro was only invoked conditionally." >&5
7089echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7090Usually this means the macro was only invoked conditionally." >&2;}
7091   { (exit 1); exit 1; }; }
7092fi
7093if test -z "${BUILD_GL_TRUE}" && test -z "${BUILD_GL_FALSE}"; then
7094  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GL\" was never defined.
7095Usually this means the macro was only invoked conditionally." >&5
7096echo "$as_me: error: conditional \"BUILD_GL\" was never defined.
7097Usually this means the macro was only invoked conditionally." >&2;}
7098   { (exit 1); exit 1; }; }
7099fi
7100if test -z "${WAD_MMAP_TRUE}" && test -z "${WAD_MMAP_FALSE}"; then
7101  { { echo "$as_me:$LINENO: error: conditional \"WAD_MMAP\" was never defined.
7102Usually this means the macro was only invoked conditionally." >&5
7103echo "$as_me: error: conditional \"WAD_MMAP\" was never defined.
7104Usually this means the macro was only invoked conditionally." >&2;}
7105   { (exit 1); exit 1; }; }
7106fi
7107
7108: ${CONFIG_STATUS=./config.status}
7109ac_clean_files_save=$ac_clean_files
7110ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7111{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7112echo "$as_me: creating $CONFIG_STATUS" >&6;}
7113cat >$CONFIG_STATUS <<_ACEOF
7114#! $SHELL
7115# Generated by $as_me.
7116# Run this file to recreate the current configuration.
7117# Compiler output produced by configure, useful for debugging
7118# configure, is in config.log if it exists.
7119
7120debug=false
7121ac_cs_recheck=false
7122ac_cs_silent=false
7123SHELL=\${CONFIG_SHELL-$SHELL}
7124_ACEOF
7125
7126cat >>$CONFIG_STATUS <<\_ACEOF
7127## --------------------- ##
7128## M4sh Initialization.  ##
7129## --------------------- ##
7130
7131# Be more Bourne compatible
7132DUALCASE=1; export DUALCASE # for MKS sh
7133if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7134  emulate sh
7135  NULLCMD=:
7136  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7137  # is contrary to our usage.  Disable this feature.
7138  alias -g '${1+"$@"}'='"$@"'
7139  setopt NO_GLOB_SUBST
7140else
7141  case `(set -o) 2>/dev/null` in
7142  *posix*) set -o posix ;;
7143esac
7144
7145fi
7146
7147
7148
7149
7150# PATH needs CR
7151# Avoid depending upon Character Ranges.
7152as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7154as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7155as_cr_digits='0123456789'
7156as_cr_alnum=$as_cr_Letters$as_cr_digits
7157
7158# The user is always right.
7159if test "${PATH_SEPARATOR+set}" != set; then
7160  echo "#! /bin/sh" >conf$$.sh
7161  echo  "exit 0"   >>conf$$.sh
7162  chmod +x conf$$.sh
7163  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7164    PATH_SEPARATOR=';'
7165  else
7166    PATH_SEPARATOR=:
7167  fi
7168  rm -f conf$$.sh
7169fi
7170
7171# Support unset when possible.
7172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7173  as_unset=unset
7174else
7175  as_unset=false
7176fi
7177
7178
7179# IFS
7180# We need space, tab and new line, in precisely that order.  Quoting is
7181# there to prevent editors from complaining about space-tab.
7182# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7183# splitting by setting IFS to empty value.)
7184as_nl='
7185'
7186IFS=" ""	$as_nl"
7187
7188# Find who we are.  Look in the path if we contain no directory separator.
7189case $0 in
7190  *[\\/]* ) as_myself=$0 ;;
7191  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7197done
7198IFS=$as_save_IFS
7199
7200     ;;
7201esac
7202# We did not find ourselves, most probably we were run as `sh COMMAND'
7203# in which case we are not to be found in the path.
7204if test "x$as_myself" = x; then
7205  as_myself=$0
7206fi
7207if test ! -f "$as_myself"; then
7208  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7209  { (exit 1); exit 1; }
7210fi
7211
7212# Work around bugs in pre-3.0 UWIN ksh.
7213for as_var in ENV MAIL MAILPATH
7214do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7215done
7216PS1='$ '
7217PS2='> '
7218PS4='+ '
7219
7220# NLS nuisances.
7221for as_var in \
7222  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7223  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7224  LC_TELEPHONE LC_TIME
7225do
7226  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7227    eval $as_var=C; export $as_var
7228  else
7229    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7230  fi
7231done
7232
7233# Required to use basename.
7234if expr a : '\(a\)' >/dev/null 2>&1 &&
7235   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7236  as_expr=expr
7237else
7238  as_expr=false
7239fi
7240
7241if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7242  as_basename=basename
7243else
7244  as_basename=false
7245fi
7246
7247
7248# Name of the executable.
7249as_me=`$as_basename -- "$0" ||
7250$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7251	 X"$0" : 'X\(//\)$' \| \
7252	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7253echo X/"$0" |
7254    sed '/^.*\/\([^/][^/]*\)\/*$/{
7255	    s//\1/
7256	    q
7257	  }
7258	  /^X\/\(\/\/\)$/{
7259	    s//\1/
7260	    q
7261	  }
7262	  /^X\/\(\/\).*/{
7263	    s//\1/
7264	    q
7265	  }
7266	  s/.*/./; q'`
7267
7268# CDPATH.
7269$as_unset CDPATH
7270
7271
7272
7273  as_lineno_1=$LINENO
7274  as_lineno_2=$LINENO
7275  test "x$as_lineno_1" != "x$as_lineno_2" &&
7276  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7277
7278  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7279  # uniformly replaced by the line number.  The first 'sed' inserts a
7280  # line-number line after each line using $LINENO; the second 'sed'
7281  # does the real work.  The second script uses 'N' to pair each
7282  # line-number line with the line containing $LINENO, and appends
7283  # trailing '-' during substitution so that $LINENO is not a special
7284  # case at line end.
7285  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7286  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7287  # E. McMahon (1931-1989) for sed's syntax.  :-)
7288  sed -n '
7289    p
7290    /[$]LINENO/=
7291  ' <$as_myself |
7292    sed '
7293      s/[$]LINENO.*/&-/
7294      t lineno
7295      b
7296      :lineno
7297      N
7298      :loop
7299      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7300      t loop
7301      s/-\n.*//
7302    ' >$as_me.lineno &&
7303  chmod +x "$as_me.lineno" ||
7304    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7305   { (exit 1); exit 1; }; }
7306
7307  # Don't try to exec as it changes $[0], causing all sort of problems
7308  # (the dirname of $[0] is not the place where we might find the
7309  # original and so on.  Autoconf is especially sensitive to this).
7310  . "./$as_me.lineno"
7311  # Exit status is that of the last command.
7312  exit
7313}
7314
7315
7316if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7317  as_dirname=dirname
7318else
7319  as_dirname=false
7320fi
7321
7322ECHO_C= ECHO_N= ECHO_T=
7323case `echo -n x` in
7324-n*)
7325  case `echo 'x\c'` in
7326  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7327  *)   ECHO_C='\c';;
7328  esac;;
7329*)
7330  ECHO_N='-n';;
7331esac
7332
7333if expr a : '\(a\)' >/dev/null 2>&1 &&
7334   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7335  as_expr=expr
7336else
7337  as_expr=false
7338fi
7339
7340rm -f conf$$ conf$$.exe conf$$.file
7341if test -d conf$$.dir; then
7342  rm -f conf$$.dir/conf$$.file
7343else
7344  rm -f conf$$.dir
7345  mkdir conf$$.dir
7346fi
7347echo >conf$$.file
7348if ln -s conf$$.file conf$$ 2>/dev/null; then
7349  as_ln_s='ln -s'
7350  # ... but there are two gotchas:
7351  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7352  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7353  # In both cases, we have to default to `cp -p'.
7354  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7355    as_ln_s='cp -p'
7356elif ln conf$$.file conf$$ 2>/dev/null; then
7357  as_ln_s=ln
7358else
7359  as_ln_s='cp -p'
7360fi
7361rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7362rmdir conf$$.dir 2>/dev/null
7363
7364if mkdir -p . 2>/dev/null; then
7365  as_mkdir_p=:
7366else
7367  test -d ./-p && rmdir ./-p
7368  as_mkdir_p=false
7369fi
7370
7371if test -x / >/dev/null 2>&1; then
7372  as_test_x='test -x'
7373else
7374  if ls -dL / >/dev/null 2>&1; then
7375    as_ls_L_option=L
7376  else
7377    as_ls_L_option=
7378  fi
7379  as_test_x='
7380    eval sh -c '\''
7381      if test -d "$1"; then
7382        test -d "$1/.";
7383      else
7384	case $1 in
7385        -*)set "./$1";;
7386	esac;
7387	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7388	???[sx]*):;;*)false;;esac;fi
7389    '\'' sh
7390  '
7391fi
7392as_executable_p=$as_test_x
7393
7394# Sed expression to map a string onto a valid CPP name.
7395as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7396
7397# Sed expression to map a string onto a valid variable name.
7398as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7399
7400
7401exec 6>&1
7402
7403# Save the log message, to keep $[0] and so on meaningful, and to
7404# report actual input values of CONFIG_FILES etc. instead of their
7405# values after options handling.
7406ac_log="
7407This file was extended by prboom $as_me 2.5.0, which was
7408generated by GNU Autoconf 2.61.  Invocation command line was
7409
7410  CONFIG_FILES    = $CONFIG_FILES
7411  CONFIG_HEADERS  = $CONFIG_HEADERS
7412  CONFIG_LINKS    = $CONFIG_LINKS
7413  CONFIG_COMMANDS = $CONFIG_COMMANDS
7414  $ $0 $@
7415
7416on `(hostname || uname -n) 2>/dev/null | sed 1q`
7417"
7418
7419_ACEOF
7420
7421cat >>$CONFIG_STATUS <<_ACEOF
7422# Files that config.status was made for.
7423config_files="$ac_config_files"
7424config_headers="$ac_config_headers"
7425config_commands="$ac_config_commands"
7426
7427_ACEOF
7428
7429cat >>$CONFIG_STATUS <<\_ACEOF
7430ac_cs_usage="\
7431\`$as_me' instantiates files from templates according to the
7432current configuration.
7433
7434Usage: $0 [OPTIONS] [FILE]...
7435
7436  -h, --help       print this help, then exit
7437  -V, --version    print version number and configuration settings, then exit
7438  -q, --quiet      do not print progress messages
7439  -d, --debug      don't remove temporary files
7440      --recheck    update $as_me by reconfiguring in the same conditions
7441  --file=FILE[:TEMPLATE]
7442		   instantiate the configuration file FILE
7443  --header=FILE[:TEMPLATE]
7444		   instantiate the configuration header FILE
7445
7446Configuration files:
7447$config_files
7448
7449Configuration headers:
7450$config_headers
7451
7452Configuration commands:
7453$config_commands
7454
7455Report bugs to <bug-autoconf@gnu.org>."
7456
7457_ACEOF
7458cat >>$CONFIG_STATUS <<_ACEOF
7459ac_cs_version="\\
7460prboom config.status 2.5.0
7461configured by $0, generated by GNU Autoconf 2.61,
7462  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7463
7464Copyright (C) 2006 Free Software Foundation, Inc.
7465This config.status script is free software; the Free Software Foundation
7466gives unlimited permission to copy, distribute and modify it."
7467
7468ac_pwd='$ac_pwd'
7469srcdir='$srcdir'
7470INSTALL='$INSTALL'
7471MKDIR_P='$MKDIR_P'
7472_ACEOF
7473
7474cat >>$CONFIG_STATUS <<\_ACEOF
7475# If no file are specified by the user, then we need to provide default
7476# value.  By we need to know if files were specified by the user.
7477ac_need_defaults=:
7478while test $# != 0
7479do
7480  case $1 in
7481  --*=*)
7482    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7483    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7484    ac_shift=:
7485    ;;
7486  *)
7487    ac_option=$1
7488    ac_optarg=$2
7489    ac_shift=shift
7490    ;;
7491  esac
7492
7493  case $ac_option in
7494  # Handling of the options.
7495  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7496    ac_cs_recheck=: ;;
7497  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7498    echo "$ac_cs_version"; exit ;;
7499  --debug | --debu | --deb | --de | --d | -d )
7500    debug=: ;;
7501  --file | --fil | --fi | --f )
7502    $ac_shift
7503    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7504    ac_need_defaults=false;;
7505  --header | --heade | --head | --hea )
7506    $ac_shift
7507    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7508    ac_need_defaults=false;;
7509  --he | --h)
7510    # Conflict between --help and --header
7511    { echo "$as_me: error: ambiguous option: $1
7512Try \`$0 --help' for more information." >&2
7513   { (exit 1); exit 1; }; };;
7514  --help | --hel | -h )
7515    echo "$ac_cs_usage"; exit ;;
7516  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7517  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7518    ac_cs_silent=: ;;
7519
7520  # This is an error.
7521  -*) { echo "$as_me: error: unrecognized option: $1
7522Try \`$0 --help' for more information." >&2
7523   { (exit 1); exit 1; }; } ;;
7524
7525  *) ac_config_targets="$ac_config_targets $1"
7526     ac_need_defaults=false ;;
7527
7528  esac
7529  shift
7530done
7531
7532ac_configure_extra_args=
7533
7534if $ac_cs_silent; then
7535  exec 6>/dev/null
7536  ac_configure_extra_args="$ac_configure_extra_args --silent"
7537fi
7538
7539_ACEOF
7540cat >>$CONFIG_STATUS <<_ACEOF
7541if \$ac_cs_recheck; then
7542  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7543  CONFIG_SHELL=$SHELL
7544  export CONFIG_SHELL
7545  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7546fi
7547
7548_ACEOF
7549cat >>$CONFIG_STATUS <<\_ACEOF
7550exec 5>>config.log
7551{
7552  echo
7553  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7554## Running $as_me. ##
7555_ASBOX
7556  echo "$ac_log"
7557} >&5
7558
7559_ACEOF
7560cat >>$CONFIG_STATUS <<_ACEOF
7561#
7562# INIT-COMMANDS
7563#
7564AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7565
7566_ACEOF
7567
7568cat >>$CONFIG_STATUS <<\_ACEOF
7569
7570# Handling of arguments.
7571for ac_config_target in $ac_config_targets
7572do
7573  case $ac_config_target in
7574    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7575    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7576    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7577    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7578    "src/POSIX/Makefile") CONFIG_FILES="$CONFIG_FILES src/POSIX/Makefile" ;;
7579    "src/SDL/Makefile") CONFIG_FILES="$CONFIG_FILES src/SDL/Makefile" ;;
7580    "src/MAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/MAC/Makefile" ;;
7581    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7582    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
7583    "ICONS/Makefile") CONFIG_FILES="$CONFIG_FILES ICONS/Makefile" ;;
7584    "VisualC6/Makefile") CONFIG_FILES="$CONFIG_FILES VisualC6/Makefile" ;;
7585    "VisualC8/Makefile") CONFIG_FILES="$CONFIG_FILES VisualC8/Makefile" ;;
7586    "prboom.spec") CONFIG_FILES="$CONFIG_FILES prboom.spec" ;;
7587
7588  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7589echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7590   { (exit 1); exit 1; }; };;
7591  esac
7592done
7593
7594
7595# If the user did not use the arguments to specify the items to instantiate,
7596# then the envvar interface is used.  Set only those that are not.
7597# We use the long form for the default assignment because of an extremely
7598# bizarre bug on SunOS 4.1.3.
7599if $ac_need_defaults; then
7600  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7601  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7602  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7603fi
7604
7605# Have a temporary directory for convenience.  Make it in the build tree
7606# simply because there is no reason against having it here, and in addition,
7607# creating and moving files from /tmp can sometimes cause problems.
7608# Hook for its removal unless debugging.
7609# Note that there is a small window in which the directory will not be cleaned:
7610# after its creation but before its name has been assigned to `$tmp'.
7611$debug ||
7612{
7613  tmp=
7614  trap 'exit_status=$?
7615  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7616' 0
7617  trap '{ (exit 1); exit 1; }' 1 2 13 15
7618}
7619# Create a (secure) tmp directory for tmp files.
7620
7621{
7622  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7623  test -n "$tmp" && test -d "$tmp"
7624}  ||
7625{
7626  tmp=./conf$$-$RANDOM
7627  (umask 077 && mkdir "$tmp")
7628} ||
7629{
7630   echo "$me: cannot create a temporary directory in ." >&2
7631   { (exit 1); exit 1; }
7632}
7633
7634#
7635# Set up the sed scripts for CONFIG_FILES section.
7636#
7637
7638# No need to generate the scripts if there are no CONFIG_FILES.
7639# This happens for instance when ./config.status config.h
7640if test -n "$CONFIG_FILES"; then
7641
7642_ACEOF
7643
7644
7645
7646ac_delim='%!_!# '
7647for ac_last_try in false false false false false :; do
7648  cat >conf$$subs.sed <<_ACEOF
7649SHELL!$SHELL$ac_delim
7650PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7651PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7652PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7653PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7654PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7655PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7656exec_prefix!$exec_prefix$ac_delim
7657prefix!$prefix$ac_delim
7658program_transform_name!$program_transform_name$ac_delim
7659bindir!$bindir$ac_delim
7660sbindir!$sbindir$ac_delim
7661libexecdir!$libexecdir$ac_delim
7662datarootdir!$datarootdir$ac_delim
7663datadir!$datadir$ac_delim
7664sysconfdir!$sysconfdir$ac_delim
7665sharedstatedir!$sharedstatedir$ac_delim
7666localstatedir!$localstatedir$ac_delim
7667includedir!$includedir$ac_delim
7668oldincludedir!$oldincludedir$ac_delim
7669docdir!$docdir$ac_delim
7670infodir!$infodir$ac_delim
7671htmldir!$htmldir$ac_delim
7672dvidir!$dvidir$ac_delim
7673pdfdir!$pdfdir$ac_delim
7674psdir!$psdir$ac_delim
7675libdir!$libdir$ac_delim
7676localedir!$localedir$ac_delim
7677mandir!$mandir$ac_delim
7678DEFS!$DEFS$ac_delim
7679ECHO_C!$ECHO_C$ac_delim
7680ECHO_N!$ECHO_N$ac_delim
7681ECHO_T!$ECHO_T$ac_delim
7682LIBS!$LIBS$ac_delim
7683build_alias!$build_alias$ac_delim
7684host_alias!$host_alias$ac_delim
7685target_alias!$target_alias$ac_delim
7686build!$build$ac_delim
7687build_cpu!$build_cpu$ac_delim
7688build_vendor!$build_vendor$ac_delim
7689build_os!$build_os$ac_delim
7690host!$host$ac_delim
7691host_cpu!$host_cpu$ac_delim
7692host_vendor!$host_vendor$ac_delim
7693host_os!$host_os$ac_delim
7694target!$target$ac_delim
7695target_cpu!$target_cpu$ac_delim
7696target_vendor!$target_vendor$ac_delim
7697target_os!$target_os$ac_delim
7698INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7699INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7700INSTALL_DATA!$INSTALL_DATA$ac_delim
7701am__isrc!$am__isrc$ac_delim
7702CYGPATH_W!$CYGPATH_W$ac_delim
7703PACKAGE!$PACKAGE$ac_delim
7704VERSION!$VERSION$ac_delim
7705ACLOCAL!$ACLOCAL$ac_delim
7706AUTOCONF!$AUTOCONF$ac_delim
7707AUTOMAKE!$AUTOMAKE$ac_delim
7708AUTOHEADER!$AUTOHEADER$ac_delim
7709MAKEINFO!$MAKEINFO$ac_delim
7710install_sh!$install_sh$ac_delim
7711STRIP!$STRIP$ac_delim
7712INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7713mkdir_p!$mkdir_p$ac_delim
7714AWK!$AWK$ac_delim
7715SET_MAKE!$SET_MAKE$ac_delim
7716am__leading_dot!$am__leading_dot$ac_delim
7717AMTAR!$AMTAR$ac_delim
7718am__tar!$am__tar$ac_delim
7719am__untar!$am__untar$ac_delim
7720CC!$CC$ac_delim
7721CFLAGS!$CFLAGS$ac_delim
7722LDFLAGS!$LDFLAGS$ac_delim
7723CPPFLAGS!$CPPFLAGS$ac_delim
7724ac_ct_CC!$ac_ct_CC$ac_delim
7725EXEEXT!$EXEEXT$ac_delim
7726OBJEXT!$OBJEXT$ac_delim
7727DEPDIR!$DEPDIR$ac_delim
7728am__include!$am__include$ac_delim
7729am__quote!$am__quote$ac_delim
7730AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7731AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7732AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7733CCDEPMODE!$CCDEPMODE$ac_delim
7734am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7735am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7736LN_S!$LN_S$ac_delim
7737RANLIB!$RANLIB$ac_delim
7738CPP!$CPP$ac_delim
7739GREP!$GREP$ac_delim
7740EGREP!$EGREP$ac_delim
7741BUILD_GL_TRUE!$BUILD_GL_TRUE$ac_delim
7742BUILD_GL_FALSE!$BUILD_GL_FALSE$ac_delim
7743SDL_CONFIG!$SDL_CONFIG$ac_delim
7744SDL_CFLAGS!$SDL_CFLAGS$ac_delim
7745SDL_LIBS!$SDL_LIBS$ac_delim
7746_ACEOF
7747
7748  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7749    break
7750  elif $ac_last_try; then
7751    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7752echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7753   { (exit 1); exit 1; }; }
7754  else
7755    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7756  fi
7757done
7758
7759ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7760if test -n "$ac_eof"; then
7761  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7762  ac_eof=`expr $ac_eof + 1`
7763fi
7764
7765cat >>$CONFIG_STATUS <<_ACEOF
7766cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7768_ACEOF
7769sed '
7770s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7771s/^/s,@/; s/!/@,|#_!!_#|/
7772:n
7773t n
7774s/'"$ac_delim"'$/,g/; t
7775s/$/\\/; p
7776N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7777' >>$CONFIG_STATUS <conf$$subs.sed
7778rm -f conf$$subs.sed
7779cat >>$CONFIG_STATUS <<_ACEOF
7780CEOF$ac_eof
7781_ACEOF
7782
7783
7784ac_delim='%!_!# '
7785for ac_last_try in false false false false false :; do
7786  cat >conf$$subs.sed <<_ACEOF
7787WAD_MMAP_TRUE!$WAD_MMAP_TRUE$ac_delim
7788WAD_MMAP_FALSE!$WAD_MMAP_FALSE$ac_delim
7789MIXER_CFLAGS!$MIXER_CFLAGS$ac_delim
7790MIXER_LIBS!$MIXER_LIBS$ac_delim
7791NET_CFLAGS!$NET_CFLAGS$ac_delim
7792NET_LIBS!$NET_LIBS$ac_delim
7793MATH_LIB!$MATH_LIB$ac_delim
7794GL_LIBS!$GL_LIBS$ac_delim
7795DOOMWADDIR!$DOOMWADDIR$ac_delim
7796LIBOBJS!$LIBOBJS$ac_delim
7797LTLIBOBJS!$LTLIBOBJS$ac_delim
7798_ACEOF
7799
7800  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
7801    break
7802  elif $ac_last_try; then
7803    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7804echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7805   { (exit 1); exit 1; }; }
7806  else
7807    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7808  fi
7809done
7810
7811ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7812if test -n "$ac_eof"; then
7813  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7814  ac_eof=`expr $ac_eof + 1`
7815fi
7816
7817cat >>$CONFIG_STATUS <<_ACEOF
7818cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7819/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7820_ACEOF
7821sed '
7822s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7823s/^/s,@/; s/!/@,|#_!!_#|/
7824:n
7825t n
7826s/'"$ac_delim"'$/,g/; t
7827s/$/\\/; p
7828N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7829' >>$CONFIG_STATUS <conf$$subs.sed
7830rm -f conf$$subs.sed
7831cat >>$CONFIG_STATUS <<_ACEOF
7832:end
7833s/|#_!!_#|//g
7834CEOF$ac_eof
7835_ACEOF
7836
7837
7838# VPATH may cause trouble with some makes, so we remove $(srcdir),
7839# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7840# trailing colons and then remove the whole line if VPATH becomes empty
7841# (actually we leave an empty line to preserve line numbers).
7842if test "x$srcdir" = x.; then
7843  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7844s/:*\$(srcdir):*/:/
7845s/:*\${srcdir}:*/:/
7846s/:*@srcdir@:*/:/
7847s/^\([^=]*=[	 ]*\):*/\1/
7848s/:*$//
7849s/^[^=]*=[	 ]*$//
7850}'
7851fi
7852
7853cat >>$CONFIG_STATUS <<\_ACEOF
7854fi # test -n "$CONFIG_FILES"
7855
7856
7857for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7858do
7859  case $ac_tag in
7860  :[FHLC]) ac_mode=$ac_tag; continue;;
7861  esac
7862  case $ac_mode$ac_tag in
7863  :[FHL]*:*);;
7864  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7865echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7866   { (exit 1); exit 1; }; };;
7867  :[FH]-) ac_tag=-:-;;
7868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7869  esac
7870  ac_save_IFS=$IFS
7871  IFS=:
7872  set x $ac_tag
7873  IFS=$ac_save_IFS
7874  shift
7875  ac_file=$1
7876  shift
7877
7878  case $ac_mode in
7879  :L) ac_source=$1;;
7880  :[FH])
7881    ac_file_inputs=
7882    for ac_f
7883    do
7884      case $ac_f in
7885      -) ac_f="$tmp/stdin";;
7886      *) # Look for the file first in the build tree, then in the source tree
7887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7888	 # because $ac_f cannot contain `:'.
7889	 test -f "$ac_f" ||
7890	   case $ac_f in
7891	   [\\/$]*) false;;
7892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7893	   esac ||
7894	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7895echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7896   { (exit 1); exit 1; }; };;
7897      esac
7898      ac_file_inputs="$ac_file_inputs $ac_f"
7899    done
7900
7901    # Let's still pretend it is `configure' which instantiates (i.e., don't
7902    # use $as_me), people would be surprised to read:
7903    #    /* config.h.  Generated by config.status.  */
7904    configure_input="Generated from "`IFS=:
7905	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7906    if test x"$ac_file" != x-; then
7907      configure_input="$ac_file.  $configure_input"
7908      { echo "$as_me:$LINENO: creating $ac_file" >&5
7909echo "$as_me: creating $ac_file" >&6;}
7910    fi
7911
7912    case $ac_tag in
7913    *:-:* | *:-) cat >"$tmp/stdin";;
7914    esac
7915    ;;
7916  esac
7917
7918  ac_dir=`$as_dirname -- "$ac_file" ||
7919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7920	 X"$ac_file" : 'X\(//\)[^/]' \| \
7921	 X"$ac_file" : 'X\(//\)$' \| \
7922	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7923echo X"$ac_file" |
7924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7925	    s//\1/
7926	    q
7927	  }
7928	  /^X\(\/\/\)[^/].*/{
7929	    s//\1/
7930	    q
7931	  }
7932	  /^X\(\/\/\)$/{
7933	    s//\1/
7934	    q
7935	  }
7936	  /^X\(\/\).*/{
7937	    s//\1/
7938	    q
7939	  }
7940	  s/.*/./; q'`
7941  { as_dir="$ac_dir"
7942  case $as_dir in #(
7943  -*) as_dir=./$as_dir;;
7944  esac
7945  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7946    as_dirs=
7947    while :; do
7948      case $as_dir in #(
7949      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7950      *) as_qdir=$as_dir;;
7951      esac
7952      as_dirs="'$as_qdir' $as_dirs"
7953      as_dir=`$as_dirname -- "$as_dir" ||
7954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7955	 X"$as_dir" : 'X\(//\)[^/]' \| \
7956	 X"$as_dir" : 'X\(//\)$' \| \
7957	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7958echo X"$as_dir" |
7959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7960	    s//\1/
7961	    q
7962	  }
7963	  /^X\(\/\/\)[^/].*/{
7964	    s//\1/
7965	    q
7966	  }
7967	  /^X\(\/\/\)$/{
7968	    s//\1/
7969	    q
7970	  }
7971	  /^X\(\/\).*/{
7972	    s//\1/
7973	    q
7974	  }
7975	  s/.*/./; q'`
7976      test -d "$as_dir" && break
7977    done
7978    test -z "$as_dirs" || eval "mkdir $as_dirs"
7979  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7980echo "$as_me: error: cannot create directory $as_dir" >&2;}
7981   { (exit 1); exit 1; }; }; }
7982  ac_builddir=.
7983
7984case "$ac_dir" in
7985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7986*)
7987  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7988  # A ".." for each directory in $ac_dir_suffix.
7989  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7990  case $ac_top_builddir_sub in
7991  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7992  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7993  esac ;;
7994esac
7995ac_abs_top_builddir=$ac_pwd
7996ac_abs_builddir=$ac_pwd$ac_dir_suffix
7997# for backward compatibility:
7998ac_top_builddir=$ac_top_build_prefix
7999
8000case $srcdir in
8001  .)  # We are building in place.
8002    ac_srcdir=.
8003    ac_top_srcdir=$ac_top_builddir_sub
8004    ac_abs_top_srcdir=$ac_pwd ;;
8005  [\\/]* | ?:[\\/]* )  # Absolute name.
8006    ac_srcdir=$srcdir$ac_dir_suffix;
8007    ac_top_srcdir=$srcdir
8008    ac_abs_top_srcdir=$srcdir ;;
8009  *) # Relative name.
8010    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8011    ac_top_srcdir=$ac_top_build_prefix$srcdir
8012    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8013esac
8014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8015
8016
8017  case $ac_mode in
8018  :F)
8019  #
8020  # CONFIG_FILE
8021  #
8022
8023  case $INSTALL in
8024  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8025  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8026  esac
8027  ac_MKDIR_P=$MKDIR_P
8028  case $MKDIR_P in
8029  [\\/$]* | ?:[\\/]* ) ;;
8030  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8031  esac
8032_ACEOF
8033
8034cat >>$CONFIG_STATUS <<\_ACEOF
8035# If the template does not know about datarootdir, expand it.
8036# FIXME: This hack should be removed a few years after 2.60.
8037ac_datarootdir_hack=; ac_datarootdir_seen=
8038
8039case `sed -n '/datarootdir/ {
8040  p
8041  q
8042}
8043/@datadir@/p
8044/@docdir@/p
8045/@infodir@/p
8046/@localedir@/p
8047/@mandir@/p
8048' $ac_file_inputs` in
8049*datarootdir*) ac_datarootdir_seen=yes;;
8050*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8051  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8052echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8053_ACEOF
8054cat >>$CONFIG_STATUS <<_ACEOF
8055  ac_datarootdir_hack='
8056  s&@datadir@&$datadir&g
8057  s&@docdir@&$docdir&g
8058  s&@infodir@&$infodir&g
8059  s&@localedir@&$localedir&g
8060  s&@mandir@&$mandir&g
8061    s&\\\${datarootdir}&$datarootdir&g' ;;
8062esac
8063_ACEOF
8064
8065# Neutralize VPATH when `$srcdir' = `.'.
8066# Shell code in configure.ac might set extrasub.
8067# FIXME: do we really want to maintain this feature?
8068cat >>$CONFIG_STATUS <<_ACEOF
8069  sed "$ac_vpsub
8070$extrasub
8071_ACEOF
8072cat >>$CONFIG_STATUS <<\_ACEOF
8073:t
8074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8075s&@configure_input@&$configure_input&;t t
8076s&@top_builddir@&$ac_top_builddir_sub&;t t
8077s&@srcdir@&$ac_srcdir&;t t
8078s&@abs_srcdir@&$ac_abs_srcdir&;t t
8079s&@top_srcdir@&$ac_top_srcdir&;t t
8080s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8081s&@builddir@&$ac_builddir&;t t
8082s&@abs_builddir@&$ac_abs_builddir&;t t
8083s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8084s&@INSTALL@&$ac_INSTALL&;t t
8085s&@MKDIR_P@&$ac_MKDIR_P&;t t
8086$ac_datarootdir_hack
8087" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8088
8089test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8090  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8091  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8092  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8093which seems to be undefined.  Please make sure it is defined." >&5
8094echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8095which seems to be undefined.  Please make sure it is defined." >&2;}
8096
8097  rm -f "$tmp/stdin"
8098  case $ac_file in
8099  -) cat "$tmp/out"; rm -f "$tmp/out";;
8100  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8101  esac
8102 ;;
8103  :H)
8104  #
8105  # CONFIG_HEADER
8106  #
8107_ACEOF
8108
8109# Transform confdefs.h into a sed script `conftest.defines', that
8110# substitutes the proper values into config.h.in to produce config.h.
8111rm -f conftest.defines conftest.tail
8112# First, append a space to every undef/define line, to ease matching.
8113echo 's/$/ /' >conftest.defines
8114# Then, protect against being on the right side of a sed subst, or in
8115# an unquoted here document, in config.status.  If some macros were
8116# called several times there might be several #defines for the same
8117# symbol, which is useless.  But do not sort them, since the last
8118# AC_DEFINE must be honored.
8119ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8120# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8121# NAME is the cpp macro being defined, VALUE is the value it is being given.
8122# PARAMS is the parameter list in the macro definition--in most cases, it's
8123# just an empty string.
8124ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
8125ac_dB='\\)[	 (].*,\\1define\\2'
8126ac_dC=' '
8127ac_dD=' ,'
8128
8129uniq confdefs.h |
8130  sed -n '
8131	t rset
8132	:rset
8133	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
8134	t ok
8135	d
8136	:ok
8137	s/[\\&,]/\\&/g
8138	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8139	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8140  ' >>conftest.defines
8141
8142# Remove the space that was appended to ease matching.
8143# Then replace #undef with comments.  This is necessary, for
8144# example, in the case of _POSIX_SOURCE, which is predefined and required
8145# on some systems where configure will not decide to define it.
8146# (The regexp can be short, since the line contains either #define or #undef.)
8147echo 's/ $//
8148s,^[	 #]*u.*,/* & */,' >>conftest.defines
8149
8150# Break up conftest.defines:
8151ac_max_sed_lines=50
8152
8153# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8154# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8155# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8156# et cetera.
8157ac_in='$ac_file_inputs'
8158ac_out='"$tmp/out1"'
8159ac_nxt='"$tmp/out2"'
8160
8161while :
8162do
8163  # Write a here document:
8164    cat >>$CONFIG_STATUS <<_ACEOF
8165    # First, check the format of the line:
8166    cat >"\$tmp/defines.sed" <<\\CEOF
8167/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
8168/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
8169b
8170:def
8171_ACEOF
8172  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8173  echo 'CEOF
8174    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8175  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8176  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8177  grep . conftest.tail >/dev/null || break
8178  rm -f conftest.defines
8179  mv conftest.tail conftest.defines
8180done
8181rm -f conftest.defines conftest.tail
8182
8183echo "ac_result=$ac_in" >>$CONFIG_STATUS
8184cat >>$CONFIG_STATUS <<\_ACEOF
8185  if test x"$ac_file" != x-; then
8186    echo "/* $configure_input  */" >"$tmp/config.h"
8187    cat "$ac_result" >>"$tmp/config.h"
8188    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8189      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8190echo "$as_me: $ac_file is unchanged" >&6;}
8191    else
8192      rm -f $ac_file
8193      mv "$tmp/config.h" $ac_file
8194    fi
8195  else
8196    echo "/* $configure_input  */"
8197    cat "$ac_result"
8198  fi
8199  rm -f "$tmp/out12"
8200# Compute $ac_file's index in $config_headers.
8201_am_stamp_count=1
8202for _am_header in $config_headers :; do
8203  case $_am_header in
8204    $ac_file | $ac_file:* )
8205      break ;;
8206    * )
8207      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8208  esac
8209done
8210echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8211$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8212	 X$ac_file : 'X\(//\)[^/]' \| \
8213	 X$ac_file : 'X\(//\)$' \| \
8214	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8215echo X$ac_file |
8216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8217	    s//\1/
8218	    q
8219	  }
8220	  /^X\(\/\/\)[^/].*/{
8221	    s//\1/
8222	    q
8223	  }
8224	  /^X\(\/\/\)$/{
8225	    s//\1/
8226	    q
8227	  }
8228	  /^X\(\/\).*/{
8229	    s//\1/
8230	    q
8231	  }
8232	  s/.*/./; q'`/stamp-h$_am_stamp_count
8233 ;;
8234
8235  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8236echo "$as_me: executing $ac_file commands" >&6;}
8237 ;;
8238  esac
8239
8240
8241  case $ac_file$ac_mode in
8242    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8243  # Strip MF so we end up with the name of the file.
8244  mf=`echo "$mf" | sed -e 's/:.*$//'`
8245  # Check whether this is an Automake generated Makefile or not.
8246  # We used to match only the files named `Makefile.in', but
8247  # some people rename them; so instead we look at the file content.
8248  # Grep'ing the first line is not enough: some people post-process
8249  # each Makefile.in and add a new line on top of each file to say so.
8250  # Grep'ing the whole file is not good either: AIX grep has a line
8251  # limit of 2048, but all sed's we know have understand at least 4000.
8252  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
8253    dirpart=`$as_dirname -- "$mf" ||
8254$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8255	 X"$mf" : 'X\(//\)[^/]' \| \
8256	 X"$mf" : 'X\(//\)$' \| \
8257	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8258echo X"$mf" |
8259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8260	    s//\1/
8261	    q
8262	  }
8263	  /^X\(\/\/\)[^/].*/{
8264	    s//\1/
8265	    q
8266	  }
8267	  /^X\(\/\/\)$/{
8268	    s//\1/
8269	    q
8270	  }
8271	  /^X\(\/\).*/{
8272	    s//\1/
8273	    q
8274	  }
8275	  s/.*/./; q'`
8276  else
8277    continue
8278  fi
8279  # Extract the definition of DEPDIR, am__include, and am__quote
8280  # from the Makefile without running `make'.
8281  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8282  test -z "$DEPDIR" && continue
8283  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8284  test -z "am__include" && continue
8285  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8286  # When using ansi2knr, U may be empty or an underscore; expand it
8287  U=`sed -n 's/^U = //p' < "$mf"`
8288  # Find all dependency output files, they are included files with
8289  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8290  # simplest approach to changing $(DEPDIR) to its actual value in the
8291  # expansion.
8292  for file in `sed -n "
8293    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8294       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8295    # Make sure the directory exists.
8296    test -f "$dirpart/$file" && continue
8297    fdir=`$as_dirname -- "$file" ||
8298$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8299	 X"$file" : 'X\(//\)[^/]' \| \
8300	 X"$file" : 'X\(//\)$' \| \
8301	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8302echo X"$file" |
8303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8304	    s//\1/
8305	    q
8306	  }
8307	  /^X\(\/\/\)[^/].*/{
8308	    s//\1/
8309	    q
8310	  }
8311	  /^X\(\/\/\)$/{
8312	    s//\1/
8313	    q
8314	  }
8315	  /^X\(\/\).*/{
8316	    s//\1/
8317	    q
8318	  }
8319	  s/.*/./; q'`
8320    { as_dir=$dirpart/$fdir
8321  case $as_dir in #(
8322  -*) as_dir=./$as_dir;;
8323  esac
8324  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8325    as_dirs=
8326    while :; do
8327      case $as_dir in #(
8328      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8329      *) as_qdir=$as_dir;;
8330      esac
8331      as_dirs="'$as_qdir' $as_dirs"
8332      as_dir=`$as_dirname -- "$as_dir" ||
8333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8334	 X"$as_dir" : 'X\(//\)[^/]' \| \
8335	 X"$as_dir" : 'X\(//\)$' \| \
8336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8337echo X"$as_dir" |
8338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8339	    s//\1/
8340	    q
8341	  }
8342	  /^X\(\/\/\)[^/].*/{
8343	    s//\1/
8344	    q
8345	  }
8346	  /^X\(\/\/\)$/{
8347	    s//\1/
8348	    q
8349	  }
8350	  /^X\(\/\).*/{
8351	    s//\1/
8352	    q
8353	  }
8354	  s/.*/./; q'`
8355      test -d "$as_dir" && break
8356    done
8357    test -z "$as_dirs" || eval "mkdir $as_dirs"
8358  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8359echo "$as_me: error: cannot create directory $as_dir" >&2;}
8360   { (exit 1); exit 1; }; }; }
8361    # echo "creating $dirpart/$file"
8362    echo '# dummy' > "$dirpart/$file"
8363  done
8364done
8365 ;;
8366
8367  esac
8368done # for ac_tag
8369
8370
8371{ (exit 0); exit 0; }
8372_ACEOF
8373chmod +x $CONFIG_STATUS
8374ac_clean_files=$ac_clean_files_save
8375
8376
8377# configure is writing to config.log, and then calls config.status.
8378# config.status does its own redirection, appending to config.log.
8379# Unfortunately, on DOS this fails, as config.log is still kept open
8380# by configure, so config.status won't be able to write to it; its
8381# output is simply discarded.  So we exec the FD to /dev/null,
8382# effectively closing config.log, so it can be properly (re)opened and
8383# appended to by config.status.  When coming back to configure, we
8384# need to make the FD available again.
8385if test "$no_create" != yes; then
8386  ac_cs_success=:
8387  ac_config_status_args=
8388  test "$silent" = yes &&
8389    ac_config_status_args="$ac_config_status_args --quiet"
8390  exec 5>/dev/null
8391  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8392  exec 5>>config.log
8393  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8394  # would make configure fail if this is the last instruction.
8395  $ac_cs_success || { (exit 1); exit 1; }
8396fi
8397
8398