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