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