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