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