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