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