source: trunk/base/configure @ 3938

Last change on this file since 3938 was 3938, checked in by fkr, 17 years ago

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

regen.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 195.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for OpenDarwin DarwinPorts 1.0.
4#
5# Report bugs to <darwinports@opendarwin.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS="   $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME='OpenDarwin DarwinPorts'
270PACKAGE_TARNAME='darwinports'
271PACKAGE_VERSION='1.0'
272PACKAGE_STRING='OpenDarwin DarwinPorts 1.0'
273PACKAGE_BUGREPORT='darwinports@opendarwin.org'
274
275ac_unique_file="src/pextlib1.0/Pextlib.c"
276ac_subdirs_all="$ac_subdirs_all src/programs/mtree"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_default_prefix=/opt/local
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE MTREE subdirs REPLACEMENT_PROGS CPP EGREP MD5_LIBS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDES TCLSH TCL_PACKAGE_DIR INCLUDES CFLAGS_DEBUG CFLAGS_OPTIMIZE TCL_DEFS STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS SHLIB_SUFFIX TCL_CC prefix_expanded PORTCONFIGDIR_EXPANDED localstatedir_expanded LIBOBJS LTLIBOBJS'
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359  # If the previous option needs an argument, assign it.
360  if test -n "$ac_prev"; then
361    eval "$ac_prev=\$ac_option"
362    ac_prev=
363    continue
364  fi
365
366  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368  # Accept the important Cygnus configure options, so we can diagnose typos.
369
370  case $ac_option in
371
372  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373    ac_prev=bindir ;;
374  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375    bindir=$ac_optarg ;;
376
377  -build | --build | --buil | --bui | --bu)
378    ac_prev=build_alias ;;
379  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380    build_alias=$ac_optarg ;;
381
382  -cache-file | --cache-file | --cache-fil | --cache-fi \
383  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384    ac_prev=cache_file ;;
385  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387    cache_file=$ac_optarg ;;
388
389  --config-cache | -C)
390    cache_file=config.cache ;;
391
392  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393    ac_prev=datadir ;;
394  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395  | --da=*)
396    datadir=$ac_optarg ;;
397
398  -disable-* | --disable-*)
399    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400    # Reject names that are not valid shell variable names.
401    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403   { (exit 1); exit 1; }; }
404    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405    eval "enable_$ac_feature=no" ;;
406
407  -enable-* | --enable-*)
408    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409    # Reject names that are not valid shell variable names.
410    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412   { (exit 1); exit 1; }; }
413    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414    case $ac_option in
415      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416      *) ac_optarg=yes ;;
417    esac
418    eval "enable_$ac_feature='$ac_optarg'" ;;
419
420  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422  | --exec | --exe | --ex)
423    ac_prev=exec_prefix ;;
424  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426  | --exec=* | --exe=* | --ex=*)
427    exec_prefix=$ac_optarg ;;
428
429  -gas | --gas | --ga | --g)
430    # Obsolete; use --with-gas.
431    with_gas=yes ;;
432
433  -help | --help | --hel | --he | -h)
434    ac_init_help=long ;;
435  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436    ac_init_help=recursive ;;
437  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438    ac_init_help=short ;;
439
440  -host | --host | --hos | --ho)
441    ac_prev=host_alias ;;
442  -host=* | --host=* | --hos=* | --ho=*)
443    host_alias=$ac_optarg ;;
444
445  -includedir | --includedir | --includedi | --included | --include \
446  | --includ | --inclu | --incl | --inc)
447    ac_prev=includedir ;;
448  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449  | --includ=* | --inclu=* | --incl=* | --inc=*)
450    includedir=$ac_optarg ;;
451
452  -infodir | --infodir | --infodi | --infod | --info | --inf)
453    ac_prev=infodir ;;
454  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455    infodir=$ac_optarg ;;
456
457  -libdir | --libdir | --libdi | --libd)
458    ac_prev=libdir ;;
459  -libdir=* | --libdir=* | --libdi=* | --libd=*)
460    libdir=$ac_optarg ;;
461
462  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463  | --libexe | --libex | --libe)
464    ac_prev=libexecdir ;;
465  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466  | --libexe=* | --libex=* | --libe=*)
467    libexecdir=$ac_optarg ;;
468
469  -localstatedir | --localstatedir | --localstatedi | --localstated \
470  | --localstate | --localstat | --localsta | --localst \
471  | --locals | --local | --loca | --loc | --lo)
472    ac_prev=localstatedir ;;
473  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476    localstatedir=$ac_optarg ;;
477
478  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479    ac_prev=mandir ;;
480  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481    mandir=$ac_optarg ;;
482
483  -nfp | --nfp | --nf)
484    # Obsolete; use --without-fp.
485    with_fp=no ;;
486
487  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488  | --no-cr | --no-c | -n)
489    no_create=yes ;;
490
491  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493    no_recursion=yes ;;
494
495  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497  | --oldin | --oldi | --old | --ol | --o)
498    ac_prev=oldincludedir ;;
499  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502    oldincludedir=$ac_optarg ;;
503
504  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505    ac_prev=prefix ;;
506  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507    prefix=$ac_optarg ;;
508
509  -program-prefix | --program-prefix | --program-prefi | --program-pref \
510  | --program-pre | --program-pr | --program-p)
511    ac_prev=program_prefix ;;
512  -program-prefix=* | --program-prefix=* | --program-prefi=* \
513  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514    program_prefix=$ac_optarg ;;
515
516  -program-suffix | --program-suffix | --program-suffi | --program-suff \
517  | --program-suf | --program-su | --program-s)
518    ac_prev=program_suffix ;;
519  -program-suffix=* | --program-suffix=* | --program-suffi=* \
520  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521    program_suffix=$ac_optarg ;;
522
523  -program-transform-name | --program-transform-name \
524  | --program-transform-nam | --program-transform-na \
525  | --program-transform-n | --program-transform- \
526  | --program-transform | --program-transfor \
527  | --program-transfo | --program-transf \
528  | --program-trans | --program-tran \
529  | --progr-tra | --program-tr | --program-t)
530    ac_prev=program_transform_name ;;
531  -program-transform-name=* | --program-transform-name=* \
532  | --program-transform-nam=* | --program-transform-na=* \
533  | --program-transform-n=* | --program-transform-=* \
534  | --program-transform=* | --program-transfor=* \
535  | --program-transfo=* | --program-transf=* \
536  | --program-trans=* | --program-tran=* \
537  | --progr-tra=* | --program-tr=* | --program-t=*)
538    program_transform_name=$ac_optarg ;;
539
540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541  | -silent | --silent | --silen | --sile | --sil)
542    silent=yes ;;
543
544  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545    ac_prev=sbindir ;;
546  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547  | --sbi=* | --sb=*)
548    sbindir=$ac_optarg ;;
549
550  -sharedstatedir | --sharedstatedir | --sharedstatedi \
551  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552  | --sharedst | --shareds | --shared | --share | --shar \
553  | --sha | --sh)
554    ac_prev=sharedstatedir ;;
555  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558  | --sha=* | --sh=*)
559    sharedstatedir=$ac_optarg ;;
560
561  -site | --site | --sit)
562    ac_prev=site ;;
563  -site=* | --site=* | --sit=*)
564    site=$ac_optarg ;;
565
566  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567    ac_prev=srcdir ;;
568  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569    srcdir=$ac_optarg ;;
570
571  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572  | --syscon | --sysco | --sysc | --sys | --sy)
573    ac_prev=sysconfdir ;;
574  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576    sysconfdir=$ac_optarg ;;
577
578  -target | --target | --targe | --targ | --tar | --ta | --t)
579    ac_prev=target_alias ;;
580  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581    target_alias=$ac_optarg ;;
582
583  -v | -verbose | --verbose | --verbos | --verbo | --verb)
584    verbose=yes ;;
585
586  -version | --version | --versio | --versi | --vers | -V)
587    ac_init_version=: ;;
588
589  -with-* | --with-*)
590    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591    # Reject names that are not valid shell variable names.
592    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593      { echo "$as_me: error: invalid package name: $ac_package" >&2
594   { (exit 1); exit 1; }; }
595    ac_package=`echo $ac_package| sed 's/-/_/g'`
596    case $ac_option in
597      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598      *) ac_optarg=yes ;;
599    esac
600    eval "with_$ac_package='$ac_optarg'" ;;
601
602  -without-* | --without-*)
603    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604    # Reject names that are not valid shell variable names.
605    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606      { echo "$as_me: error: invalid package name: $ac_package" >&2
607   { (exit 1); exit 1; }; }
608    ac_package=`echo $ac_package | sed 's/-/_/g'`
609    eval "with_$ac_package=no" ;;
610
611  --x)
612    # Obsolete; use --with-x.
613    with_x=yes ;;
614
615  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616  | --x-incl | --x-inc | --x-in | --x-i)
617    ac_prev=x_includes ;;
618  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620    x_includes=$ac_optarg ;;
621
622  -x-libraries | --x-libraries | --x-librarie | --x-librari \
623  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624    ac_prev=x_libraries ;;
625  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627    x_libraries=$ac_optarg ;;
628
629  -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631   { (exit 1); exit 1; }; }
632    ;;
633
634  *=*)
635    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636    # Reject names that are not valid shell variable names.
637    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639   { (exit 1); exit 1; }; }
640    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641    eval "$ac_envvar='$ac_optarg'"
642    export $ac_envvar ;;
643
644  *)
645    # FIXME: should be removed in autoconf 3.0.
646    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650    ;;
651
652  esac
653done
654
655if test -n "$ac_prev"; then
656  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657  { echo "$as_me: error: missing argument to $ac_option" >&2
658   { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664  eval ac_val=$`echo $ac_var`
665  case $ac_val in
666    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668   { (exit 1); exit 1; }; };;
669  esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674              localstatedir libdir includedir oldincludedir infodir mandir
675do
676  eval ac_val=$`echo $ac_var`
677  case $ac_val in
678    [\\/$]* | ?:[\\/]* ) ;;
679    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680   { (exit 1); exit 1; }; };;
681  esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693  if test "x$build_alias" = x; then
694    cross_compiling=maybe
695    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696    If a cross compiler is detected then cross compile mode will be used." >&2
697  elif test "x$build_alias" != "x$host_alias"; then
698    cross_compiling=yes
699  fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710  ac_srcdir_defaulted=yes
711  # Try the directory containing this script, then its parent.
712  ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714         X"$0" : 'X\(//\)[^/]' \| \
715         X"$0" : 'X\(//\)$' \| \
716         X"$0" : 'X\(/\)' \| \
717         .     : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721          /^X\(\/\/\)$/{ s//\1/; q; }
722          /^X\(\/\).*/{ s//\1/; q; }
723          s/.*/./; q'`
724  srcdir=$ac_confdir
725  if test ! -r $srcdir/$ac_unique_file; then
726    srcdir=..
727  fi
728else
729  ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732  if test "$ac_srcdir_defaulted" = yes; then
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734   { (exit 1); exit 1; }; }
735  else
736    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737   { (exit 1); exit 1; }; }
738  fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742   { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781  # Omit some internal or obsolete options to make the list less imposing.
782  # This message is too long to be a string in the A/UX 3.1 sh.
783  cat <<_ACEOF
784\`configure' configures OpenDarwin DarwinPorts 1.0 to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794  -h, --help              display this help and exit
795      --help=short        display options specific to this package
796      --help=recursive    display the short help of all the included packages
797  -V, --version           display version information and exit
798  -q, --quiet, --silent   do not print \`checking...' messages
799      --cache-file=FILE   cache test results in FILE [disabled]
800  -C, --config-cache      alias for \`--cache-file=config.cache'
801  -n, --no-create         do not create output files
802      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806  cat <<_ACEOF
807Installation directories:
808  --prefix=PREFIX         install architecture-independent files in PREFIX
809                          [$ac_default_prefix]
810  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                          [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821  --bindir=DIR           user executables [EPREFIX/bin]
822  --sbindir=DIR          system admin executables [EPREFIX/sbin]
823  --libexecdir=DIR       program executables [EPREFIX/libexec]
824  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828  --libdir=DIR           object code libraries [EPREFIX/lib]
829  --includedir=DIR       C header files [PREFIX/include]
830  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831  --infodir=DIR          info documentation [PREFIX/info]
832  --mandir=DIR           man documentation [PREFIX/man]
833_ACEOF
834
835  cat <<\_ACEOF
836
837System types:
838  --build=BUILD     configure for building on BUILD [guessed]
839  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840  --target=TARGET   configure for building compilers for TARGET [HOST]
841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845  case $ac_init_help in
846     short | recursive ) echo "Configuration of OpenDarwin DarwinPorts 1.0:";;
847   esac
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --enable-shared         build and link with shared libraries --enable-shared
854
855Optional Packages:
856  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858  --with-dports-dir=DIR   Specify alternate dports directory
859  --with-install-user=USER
860                          Specify user ownership of installed files
861  --with-install-group=GROUP
862                          Specify group ownership of installed files
863  --with-tcl              directory containing tcl configuration (tclConfig.sh)
864  --with-tclinclude       directory containing the public Tcl header files.
865  --with-tclpackage       Tcl package installation directory.
866
867Some influential environment variables:
868  CC          C compiler command
869  CFLAGS      C compiler flags
870  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
871              nonstandard directory <lib dir>
872  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
873              headers in a nonstandard directory <include dir>
874  CPP         C preprocessor
875
876Use these variables to override the choices made by `configure' or to help
877it to find libraries and programs with nonstandard names/locations.
878
879Report bugs to <darwinports@opendarwin.org>.
880_ACEOF
881fi
882
883if test "$ac_init_help" = "recursive"; then
884  # If there are subdirs, report their specific --help.
885  ac_popdir=`pwd`
886  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887    test -d $ac_dir || continue
888    ac_builddir=.
889
890if test "$ac_dir" != .; then
891  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892  # A "../" for each directory in $ac_dir_suffix.
893  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894else
895  ac_dir_suffix= ac_top_builddir=
896fi
897
898case $srcdir in
899  .)  # No --srcdir option.  We are building in place.
900    ac_srcdir=.
901    if test -z "$ac_top_builddir"; then
902       ac_top_srcdir=.
903    else
904       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905    fi ;;
906  [\\/]* | ?:[\\/]* )  # Absolute path.
907    ac_srcdir=$srcdir$ac_dir_suffix;
908    ac_top_srcdir=$srcdir ;;
909  *) # Relative path.
910    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911    ac_top_srcdir=$ac_top_builddir$srcdir ;;
912esac
913# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914# absolute.
915ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
917ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
919
920    cd $ac_dir
921    # Check for guested configure; otherwise get Cygnus style configure.
922    if test -f $ac_srcdir/configure.gnu; then
923      echo
924      $SHELL $ac_srcdir/configure.gnu  --help=recursive
925    elif test -f $ac_srcdir/configure; then
926      echo
927      $SHELL $ac_srcdir/configure  --help=recursive
928    elif test -f $ac_srcdir/configure.ac ||
929           test -f $ac_srcdir/configure.in; then
930      echo
931      $ac_configure --help
932    else
933      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934    fi
935    cd $ac_popdir
936  done
937fi
938
939test -n "$ac_init_help" && exit 0
940if $ac_init_version; then
941  cat <<\_ACEOF
942OpenDarwin DarwinPorts configure 1.0
943generated by GNU Autoconf 2.57
944
945Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
946Free Software Foundation, Inc.
947This configure script is free software; the Free Software Foundation
948gives unlimited permission to copy, distribute and modify it.
949_ACEOF
950  exit 0
951fi
952exec 5>config.log
953cat >&5 <<_ACEOF
954This file contains any messages produced by compilers while
955running configure, to aid debugging if configure makes a mistake.
956
957It was created by OpenDarwin DarwinPorts $as_me 1.0, which was
958generated by GNU Autoconf 2.57.  Invocation command line was
959
960  $ $0 $@
961
962_ACEOF
963{
964cat <<_ASUNAME
965## --------- ##
966## Platform. ##
967## --------- ##
968
969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
970uname -m = `(uname -m) 2>/dev/null || echo unknown`
971uname -r = `(uname -r) 2>/dev/null || echo unknown`
972uname -s = `(uname -s) 2>/dev/null || echo unknown`
973uname -v = `(uname -v) 2>/dev/null || echo unknown`
974
975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
976/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
977
978/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
979/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
981hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
982/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
983/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
984/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
985
986_ASUNAME
987
988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989for as_dir in $PATH
990do
991  IFS=$as_save_IFS
992  test -z "$as_dir" && as_dir=.
993  echo "PATH: $as_dir"
994done
995
996} >&5
997
998cat >&5 <<_ACEOF
999
1000
1001## ----------- ##
1002## Core tests. ##
1003## ----------- ##
1004
1005_ACEOF
1006
1007
1008# Keep a trace of the command line.
1009# Strip out --no-create and --no-recursion so they do not pile up.
1010# Strip out --silent because we don't want to record it for future runs.
1011# Also quote any args containing shell meta-characters.
1012# Make two passes to allow for proper duplicate-argument suppression.
1013ac_configure_args=
1014ac_configure_args0=
1015ac_configure_args1=
1016ac_sep=
1017ac_must_keep_next=false
1018for ac_pass in 1 2
1019do
1020  for ac_arg
1021  do
1022    case $ac_arg in
1023    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1024    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025    | -silent | --silent | --silen | --sile | --sil)
1026      continue ;;
1027    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1029    esac
1030    case $ac_pass in
1031    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1032    2)
1033      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1034      if test $ac_must_keep_next = true; then
1035        ac_must_keep_next=false # Got value, back to normal.
1036      else
1037        case $ac_arg in
1038          *=* | --config-cache | -C | -disable-* | --disable-* \
1039          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1040          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1041          | -with-* | --with-* | -without-* | --without-* | --x)
1042            case "$ac_configure_args0 " in
1043              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1044            esac
1045            ;;
1046          -* ) ac_must_keep_next=true ;;
1047        esac
1048      fi
1049      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1050      # Get rid of the leading space.
1051      ac_sep=" "
1052      ;;
1053    esac
1054  done
1055done
1056$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1057$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1058
1059# When interrupted or exit'd, cleanup temporary files, and complete
1060# config.log.  We remove comments because anyway the quotes in there
1061# would cause problems or look ugly.
1062# WARNING: Be sure not to use single quotes in there, as some shells,
1063# such as our DU 5.0 friend, will then `close' the trap.
1064trap 'exit_status=$?
1065  # Save into config.log some information that might help in debugging.
1066  {
1067    echo
1068
1069    cat <<\_ASBOX
1070## ---------------- ##
1071## Cache variables. ##
1072## ---------------- ##
1073_ASBOX
1074    echo
1075    # The following way of writing the cache mishandles newlines in values,
1076{
1077  (set) 2>&1 |
1078    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079    *ac_space=\ *)
1080      sed -n \
1081        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1082          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083      ;;
1084    *)
1085      sed -n \
1086        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1087      ;;
1088    esac;
1089}
1090    echo
1091
1092    cat <<\_ASBOX
1093## ----------------- ##
1094## Output variables. ##
1095## ----------------- ##
1096_ASBOX
1097    echo
1098    for ac_var in $ac_subst_vars
1099    do
1100      eval ac_val=$`echo $ac_var`
1101      echo "$ac_var='"'"'$ac_val'"'"'"
1102    done | sort
1103    echo
1104
1105    if test -n "$ac_subst_files"; then
1106      cat <<\_ASBOX
1107## ------------- ##
1108## Output files. ##
1109## ------------- ##
1110_ASBOX
1111      echo
1112      for ac_var in $ac_subst_files
1113      do
1114        eval ac_val=$`echo $ac_var`
1115        echo "$ac_var='"'"'$ac_val'"'"'"
1116      done | sort
1117      echo
1118    fi
1119
1120    if test -s confdefs.h; then
1121      cat <<\_ASBOX
1122## ----------- ##
1123## confdefs.h. ##
1124## ----------- ##
1125_ASBOX
1126      echo
1127      sed "/^$/d" confdefs.h | sort
1128      echo
1129    fi
1130    test "$ac_signal" != 0 &&
1131      echo "$as_me: caught signal $ac_signal"
1132    echo "$as_me: exit $exit_status"
1133  } >&5
1134  rm -f core core.* *.core &&
1135  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1136    exit $exit_status
1137     ' 0
1138for ac_signal in 1 2 13 15; do
1139  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140done
1141ac_signal=0
1142
1143# confdefs.h avoids OS command line length limits that DEFS can exceed.
1144rm -rf conftest* confdefs.h
1145# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1146echo >confdefs.h
1147
1148# Predefined preprocessor variables.
1149
1150cat >>confdefs.h <<_ACEOF
1151#define PACKAGE_NAME "$PACKAGE_NAME"
1152_ACEOF
1153
1154
1155cat >>confdefs.h <<_ACEOF
1156#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157_ACEOF
1158
1159
1160cat >>confdefs.h <<_ACEOF
1161#define PACKAGE_VERSION "$PACKAGE_VERSION"
1162_ACEOF
1163
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_STRING "$PACKAGE_STRING"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172_ACEOF
1173
1174
1175# Let the site file select an alternate cache file if it wants to.
1176# Prefer explicitly selected file to automatically selected ones.
1177if test -z "$CONFIG_SITE"; then
1178  if test "x$prefix" != xNONE; then
1179    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1180  else
1181    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1182  fi
1183fi
1184for ac_site_file in $CONFIG_SITE; do
1185  if test -r "$ac_site_file"; then
1186    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1187echo "$as_me: loading site script $ac_site_file" >&6;}
1188    sed 's/^/| /' "$ac_site_file" >&5
1189    . "$ac_site_file"
1190  fi
1191done
1192
1193if test -r "$cache_file"; then
1194  # Some versions of bash will fail to source /dev/null (special
1195  # files actually), so we avoid doing that.
1196  if test -f "$cache_file"; then
1197    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1198echo "$as_me: loading cache $cache_file" >&6;}
1199    case $cache_file in
1200      [\\/]* | ?:[\\/]* ) . $cache_file;;
1201      *)                      . ./$cache_file;;
1202    esac
1203  fi
1204else
1205  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1206echo "$as_me: creating cache $cache_file" >&6;}
1207  >$cache_file
1208fi
1209
1210# Check that the precious variables saved in the cache have kept the same
1211# value.
1212ac_cache_corrupted=false
1213for ac_var in `(set) 2>&1 |
1214               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1215  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1216  eval ac_new_set=\$ac_env_${ac_var}_set
1217  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1218  eval ac_new_val="\$ac_env_${ac_var}_value"
1219  case $ac_old_set,$ac_new_set in
1220    set,)
1221      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1222echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1223      ac_cache_corrupted=: ;;
1224    ,set)
1225      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1226echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1227      ac_cache_corrupted=: ;;
1228    ,);;
1229    *)
1230      if test "x$ac_old_val" != "x$ac_new_val"; then
1231        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1232echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1233        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1234echo "$as_me:   former value:  $ac_old_val" >&2;}
1235        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1236echo "$as_me:   current value: $ac_new_val" >&2;}
1237        ac_cache_corrupted=:
1238      fi;;
1239  esac
1240  # Pass precious variables to config.status.
1241  if test "$ac_new_set" = set; then
1242    case $ac_new_val in
1243    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1245    *) ac_arg=$ac_var=$ac_new_val ;;
1246    esac
1247    case " $ac_configure_args " in
1248      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1249      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250    esac
1251  fi
1252done
1253if $ac_cache_corrupted; then
1254  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1255echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1256  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1257echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1258   { (exit 1); exit 1; }; }
1259fi
1260
1261ac_ext=c
1262ac_cpp='$CPP $CPPFLAGS'
1263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1265ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294          ac_config_headers="$ac_config_headers src/config.h"
1295
1296ac_aux_dir=
1297for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1298  if test -f $ac_dir/install-sh; then
1299    ac_aux_dir=$ac_dir
1300    ac_install_sh="$ac_aux_dir/install-sh -c"
1301    break
1302  elif test -f $ac_dir/install.sh; then
1303    ac_aux_dir=$ac_dir
1304    ac_install_sh="$ac_aux_dir/install.sh -c"
1305    break
1306  elif test -f $ac_dir/shtool; then
1307    ac_aux_dir=$ac_dir
1308    ac_install_sh="$ac_aux_dir/shtool install -c"
1309    break
1310  fi
1311done
1312if test -z "$ac_aux_dir"; then
1313  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1314echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1315   { (exit 1); exit 1; }; }
1316fi
1317ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1318ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1319ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320
1321# Make sure we can run config.sub.
1322$ac_config_sub sun4 >/dev/null 2>&1 ||
1323  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1324echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1325   { (exit 1); exit 1; }; }
1326
1327echo "$as_me:$LINENO: checking build system type" >&5
1328echo $ECHO_N "checking build system type... $ECHO_C" >&6
1329if test "${ac_cv_build+set}" = set; then
1330  echo $ECHO_N "(cached) $ECHO_C" >&6
1331else
1332  ac_cv_build_alias=$build_alias
1333test -z "$ac_cv_build_alias" &&
1334  ac_cv_build_alias=`$ac_config_guess`
1335test -z "$ac_cv_build_alias" &&
1336  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1337echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1338   { (exit 1); exit 1; }; }
1339ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1340  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1341echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1342   { (exit 1); exit 1; }; }
1343
1344fi
1345echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1346echo "${ECHO_T}$ac_cv_build" >&6
1347build=$ac_cv_build
1348build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351
1352
1353echo "$as_me:$LINENO: checking host system type" >&5
1354echo $ECHO_N "checking host system type... $ECHO_C" >&6
1355if test "${ac_cv_host+set}" = set; then
1356  echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358  ac_cv_host_alias=$host_alias
1359test -z "$ac_cv_host_alias" &&
1360  ac_cv_host_alias=$ac_cv_build_alias
1361ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1362  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1363echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1364   { (exit 1); exit 1; }; }
1365
1366fi
1367echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1368echo "${ECHO_T}$ac_cv_host" >&6
1369host=$ac_cv_host
1370host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375echo "$as_me:$LINENO: checking target system type" >&5
1376echo $ECHO_N "checking target system type... $ECHO_C" >&6
1377if test "${ac_cv_target+set}" = set; then
1378  echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380  ac_cv_target_alias=$target_alias
1381test "x$ac_cv_target_alias" = "x" &&
1382  ac_cv_target_alias=$ac_cv_host_alias
1383ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1384  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1385echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1386   { (exit 1); exit 1; }; }
1387
1388fi
1389echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1390echo "${ECHO_T}$ac_cv_target" >&6
1391target=$ac_cv_target
1392target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397# The aliases save the names the user supplied, while $host etc.
1398# will get canonicalized.
1399test -n "$target_alias" &&
1400  test "$program_prefix$program_suffix$program_transform_name" = \
1401    NONENONEs,x,x, &&
1402  program_prefix=${target_alias}-
1403
1404# Checks for programs.
1405ac_ext=c
1406ac_cpp='$CPP $CPPFLAGS'
1407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410if test -n "$ac_tool_prefix"; then
1411  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1412set dummy ${ac_tool_prefix}gcc; ac_word=$2
1413echo "$as_me:$LINENO: checking for $ac_word" >&5
1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415if test "${ac_cv_prog_CC+set}" = set; then
1416  echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418  if test -n "$CC"; then
1419  ac_cv_prog_CC="$CC" # Let the user override the test.
1420else
1421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422for as_dir in $PATH
1423do
1424  IFS=$as_save_IFS
1425  test -z "$as_dir" && as_dir=.
1426  for ac_exec_ext in '' $ac_executable_extensions; do
1427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430    break 2
1431  fi
1432done
1433done
1434
1435fi
1436fi
1437CC=$ac_cv_prog_CC
1438if test -n "$CC"; then
1439  echo "$as_me:$LINENO: result: $CC" >&5
1440echo "${ECHO_T}$CC" >&6
1441else
1442  echo "$as_me:$LINENO: result: no" >&5
1443echo "${ECHO_T}no" >&6
1444fi
1445
1446fi
1447if test -z "$ac_cv_prog_CC"; then
1448  ac_ct_CC=$CC
1449  # Extract the first word of "gcc", so it can be a program name with args.
1450set dummy gcc; ac_word=$2
1451echo "$as_me:$LINENO: checking for $ac_word" >&5
1452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454  echo $ECHO_N "(cached) $ECHO_C" >&6
1455else
1456  if test -n "$ac_ct_CC"; then
1457  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458else
1459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460for as_dir in $PATH
1461do
1462  IFS=$as_save_IFS
1463  test -z "$as_dir" && as_dir=.
1464  for ac_exec_ext in '' $ac_executable_extensions; do
1465  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466    ac_cv_prog_ac_ct_CC="gcc"
1467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468    break 2
1469  fi
1470done
1471done
1472
1473fi
1474fi
1475ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476if test -n "$ac_ct_CC"; then
1477  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1478echo "${ECHO_T}$ac_ct_CC" >&6
1479else
1480  echo "$as_me:$LINENO: result: no" >&5
1481echo "${ECHO_T}no" >&6
1482fi
1483
1484  CC=$ac_ct_CC
1485else
1486  CC="$ac_cv_prog_CC"
1487fi
1488
1489if test -z "$CC"; then
1490  if test -n "$ac_tool_prefix"; then
1491  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1492set dummy ${ac_tool_prefix}cc; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_CC+set}" = set; then
1496  echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498  if test -n "$CC"; then
1499  ac_cv_prog_CC="$CC" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504  IFS=$as_save_IFS
1505  test -z "$as_dir" && as_dir=.
1506  for ac_exec_ext in '' $ac_executable_extensions; do
1507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508    ac_cv_prog_CC="${ac_tool_prefix}cc"
1509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510    break 2
1511  fi
1512done
1513done
1514
1515fi
1516fi
1517CC=$ac_cv_prog_CC
1518if test -n "$CC"; then
1519  echo "$as_me:$LINENO: result: $CC" >&5
1520echo "${ECHO_T}$CC" >&6
1521else
1522  echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526fi
1527if test -z "$ac_cv_prog_CC"; then
1528  ac_ct_CC=$CC
1529  # Extract the first word of "cc", so it can be a program name with args.
1530set dummy cc; ac_word=$2
1531echo "$as_me:$LINENO: checking for $ac_word" >&5
1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1534  echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536  if test -n "$ac_ct_CC"; then
1537  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1538else
1539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540for as_dir in $PATH
1541do
1542  IFS=$as_save_IFS
1543  test -z "$as_dir" && as_dir=.
1544  for ac_exec_ext in '' $ac_executable_extensions; do
1545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546    ac_cv_prog_ac_ct_CC="cc"
1547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548    break 2
1549  fi
1550done
1551done
1552
1553fi
1554fi
1555ac_ct_CC=$ac_cv_prog_ac_ct_CC
1556if test -n "$ac_ct_CC"; then
1557  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1558echo "${ECHO_T}$ac_ct_CC" >&6
1559else
1560  echo "$as_me:$LINENO: result: no" >&5
1561echo "${ECHO_T}no" >&6
1562fi
1563
1564  CC=$ac_ct_CC
1565else
1566  CC="$ac_cv_prog_CC"
1567fi
1568
1569fi
1570if test -z "$CC"; then
1571  # Extract the first word of "cc", so it can be a program name with args.
1572set dummy cc; ac_word=$2
1573echo "$as_me:$LINENO: checking for $ac_word" >&5
1574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575if test "${ac_cv_prog_CC+set}" = set; then
1576  echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578  if test -n "$CC"; then
1579  ac_cv_prog_CC="$CC" # Let the user override the test.
1580else
1581  ac_prog_rejected=no
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585  IFS=$as_save_IFS
1586  test -z "$as_dir" && as_dir=.
1587  for ac_exec_ext in '' $ac_executable_extensions; do
1588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1590       ac_prog_rejected=yes
1591       continue
1592     fi
1593    ac_cv_prog_CC="cc"
1594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595    break 2
1596  fi
1597done
1598done
1599
1600if test $ac_prog_rejected = yes; then
1601  # We found a bogon in the path, so make sure we never use it.
1602  set dummy $ac_cv_prog_CC
1603  shift
1604  if test $# != 0; then
1605    # We chose a different compiler from the bogus one.
1606    # However, it has the same basename, so the bogon will be chosen
1607    # first if we set CC to just the basename; use the full file name.
1608    shift
1609    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1610  fi
1611fi
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616  echo "$as_me:$LINENO: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619  echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$CC"; then
1625  if test -n "$ac_tool_prefix"; then
1626  for ac_prog in cl
1627  do
1628    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_CC+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  if test -n "$CC"; then
1636  ac_cv_prog_CC="$CC" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  for ac_exec_ext in '' $ac_executable_extensions; do
1644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647    break 2
1648  fi
1649done
1650done
1651
1652fi
1653fi
1654CC=$ac_cv_prog_CC
1655if test -n "$CC"; then
1656  echo "$as_me:$LINENO: result: $CC" >&5
1657echo "${ECHO_T}$CC" >&6
1658else
1659  echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663    test -n "$CC" && break
1664  done
1665fi
1666if test -z "$CC"; then
1667  ac_ct_CC=$CC
1668  for ac_prog in cl
1669do
1670  # Extract the first word of "$ac_prog", so it can be a program name with args.
1671set dummy $ac_prog; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  if test -n "$ac_ct_CC"; then
1678  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1679else
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683  IFS=$as_save_IFS
1684  test -z "$as_dir" && as_dir=.
1685  for ac_exec_ext in '' $ac_executable_extensions; do
1686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687    ac_cv_prog_ac_ct_CC="$ac_prog"
1688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689    break 2
1690  fi
1691done
1692done
1693
1694fi
1695fi
1696ac_ct_CC=$ac_cv_prog_ac_ct_CC
1697if test -n "$ac_ct_CC"; then
1698  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1699echo "${ECHO_T}$ac_ct_CC" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705  test -n "$ac_ct_CC" && break
1706done
1707
1708  CC=$ac_ct_CC
1709fi
1710
1711fi
1712
1713
1714test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1715See \`config.log' for more details." >&5
1716echo "$as_me: error: no acceptable C compiler found in \$PATH
1717See \`config.log' for more details." >&2;}
1718   { (exit 1); exit 1; }; }
1719
1720# Provide some information about the compiler.
1721echo "$as_me:$LINENO:" \
1722     "checking for C compiler version" >&5
1723ac_compiler=`set X $ac_compile; echo $2`
1724{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1725  (eval $ac_compiler --version </dev/null >&5) 2>&5
1726  ac_status=$?
1727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728  (exit $ac_status); }
1729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1730  (eval $ac_compiler -v </dev/null >&5) 2>&5
1731  ac_status=$?
1732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733  (exit $ac_status); }
1734{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1735  (eval $ac_compiler -V </dev/null >&5) 2>&5
1736  ac_status=$?
1737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738  (exit $ac_status); }
1739
1740cat >conftest.$ac_ext <<_ACEOF
1741#line $LINENO "configure"
1742/* confdefs.h.  */
1743_ACEOF
1744cat confdefs.h >>conftest.$ac_ext
1745cat >>conftest.$ac_ext <<_ACEOF
1746/* end confdefs.h.  */
1747
1748int
1749main ()
1750{
1751
1752  ;
1753  return 0;
1754}
1755_ACEOF
1756ac_clean_files_save=$ac_clean_files
1757ac_clean_files="$ac_clean_files a.out a.exe b.out"
1758# Try to create an executable without -o first, disregard a.out.
1759# It will help us diagnose broken compilers, and finding out an intuition
1760# of exeext.
1761echo "$as_me:$LINENO: checking for C compiler default output" >&5
1762echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1763ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1764if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1765  (eval $ac_link_default) 2>&5
1766  ac_status=$?
1767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768  (exit $ac_status); }; then
1769  # Find the output, starting from the most likely.  This scheme is
1770# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1771# resort.
1772
1773# Be careful to initialize this variable, since it used to be cached.
1774# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1775ac_cv_exeext=
1776# b.out is created by i960 compilers.
1777for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1778do
1779  test -f "$ac_file" || continue
1780  case $ac_file in
1781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1782        ;;
1783    conftest.$ac_ext )
1784        # This is the source file.
1785        ;;
1786    [ab].out )
1787        # We found the default executable, but exeext='' is most
1788        # certainly right.
1789        break;;
1790    *.* )
1791        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1792        # FIXME: I believe we export ac_cv_exeext for Libtool,
1793        # but it would be cool to find out if it's true.  Does anybody
1794        # maintain Libtool? --akim.
1795        export ac_cv_exeext
1796        break;;
1797    * )
1798        break;;
1799  esac
1800done
1801else
1802  echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1806See \`config.log' for more details." >&5
1807echo "$as_me: error: C compiler cannot create executables
1808See \`config.log' for more details." >&2;}
1809   { (exit 77); exit 77; }; }
1810fi
1811
1812ac_exeext=$ac_cv_exeext
1813echo "$as_me:$LINENO: result: $ac_file" >&5
1814echo "${ECHO_T}$ac_file" >&6
1815
1816# Check the compiler produces executables we can run.  If not, either
1817# the compiler is broken, or we cross compile.
1818echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1819echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1820# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1821# If not cross compiling, check that we can run a simple program.
1822if test "$cross_compiling" != yes; then
1823  if { ac_try='./$ac_file'
1824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1825  (eval $ac_try) 2>&5
1826  ac_status=$?
1827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828  (exit $ac_status); }; }; then
1829    cross_compiling=no
1830  else
1831    if test "$cross_compiling" = maybe; then
1832        cross_compiling=yes
1833    else
1834        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1835If you meant to cross compile, use \`--host'.
1836See \`config.log' for more details." >&5
1837echo "$as_me: error: cannot run C compiled programs.
1838If you meant to cross compile, use \`--host'.
1839See \`config.log' for more details." >&2;}
1840   { (exit 1); exit 1; }; }
1841    fi
1842  fi
1843fi
1844echo "$as_me:$LINENO: result: yes" >&5
1845echo "${ECHO_T}yes" >&6
1846
1847rm -f a.out a.exe conftest$ac_cv_exeext b.out
1848ac_clean_files=$ac_clean_files_save
1849# Check the compiler produces executables we can run.  If not, either
1850# the compiler is broken, or we cross compile.
1851echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1852echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1853echo "$as_me:$LINENO: result: $cross_compiling" >&5
1854echo "${ECHO_T}$cross_compiling" >&6
1855
1856echo "$as_me:$LINENO: checking for suffix of executables" >&5
1857echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1859  (eval $ac_link) 2>&5
1860  ac_status=$?
1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862  (exit $ac_status); }; then
1863  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1864# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1865# work properly (i.e., refer to `conftest.exe'), while it won't with
1866# `rm'.
1867for ac_file in conftest.exe conftest conftest.*; do
1868  test -f "$ac_file" || continue
1869  case $ac_file in
1870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1871    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872          export ac_cv_exeext
1873          break;;
1874    * ) break;;
1875  esac
1876done
1877else
1878  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1879See \`config.log' for more details." >&5
1880echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1881See \`config.log' for more details." >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885rm -f conftest$ac_cv_exeext
1886echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1887echo "${ECHO_T}$ac_cv_exeext" >&6
1888
1889rm -f conftest.$ac_ext
1890EXEEXT=$ac_cv_exeext
1891ac_exeext=$EXEEXT
1892echo "$as_me:$LINENO: checking for suffix of object files" >&5
1893echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1894if test "${ac_cv_objext+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  cat >conftest.$ac_ext <<_ACEOF
1898#line $LINENO "configure"
1899/* confdefs.h.  */
1900_ACEOF
1901cat confdefs.h >>conftest.$ac_ext
1902cat >>conftest.$ac_ext <<_ACEOF
1903/* end confdefs.h.  */
1904
1905int
1906main ()
1907{
1908
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913rm -f conftest.o conftest.obj
1914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915  (eval $ac_compile) 2>&5
1916  ac_status=$?
1917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918  (exit $ac_status); }; then
1919  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1920  case $ac_file in
1921    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1922    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1923       break;;
1924  esac
1925done
1926else
1927  echo "$as_me: failed program was:" >&5
1928sed 's/^/| /' conftest.$ac_ext >&5
1929
1930{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933See \`config.log' for more details." >&2;}
1934   { (exit 1); exit 1; }; }
1935fi
1936
1937rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938fi
1939echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940echo "${ECHO_T}$ac_cv_objext" >&6
1941OBJEXT=$ac_cv_objext
1942ac_objext=$OBJEXT
1943echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946  echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948  cat >conftest.$ac_ext <<_ACEOF
1949#line $LINENO "configure"
1950/* confdefs.h.  */
1951_ACEOF
1952cat confdefs.h >>conftest.$ac_ext
1953cat >>conftest.$ac_ext <<_ACEOF
1954/* end confdefs.h.  */
1955
1956int
1957main ()
1958{
1959#ifndef __GNUC__
1960       choke me
1961#endif
1962
1963  ;
1964  return 0;
1965}
1966_ACEOF
1967rm -f conftest.$ac_objext
1968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969  (eval $ac_compile) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); } &&
1973         { ac_try='test -s conftest.$ac_objext'
1974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975  (eval $ac_try) 2>&5
1976  ac_status=$?
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); }; }; then
1979  ac_compiler_gnu=yes
1980else
1981  echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984ac_compiler_gnu=no
1985fi
1986rm -f conftest.$ac_objext conftest.$ac_ext
1987ac_cv_c_compiler_gnu=$ac_compiler_gnu
1988
1989fi
1990echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1991echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1992GCC=`test $ac_compiler_gnu = yes && echo yes`
1993ac_test_CFLAGS=${CFLAGS+set}
1994ac_save_CFLAGS=$CFLAGS
1995CFLAGS="-g"
1996echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1997echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1998if test "${ac_cv_prog_cc_g+set}" = set; then
1999  echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001  cat >conftest.$ac_ext <<_ACEOF
2002#line $LINENO "configure"
2003/* confdefs.h.  */
2004_ACEOF
2005cat confdefs.h >>conftest.$ac_ext
2006cat >>conftest.$ac_ext <<_ACEOF
2007/* end confdefs.h.  */
2008
2009int
2010main ()
2011{
2012
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017rm -f conftest.$ac_objext
2018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019  (eval $ac_compile) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); } &&
2023         { ac_try='test -s conftest.$ac_objext'
2024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025  (eval $ac_try) 2>&5
2026  ac_status=$?
2027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028  (exit $ac_status); }; }; then
2029  ac_cv_prog_cc_g=yes
2030else
2031  echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
2033
2034ac_cv_prog_cc_g=no
2035fi
2036rm -f conftest.$ac_objext conftest.$ac_ext
2037fi
2038echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2039echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2040if test "$ac_test_CFLAGS" = set; then
2041  CFLAGS=$ac_save_CFLAGS
2042elif test $ac_cv_prog_cc_g = yes; then
2043  if test "$GCC" = yes; then
2044    CFLAGS="-g -O2"
2045  else
2046    CFLAGS="-g"
2047  fi
2048else
2049  if test "$GCC" = yes; then
2050    CFLAGS="-O2"
2051  else
2052    CFLAGS=
2053  fi
2054fi
2055echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2056echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2057if test "${ac_cv_prog_cc_stdc+set}" = set; then
2058  echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060  ac_cv_prog_cc_stdc=no
2061ac_save_CC=$CC
2062cat >conftest.$ac_ext <<_ACEOF
2063#line $LINENO "configure"
2064/* confdefs.h.  */
2065_ACEOF
2066cat confdefs.h >>conftest.$ac_ext
2067cat >>conftest.$ac_ext <<_ACEOF
2068/* end confdefs.h.  */
2069#include <stdarg.h>
2070#include <stdio.h>
2071#include <sys/types.h>
2072#include <sys/stat.h>
2073/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2074struct buf { int x; };
2075FILE * (*rcsopen) (struct buf *, struct stat *, int);
2076static char *e (p, i)
2077     char **p;
2078     int i;
2079{
2080  return p[i];
2081}
2082static char *f (char * (*g) (char **, int), char **p, ...)
2083{
2084  char *s;
2085  va_list v;
2086  va_start (v,p);
2087  s = g (p, va_arg (v,int));
2088  va_end (v);
2089  return s;
2090}
2091int test (int i, double x);
2092struct s1 {int (*f) (int a);};
2093struct s2 {int (*f) (double a);};
2094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2095int argc;
2096char **argv;
2097int
2098main ()
2099{
2100return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105# Don't try gcc -ansi; that turns off useful extensions and
2106# breaks some systems' header files.
2107# AIX                   -qlanglvl=ansi
2108# Ultrix and OSF/1      -std1
2109# HP-UX 10.20 and later -Ae
2110# HP-UX older versions  -Aa -D_HPUX_SOURCE
2111# SVR4                  -Xc -D__EXTENSIONS__
2112for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2113do
2114  CC="$ac_save_CC $ac_arg"
2115  rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117  (eval $ac_compile) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); } &&
2121         { ac_try='test -s conftest.$ac_objext'
2122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123  (eval $ac_try) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }; }; then
2127  ac_cv_prog_cc_stdc=$ac_arg
2128break
2129else
2130  echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133fi
2134rm -f conftest.$ac_objext
2135done
2136rm -f conftest.$ac_ext conftest.$ac_objext
2137CC=$ac_save_CC
2138
2139fi
2140
2141case "x$ac_cv_prog_cc_stdc" in
2142  x|xno)
2143    echo "$as_me:$LINENO: result: none needed" >&5
2144echo "${ECHO_T}none needed" >&6 ;;
2145  *)
2146    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148    CC="$CC $ac_cv_prog_cc_stdc" ;;
2149esac
2150
2151# Some people use a C++ compiler to compile C.  Since we use `exit',
2152# in C++ we need to declare it.  In case someone uses the same compiler
2153# for both compiling C and C++ we need to have the C++ compiler decide
2154# the declaration of exit, since it's the most demanding environment.
2155cat >conftest.$ac_ext <<_ACEOF
2156#ifndef __cplusplus
2157  choke me
2158#endif
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); } &&
2166         { ac_try='test -s conftest.$ac_objext'
2167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168  (eval $ac_try) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }; }; then
2172  for ac_declaration in \
2173   ''\
2174   '#include <stdlib.h>' \
2175   'extern "C" void std::exit (int) throw (); using std::exit;' \
2176   'extern "C" void std::exit (int); using std::exit;' \
2177   'extern "C" void exit (int) throw ();' \
2178   'extern "C" void exit (int);' \
2179   'void exit (int);'
2180do
2181  cat >conftest.$ac_ext <<_ACEOF
2182#line $LINENO "configure"
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188#include <stdlib.h>
2189$ac_declaration
2190int
2191main ()
2192{
2193exit (42);
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); } &&
2204         { ac_try='test -s conftest.$ac_objext'
2205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206  (eval $ac_try) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; }; then
2210  :
2211else
2212  echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215continue
2216fi
2217rm -f conftest.$ac_objext conftest.$ac_ext
2218  cat >conftest.$ac_ext <<_ACEOF
2219#line $LINENO "configure"
2220/* confdefs.h.  */
2221_ACEOF
2222cat confdefs.h >>conftest.$ac_ext
2223cat >>conftest.$ac_ext <<_ACEOF
2224/* end confdefs.h.  */
2225$ac_declaration
2226int
2227main ()
2228{
2229exit (42);
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234rm -f conftest.$ac_objext
2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236  (eval $ac_compile) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); } &&
2240         { ac_try='test -s conftest.$ac_objext'
2241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242  (eval $ac_try) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }; }; then
2246  break
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251fi
2252rm -f conftest.$ac_objext conftest.$ac_ext
2253done
2254rm -f conftest*
2255if test -n "$ac_declaration"; then
2256  echo '#ifdef __cplusplus' >>confdefs.h
2257  echo $ac_declaration      >>confdefs.h
2258  echo '#endif'             >>confdefs.h
2259fi
2260
2261else
2262  echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265fi
2266rm -f conftest.$ac_objext conftest.$ac_ext
2267ac_ext=c
2268ac_cpp='$CPP $CPPFLAGS'
2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273# Find a good install program.  We prefer a C program (faster),
2274# so one script is as good as another.  But avoid the broken or
2275# incompatible versions:
2276# SysV /etc/install, /usr/sbin/install
2277# SunOS /usr/etc/install
2278# IRIX /sbin/install
2279# AIX /bin/install
2280# AmigaOS /C/install, which installs bootblocks on floppy discs
2281# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284# ./install, which can be erroneously created by make from ./install.sh.
2285echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2287if test -z "$INSTALL"; then
2288if test "${ac_cv_path_install+set}" = set; then
2289  echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  # Account for people who put trailing slashes in PATH elements.
2297case $as_dir/ in
2298  ./ | .// | /cC/* | \
2299  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300  /usr/ucb/* ) ;;
2301  *)
2302    # OSF1 and SCO ODT 3.0 have their own names for install.
2303    # Don't use installbsd from OSF since it installs stuff as root
2304    # by default.
2305    for ac_prog in ginstall scoinst install; do
2306      for ac_exec_ext in '' $ac_executable_extensions; do
2307        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2308          if test $ac_prog = install &&
2309            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310            # AIX install.  It has an incompatible calling convention.
2311            :
2312          elif test $ac_prog = install &&
2313            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314            # program-specific install script used by HP pwplus--don't use.
2315            :
2316          else
2317            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318            break 3
2319          fi
2320        fi
2321      done
2322    done
2323    ;;
2324esac
2325done
2326
2327
2328fi
2329  if test "${ac_cv_path_install+set}" = set; then
2330    INSTALL=$ac_cv_path_install
2331  else
2332    # As a last resort, use the slow shell script.  We don't cache a
2333    # path for INSTALL within a source directory, because that will
2334    # break other packages using the cache if that directory is
2335    # removed, or if the path is relative.
2336    INSTALL=$ac_install_sh
2337  fi
2338fi
2339echo "$as_me:$LINENO: result: $INSTALL" >&5
2340echo "${ECHO_T}$INSTALL" >&6
2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2352set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2353if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2354  echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356  cat >conftest.make <<\_ACEOF
2357all:
2358        @echo 'ac_maketemp="$(MAKE)"'
2359_ACEOF
2360# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2361eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2362if test -n "$ac_maketemp"; then
2363  eval ac_cv_prog_make_${ac_make}_set=yes
2364else
2365  eval ac_cv_prog_make_${ac_make}_set=no
2366fi
2367rm -f conftest.make
2368fi
2369if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2370  echo "$as_me:$LINENO: result: yes" >&5
2371echo "${ECHO_T}yes" >&6
2372  SET_MAKE=
2373else
2374  echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6
2376  SET_MAKE="MAKE=${MAKE-make}"
2377fi
2378
2379
2380
2381
2382        # Extract the first word of "mtree", so it can be a program name with args.
2383set dummy mtree; ac_word=$2
2384echo "$as_me:$LINENO: checking for $ac_word" >&5
2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2386if test "${ac_cv_path_MTREE+set}" = set; then
2387  echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389  case $MTREE in
2390  [\\/]* | ?:[\\/]*)
2391  ac_cv_path_MTREE="$MTREE" # Let the user override the test with a path.
2392  ;;
2393  *)
2394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395as_dummy="/usr/bin:/usr/sbin:/bin:/sbin"
2396for as_dir in $as_dummy
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400  for ac_exec_ext in '' $ac_executable_extensions; do
2401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402    ac_cv_path_MTREE="$as_dir/$ac_word$ac_exec_ext"
2403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404    break 2
2405  fi
2406done
2407done
2408
2409  ;;
2410esac
2411fi
2412MTREE=$ac_cv_path_MTREE
2413
2414if test -n "$MTREE"; then
2415  echo "$as_me:$LINENO: result: $MTREE" >&5
2416echo "${ECHO_T}$MTREE" >&6
2417else
2418  echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6
2420fi
2421
2422
2423        if test "x$MTREE" = "x" ; then
2424
2425
2426subdirs="$subdirs src/programs/mtree"
2427
2428                MTREE='$(TOPSRCDIR)/src/programs/mtree/mtree'
2429#               MTREE='${prefix}/bin/mtree'
2430                REPLACEMENT_PROGS="$REPLACEMENT_PROGS mtree"
2431        fi
2432
2433
2434
2435
2436
2437
2438# Check for md5 implementation
2439
2440ac_ext=c
2441ac_cpp='$CPP $CPPFLAGS'
2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2446echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2447# On Suns, sometimes $CPP names a directory.
2448if test -n "$CPP" && test -d "$CPP"; then
2449  CPP=
2450fi
2451if test -z "$CPP"; then
2452  if test "${ac_cv_prog_CPP+set}" = set; then
2453  echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455      # Double quotes because CPP needs to be expanded
2456    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2457    do
2458      ac_preproc_ok=false
2459for ac_c_preproc_warn_flag in '' yes
2460do
2461  # Use a header file that comes with gcc, so configuring glibc
2462  # with a fresh cross-compiler works.
2463  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464  # <limits.h> exists even on freestanding compilers.
2465  # On the NeXT, cc -E runs the code through the compiler's parser,
2466  # not just through cpp. "Syntax error" is here to catch this case.
2467  cat >conftest.$ac_ext <<_ACEOF
2468#line $LINENO "configure"
2469/* confdefs.h.  */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h.  */
2474#ifdef __STDC__
2475# include <limits.h>
2476#else
2477# include <assert.h>
2478#endif
2479                     Syntax error
2480_ACEOF
2481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483  ac_status=$?
2484  grep -v '^ *+' conftest.er1 >conftest.err
2485  rm -f conftest.er1
2486  cat conftest.err >&5
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); } >/dev/null; then
2489  if test -s conftest.err; then
2490    ac_cpp_err=$ac_c_preproc_warn_flag
2491  else
2492    ac_cpp_err=
2493  fi
2494else
2495  ac_cpp_err=yes
2496fi
2497if test -z "$ac_cpp_err"; then
2498  :
2499else
2500  echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503  # Broken: fails on valid input.
2504continue
2505fi
2506rm -f conftest.err conftest.$ac_ext
2507
2508  # OK, works on sane cases.  Now check whether non-existent headers
2509  # can be detected and how.
2510  cat >conftest.$ac_ext <<_ACEOF
2511#line $LINENO "configure"
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517#include <ac_nonexistent.h>
2518_ACEOF
2519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521  ac_status=$?
2522  grep -v '^ *+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); } >/dev/null; then
2527  if test -s conftest.err; then
2528    ac_cpp_err=$ac_c_preproc_warn_flag
2529  else
2530    ac_cpp_err=
2531  fi
2532else
2533  ac_cpp_err=yes
2534fi
2535if test -z "$ac_cpp_err"; then
2536  # Broken: success on invalid input.
2537continue
2538else
2539  echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542  # Passes both tests.
2543ac_preproc_ok=:
2544break
2545fi
2546rm -f conftest.err conftest.$ac_ext
2547
2548done
2549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550rm -f conftest.err conftest.$ac_ext
2551if $ac_preproc_ok; then
2552  break
2553fi
2554
2555    done
2556    ac_cv_prog_CPP=$CPP
2557
2558fi
2559  CPP=$ac_cv_prog_CPP
2560else
2561  ac_cv_prog_CPP=$CPP
2562fi
2563echo "$as_me:$LINENO: result: $CPP" >&5
2564echo "${ECHO_T}$CPP" >&6
2565ac_preproc_ok=false
2566for ac_c_preproc_warn_flag in '' yes
2567do
2568  # Use a header file that comes with gcc, so configuring glibc
2569  # with a fresh cross-compiler works.
2570  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571  # <limits.h> exists even on freestanding compilers.
2572  # On the NeXT, cc -E runs the code through the compiler's parser,
2573  # not just through cpp. "Syntax error" is here to catch this case.
2574  cat >conftest.$ac_ext <<_ACEOF
2575#line $LINENO "configure"
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581#ifdef __STDC__
2582# include <limits.h>
2583#else
2584# include <assert.h>
2585#endif
2586                     Syntax error
2587_ACEOF
2588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } >/dev/null; then
2596  if test -s conftest.err; then
2597    ac_cpp_err=$ac_c_preproc_warn_flag
2598  else
2599    ac_cpp_err=
2600  fi
2601else
2602  ac_cpp_err=yes
2603fi
2604if test -z "$ac_cpp_err"; then
2605  :
2606else
2607  echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610  # Broken: fails on valid input.
2611continue
2612fi
2613rm -f conftest.err conftest.$ac_ext
2614
2615  # OK, works on sane cases.  Now check whether non-existent headers
2616  # can be detected and how.
2617  cat >conftest.$ac_ext <<_ACEOF
2618#line $LINENO "configure"
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624#include <ac_nonexistent.h>
2625_ACEOF
2626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } >/dev/null; then
2634  if test -s conftest.err; then
2635    ac_cpp_err=$ac_c_preproc_warn_flag
2636  else
2637    ac_cpp_err=
2638  fi
2639else
2640  ac_cpp_err=yes
2641fi
2642if test -z "$ac_cpp_err"; then
2643  # Broken: success on invalid input.
2644continue
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649  # Passes both tests.
2650ac_preproc_ok=:
2651break
2652fi
2653rm -f conftest.err conftest.$ac_ext
2654
2655done
2656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2657rm -f conftest.err conftest.$ac_ext
2658if $ac_preproc_ok; then
2659  :
2660else
2661  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2664See \`config.log' for more details." >&2;}
2665   { (exit 1); exit 1; }; }
2666fi
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675echo "$as_me:$LINENO: checking for egrep" >&5
2676echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2677if test "${ac_cv_prog_egrep+set}" = set; then
2678  echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2681    then ac_cv_prog_egrep='grep -E'
2682    else ac_cv_prog_egrep='egrep'
2683    fi
2684fi
2685echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2686echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2687 EGREP=$ac_cv_prog_egrep
2688
2689
2690echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2691echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2692if test "${ac_cv_header_stdc+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695  cat >conftest.$ac_ext <<_ACEOF
2696#line $LINENO "configure"
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702#include <stdlib.h>
2703#include <stdarg.h>
2704#include <string.h>
2705#include <float.h>
2706
2707int
2708main ()
2709{
2710
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717  (eval $ac_compile) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  ac_cv_header_stdc=yes
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732ac_cv_header_stdc=no
2733fi
2734rm -f conftest.$ac_objext conftest.$ac_ext
2735
2736if test $ac_cv_header_stdc = yes; then
2737  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2738  cat >conftest.$ac_ext <<_ACEOF
2739#line $LINENO "configure"
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745#include <string.h>
2746
2747_ACEOF
2748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749  $EGREP "memchr" >/dev/null 2>&1; then
2750  :
2751else
2752  ac_cv_header_stdc=no
2753fi
2754rm -f conftest*
2755
2756fi
2757
2758if test $ac_cv_header_stdc = yes; then
2759  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2760  cat >conftest.$ac_ext <<_ACEOF
2761#line $LINENO "configure"
2762/* confdefs.h.  */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h.  */
2767#include <stdlib.h>
2768
2769_ACEOF
2770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2771  $EGREP "free" >/dev/null 2>&1; then
2772  :
2773else
2774  ac_cv_header_stdc=no
2775fi
2776rm -f conftest*
2777
2778fi
2779
2780if test $ac_cv_header_stdc = yes; then
2781  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2782  if test "$cross_compiling" = yes; then
2783  :
2784else
2785  cat >conftest.$ac_ext <<_ACEOF
2786#line $LINENO "configure"
2787/* confdefs.h.  */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h.  */
2792#include <ctype.h>
2793#if ((' ' & 0x0FF) == 0x020)
2794# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2795# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2796#else
2797# define ISLOWER(c) \
2798                   (('a' <= (c) && (c) <= 'i') \
2799                     || ('j' <= (c) && (c) <= 'r') \
2800                     || ('s' <= (c) && (c) <= 'z'))
2801# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2802#endif
2803
2804#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2805int
2806main ()
2807{
2808  int i;
2809  for (i = 0; i < 256; i++)
2810    if (XOR (islower (i), ISLOWER (i))
2811        || toupper (i) != TOUPPER (i))
2812      exit(2);
2813  exit (0);
2814}
2815_ACEOF
2816rm -f conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; }; then
2827  :
2828else
2829  echo "$as_me: program exited with status $ac_status" >&5
2830echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833( exit $ac_status )
2834ac_cv_header_stdc=no
2835fi
2836rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2837fi
2838fi
2839fi
2840echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2841echo "${ECHO_T}$ac_cv_header_stdc" >&6
2842if test $ac_cv_header_stdc = yes; then
2843
2844cat >>confdefs.h <<\_ACEOF
2845#define STDC_HEADERS 1
2846_ACEOF
2847
2848fi
2849
2850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2861                  inttypes.h stdint.h unistd.h
2862do
2863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2864echo "$as_me:$LINENO: checking for $ac_header" >&5
2865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2866if eval "test \"\${$as_ac_Header+set}\" = set"; then
2867  echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869  cat >conftest.$ac_ext <<_ACEOF
2870#line $LINENO "configure"
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876$ac_includes_default
2877
2878#include <$ac_header>
2879_ACEOF
2880rm -f conftest.$ac_objext
2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882  (eval $ac_compile) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); } &&
2886         { ac_try='test -s conftest.$ac_objext'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; }; then
2892  eval "$as_ac_Header=yes"
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897eval "$as_ac_Header=no"
2898fi
2899rm -f conftest.$ac_objext conftest.$ac_ext
2900fi
2901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2903if test `eval echo '${'$as_ac_Header'}'` = yes; then
2904  cat >>confdefs.h <<_ACEOF
2905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2906_ACEOF
2907
2908fi
2909
2910done
2911
2912
2913
2914
2915        # Check for libmd, which is prefered
2916        echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&5
2917echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
2918if test "${ac_cv_lib_md_MD5Update+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  ac_check_lib_save_LIBS=$LIBS
2922LIBS="-lmd  $LIBS"
2923cat >conftest.$ac_ext <<_ACEOF
2924#line $LINENO "configure"
2925/* confdefs.h.  */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h.  */
2930
2931/* Override any gcc2 internal prototype to avoid an error.  */
2932#ifdef __cplusplus
2933extern "C"
2934#endif
2935/* We use char because int might match the return type of a gcc2
2936   builtin and then its argument prototype would still apply.  */
2937char MD5Update ();
2938int
2939main ()
2940{
2941MD5Update ();
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext conftest$ac_exeext
2947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2948  (eval $ac_link) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -s conftest$ac_exeext'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; }; then
2958  ac_cv_lib_md_MD5Update=yes
2959else
2960  echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963ac_cv_lib_md_MD5Update=no
2964fi
2965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2966LIBS=$ac_check_lib_save_LIBS
2967fi
2968echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&5
2969echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
2970if test $ac_cv_lib_md_MD5Update = yes; then
2971
2972
2973for ac_header in md5.h
2974do
2975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2976if eval "test \"\${$as_ac_Header+set}\" = set"; then
2977  echo "$as_me:$LINENO: checking for $ac_header" >&5
2978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2979if eval "test \"\${$as_ac_Header+set}\" = set"; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981fi
2982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2984else
2985  # Is the header compilable?
2986echo "$as_me:$LINENO: checking $ac_header usability" >&5
2987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2988cat >conftest.$ac_ext <<_ACEOF
2989#line $LINENO "configure"
2990/* confdefs.h.  */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h.  */
2995$ac_includes_default
2996#include <$ac_header>
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000  (eval $ac_compile) 2>&5
3001  ac_status=$?
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -s conftest.$ac_objext'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; }; then
3010  ac_header_compiler=yes
3011else
3012  echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015ac_header_compiler=no
3016fi
3017rm -f conftest.$ac_objext conftest.$ac_ext
3018echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3019echo "${ECHO_T}$ac_header_compiler" >&6
3020
3021# Is the header present?
3022echo "$as_me:$LINENO: checking $ac_header presence" >&5
3023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3024cat >conftest.$ac_ext <<_ACEOF
3025#line $LINENO "configure"
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031#include <$ac_header>
3032_ACEOF
3033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035  ac_status=$?
3036  grep -v '^ *+' conftest.er1 >conftest.err
3037  rm -f conftest.er1
3038  cat conftest.err >&5
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); } >/dev/null; then
3041  if test -s conftest.err; then
3042    ac_cpp_err=$ac_c_preproc_warn_flag
3043  else
3044    ac_cpp_err=
3045  fi
3046else
3047  ac_cpp_err=yes
3048fi
3049if test -z "$ac_cpp_err"; then
3050  ac_header_preproc=yes
3051else
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055  ac_header_preproc=no
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3059echo "${ECHO_T}$ac_header_preproc" >&6
3060
3061# So?  What about this header?
3062case $ac_header_compiler:$ac_header_preproc in
3063  yes:no )
3064    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3068    (
3069      cat <<\_ASBOX
3070## ------------------------------------ ##
3071## Report this to bug-autoconf@gnu.org. ##
3072## ------------------------------------ ##
3073_ASBOX
3074    ) |
3075      sed "s/^/$as_me: WARNING:     /" >&2
3076    ;;
3077  no:yes )
3078    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3080    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3084    (
3085      cat <<\_ASBOX
3086## ------------------------------------ ##
3087## Report this to bug-autoconf@gnu.org. ##
3088## ------------------------------------ ##
3089_ASBOX
3090    ) |
3091      sed "s/^/$as_me: WARNING:     /" >&2
3092    ;;
3093esac
3094echo "$as_me:$LINENO: checking for $ac_header" >&5
3095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3096if eval "test \"\${$as_ac_Header+set}\" = set"; then
3097  echo $ECHO_N "(cached) $ECHO_C" >&6
3098else
3099  eval "$as_ac_Header=$ac_header_preproc"
3100fi
3101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3103
3104fi
3105if test `eval echo '${'$as_ac_Header'}'` = yes; then
3106  cat >>confdefs.h <<_ACEOF
3107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3108_ACEOF
3109
3110else
3111
3112                        { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&5
3113echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
3114   { (exit 1); exit 1; }; }
3115fi
3116
3117done
3118
3119
3120cat >>confdefs.h <<\_ACEOF
3121#define HAVE_LIBMD
3122_ACEOF
3123
3124                MD5_LIBS="-lmd"
3125
3126fi
3127
3128        if test "x$MD5_LIBS" = "x" ; then
3129                # If libmd is not found, check for libcrypto from OpenSSL
3130                echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&5
3131echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
3132if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
3133  echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135  ac_check_lib_save_LIBS=$LIBS
3136LIBS="-lcrypto  $LIBS"
3137cat >conftest.$ac_ext <<_ACEOF
3138#line $LINENO "configure"
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144
3145/* Override any gcc2 internal prototype to avoid an error.  */
3146#ifdef __cplusplus
3147extern "C"
3148#endif
3149/* We use char because int might match the return type of a gcc2
3150   builtin and then its argument prototype would still apply.  */
3151char MD5_Update ();
3152int
3153main ()
3154{
3155MD5_Update ();
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext conftest$ac_exeext
3161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162  (eval $ac_link) 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); } &&
3166         { ac_try='test -s conftest$ac_exeext'
3167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168  (eval $ac_try) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; }; then
3172  ac_cv_lib_crypto_MD5_Update=yes
3173else
3174  echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177ac_cv_lib_crypto_MD5_Update=no
3178fi
3179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3180LIBS=$ac_check_lib_save_LIBS
3181fi
3182echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&5
3183echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
3184if test $ac_cv_lib_crypto_MD5_Update = yes; then
3185
3186
3187for ac_header in openssl/md5.h
3188do
3189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3190if eval "test \"\${$as_ac_Header+set}\" = set"; then
3191  echo "$as_me:$LINENO: checking for $ac_header" >&5
3192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195fi
3196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198else
3199  # Is the header compilable?
3200echo "$as_me:$LINENO: checking $ac_header usability" >&5
3201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3202cat >conftest.$ac_ext <<_ACEOF
3203#line $LINENO "configure"
3204/* confdefs.h.  */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h.  */
3209$ac_includes_default
3210#include <$ac_header>
3211_ACEOF
3212rm -f conftest.$ac_objext
3213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214  (eval $ac_compile) 2>&5
3215  ac_status=$?
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218         { ac_try='test -s conftest.$ac_objext'
3219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220  (eval $ac_try) 2>&5
3221  ac_status=$?
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); }; }; then
3224  ac_header_compiler=yes
3225else
3226  echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229ac_header_compiler=no
3230fi
3231rm -f conftest.$ac_objext conftest.$ac_ext
3232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3233echo "${ECHO_T}$ac_header_compiler" >&6
3234
3235# Is the header present?
3236echo "$as_me:$LINENO: checking $ac_header presence" >&5
3237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3238cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245#include <$ac_header>
3246_ACEOF
3247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } >/dev/null; then
3255  if test -s conftest.err; then
3256    ac_cpp_err=$ac_c_preproc_warn_flag
3257  else
3258    ac_cpp_err=
3259  fi
3260else
3261  ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
3264  ac_header_preproc=yes
3265else
3266  echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269  ac_header_preproc=no
3270fi
3271rm -f conftest.err conftest.$ac_ext
3272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3273echo "${ECHO_T}$ac_header_preproc" >&6
3274
3275# So?  What about this header?
3276case $ac_header_compiler:$ac_header_preproc in
3277  yes:no )
3278    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3280    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3282    (
3283      cat <<\_ASBOX
3284## ------------------------------------ ##
3285## Report this to bug-autoconf@gnu.org. ##
3286## ------------------------------------ ##
3287_ASBOX
3288    ) |
3289      sed "s/^/$as_me: WARNING:     /" >&2
3290    ;;
3291  no:yes )
3292    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3294    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3296    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3298    (
3299      cat <<\_ASBOX
3300## ------------------------------------ ##
3301## Report this to bug-autoconf@gnu.org. ##
3302## ------------------------------------ ##
3303_ASBOX
3304    ) |
3305      sed "s/^/$as_me: WARNING:     /" >&2
3306    ;;
3307esac
3308echo "$as_me:$LINENO: checking for $ac_header" >&5
3309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3310if eval "test \"\${$as_ac_Header+set}\" = set"; then
3311  echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313  eval "$as_ac_Header=$ac_header_preproc"
3314fi
3315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3317
3318fi
3319if test `eval echo '${'$as_ac_Header'}'` = yes; then
3320  cat >>confdefs.h <<_ACEOF
3321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3322_ACEOF
3323
3324else
3325
3326                                { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
3327echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
3328   { (exit 1); exit 1; }; }
3329fi
3330
3331done
3332
3333
3334cat >>confdefs.h <<\_ACEOF
3335#define HAVE_LIBCRYPTO
3336_ACEOF
3337
3338                        MD5_LIBS="-lcrypto"
3339
3340else
3341
3342                        { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
3343echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
3344   { (exit 1); exit 1; }; }
3345
3346fi
3347
3348        fi
3349        if test "x$MD5_LIBS" = "x"; then
3350                { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
3351echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
3352   { (exit 1); exit 1; }; }
3353        fi
3354
3355
3356
3357# set default dports-directory
3358DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"`
3359
3360# Check for paths
3361
3362
3363
3364
3365
3366# Check whether --with-dports-dir or --without-dports-dir was given.
3367if test "${with_dports_dir+set}" = set; then
3368  withval="$with_dports_dir"
3369   dportsdir="$withval"
3370fi;
3371
3372
3373        echo "$as_me:$LINENO: checking for dports tree" >&5
3374echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
3375        if test "x$dportsdir" != "x" ; then
3376          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
3377                :
3378          else
3379                { { echo "$as_me:$LINENO: error: $dportsdir not a valid dports tree" >&5
3380echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
3381   { (exit 1); exit 1; }; }
3382          fi
3383        else
3384                                if test "x$DPORTS_DIR_DEFAULT" != "x" ; then
3385                  if test -d "$DPORTS_DIR_DEFAULT" -a -e "$DPORTS_DIR_DEFAULT/PortIndex" ; then
3386                        dportsdir=$DPORTS_DIR_DEFAULT
3387                  fi
3388                fi
3389        fi
3390
3391        if test "x$dportsdir" != "x" ; then
3392                echo "$as_me:$LINENO: result: $dportsdir" >&5
3393echo "${ECHO_T}$dportsdir" >&6
3394                DPORTSDIR="$dportsdir"
3395
3396        else
3397                { echo "$as_me:$LINENO: WARNING: No dports tree found" >&5
3398echo "$as_me: WARNING: No dports tree found" >&2;}
3399        fi
3400
3401
3402
3403
3404        echo "$as_me:$LINENO: checking for ports config directory" >&5
3405echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
3406
3407        if test "$prefix" != "NONE" ; then
3408                                portconfigdir='${sysconfdir}/ports'
3409        else
3410                                portconfigdir='/etc/ports'
3411        fi
3412
3413
3414        echo "$as_me:$LINENO: result: $portconfigdir" >&5
3415echo "${ECHO_T}$portconfigdir" >&6
3416        PORTCONFIGDIR="$portconfigdir"
3417
3418
3419
3420
3421# Check for install ownership
3422
3423
3424
3425
3426# Check whether --with-install-user or --without-install-user was given.
3427if test "${with_install_user+set}" = set; then
3428  withval="$with_install_user"
3429   DSTUSR=$withval
3430fi;
3431
3432        echo "$as_me:$LINENO: checking for install user" >&5
3433echo $ECHO_N "checking for install user... $ECHO_C" >&6
3434        if test "x$DSTUSR" = "x" ; then
3435           DSTUSR=root
3436        fi
3437
3438        echo "$as_me:$LINENO: result: $DSTUSR" >&5
3439echo "${ECHO_T}$DSTUSR" >&6
3440
3441
3442
3443
3444
3445
3446# Check whether --with-install-group or --without-install-group was given.
3447if test "${with_install_group+set}" = set; then
3448  withval="$with_install_group"
3449   DSTGRP=$withval
3450fi;
3451
3452        echo "$as_me:$LINENO: checking for install group" >&5
3453echo $ECHO_N "checking for install group... $ECHO_C" >&6
3454        if test "x$DSTGRP" = "x" ; then
3455
3456           case $host_os in
3457           darwin*)
3458                DSTGRP="admin"
3459                ;;
3460           *)
3461                DSTGRP="wheel"
3462                ;;
3463           esac
3464        fi
3465
3466        echo "$as_me:$LINENO: result: $DSTGRP" >&5
3467echo "${ECHO_T}$DSTGRP" >&6
3468
3469
3470
3471# Check for standard header files.
3472echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3473echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3474if test "${ac_cv_header_stdc+set}" = set; then
3475  echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477  cat >conftest.$ac_ext <<_ACEOF
3478#line $LINENO "configure"
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484#include <stdlib.h>
3485#include <stdarg.h>
3486#include <string.h>
3487#include <float.h>
3488
3489int
3490main ()
3491{
3492
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497rm -f conftest.$ac_objext
3498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499  (eval $ac_compile) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } &&
3503         { ac_try='test -s conftest.$ac_objext'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; }; then
3509  ac_cv_header_stdc=yes
3510else
3511  echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514ac_cv_header_stdc=no
3515fi
3516rm -f conftest.$ac_objext conftest.$ac_ext
3517
3518if test $ac_cv_header_stdc = yes; then
3519  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3520  cat >conftest.$ac_ext <<_ACEOF
3521#line $LINENO "configure"
3522/* confdefs.h.  */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h.  */
3527#include <string.h>
3528
3529_ACEOF
3530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531  $EGREP "memchr" >/dev/null 2>&1; then
3532  :
3533else
3534  ac_cv_header_stdc=no
3535fi
3536rm -f conftest*
3537
3538fi
3539
3540if test $ac_cv_header_stdc = yes; then
3541  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3542  cat >conftest.$ac_ext <<_ACEOF
3543#line $LINENO "configure"
3544/* confdefs.h.  */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h.  */
3549#include <stdlib.h>
3550
3551_ACEOF
3552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553  $EGREP "free" >/dev/null 2>&1; then
3554  :
3555else
3556  ac_cv_header_stdc=no
3557fi
3558rm -f conftest*
3559
3560fi
3561
3562if test $ac_cv_header_stdc = yes; then
3563  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3564  if test "$cross_compiling" = yes; then
3565  :
3566else
3567  cat >conftest.$ac_ext <<_ACEOF
3568#line $LINENO "configure"
3569/* confdefs.h.  */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h.  */
3574#include <ctype.h>
3575#if ((' ' & 0x0FF) == 0x020)
3576# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3577# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3578#else
3579# define ISLOWER(c) \
3580                   (('a' <= (c) && (c) <= 'i') \
3581                     || ('j' <= (c) && (c) <= 'r') \
3582                     || ('s' <= (c) && (c) <= 'z'))
3583# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3584#endif
3585
3586#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3587int
3588main ()
3589{
3590  int i;
3591  for (i = 0; i < 256; i++)
3592    if (XOR (islower (i), ISLOWER (i))
3593        || toupper (i) != TOUPPER (i))
3594      exit(2);
3595  exit (0);
3596}
3597_ACEOF
3598rm -f conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600  (eval $ac_link) 2>&5
3601  ac_status=$?
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; }; then
3609  :
3610else
3611  echo "$as_me: program exited with status $ac_status" >&5
3612echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615( exit $ac_status )
3616ac_cv_header_stdc=no
3617fi
3618rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3619fi
3620fi
3621fi
3622echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3623echo "${ECHO_T}$ac_cv_header_stdc" >&6
3624if test $ac_cv_header_stdc = yes; then
3625
3626cat >>confdefs.h <<\_ACEOF
3627#define STDC_HEADERS 1
3628_ACEOF
3629
3630fi
3631
3632
3633
3634
3635
3636
3637ac_header_dirent=no
3638for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3639  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3640echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3641echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3642if eval "test \"\${$as_ac_Header+set}\" = set"; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645  cat >conftest.$ac_ext <<_ACEOF
3646#line $LINENO "configure"
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#include <sys/types.h>
3653#include <$ac_hdr>
3654
3655int
3656main ()
3657{
3658if ((DIR *) 0)
3659return 0;
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext
3665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666  (eval $ac_compile) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); } &&
3670         { ac_try='test -s conftest.$ac_objext'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; }; then
3676  eval "$as_ac_Header=yes"
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681eval "$as_ac_Header=no"
3682fi
3683rm -f conftest.$ac_objext conftest.$ac_ext
3684fi
3685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3687if test `eval echo '${'$as_ac_Header'}'` = yes; then
3688  cat >>confdefs.h <<_ACEOF
3689#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3690_ACEOF
3691
3692ac_header_dirent=$ac_hdr; break
3693fi
3694
3695done
3696# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3697if test $ac_header_dirent = dirent.h; then
3698  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3699echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3700if test "${ac_cv_search_opendir+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  ac_func_search_save_LIBS=$LIBS
3704ac_cv_search_opendir=no
3705cat >conftest.$ac_ext <<_ACEOF
3706#line $LINENO "configure"
3707/* confdefs.h.  */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h.  */
3712
3713/* Override any gcc2 internal prototype to avoid an error.  */
3714#ifdef __cplusplus
3715extern "C"
3716#endif
3717/* We use char because int might match the return type of a gcc2
3718   builtin and then its argument prototype would still apply.  */
3719char opendir ();
3720int
3721main ()
3722{
3723opendir ();
3724  ;
3725  return 0;
3726}
3727_ACEOF
3728rm -f conftest.$ac_objext conftest$ac_exeext
3729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730  (eval $ac_link) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); } &&
3734         { ac_try='test -s conftest$ac_exeext'
3735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736  (eval $ac_try) 2>&5
3737  ac_status=$?
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); }; }; then
3740  ac_cv_search_opendir="none required"
3741else
3742  echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745fi
3746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747if test "$ac_cv_search_opendir" = no; then
3748  for ac_lib in dir; do
3749    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3750    cat >conftest.$ac_ext <<_ACEOF
3751#line $LINENO "configure"
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757
3758/* Override any gcc2 internal prototype to avoid an error.  */
3759#ifdef __cplusplus
3760extern "C"
3761#endif
3762/* We use char because int might match the return type of a gcc2
3763   builtin and then its argument prototype would still apply.  */
3764char opendir ();
3765int
3766main ()
3767{
3768opendir ();
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773rm -f conftest.$ac_objext conftest$ac_exeext
3774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775  (eval $ac_link) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  ac_cv_search_opendir="-l$ac_lib"
3786break
3787else
3788  echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791fi
3792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3793  done
3794fi
3795LIBS=$ac_func_search_save_LIBS
3796fi
3797echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3798echo "${ECHO_T}$ac_cv_search_opendir" >&6
3799if test "$ac_cv_search_opendir" != no; then
3800  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3801
3802fi
3803
3804else
3805  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3806echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3807if test "${ac_cv_search_opendir+set}" = set; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  ac_func_search_save_LIBS=$LIBS
3811ac_cv_search_opendir=no
3812cat >conftest.$ac_ext <<_ACEOF
3813#line $LINENO "configure"
3814/* confdefs.h.  */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h.  */
3819
3820/* Override any gcc2 internal prototype to avoid an error.  */
3821#ifdef __cplusplus
3822extern "C"
3823#endif
3824/* We use char because int might match the return type of a gcc2
3825   builtin and then its argument prototype would still apply.  */
3826char opendir ();
3827int
3828main ()
3829{
3830opendir ();
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835rm -f conftest.$ac_objext conftest$ac_exeext
3836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837  (eval $ac_link) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); } &&
3841         { ac_try='test -s conftest$ac_exeext'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; }; then
3847  ac_cv_search_opendir="none required"
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852fi
3853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3854if test "$ac_cv_search_opendir" = no; then
3855  for ac_lib in x; do
3856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3857    cat >conftest.$ac_ext <<_ACEOF
3858#line $LINENO "configure"
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864
3865/* Override any gcc2 internal prototype to avoid an error.  */
3866#ifdef __cplusplus
3867extern "C"
3868#endif
3869/* We use char because int might match the return type of a gcc2
3870   builtin and then its argument prototype would still apply.  */
3871char opendir ();
3872int
3873main ()
3874{
3875opendir ();
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext conftest$ac_exeext
3881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882  (eval $ac_link) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); } &&
3886         { ac_try='test -s conftest$ac_exeext'
3887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888  (eval $ac_try) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; }; then
3892  ac_cv_search_opendir="-l$ac_lib"
3893break
3894else
3895  echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898fi
3899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3900  done
3901fi
3902LIBS=$ac_func_search_save_LIBS
3903fi
3904echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3905echo "${ECHO_T}$ac_cv_search_opendir" >&6
3906if test "$ac_cv_search_opendir" != no; then
3907  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3908
3909fi
3910
3911fi
3912
3913echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3914echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3915if test "${ac_cv_header_sys_wait_h+set}" = set; then
3916  echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918  cat >conftest.$ac_ext <<_ACEOF
3919#line $LINENO "configure"
3920/* confdefs.h.  */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h.  */
3925#include <sys/types.h>
3926#include <sys/wait.h>
3927#ifndef WEXITSTATUS
3928# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3929#endif
3930#ifndef WIFEXITED
3931# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3932#endif
3933
3934int
3935main ()
3936{
3937  int s;
3938  wait (&s);
3939  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944rm -f conftest.$ac_objext
3945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946  (eval $ac_compile) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); } &&
3950         { ac_try='test -s conftest.$ac_objext'
3951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952  (eval $ac_try) 2>&5
3953  ac_status=$?
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); }; }; then
3956  ac_cv_header_sys_wait_h=yes
3957else
3958  echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961ac_cv_header_sys_wait_h=no
3962fi
3963rm -f conftest.$ac_objext conftest.$ac_ext
3964fi
3965echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3966echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3967if test $ac_cv_header_sys_wait_h = yes; then
3968
3969cat >>confdefs.h <<\_ACEOF
3970#define HAVE_SYS_WAIT_H 1
3971_ACEOF
3972
3973fi
3974
3975echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3976echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3977if test "${ac_cv_header_stat_broken+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  cat >conftest.$ac_ext <<_ACEOF
3981#line $LINENO "configure"
3982/* confdefs.h.  */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
3986/* end confdefs.h.  */
3987#include <sys/types.h>
3988#include <sys/stat.h>
3989
3990#if defined(S_ISBLK) && defined(S_IFDIR)
3991# if S_ISBLK (S_IFDIR)
3992You lose.
3993# endif
3994#endif
3995
3996#if defined(S_ISBLK) && defined(S_IFCHR)
3997# if S_ISBLK (S_IFCHR)
3998You lose.
3999# endif
4000#endif
4001
4002#if defined(S_ISLNK) && defined(S_IFREG)
4003# if S_ISLNK (S_IFREG)
4004You lose.
4005# endif
4006#endif
4007
4008#if defined(S_ISSOCK) && defined(S_IFREG)
4009# if S_ISSOCK (S_IFREG)
4010You lose.
4011# endif
4012#endif
4013
4014_ACEOF
4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016  $EGREP "You lose" >/dev/null 2>&1; then
4017  ac_cv_header_stat_broken=yes
4018else
4019  ac_cv_header_stat_broken=no
4020fi
4021rm -f conftest*
4022
4023fi
4024echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4025echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4026if test $ac_cv_header_stat_broken = yes; then
4027
4028cat >>confdefs.h <<\_ACEOF
4029#define STAT_MACROS_BROKEN 1
4030_ACEOF
4031
4032fi
4033
4034
4035
4036
4037
4038
4039
4040for ac_header in limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h
4041do
4042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043if eval "test \"\${$as_ac_Header+set}\" = set"; then
4044  echo "$as_me:$LINENO: checking for $ac_header" >&5
4045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4046if eval "test \"\${$as_ac_Header+set}\" = set"; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048fi
4049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4051else
4052  # Is the header compilable?
4053echo "$as_me:$LINENO: checking $ac_header usability" >&5
4054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4055cat >conftest.$ac_ext <<_ACEOF
4056#line $LINENO "configure"
4057/* confdefs.h.  */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h.  */
4062$ac_includes_default
4063#include <$ac_header>
4064_ACEOF
4065rm -f conftest.$ac_objext
4066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067  (eval $ac_compile) 2>&5
4068  ac_status=$?
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } &&
4071         { ac_try='test -s conftest.$ac_objext'
4072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073  (eval $ac_try) 2>&5
4074  ac_status=$?
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); }; }; then
4077  ac_header_compiler=yes
4078else
4079  echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082ac_header_compiler=no
4083fi
4084rm -f conftest.$ac_objext conftest.$ac_ext
4085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4086echo "${ECHO_T}$ac_header_compiler" >&6
4087
4088# Is the header present?
4089echo "$as_me:$LINENO: checking $ac_header presence" >&5
4090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4091cat >conftest.$ac_ext <<_ACEOF
4092#line $LINENO "configure"
4093/* confdefs.h.  */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h.  */
4098#include <$ac_header>
4099_ACEOF
4100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4102  ac_status=$?
4103  grep -v '^ *+' conftest.er1 >conftest.err
4104  rm -f conftest.er1
4105  cat conftest.err >&5
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); } >/dev/null; then
4108  if test -s conftest.err; then
4109    ac_cpp_err=$ac_c_preproc_warn_flag
4110  else
4111    ac_cpp_err=
4112  fi
4113else
4114  ac_cpp_err=yes
4115fi
4116if test -z "$ac_cpp_err"; then
4117  ac_header_preproc=yes
4118else
4119  echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122  ac_header_preproc=no
4123fi
4124rm -f conftest.err conftest.$ac_ext
4125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4126echo "${ECHO_T}$ac_header_preproc" >&6
4127
4128# So?  What about this header?
4129case $ac_header_compiler:$ac_header_preproc in
4130  yes:no )
4131    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4135    (
4136      cat <<\_ASBOX
4137## ------------------------------------ ##
4138## Report this to bug-autoconf@gnu.org. ##
4139## ------------------------------------ ##
4140_ASBOX
4141    ) |
4142      sed "s/^/$as_me: WARNING:     /" >&2
4143    ;;
4144  no:yes )
4145    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4147    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4149    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4151    (
4152      cat <<\_ASBOX
4153## ------------------------------------ ##
4154## Report this to bug-autoconf@gnu.org. ##
4155## ------------------------------------ ##
4156_ASBOX
4157    ) |
4158      sed "s/^/$as_me: WARNING:     /" >&2
4159    ;;
4160esac
4161echo "$as_me:$LINENO: checking for $ac_header" >&5
4162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4163if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166  eval "$as_ac_Header=$ac_header_preproc"
4167fi
4168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4170
4171fi
4172if test `eval echo '${'$as_ac_Header'}'` = yes; then
4173  cat >>confdefs.h <<_ACEOF
4174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175_ACEOF
4176
4177fi
4178
4179done
4180
4181
4182INCLUDES="-I.. -I. $INCLUDES"
4183
4184# Checks for library functions.
4185echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4186echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4187if test "${ac_cv_func_closedir_void+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  if test "$cross_compiling" = yes; then
4191  ac_cv_func_closedir_void=yes
4192else
4193  cat >conftest.$ac_ext <<_ACEOF
4194#line $LINENO "configure"
4195/* confdefs.h.  */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h.  */
4200$ac_includes_default
4201#include <$ac_header_dirent>
4202#ifndef __cplusplus
4203int closedir ();
4204#endif
4205
4206int
4207main ()
4208{
4209exit (closedir (opendir (".")) != 0);
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214rm -f conftest$ac_exeext
4215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216  (eval $ac_link) 2>&5
4217  ac_status=$?
4218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221  (eval $ac_try) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }; }; then
4225  ac_cv_func_closedir_void=no
4226else
4227  echo "$as_me: program exited with status $ac_status" >&5
4228echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231( exit $ac_status )
4232ac_cv_func_closedir_void=yes
4233fi
4234rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235fi
4236fi
4237echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4238echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
4239if test $ac_cv_func_closedir_void = yes; then
4240
4241cat >>confdefs.h <<\_ACEOF
4242#define CLOSEDIR_VOID 1
4243_ACEOF
4244
4245fi
4246
4247echo "$as_me:$LINENO: checking for pid_t" >&5
4248echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4249if test "${ac_cv_type_pid_t+set}" = set; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252  cat >conftest.$ac_ext <<_ACEOF
4253#line $LINENO "configure"
4254/* confdefs.h.  */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h.  */
4259$ac_includes_default
4260int
4261main ()
4262{
4263if ((pid_t *) 0)
4264  return 0;
4265if (sizeof (pid_t))
4266  return 0;
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext
4272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273  (eval $ac_compile) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } &&
4277         { ac_try='test -s conftest.$ac_objext'
4278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279  (eval $ac_try) 2>&5
4280  ac_status=$?
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); }; }; then
4283  ac_cv_type_pid_t=yes
4284else
4285  echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288ac_cv_type_pid_t=no
4289fi
4290rm -f conftest.$ac_objext conftest.$ac_ext
4291fi
4292echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4293echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4294if test $ac_cv_type_pid_t = yes; then
4295  :
4296else
4297
4298cat >>confdefs.h <<_ACEOF
4299#define pid_t int
4300_ACEOF
4301
4302fi
4303
4304
4305
4306for ac_header in unistd.h vfork.h
4307do
4308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4309if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310  echo "$as_me:$LINENO: checking for $ac_header" >&5
4311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4312if eval "test \"\${$as_ac_Header+set}\" = set"; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314fi
4315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317else
4318  # Is the header compilable?
4319echo "$as_me:$LINENO: checking $ac_header usability" >&5
4320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4321cat >conftest.$ac_ext <<_ACEOF
4322#line $LINENO "configure"
4323/* confdefs.h.  */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h.  */
4328$ac_includes_default
4329#include <$ac_header>
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333  (eval $ac_compile) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); } &&
4337         { ac_try='test -s conftest.$ac_objext'
4338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339  (eval $ac_try) 2>&5
4340  ac_status=$?
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); }; }; then
4343  ac_header_compiler=yes
4344else
4345  echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348ac_header_compiler=no
4349fi
4350rm -f conftest.$ac_objext conftest.$ac_ext
4351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352echo "${ECHO_T}$ac_header_compiler" >&6
4353
4354# Is the header present?
4355echo "$as_me:$LINENO: checking $ac_header presence" >&5
4356echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4357cat >conftest.$ac_ext <<_ACEOF
4358#line $LINENO "configure"
4359/* confdefs.h.  */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h.  */
4364#include <$ac_header>
4365_ACEOF
4366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368  ac_status=$?
4369  grep -v '^ *+' conftest.er1 >conftest.err
4370  rm -f conftest.er1
4371  cat conftest.err >&5
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); } >/dev/null; then
4374  if test -s conftest.err; then
4375    ac_cpp_err=$ac_c_preproc_warn_flag
4376  else
4377    ac_cpp_err=
4378  fi
4379else
4380  ac_cpp_err=yes
4381fi
4382if test -z "$ac_cpp_err"; then
4383  ac_header_preproc=yes
4384else
4385  echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388  ac_header_preproc=no
4389fi
4390rm -f conftest.err conftest.$ac_ext
4391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392echo "${ECHO_T}$ac_header_preproc" >&6
4393
4394# So?  What about this header?
4395case $ac_header_compiler:$ac_header_preproc in
4396  yes:no )
4397    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4401    (
4402      cat <<\_ASBOX
4403## ------------------------------------ ##
4404## Report this to bug-autoconf@gnu.org. ##
4405## ------------------------------------ ##
4406_ASBOX
4407    ) |
4408      sed "s/^/$as_me: WARNING:     /" >&2
4409    ;;
4410  no:yes )
4411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4413    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4415    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4417    (
4418      cat <<\_ASBOX
4419## ------------------------------------ ##
4420## Report this to bug-autoconf@gnu.org. ##
4421## ------------------------------------ ##
4422_ASBOX
4423    ) |
4424      sed "s/^/$as_me: WARNING:     /" >&2
4425    ;;
4426esac
4427echo "$as_me:$LINENO: checking for $ac_header" >&5
4428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  eval "$as_ac_Header=$ac_header_preproc"
4433fi
4434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436
4437fi
4438if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439  cat >>confdefs.h <<_ACEOF
4440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441_ACEOF
4442
4443fi
4444
4445done
4446
4447
4448
4449for ac_func in fork vfork
4450do
4451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4452echo "$as_me:$LINENO: checking for $ac_func" >&5
4453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4454if eval "test \"\${$as_ac_var+set}\" = set"; then
4455  echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457  cat >conftest.$ac_ext <<_ACEOF
4458#line $LINENO "configure"
4459/* confdefs.h.  */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h.  */
4464/* System header to define __stub macros and hopefully few prototypes,
4465    which can conflict with char $ac_func (); below.
4466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467    <limits.h> exists even on freestanding compilers.  */
4468#ifdef __STDC__
4469# include <limits.h>
4470#else
4471# include <assert.h>
4472#endif
4473/* Override any gcc2 internal prototype to avoid an error.  */
4474#ifdef __cplusplus
4475extern "C"
4476{
4477#endif
4478/* We use char because int might match the return type of a gcc2
4479   builtin and then its argument prototype would still apply.  */
4480char $ac_func ();
4481/* The GNU C library defines this for functions which it implements
4482    to always fail with ENOSYS.  Some functions are actually named
4483    something starting with __ and the normal name is an alias.  */
4484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4485choke me
4486#else
4487char (*f) () = $ac_func;
4488#endif
4489#ifdef __cplusplus
4490}
4491#endif
4492
4493int
4494main ()
4495{
4496return f != $ac_func;
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501rm -f conftest.$ac_objext conftest$ac_exeext
4502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503  (eval $ac_link) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } &&
4507         { ac_try='test -s conftest$ac_exeext'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; }; then
4513  eval "$as_ac_var=yes"
4514else
4515  echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518eval "$as_ac_var=no"
4519fi
4520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4521fi
4522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4524if test `eval echo '${'$as_ac_var'}'` = yes; then
4525  cat >>confdefs.h <<_ACEOF
4526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4527_ACEOF
4528
4529fi
4530done
4531
4532if test "x$ac_cv_func_fork" = xyes; then
4533  echo "$as_me:$LINENO: checking for working fork" >&5
4534echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4535if test "${ac_cv_func_fork_works+set}" = set; then
4536  echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538  if test "$cross_compiling" = yes; then
4539  ac_cv_func_fork_works=cross
4540else
4541  cat >conftest.$ac_ext <<_ACEOF
4542/* By Ruediger Kuhlmann. */
4543      #include <sys/types.h>
4544      #if HAVE_UNISTD_H
4545      # include <unistd.h>
4546      #endif
4547      /* Some systems only have a dummy stub for fork() */
4548      int main ()
4549      {
4550        if (fork() < 0)
4551          exit (1);
4552        exit (0);
4553      }
4554_ACEOF
4555rm -f conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557  (eval $ac_link) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562  (eval $ac_try) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; }; then
4566  ac_cv_func_fork_works=yes
4567else
4568  echo "$as_me: program exited with status $ac_status" >&5
4569echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572( exit $ac_status )
4573ac_cv_func_fork_works=no
4574fi
4575rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576fi
4577fi
4578echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4579echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4580
4581else
4582  ac_cv_func_fork_works=$ac_cv_func_fork
4583fi
4584if test "x$ac_cv_func_fork_works" = xcross; then
4585  case $host in
4586    *-*-amigaos* | *-*-msdosdjgpp*)
4587      # Override, as these systems have only a dummy fork() stub
4588      ac_cv_func_fork_works=no
4589      ;;
4590    *)
4591      ac_cv_func_fork_works=yes
4592      ;;
4593  esac
4594  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4595echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4596fi
4597ac_cv_func_vfork_works=$ac_cv_func_vfork
4598if test "x$ac_cv_func_vfork" = xyes; then
4599  echo "$as_me:$LINENO: checking for working vfork" >&5
4600echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4601if test "${ac_cv_func_vfork_works+set}" = set; then
4602  echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604  if test "$cross_compiling" = yes; then
4605  ac_cv_func_vfork_works=cross
4606else
4607  cat >conftest.$ac_ext <<_ACEOF
4608#line $LINENO "configure"
4609/* confdefs.h.  */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h.  */
4614/* Thanks to Paul Eggert for this test.  */
4615#include <stdio.h>
4616#include <stdlib.h>
4617#include <sys/types.h>
4618#include <sys/stat.h>
4619#include <sys/wait.h>
4620#if HAVE_UNISTD_H
4621# include <unistd.h>
4622#endif
4623#if HAVE_VFORK_H
4624# include <vfork.h>
4625#endif
4626/* On some sparc systems, changes by the child to local and incoming
4627   argument registers are propagated back to the parent.  The compiler
4628   is told about this with #include <vfork.h>, but some compilers
4629   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4630   static variable whose address is put into a register that is
4631   clobbered by the vfork.  */
4632static void
4633#ifdef __cplusplus
4634sparc_address_test (int arg)
4635# else
4636sparc_address_test (arg) int arg;
4637#endif
4638{
4639  static pid_t child;
4640  if (!child) {
4641    child = vfork ();
4642    if (child < 0) {
4643      perror ("vfork");
4644      _exit(2);
4645    }
4646    if (!child) {
4647      arg = getpid();
4648      write(-1, "", 0);
4649      _exit (arg);
4650    }
4651  }
4652}
4653
4654int
4655main ()
4656{
4657  pid_t parent = getpid ();
4658  pid_t child;
4659
4660  sparc_address_test (0);
4661
4662  child = vfork ();
4663
4664  if (child == 0) {
4665    /* Here is another test for sparc vfork register problems.  This
4666       test uses lots of local variables, at least as many local
4667       variables as main has allocated so far including compiler
4668       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
4669       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
4670       reuse the register of parent for one of the local variables,
4671       since it will think that parent can't possibly be used any more
4672       in this routine.  Assigning to the local variable will thus
4673       munge parent in the parent process.  */
4674    pid_t
4675      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4676      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4677    /* Convince the compiler that p..p7 are live; otherwise, it might
4678       use the same hardware register for all 8 local variables.  */
4679    if (p != p1 || p != p2 || p != p3 || p != p4
4680        || p != p5 || p != p6 || p != p7)
4681      _exit(1);
4682
4683    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4684       from child file descriptors.  If the child closes a descriptor
4685       before it execs or exits, this munges the parent's descriptor
4686       as well.  Test for this by closing stdout in the child.  */
4687    _exit(close(fileno(stdout)) != 0);
4688  } else {
4689    int status;
4690    struct stat st;
4691
4692    while (wait(&status) != child)
4693      ;
4694    exit(
4695         /* Was there some problem with vforking?  */
4696         child < 0
4697
4698         /* Did the child fail?  (This shouldn't happen.)  */
4699         || status
4700
4701         /* Did the vfork/compiler bug occur?  */
4702         || parent != getpid()
4703
4704         /* Did the file descriptor bug occur?  */
4705         || fstat(fileno(stdout), &st) != 0
4706         );
4707  }
4708}
4709_ACEOF
4710rm -f conftest$ac_exeext
4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712  (eval $ac_link) 2>&5
4713  ac_status=$?
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717  (eval $ac_try) 2>&5
4718  ac_status=$?
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); }; }; then
4721  ac_cv_func_vfork_works=yes
4722else
4723  echo "$as_me: program exited with status $ac_status" >&5
4724echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727( exit $ac_status )
4728ac_cv_func_vfork_works=no
4729fi
4730rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4731fi
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4734echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4735
4736fi;
4737if test "x$ac_cv_func_fork_works" = xcross; then
4738  ac_cv_func_vfork_works=ac_cv_func_vfork
4739  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4740echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4741fi
4742
4743if test "x$ac_cv_func_vfork_works" = xyes; then
4744
4745cat >>confdefs.h <<\_ACEOF
4746#define HAVE_WORKING_VFORK 1
4747_ACEOF
4748
4749else
4750
4751cat >>confdefs.h <<\_ACEOF
4752#define vfork fork
4753_ACEOF
4754
4755fi
4756if test "x$ac_cv_func_fork_works" = xyes; then
4757
4758cat >>confdefs.h <<\_ACEOF
4759#define HAVE_WORKING_FORK 1
4760_ACEOF
4761
4762fi
4763
4764echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
4765echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
4766if test "${ac_cv_have_decl_strerror_r+set}" = set; then
4767  echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769  cat >conftest.$ac_ext <<_ACEOF
4770#line $LINENO "configure"
4771/* confdefs.h.  */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h.  */
4776$ac_includes_default
4777int
4778main ()
4779{
4780#ifndef strerror_r
4781  char *p = (char *) strerror_r;
4782#endif
4783
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788rm -f conftest.$ac_objext
4789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790  (eval $ac_compile) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); } &&
4794         { ac_try='test -s conftest.$ac_objext'
4795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796  (eval $ac_try) 2>&5
4797  ac_status=$?
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); }; }; then
4800  ac_cv_have_decl_strerror_r=yes
4801else
4802  echo "$as_me: failed program was:" >&5
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805ac_cv_have_decl_strerror_r=no
4806fi
4807rm -f conftest.$ac_objext conftest.$ac_ext
4808fi
4809echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
4810echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
4811if test $ac_cv_have_decl_strerror_r = yes; then
4812
4813cat >>confdefs.h <<_ACEOF
4814#define HAVE_DECL_STRERROR_R 1
4815_ACEOF
4816
4817
4818else
4819  cat >>confdefs.h <<_ACEOF
4820#define HAVE_DECL_STRERROR_R 0
4821_ACEOF
4822
4823
4824fi
4825
4826
4827
4828for ac_func in strerror_r
4829do
4830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4831echo "$as_me:$LINENO: checking for $ac_func" >&5
4832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4833if eval "test \"\${$as_ac_var+set}\" = set"; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  cat >conftest.$ac_ext <<_ACEOF
4837#line $LINENO "configure"
4838/* confdefs.h.  */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h.  */
4843/* System header to define __stub macros and hopefully few prototypes,
4844    which can conflict with char $ac_func (); below.
4845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846    <limits.h> exists even on freestanding compilers.  */
4847#ifdef __STDC__
4848# include <limits.h>
4849#else
4850# include <assert.h>
4851#endif
4852/* Override any gcc2 internal prototype to avoid an error.  */
4853#ifdef __cplusplus
4854extern "C"
4855{
4856#endif
4857/* We use char because int might match the return type of a gcc2
4858   builtin and then its argument prototype would still apply.  */
4859char $ac_func ();
4860/* The GNU C library defines this for functions which it implements
4861    to always fail with ENOSYS.  Some functions are actually named
4862    something starting with __ and the normal name is an alias.  */
4863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864choke me
4865#else
4866char (*f) () = $ac_func;
4867#endif
4868#ifdef __cplusplus
4869}
4870#endif
4871
4872int
4873main ()
4874{
4875return f != $ac_func;
4876  ;
4877  return 0;
4878}
4879_ACEOF
4880rm -f conftest.$ac_objext conftest$ac_exeext
4881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882  (eval $ac_link) 2>&5
4883  ac_status=$?
4884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885  (exit $ac_status); } &&
4886         { ac_try='test -s conftest$ac_exeext'
4887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888  (eval $ac_try) 2>&5
4889  ac_status=$?
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); }; }; then
4892  eval "$as_ac_var=yes"
4893else
4894  echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897eval "$as_ac_var=no"
4898fi
4899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900fi
4901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4903if test `eval echo '${'$as_ac_var'}'` = yes; then
4904  cat >>confdefs.h <<_ACEOF
4905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4906_ACEOF
4907
4908fi
4909done
4910
4911echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
4912echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
4913if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916
4917    ac_cv_func_strerror_r_char_p=no
4918    if test $ac_cv_have_decl_strerror_r = yes; then
4919      cat >conftest.$ac_ext <<_ACEOF
4920#line $LINENO "configure"
4921/* confdefs.h.  */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h.  */
4926$ac_includes_default
4927int
4928main ()
4929{
4930
4931          char buf[100];
4932          char x = *strerror_r (0, buf, sizeof buf);
4933          char *p = strerror_r (0, buf, sizeof buf);
4934
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext
4940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941  (eval $ac_compile) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); } &&
4945         { ac_try='test -s conftest.$ac_objext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  ac_cv_func_strerror_r_char_p=yes
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956fi
4957rm -f conftest.$ac_objext conftest.$ac_ext
4958    else
4959      # strerror_r is not declared.  Choose between
4960      # systems that have relatively inaccessible declarations for the
4961      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
4962      # former has a strerror_r that returns char*, while the latter
4963      # has a strerror_r that returns `int'.
4964      # This test should segfault on the DEC system.
4965      if test "$cross_compiling" = yes; then
4966  :
4967else
4968  cat >conftest.$ac_ext <<_ACEOF
4969#line $LINENO "configure"
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975$ac_includes_default
4976        extern char *strerror_r ();
4977int
4978main ()
4979{
4980char buf[100];
4981          char x = *strerror_r (0, buf, sizeof buf);
4982          exit (!isalpha (x));
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987rm -f conftest$ac_exeext
4988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4989  (eval $ac_link) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994  (eval $ac_try) 2>&5
4995  ac_status=$?
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); }; }; then
4998  ac_cv_func_strerror_r_char_p=yes
4999else
5000  echo "$as_me: program exited with status $ac_status" >&5
5001echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004fi
5005rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5006fi
5007    fi
5008
5009fi
5010echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5011echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
5012if test $ac_cv_func_strerror_r_char_p = yes; then
5013
5014cat >>confdefs.h <<\_ACEOF
5015#define STRERROR_R_CHAR_P 1
5016_ACEOF
5017
5018fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock
5031do
5032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5033echo "$as_me:$LINENO: checking for $ac_func" >&5
5034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5035if eval "test \"\${$as_ac_var+set}\" = set"; then
5036  echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038  cat >conftest.$ac_ext <<_ACEOF
5039#line $LINENO "configure"
5040/* confdefs.h.  */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h.  */
5045/* System header to define __stub macros and hopefully few prototypes,
5046    which can conflict with char $ac_func (); below.
5047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048    <limits.h> exists even on freestanding compilers.  */
5049#ifdef __STDC__
5050# include <limits.h>
5051#else
5052# include <assert.h>
5053#endif
5054/* Override any gcc2 internal prototype to avoid an error.  */
5055#ifdef __cplusplus
5056extern "C"
5057{
5058#endif
5059/* We use char because int might match the return type of a gcc2
5060   builtin and then its argument prototype would still apply.  */
5061char $ac_func ();
5062/* The GNU C library defines this for functions which it implements
5063    to always fail with ENOSYS.  Some functions are actually named
5064    something starting with __ and the normal name is an alias.  */
5065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066choke me
5067#else
5068char (*f) () = $ac_func;
5069#endif
5070#ifdef __cplusplus
5071}
5072#endif
5073
5074int
5075main ()
5076{
5077return f != $ac_func;
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082rm -f conftest.$ac_objext conftest$ac_exeext
5083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084  (eval $ac_link) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } &&
5088         { ac_try='test -s conftest$ac_exeext'
5089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090  (eval $ac_try) 2>&5
5091  ac_status=$?
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); }; }; then
5094  eval "$as_ac_var=yes"
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099eval "$as_ac_var=no"
5100fi
5101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5102fi
5103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5105if test `eval echo '${'$as_ac_var'}'` = yes; then
5106  cat >>confdefs.h <<_ACEOF
5107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5108_ACEOF
5109
5110fi
5111done
5112
5113
5114# Load tclConfig.sh
5115
5116    #
5117    # Ok, lets find the tcl configuration
5118    # First, look for one uninstalled.
5119    # the alternative search directory is invoked by --with-tcl
5120    #
5121
5122    if test x"${no_tcl}" = x ; then
5123        # we reset no_tcl in case something fails here
5124        no_tcl=true
5125
5126# Check whether --with-tcl or --without-tcl was given.
5127if test "${with_tcl+set}" = set; then
5128  withval="$with_tcl"
5129  with_tclconfig=${withval}
5130fi;
5131        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
5132echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5133        if test "${ac_cv_c_tclconfig+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136
5137
5138            # First check to see if --with-tcl was specified.
5139            if test x"${with_tclconfig}" != x ; then
5140                if test -f "${with_tclconfig}/tclConfig.sh" ; then
5141                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
5142                else
5143                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
5144echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
5145   { (exit 1); exit 1; }; }
5146                fi
5147            fi
5148
5149            # then check for a private Tcl installation
5150            if test x"${ac_cv_c_tclconfig}" = x ; then
5151                for i in \
5152                        ../tcl \
5153                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
5154                        ../../tcl \
5155                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
5156                        ../../../tcl \
5157                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
5158                    if test -f "$i/unix/tclConfig.sh" ; then
5159                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
5160                        break
5161                    fi
5162                done
5163            fi
5164
5165            # check in a few common install locations
5166            if test x"${ac_cv_c_tclconfig}" = x ; then
5167                for i in `ls -d ${libdir} 2>/dev/null` \
5168                        `ls -d /usr/local/lib 2>/dev/null` \
5169                        `ls -d /usr/contrib/lib 2>/dev/null` \
5170                        `ls -d /usr/lib 2>/dev/null` \
5171                        `ls -d /usr/pkg/lib 2>/dev/null` \
5172                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
5173                        ; do
5174                    if test -f "$i/tclConfig.sh" ; then
5175                        ac_cv_c_tclconfig=`(cd $i; pwd)`
5176                        break
5177                    fi
5178                done
5179            fi
5180
5181            # check in a few other private locations
5182            if test x"${ac_cv_c_tclconfig}" = x ; then
5183                for i in \
5184                        ${srcdir}/../tcl \
5185                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
5186                    if test -f "$i/unix/tclConfig.sh" ; then
5187                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
5188                    break
5189                fi
5190                done
5191            fi
5192
5193fi
5194
5195
5196        if test x"${ac_cv_c_tclconfig}" = x ; then
5197            TCL_BIN_DIR="# no Tcl configs found"
5198            { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
5199echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5200            exit 0
5201        else
5202            no_tcl=
5203            TCL_BIN_DIR=${ac_cv_c_tclconfig}
5204            echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
5205echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
5206        fi
5207    fi
5208
5209
5210    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
5211echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
5212
5213    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
5214        echo "$as_me:$LINENO: result: loading" >&5
5215echo "${ECHO_T}loading" >&6
5216        . $TCL_BIN_DIR/tclConfig.sh
5217    else
5218        echo "$as_me:$LINENO: result: file not found" >&5
5219echo "${ECHO_T}file not found" >&6
5220    fi
5221
5222    #
5223    # If the TCL_BIN_DIR is the build directory (not the install directory),
5224    # then set the common variable name to the value of the build variables.
5225    # For example, the variable TCL_LIB_SPEC will be set to the value
5226    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
5227    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
5228    # installed and uninstalled version of Tcl.
5229    #
5230
5231    if test -f $TCL_BIN_DIR/Makefile ; then
5232        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
5233        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
5234        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
5235    fi
5236
5237    #
5238    # eval is required to do the TCL_DBGX substitution
5239    #
5240
5241    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
5242    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
5243    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
5244
5245    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
5246    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
5247    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262# Check for Tcl public headers
5263CYGPATH=echo
5264
5265    echo "$as_me:$LINENO: checking for Tcl public headers" >&5
5266echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
5267
5268
5269# Check whether --with-tclinclude or --without-tclinclude was given.
5270if test "${with_tclinclude+set}" = set; then
5271  withval="$with_tclinclude"
5272  with_tclinclude=${withval}
5273fi;
5274
5275    if test x"${with_tclinclude}" != x ; then
5276        if test -f "${with_tclinclude}/tcl.h" ; then
5277            ac_cv_c_tclh=${with_tclinclude}
5278        else
5279            { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
5280echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
5281   { (exit 1); exit 1; }; }
5282        fi
5283    else
5284        if test "${ac_cv_c_tclh+set}" = set; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287
5288            # Use the value from --with-tclinclude, if it was given
5289
5290            if test x"${with_tclinclude}" != x ; then
5291                ac_cv_c_tclh=${with_tclinclude}
5292            else
5293                # Check in the includedir, if --prefix was specified
5294
5295                eval "temp_includedir=${includedir}"
5296                for i in \
5297                        `ls -d ${temp_includedir} 2>/dev/null` \
5298                        /usr/local/include /usr/include /usr/local/include/tcl${TCL_VERSION}; do
5299                    if test -f "$i/tcl.h" ; then
5300                        ac_cv_c_tclh=$i
5301                        break
5302                    fi
5303                done
5304            fi
5305
5306fi
5307
5308    fi
5309
5310    # Print a message based on how we determined the include path
5311
5312    if test x"${ac_cv_c_tclh}" = x ; then
5313        { { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
5314echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
5315   { (exit 1); exit 1; }; }
5316    else
5317        echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
5318echo "${ECHO_T}${ac_cv_c_tclh}" >&6
5319    fi
5320
5321    # Convert to a native path and substitute into the output files.
5322
5323    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5324
5325    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5326
5327
5328
5329
5330# Check for tclsh binary
5331
5332
5333
5334        case $host_os in
5335                freebsd*)
5336                        # FreeBSD installs a dummy tclsh (annoying)
5337                        # Look for a real versioned tclsh first
5338                        # Extract the first word of "tclsh${TCL_VERSION} tclsh", so it can be a program name with args.
5339set dummy tclsh${TCL_VERSION} tclsh; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_TCLSH+set}" = set; then
5343  echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345  case $TCLSH in
5346  [\\/]* | ?:[\\/]*)
5347  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5348  ;;
5349  *)
5350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355  for ac_exec_ext in '' $ac_executable_extensions; do
5356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362done
5363
5364  ;;
5365esac
5366fi
5367TCLSH=$ac_cv_path_TCLSH
5368
5369if test -n "$TCLSH"; then
5370  echo "$as_me:$LINENO: result: $TCLSH" >&5
5371echo "${ECHO_T}$TCLSH" >&6
5372else
5373  echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375fi
5376
5377                        ;;
5378                *)
5379                        # Otherwise, look for a non-versioned tclsh
5380                        # Extract the first word of "tclsh tclsh${TCL_VERSION}", so it can be a program name with args.
5381set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
5382echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384if test "${ac_cv_path_TCLSH+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  case $TCLSH in
5388  [\\/]* | ?:[\\/]*)
5389  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5390  ;;
5391  *)
5392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395  IFS=$as_save_IFS
5396  test -z "$as_dir" && as_dir=.
5397  for ac_exec_ext in '' $ac_executable_extensions; do
5398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401    break 2
5402  fi
5403done
5404done
5405
5406  ;;
5407esac
5408fi
5409TCLSH=$ac_cv_path_TCLSH
5410
5411if test -n "$TCLSH"; then
5412  echo "$as_me:$LINENO: result: $TCLSH" >&5
5413echo "${ECHO_T}$TCLSH" >&6
5414else
5415  echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419                        ;;
5420        esac
5421        if test "x$TCLSH" = "x" ; then
5422                { { echo "$as_me:$LINENO: error: Could not find tclsh" >&5
5423echo "$as_me: error: Could not find tclsh" >&2;}
5424   { (exit 1); exit 1; }; }
5425        fi
5426
5427
5428
5429
5430# Check for Tcl package path
5431
5432    echo "$as_me:$LINENO: checking for Tcl package directory" >&5
5433echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
5434
5435
5436# Check whether --with-tclpackage or --without-tclpackage was given.
5437if test "${with_tclpackage+set}" = set; then
5438  withval="$with_tclpackage"
5439  with_tclpackagedir=${withval}
5440fi;
5441
5442    if test x"${with_tclpackagedir}" != x ; then
5443        ac_cv_c_tclpkgd=${with_tclpackagedir}
5444    else
5445        if test "${ac_cv_c_tclpkgd+set}" = set; then
5446  echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448
5449            # Use the value from --with-tclpackagedir, if it was given
5450
5451            if test x"${with_tclpackagedir}" != x ; then
5452                ac_cv_c_tclpkgd=${with_tclpackagedir}
5453            else
5454                # On darwin we can do some intelligent guessing
5455                case $host_os in
5456                    darwin*)
5457                        tcl_autopath=`echo 'puts \$auto_path' | $TCLSH`
5458                        for path in $tcl_autopath; do
5459                            if test "$path" = "/Library/Tcl"; then
5460                                ac_cv_c_tclpkgd="$path"
5461                                break
5462                            fi
5463                            if test "$path" = "/System/Library/Tcl"; then
5464                                if test -d "$path"; then
5465                                    ac_cv_c_tclpkgd="$path"
5466                                    break
5467                                fi
5468                            fi
5469                        done
5470                    ;;
5471                esac
5472                if test x"${ac_cv_c_tclpkgd}" = x ; then
5473                    # Fudge a path from the first entry in the auto_path
5474                    tcl_pkgpath=`echo 'puts [lindex \$auto_path 0]' | $TCLSH`
5475                    if test -d "$tcl_pkgpath"; then
5476                        ac_cv_c_tclpkgd="$tcl_pkgpath"
5477                    fi
5478                    # If the first entry does not exist, do nothing
5479                fi
5480            fi
5481
5482fi
5483
5484    fi
5485
5486    if test x"${ac_cv_c_tclpkgd}" = x ; then
5487        { { echo "$as_me:$LINENO: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&5
5488echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&2;}
5489   { (exit 1); exit 1; }; }
5490    else
5491        echo "$as_me:$LINENO: result: ${ac_cv_c_tclpkgd}" >&5
5492echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
5493    fi
5494
5495    # Convert to a native path and substitute into the output files.
5496
5497    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
5498
5499    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
5500
5501
5502
5503
5504# Allows building of shared libraries
5505
5506    echo "$as_me:$LINENO: checking how to build libraries" >&5
5507echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
5508    # Check whether --enable-shared or --disable-shared was given.
5509if test "${enable_shared+set}" = set; then
5510  enableval="$enable_shared"
5511  tcl_ok=$enableval
5512else
5513  tcl_ok=yes
5514fi;
5515
5516    if test "${enable_shared+set}" = set; then
5517        enableval="$enable_shared"
5518        tcl_ok=$enableval
5519    else
5520        tcl_ok=yes
5521    fi
5522
5523    if test "$tcl_ok" = "yes" ; then
5524        echo "$as_me:$LINENO: result: shared" >&5
5525echo "${ECHO_T}shared" >&6
5526        SHARED_BUILD=1
5527    else
5528        echo "$as_me:$LINENO: result: static" >&5
5529echo "${ECHO_T}static" >&6
5530        SHARED_BUILD=0
5531
5532cat >>confdefs.h <<\_ACEOF
5533#define STATIC_BUILD 1
5534_ACEOF
5535
5536    fi
5537
5538
5539# Pull compiler / linker values from tclConfig.sh
5540CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
5541CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
5542LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
5543LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
5544SHLIB_LD=${TCL_SHLIB_LD}
5545STLIB_LD=${TCL_STLIB_LD}
5546SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
5547SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561#misc variables that need to be expanded for substitution into tcl
5562
5563oldprefix=$prefix
5564if test "x$prefix" = "xNONE" ; then
5565   prefix=$ac_default_prefix
5566fi
5567
5568eval "prefix_expanded=$prefix"
5569
5570# do this twice, since there is a nested variable of
5571# ${prefix} inside of ${sysconfdir}
5572eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
5573eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
5574
5575eval "localstatedir_expanded=$localstatedir"
5576
5577
5578prefix=$oldprefix
5579
5580
5581# Output
5582
5583                                                            ac_config_files="$ac_config_files Makefile Mk/dports.autoconf.mk doc/prefix.mtree doc/ports.conf src/darwinports1.0/darwinports_autoconf.tcl src/programs/Makefile"
5584
5585
5586cat >confcache <<\_ACEOF
5587# This file is a shell script that caches the results of configure
5588# tests run on this system so they can be shared between configure
5589# scripts and configure runs, see configure's option --config-cache.
5590# It is not useful on other systems.  If it contains results you don't
5591# want to keep, you may remove or edit it.
5592#
5593# config.status only pays attention to the cache file if you give it
5594# the --recheck option to rerun configure.
5595#
5596# `ac_cv_env_foo' variables (set or unset) will be overridden when
5597# loading this file, other *unset* `ac_cv_foo' will be assigned the
5598# following values.
5599
5600_ACEOF
5601
5602# The following way of writing the cache mishandles newlines in values,
5603# but we know of no workaround that is simple, portable, and efficient.
5604# So, don't put newlines in cache variables' values.
5605# Ultrix sh set writes to stderr and can't be redirected directly,
5606# and sets the high bit in the cache file unless we assign to the vars.
5607{
5608  (set) 2>&1 |
5609    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5610    *ac_space=\ *)
5611      # `set' does not quote correctly, so add quotes (double-quote
5612      # substitution turns \\\\ into \\, and sed turns \\ into \).
5613      sed -n \
5614        "s/'/'\\\\''/g;
5615          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5616      ;;
5617    *)
5618      # `set' quotes correctly as required by POSIX, so do not add quotes.
5619      sed -n \
5620        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5621      ;;
5622    esac;
5623} |
5624  sed '
5625     t clear
5626     : clear
5627     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5628     t end
5629     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5630     : end' >>confcache
5631if diff $cache_file confcache >/dev/null 2>&1; then :; else
5632  if test -w $cache_file; then
5633    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5634    cat confcache >$cache_file
5635  else
5636    echo "not updating unwritable cache $cache_file"
5637  fi
5638fi
5639rm -f confcache
5640
5641test "x$prefix" = xNONE && prefix=$ac_default_prefix
5642# Let make expand exec_prefix.
5643test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5644
5645# VPATH may cause trouble with some makes, so we remove $(srcdir),
5646# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5647# trailing colons and then remove the whole line if VPATH becomes empty
5648# (actually we leave an empty line to preserve line numbers).
5649if test "x$srcdir" = x.; then
5650  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5651s/:*\$(srcdir):*/:/;
5652s/:*\${srcdir}:*/:/;
5653s/:*@srcdir@:*/:/;
5654s/^\([^=]*=[    ]*\):*/\1/;
5655s/:*$//;
5656s/^[^=]*=[      ]*$//;
5657}'
5658fi
5659
5660DEFS=-DHAVE_CONFIG_H
5661
5662ac_libobjs=
5663ac_ltlibobjs=
5664for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5665  # 1. Remove the extension, and $U if already installed.
5666  ac_i=`echo "$ac_i" |
5667         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5668  # 2. Add them.
5669  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5670  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5671done
5672LIBOBJS=$ac_libobjs
5673
5674LTLIBOBJS=$ac_ltlibobjs
5675
5676
5677
5678: ${CONFIG_STATUS=./config.status}
5679ac_clean_files_save=$ac_clean_files
5680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5681{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5682echo "$as_me: creating $CONFIG_STATUS" >&6;}
5683cat >$CONFIG_STATUS <<_ACEOF
5684#! $SHELL
5685# Generated by $as_me.
5686# Run this file to recreate the current configuration.
5687# Compiler output produced by configure, useful for debugging
5688# configure, is in config.log if it exists.
5689
5690debug=false
5691ac_cs_recheck=false
5692ac_cs_silent=false
5693SHELL=\${CONFIG_SHELL-$SHELL}
5694_ACEOF
5695
5696cat >>$CONFIG_STATUS <<\_ACEOF
5697## --------------------- ##
5698## M4sh Initialization.  ##
5699## --------------------- ##
5700
5701# Be Bourne compatible
5702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5703  emulate sh
5704  NULLCMD=:
5705  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5706  # is contrary to our usage.  Disable this feature.
5707  alias -g '${1+"$@"}'='"$@"'
5708elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5709  set -o posix
5710fi
5711
5712# Support unset when possible.
5713if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5714  as_unset=unset
5715else
5716  as_unset=false
5717fi
5718
5719
5720# Work around bugs in pre-3.0 UWIN ksh.
5721$as_unset ENV MAIL MAILPATH
5722PS1='$ '
5723PS2='> '
5724PS4='+ '
5725
5726# NLS nuisances.
5727for as_var in \
5728  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5729  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5730  LC_TELEPHONE LC_TIME
5731do
5732  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5733    eval $as_var=C; export $as_var
5734  else
5735    $as_unset $as_var
5736  fi
5737done
5738
5739# Required to use basename.
5740if expr a : '\(a\)' >/dev/null 2>&1; then
5741  as_expr=expr
5742else
5743  as_expr=false
5744fi
5745
5746if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5747  as_basename=basename
5748else
5749  as_basename=false
5750fi
5751
5752
5753# Name of the executable.
5754as_me=`$as_basename "$0" ||
5755$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5756         X"$0" : 'X\(//\)$' \| \
5757         X"$0" : 'X\(/\)$' \| \
5758         .     : '\(.\)' 2>/dev/null ||
5759echo X/"$0" |
5760    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5761          /^X\/\(\/\/\)$/{ s//\1/; q; }
5762          /^X\/\(\/\).*/{ s//\1/; q; }
5763          s/.*/./; q'`
5764
5765
5766# PATH needs CR, and LINENO needs CR and PATH.
5767# Avoid depending upon Character Ranges.
5768as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5769as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5770as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5771as_cr_digits='0123456789'
5772as_cr_alnum=$as_cr_Letters$as_cr_digits
5773
5774# The user is always right.
5775if test "${PATH_SEPARATOR+set}" != set; then
5776  echo "#! /bin/sh" >conf$$.sh
5777  echo  "exit 0"   >>conf$$.sh
5778  chmod +x conf$$.sh
5779  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5780    PATH_SEPARATOR=';'
5781  else
5782    PATH_SEPARATOR=:
5783  fi
5784  rm -f conf$$.sh
5785fi
5786
5787
5788  as_lineno_1=$LINENO
5789  as_lineno_2=$LINENO
5790  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5791  test "x$as_lineno_1" != "x$as_lineno_2" &&
5792  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5793  # Find who we are.  Look in the path if we contain no path at all
5794  # relative or not.
5795  case $0 in
5796    *[\\/]* ) as_myself=$0 ;;
5797    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800  IFS=$as_save_IFS
5801  test -z "$as_dir" && as_dir=.
5802  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5803done
5804
5805       ;;
5806  esac
5807  # We did not find ourselves, most probably we were run as `sh COMMAND'
5808  # in which case we are not to be found in the path.
5809  if test "x$as_myself" = x; then
5810    as_myself=$0
5811  fi
5812  if test ! -f "$as_myself"; then
5813    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5814echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5815   { (exit 1); exit 1; }; }
5816  fi
5817  case $CONFIG_SHELL in
5818  '')
5819    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824  for as_base in sh bash ksh sh5; do
5825         case $as_dir in
5826         /*)
5827           if ("$as_dir/$as_base" -c '
5828  as_lineno_1=$LINENO
5829  as_lineno_2=$LINENO
5830  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5831  test "x$as_lineno_1" != "x$as_lineno_2" &&
5832  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5833             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5834             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5835             CONFIG_SHELL=$as_dir/$as_base
5836             export CONFIG_SHELL
5837             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5838           fi;;
5839         esac
5840       done
5841done
5842;;
5843  esac
5844
5845  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5846  # uniformly replaced by the line number.  The first 'sed' inserts a
5847  # line-number line before each line; the second 'sed' does the real
5848  # work.  The second script uses 'N' to pair each line-number line
5849  # with the numbered line, and appends trailing '-' during
5850  # substitution so that $LINENO is not a special case at line end.
5851  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5852  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5853  sed '=' <$as_myself |
5854    sed '
5855      N
5856      s,$,-,
5857      : loop
5858      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5859      t loop
5860      s,-$,,
5861      s,^['$as_cr_digits']*\n,,
5862    ' >$as_me.lineno &&
5863  chmod +x $as_me.lineno ||
5864    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5865echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5866   { (exit 1); exit 1; }; }
5867
5868  # Don't try to exec as it changes $[0], causing all sort of problems
5869  # (the dirname of $[0] is not the place where we might find the
5870  # original and so on.  Autoconf is especially sensible to this).
5871  . ./$as_me.lineno
5872  # Exit status is that of the last command.
5873  exit
5874}
5875
5876
5877case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5878  *c*,-n*) ECHO_N= ECHO_C='
5879' ECHO_T='      ' ;;
5880  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5881  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5882esac
5883
5884if expr a : '\(a\)' >/dev/null 2>&1; then
5885  as_expr=expr
5886else
5887  as_expr=false
5888fi
5889
5890rm -f conf$$ conf$$.exe conf$$.file
5891echo >conf$$.file
5892if ln -s conf$$.file conf$$ 2>/dev/null; then
5893  # We could just check for DJGPP; but this test a) works b) is more generic
5894  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5895  if test -f conf$$.exe; then
5896    # Don't use ln at all; we don't have any links
5897    as_ln_s='cp -p'
5898  else
5899    as_ln_s='ln -s'
5900  fi
5901elif ln conf$$.file conf$$ 2>/dev/null; then
5902  as_ln_s=ln
5903else
5904  as_ln_s='cp -p'
5905fi
5906rm -f conf$$ conf$$.exe conf$$.file
5907
5908if mkdir -p . 2>/dev/null; then
5909  as_mkdir_p=:
5910else
5911  as_mkdir_p=false
5912fi
5913
5914as_executable_p="test -f"
5915
5916# Sed expression to map a string onto a valid CPP name.
5917as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5918
5919# Sed expression to map a string onto a valid variable name.
5920as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5921
5922
5923# IFS
5924# We need space, tab and new line, in precisely that order.
5925as_nl='
5926'
5927IFS="   $as_nl"
5928
5929# CDPATH.
5930$as_unset CDPATH
5931
5932exec 6>&1
5933
5934# Open the log real soon, to keep \$[0] and so on meaningful, and to
5935# report actual input values of CONFIG_FILES etc. instead of their
5936# values after options handling.  Logging --version etc. is OK.
5937exec 5>>config.log
5938{
5939  echo
5940  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5941## Running $as_me. ##
5942_ASBOX
5943} >&5
5944cat >&5 <<_CSEOF
5945
5946This file was extended by OpenDarwin DarwinPorts $as_me 1.0, which was
5947generated by GNU Autoconf 2.57.  Invocation command line was
5948
5949  CONFIG_FILES    = $CONFIG_FILES
5950  CONFIG_HEADERS  = $CONFIG_HEADERS
5951  CONFIG_LINKS    = $CONFIG_LINKS
5952  CONFIG_COMMANDS = $CONFIG_COMMANDS
5953  $ $0 $@
5954
5955_CSEOF
5956echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5957echo >&5
5958_ACEOF
5959
5960# Files that config.status was made for.
5961if test -n "$ac_config_files"; then
5962  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5963fi
5964
5965if test -n "$ac_config_headers"; then
5966  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5967fi
5968
5969if test -n "$ac_config_links"; then
5970  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5971fi
5972
5973if test -n "$ac_config_commands"; then
5974  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5975fi
5976
5977cat >>$CONFIG_STATUS <<\_ACEOF
5978
5979ac_cs_usage="\
5980\`$as_me' instantiates files from templates according to the
5981current configuration.
5982
5983Usage: $0 [OPTIONS] [FILE]...
5984
5985  -h, --help       print this help, then exit
5986  -V, --version    print version number, then exit
5987  -q, --quiet      do not print progress messages
5988  -d, --debug      don't remove temporary files
5989      --recheck    update $as_me by reconfiguring in the same conditions
5990  --file=FILE[:TEMPLATE]
5991                   instantiate the configuration file FILE
5992  --header=FILE[:TEMPLATE]
5993                   instantiate the configuration header FILE
5994
5995Configuration files:
5996$config_files
5997
5998Configuration headers:
5999$config_headers
6000
6001Report bugs to <bug-autoconf@gnu.org>."
6002_ACEOF
6003
6004cat >>$CONFIG_STATUS <<_ACEOF
6005ac_cs_version="\\
6006OpenDarwin DarwinPorts config.status 1.0
6007configured by $0, generated by GNU Autoconf 2.57,
6008  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6009
6010Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6011Free Software Foundation, Inc.
6012This config.status script is free software; the Free Software Foundation
6013gives unlimited permission to copy, distribute and modify it."
6014srcdir=$srcdir
6015INSTALL="$INSTALL"
6016_ACEOF
6017
6018cat >>$CONFIG_STATUS <<\_ACEOF
6019# If no file are specified by the user, then we need to provide default
6020# value.  By we need to know if files were specified by the user.
6021ac_need_defaults=:
6022while test $# != 0
6023do
6024  case $1 in
6025  --*=*)
6026    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6027    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6028    ac_shift=:
6029    ;;
6030  -*)
6031    ac_option=$1
6032    ac_optarg=$2
6033    ac_shift=shift
6034    ;;
6035  *) # This is not an option, so the user has probably given explicit
6036     # arguments.
6037     ac_option=$1
6038     ac_need_defaults=false;;
6039  esac
6040
6041  case $ac_option in
6042  # Handling of the options.
6043_ACEOF
6044cat >>$CONFIG_STATUS <<\_ACEOF
6045  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6046    ac_cs_recheck=: ;;
6047  --version | --vers* | -V )
6048    echo "$ac_cs_version"; exit 0 ;;
6049  --he | --h)
6050    # Conflict between --help and --header
6051    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6052Try \`$0 --help' for more information." >&5
6053echo "$as_me: error: ambiguous option: $1
6054Try \`$0 --help' for more information." >&2;}
6055   { (exit 1); exit 1; }; };;
6056  --help | --hel | -h )
6057    echo "$ac_cs_usage"; exit 0 ;;
6058  --debug | --d* | -d )
6059    debug=: ;;
6060  --file | --fil | --fi | --f )
6061    $ac_shift
6062    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6063    ac_need_defaults=false;;
6064  --header | --heade | --head | --hea )
6065    $ac_shift
6066    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6067    ac_need_defaults=false;;
6068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6069  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6070    ac_cs_silent=: ;;
6071
6072  # This is an error.
6073  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6074Try \`$0 --help' for more information." >&5
6075echo "$as_me: error: unrecognized option: $1
6076Try \`$0 --help' for more information." >&2;}
6077   { (exit 1); exit 1; }; } ;;
6078
6079  *) ac_config_targets="$ac_config_targets $1" ;;
6080
6081  esac
6082  shift
6083done
6084
6085ac_configure_extra_args=
6086
6087if $ac_cs_silent; then
6088  exec 6>/dev/null
6089  ac_configure_extra_args="$ac_configure_extra_args --silent"
6090fi
6091
6092_ACEOF
6093cat >>$CONFIG_STATUS <<_ACEOF
6094if \$ac_cs_recheck; then
6095  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6096  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6097fi
6098
6099_ACEOF
6100
6101
6102
6103
6104
6105cat >>$CONFIG_STATUS <<\_ACEOF
6106for ac_config_target in $ac_config_targets
6107do
6108  case "$ac_config_target" in
6109  # Handling of arguments.
6110  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6111  "Mk/dports.autoconf.mk" ) CONFIG_FILES="$CONFIG_FILES Mk/dports.autoconf.mk" ;;
6112  "doc/prefix.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
6113  "doc/ports.conf" ) CONFIG_FILES="$CONFIG_FILES doc/ports.conf" ;;
6114  "src/darwinports1.0/darwinports_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_autoconf.tcl" ;;
6115  "src/programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
6116  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6117  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6118echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6119   { (exit 1); exit 1; }; };;
6120  esac
6121done
6122
6123# If the user did not use the arguments to specify the items to instantiate,
6124# then the envvar interface is used.  Set only those that are not.
6125# We use the long form for the default assignment because of an extremely
6126# bizarre bug on SunOS 4.1.3.
6127if $ac_need_defaults; then
6128  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6129  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6130fi
6131
6132# Have a temporary directory for convenience.  Make it in the build tree
6133# simply because there is no reason to put it here, and in addition,
6134# creating and moving files from /tmp can sometimes cause problems.
6135# Create a temporary directory, and hook for its removal unless debugging.
6136$debug ||
6137{
6138  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6139  trap '{ (exit 1); exit 1; }' 1 2 13 15
6140}
6141
6142# Create a (secure) tmp directory for tmp files.
6143
6144{
6145  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6146  test -n "$tmp" && test -d "$tmp"
6147}  ||
6148{
6149  tmp=./confstat$$-$RANDOM
6150  (umask 077 && mkdir $tmp)
6151} ||
6152{
6153   echo "$me: cannot create a temporary directory in ." >&2
6154   { (exit 1); exit 1; }
6155}
6156
6157_ACEOF
6158
6159cat >>$CONFIG_STATUS <<_ACEOF
6160
6161#
6162# CONFIG_FILES section.
6163#
6164
6165# No need to generate the scripts if there are no CONFIG_FILES.
6166# This happens for instance when ./config.status config.h
6167if test -n "\$CONFIG_FILES"; then
6168  # Protect against being on the right side of a sed subst in config.status.
6169  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6170   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6171s,@SHELL@,$SHELL,;t t
6172s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6173s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6174s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6175s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6176s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6177s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6178s,@exec_prefix@,$exec_prefix,;t t
6179s,@prefix@,$prefix,;t t
6180s,@program_transform_name@,$program_transform_name,;t t
6181s,@bindir@,$bindir,;t t
6182s,@sbindir@,$sbindir,;t t
6183s,@libexecdir@,$libexecdir,;t t
6184s,@datadir@,$datadir,;t t
6185s,@sysconfdir@,$sysconfdir,;t t
6186s,@sharedstatedir@,$sharedstatedir,;t t
6187s,@localstatedir@,$localstatedir,;t t
6188s,@libdir@,$libdir,;t t
6189s,@includedir@,$includedir,;t t
6190s,@oldincludedir@,$oldincludedir,;t t
6191s,@infodir@,$infodir,;t t
6192s,@mandir@,$mandir,;t t
6193s,@build_alias@,$build_alias,;t t
6194s,@host_alias@,$host_alias,;t t
6195s,@target_alias@,$target_alias,;t t
6196s,@DEFS@,$DEFS,;t t
6197s,@ECHO_C@,$ECHO_C,;t t
6198s,@ECHO_N@,$ECHO_N,;t t
6199s,@ECHO_T@,$ECHO_T,;t t
6200s,@LIBS@,$LIBS,;t t
6201s,@build@,$build,;t t
6202s,@build_cpu@,$build_cpu,;t t
6203s,@build_vendor@,$build_vendor,;t t
6204s,@build_os@,$build_os,;t t
6205s,@host@,$host,;t t
6206s,@host_cpu@,$host_cpu,;t t
6207s,@host_vendor@,$host_vendor,;t t
6208s,@host_os@,$host_os,;t t
6209s,@target@,$target,;t t
6210s,@target_cpu@,$target_cpu,;t t
6211s,@target_vendor@,$target_vendor,;t t
6212s,@target_os@,$target_os,;t t
6213s,@CC@,$CC,;t t
6214s,@CFLAGS@,$CFLAGS,;t t
6215s,@LDFLAGS@,$LDFLAGS,;t t
6216s,@CPPFLAGS@,$CPPFLAGS,;t t
6217s,@ac_ct_CC@,$ac_ct_CC,;t t
6218s,@EXEEXT@,$EXEEXT,;t t
6219s,@OBJEXT@,$OBJEXT,;t t
6220s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6221s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6222s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6223s,@SET_MAKE@,$SET_MAKE,;t t
6224s,@MTREE@,$MTREE,;t t
6225s,@subdirs@,$subdirs,;t t
6226s,@REPLACEMENT_PROGS@,$REPLACEMENT_PROGS,;t t
6227s,@CPP@,$CPP,;t t
6228s,@EGREP@,$EGREP,;t t
6229s,@MD5_LIBS@,$MD5_LIBS,;t t
6230s,@DPORTSDIR@,$DPORTSDIR,;t t
6231s,@PORTCONFIGDIR@,$PORTCONFIGDIR,;t t
6232s,@DSTUSR@,$DSTUSR,;t t
6233s,@DSTGRP@,$DSTGRP,;t t
6234s,@TCL_VERSION@,$TCL_VERSION,;t t
6235s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
6236s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
6237s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
6238s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
6239s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
6240s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
6241s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
6242s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
6243s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
6244s,@TCLSH@,$TCLSH,;t t
6245s,@TCL_PACKAGE_DIR@,$TCL_PACKAGE_DIR,;t t
6246s,@INCLUDES@,$INCLUDES,;t t
6247s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
6248s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
6249s,@TCL_DEFS@,$TCL_DEFS,;t t
6250s,@STLIB_LD@,$STLIB_LD,;t t
6251s,@SHLIB_LD@,$SHLIB_LD,;t t
6252s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
6253s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
6254s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
6255s,@TCL_CC@,$TCL_CC,;t t
6256s,@prefix_expanded@,$prefix_expanded,;t t
6257s,@PORTCONFIGDIR_EXPANDED@,$PORTCONFIGDIR_EXPANDED,;t t
6258s,@localstatedir_expanded@,$localstatedir_expanded,;t t
6259s,@LIBOBJS@,$LIBOBJS,;t t
6260s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6261CEOF
6262
6263_ACEOF
6264
6265  cat >>$CONFIG_STATUS <<\_ACEOF
6266  # Split the substitutions into bite-sized pieces for seds with
6267  # small command number limits, like on Digital OSF/1 and HP-UX.
6268  ac_max_sed_lines=48
6269  ac_sed_frag=1 # Number of current file.
6270  ac_beg=1 # First line for current file.
6271  ac_end=$ac_max_sed_lines # Line after last line for current file.
6272  ac_more_lines=:
6273  ac_sed_cmds=
6274  while $ac_more_lines; do
6275    if test $ac_beg -gt 1; then
6276      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6277    else
6278      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6279    fi
6280    if test ! -s $tmp/subs.frag; then
6281      ac_more_lines=false
6282    else
6283      # The purpose of the label and of the branching condition is to
6284      # speed up the sed processing (if there are no `@' at all, there
6285      # is no need to browse any of the substitutions).
6286      # These are the two extra sed commands mentioned above.
6287      (echo ':t
6288  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6289      if test -z "$ac_sed_cmds"; then
6290        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6291      else
6292        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6293      fi
6294      ac_sed_frag=`expr $ac_sed_frag + 1`
6295      ac_beg=$ac_end
6296      ac_end=`expr $ac_end + $ac_max_sed_lines`
6297    fi
6298  done
6299  if test -z "$ac_sed_cmds"; then
6300    ac_sed_cmds=cat
6301  fi
6302fi # test -n "$CONFIG_FILES"
6303
6304_ACEOF
6305cat >>$CONFIG_STATUS <<\_ACEOF
6306for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6307  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6308  case $ac_file in
6309  - | *:- | *:-:* ) # input from stdin
6310        cat >$tmp/stdin
6311        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6312        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6313  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6314        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6315  * )   ac_file_in=$ac_file.in ;;
6316  esac
6317
6318  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6319  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6320$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6321         X"$ac_file" : 'X\(//\)[^/]' \| \
6322         X"$ac_file" : 'X\(//\)$' \| \
6323         X"$ac_file" : 'X\(/\)' \| \
6324         .     : '\(.\)' 2>/dev/null ||
6325echo X"$ac_file" |
6326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6327          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6328          /^X\(\/\/\)$/{ s//\1/; q; }
6329          /^X\(\/\).*/{ s//\1/; q; }
6330          s/.*/./; q'`
6331  { if $as_mkdir_p; then
6332    mkdir -p "$ac_dir"
6333  else
6334    as_dir="$ac_dir"
6335    as_dirs=
6336    while test ! -d "$as_dir"; do
6337      as_dirs="$as_dir $as_dirs"
6338      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6340         X"$as_dir" : 'X\(//\)[^/]' \| \
6341         X"$as_dir" : 'X\(//\)$' \| \
6342         X"$as_dir" : 'X\(/\)' \| \
6343         .     : '\(.\)' 2>/dev/null ||
6344echo X"$as_dir" |
6345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6346          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6347          /^X\(\/\/\)$/{ s//\1/; q; }
6348          /^X\(\/\).*/{ s//\1/; q; }
6349          s/.*/./; q'`
6350    done
6351    test ! -n "$as_dirs" || mkdir $as_dirs
6352  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6353echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6354   { (exit 1); exit 1; }; }; }
6355
6356  ac_builddir=.
6357
6358if test "$ac_dir" != .; then
6359  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6360  # A "../" for each directory in $ac_dir_suffix.
6361  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6362else
6363  ac_dir_suffix= ac_top_builddir=
6364fi
6365
6366case $srcdir in
6367  .)  # No --srcdir option.  We are building in place.
6368    ac_srcdir=.
6369    if test -z "$ac_top_builddir"; then
6370       ac_top_srcdir=.
6371    else
6372       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6373    fi ;;
6374  [\\/]* | ?:[\\/]* )  # Absolute path.
6375    ac_srcdir=$srcdir$ac_dir_suffix;
6376    ac_top_srcdir=$srcdir ;;
6377  *) # Relative path.
6378    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6379    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6380esac
6381# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6382# absolute.
6383ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6384ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6385ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6386ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6387
6388
6389  case $INSTALL in
6390  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6391  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6392  esac
6393
6394  if test x"$ac_file" != x-; then
6395    { echo "$as_me:$LINENO: creating $ac_file" >&5
6396echo "$as_me: creating $ac_file" >&6;}
6397    rm -f "$ac_file"
6398  fi
6399  # Let's still pretend it is `configure' which instantiates (i.e., don't
6400  # use $as_me), people would be surprised to read:
6401  #    /* config.h.  Generated by config.status.  */
6402  if test x"$ac_file" = x-; then
6403    configure_input=
6404  else
6405    configure_input="$ac_file.  "
6406  fi
6407  configure_input=$configure_input"Generated from `echo $ac_file_in |
6408                                     sed 's,.*/,,'` by configure."
6409
6410  # First look for the input files in the build tree, otherwise in the
6411  # src tree.
6412  ac_file_inputs=`IFS=:
6413    for f in $ac_file_in; do
6414      case $f in
6415      -) echo $tmp/stdin ;;
6416      [\\/$]*)
6417         # Absolute (can't be DOS-style, as IFS=:)
6418         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6419echo "$as_me: error: cannot find input file: $f" >&2;}
6420   { (exit 1); exit 1; }; }
6421         echo $f;;
6422      *) # Relative
6423         if test -f "$f"; then
6424           # Build tree
6425           echo $f
6426         elif test -f "$srcdir/$f"; then
6427           # Source tree
6428           echo $srcdir/$f
6429         else
6430           # /dev/null tree
6431           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6432echo "$as_me: error: cannot find input file: $f" >&2;}
6433   { (exit 1); exit 1; }; }
6434         fi;;
6435      esac
6436    done` || { (exit 1); exit 1; }
6437_ACEOF
6438cat >>$CONFIG_STATUS <<_ACEOF
6439  sed "$ac_vpsub
6440$extrasub
6441_ACEOF
6442cat >>$CONFIG_STATUS <<\_ACEOF
6443:t
6444/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6445s,@configure_input@,$configure_input,;t t
6446s,@srcdir@,$ac_srcdir,;t t
6447s,@abs_srcdir@,$ac_abs_srcdir,;t t
6448s,@top_srcdir@,$ac_top_srcdir,;t t
6449s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6450s,@builddir@,$ac_builddir,;t t
6451s,@abs_builddir@,$ac_abs_builddir,;t t
6452s,@top_builddir@,$ac_top_builddir,;t t
6453s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6454s,@INSTALL@,$ac_INSTALL,;t t
6455" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6456  rm -f $tmp/stdin
6457  if test x"$ac_file" != x-; then
6458    mv $tmp/out $ac_file
6459  else
6460    cat $tmp/out
6461    rm -f $tmp/out
6462  fi
6463
6464done
6465_ACEOF
6466cat >>$CONFIG_STATUS <<\_ACEOF
6467
6468#
6469# CONFIG_HEADER section.
6470#
6471
6472# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6473# NAME is the cpp macro being defined and VALUE is the value it is being given.
6474#
6475# ac_d sets the value in "#define NAME VALUE" lines.
6476ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6477ac_dB='[        ].*$,\1#\2'
6478ac_dC=' '
6479ac_dD=',;t'
6480# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6481ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6482ac_uB='$,\1#\2define\3'
6483ac_uC=' '
6484ac_uD=',;t'
6485
6486for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6487  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6488  case $ac_file in
6489  - | *:- | *:-:* ) # input from stdin
6490        cat >$tmp/stdin
6491        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6492        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6493  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6494        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6495  * )   ac_file_in=$ac_file.in ;;
6496  esac
6497
6498  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6499echo "$as_me: creating $ac_file" >&6;}
6500
6501  # First look for the input files in the build tree, otherwise in the
6502  # src tree.
6503  ac_file_inputs=`IFS=:
6504    for f in $ac_file_in; do
6505      case $f in
6506      -) echo $tmp/stdin ;;
6507      [\\/$]*)
6508         # Absolute (can't be DOS-style, as IFS=:)
6509         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6510echo "$as_me: error: cannot find input file: $f" >&2;}
6511   { (exit 1); exit 1; }; }
6512         echo $f;;
6513      *) # Relative
6514         if test -f "$f"; then
6515           # Build tree
6516           echo $f
6517         elif test -f "$srcdir/$f"; then
6518           # Source tree
6519           echo $srcdir/$f
6520         else
6521           # /dev/null tree
6522           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6523echo "$as_me: error: cannot find input file: $f" >&2;}
6524   { (exit 1); exit 1; }; }
6525         fi;;
6526      esac
6527    done` || { (exit 1); exit 1; }
6528  # Remove the trailing spaces.
6529  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6530
6531_ACEOF
6532
6533# Transform confdefs.h into two sed scripts, `conftest.defines' and
6534# `conftest.undefs', that substitutes the proper values into
6535# config.h.in to produce config.h.  The first handles `#define'
6536# templates, and the second `#undef' templates.
6537# And first: Protect against being on the right side of a sed subst in
6538# config.status.  Protect against being in an unquoted here document
6539# in config.status.
6540rm -f conftest.defines conftest.undefs
6541# Using a here document instead of a string reduces the quoting nightmare.
6542# Putting comments in sed scripts is not portable.
6543#
6544# `end' is used to avoid that the second main sed command (meant for
6545# 0-ary CPP macros) applies to n-ary macro definitions.
6546# See the Autoconf documentation for `clear'.
6547cat >confdef2sed.sed <<\_ACEOF
6548s/[\\&,]/\\&/g
6549s,[\\$`],\\&,g
6550t clear
6551: clear
6552s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6553t end
6554s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6555: end
6556_ACEOF
6557# If some macros were called several times there might be several times
6558# the same #defines, which is useless.  Nevertheless, we may not want to
6559# sort them, since we want the *last* AC-DEFINE to be honored.
6560uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6561sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6562rm -f confdef2sed.sed
6563
6564# This sed command replaces #undef with comments.  This is necessary, for
6565# example, in the case of _POSIX_SOURCE, which is predefined and required
6566# on some systems where configure will not decide to define it.
6567cat >>conftest.undefs <<\_ACEOF
6568s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6569_ACEOF
6570
6571# Break up conftest.defines because some shells have a limit on the size
6572# of here documents, and old seds have small limits too (100 cmds).
6573echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6574echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6575echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6576echo '  :' >>$CONFIG_STATUS
6577rm -f conftest.tail
6578while grep . conftest.defines >/dev/null
6579do
6580  # Write a limited-size here document to $tmp/defines.sed.
6581  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6582  # Speed up: don't consider the non `#define' lines.
6583  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6584  # Work around the forget-to-reset-the-flag bug.
6585  echo 't clr' >>$CONFIG_STATUS
6586  echo ': clr' >>$CONFIG_STATUS
6587  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6588  echo 'CEOF
6589  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6590  rm -f $tmp/in
6591  mv $tmp/out $tmp/in
6592' >>$CONFIG_STATUS
6593  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6594  rm -f conftest.defines
6595  mv conftest.tail conftest.defines
6596done
6597rm -f conftest.defines
6598echo '  fi # grep' >>$CONFIG_STATUS
6599echo >>$CONFIG_STATUS
6600
6601# Break up conftest.undefs because some shells have a limit on the size
6602# of here documents, and old seds have small limits too (100 cmds).
6603echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6604rm -f conftest.tail
6605while grep . conftest.undefs >/dev/null
6606do
6607  # Write a limited-size here document to $tmp/undefs.sed.
6608  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6609  # Speed up: don't consider the non `#undef'
6610  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6611  # Work around the forget-to-reset-the-flag bug.
6612  echo 't clr' >>$CONFIG_STATUS
6613  echo ': clr' >>$CONFIG_STATUS
6614  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6615  echo 'CEOF
6616  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6617  rm -f $tmp/in
6618  mv $tmp/out $tmp/in
6619' >>$CONFIG_STATUS
6620  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6621  rm -f conftest.undefs
6622  mv conftest.tail conftest.undefs
6623done
6624rm -f conftest.undefs
6625
6626cat >>$CONFIG_STATUS <<\_ACEOF
6627  # Let's still pretend it is `configure' which instantiates (i.e., don't
6628  # use $as_me), people would be surprised to read:
6629  #    /* config.h.  Generated by config.status.  */
6630  if test x"$ac_file" = x-; then
6631    echo "/* Generated by configure.  */" >$tmp/config.h
6632  else
6633    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6634  fi
6635  cat $tmp/in >>$tmp/config.h
6636  rm -f $tmp/in
6637  if test x"$ac_file" != x-; then
6638    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6639      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6640echo "$as_me: $ac_file is unchanged" >&6;}
6641    else
6642      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6644         X"$ac_file" : 'X\(//\)[^/]' \| \
6645         X"$ac_file" : 'X\(//\)$' \| \
6646         X"$ac_file" : 'X\(/\)' \| \
6647         .     : '\(.\)' 2>/dev/null ||
6648echo X"$ac_file" |
6649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6650          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6651          /^X\(\/\/\)$/{ s//\1/; q; }
6652          /^X\(\/\).*/{ s//\1/; q; }
6653          s/.*/./; q'`
6654      { if $as_mkdir_p; then
6655    mkdir -p "$ac_dir"
6656  else
6657    as_dir="$ac_dir"
6658    as_dirs=
6659    while test ! -d "$as_dir"; do
6660      as_dirs="$as_dir $as_dirs"
6661      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6663         X"$as_dir" : 'X\(//\)[^/]' \| \
6664         X"$as_dir" : 'X\(//\)$' \| \
6665         X"$as_dir" : 'X\(/\)' \| \
6666         .     : '\(.\)' 2>/dev/null ||
6667echo X"$as_dir" |
6668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6669          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6670          /^X\(\/\/\)$/{ s//\1/; q; }
6671          /^X\(\/\).*/{ s//\1/; q; }
6672          s/.*/./; q'`
6673    done
6674    test ! -n "$as_dirs" || mkdir $as_dirs
6675  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6676echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6677   { (exit 1); exit 1; }; }; }
6678
6679      rm -f $ac_file
6680      mv $tmp/config.h $ac_file
6681    fi
6682  else
6683    cat $tmp/config.h
6684    rm -f $tmp/config.h
6685  fi
6686done
6687_ACEOF
6688
6689cat >>$CONFIG_STATUS <<\_ACEOF
6690
6691{ (exit 0); exit 0; }
6692_ACEOF
6693chmod +x $CONFIG_STATUS
6694ac_clean_files=$ac_clean_files_save
6695
6696
6697# configure is writing to config.log, and then calls config.status.
6698# config.status does its own redirection, appending to config.log.
6699# Unfortunately, on DOS this fails, as config.log is still kept open
6700# by configure, so config.status won't be able to write to it; its
6701# output is simply discarded.  So we exec the FD to /dev/null,
6702# effectively closing config.log, so it can be properly (re)opened and
6703# appended to by config.status.  When coming back to configure, we
6704# need to make the FD available again.
6705if test "$no_create" != yes; then
6706  ac_cs_success=:
6707  ac_config_status_args=
6708  test "$silent" = yes &&
6709    ac_config_status_args="$ac_config_status_args --quiet"
6710  exec 5>/dev/null
6711  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6712  exec 5>>config.log
6713  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6714  # would make configure fail if this is the last instruction.
6715  $ac_cs_success || { (exit 1); exit 1; }
6716fi
6717
6718#
6719# CONFIG_SUBDIRS section.
6720#
6721if test "$no_recursion" != yes; then
6722
6723  # Remove --cache-file and --srcdir arguments so they do not pile up.
6724  ac_sub_configure_args=
6725  ac_prev=
6726  for ac_arg in $ac_configure_args; do
6727    if test -n "$ac_prev"; then
6728      ac_prev=
6729      continue
6730    fi
6731    case $ac_arg in
6732    -cache-file | --cache-file | --cache-fil | --cache-fi \
6733    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6734      ac_prev=cache_file ;;
6735    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6736    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6737    | --c=*)
6738      ;;
6739    --config-cache | -C)
6740      ;;
6741    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6742      ac_prev=srcdir ;;
6743    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6744      ;;
6745    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6746      ac_prev=prefix ;;
6747    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6748      ;;
6749    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6750    esac
6751  done
6752
6753  # Always prepend --prefix to ensure using the same prefix
6754  # in subdir configurations.
6755  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6756
6757  ac_popdir=`pwd`
6758  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6759
6760    # Do not complain, so a configure script can configure whichever
6761    # parts of a large source tree are present.
6762    test -d $srcdir/$ac_dir || continue
6763
6764    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6765echo "$as_me: configuring in $ac_dir" >&6;}
6766    { if $as_mkdir_p; then
6767    mkdir -p "$ac_dir"
6768  else
6769    as_dir="$ac_dir"
6770    as_dirs=
6771    while test ! -d "$as_dir"; do
6772      as_dirs="$as_dir $as_dirs"
6773      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6775         X"$as_dir" : 'X\(//\)[^/]' \| \
6776         X"$as_dir" : 'X\(//\)$' \| \
6777         X"$as_dir" : 'X\(/\)' \| \
6778         .     : '\(.\)' 2>/dev/null ||
6779echo X"$as_dir" |
6780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6781          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6782          /^X\(\/\/\)$/{ s//\1/; q; }
6783          /^X\(\/\).*/{ s//\1/; q; }
6784          s/.*/./; q'`
6785    done
6786    test ! -n "$as_dirs" || mkdir $as_dirs
6787  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6788echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6789   { (exit 1); exit 1; }; }; }
6790
6791    ac_builddir=.
6792
6793if test "$ac_dir" != .; then
6794  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6795  # A "../" for each directory in $ac_dir_suffix.
6796  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6797else
6798  ac_dir_suffix= ac_top_builddir=
6799fi
6800
6801case $srcdir in
6802  .)  # No --srcdir option.  We are building in place.
6803    ac_srcdir=.
6804    if test -z "$ac_top_builddir"; then
6805       ac_top_srcdir=.
6806    else
6807       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6808    fi ;;
6809  [\\/]* | ?:[\\/]* )  # Absolute path.
6810    ac_srcdir=$srcdir$ac_dir_suffix;
6811    ac_top_srcdir=$srcdir ;;
6812  *) # Relative path.
6813    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6814    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6815esac
6816# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6817# absolute.
6818ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6819ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6820ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6821ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6822
6823
6824    cd $ac_dir
6825
6826    # Check for guested configure; otherwise get Cygnus style configure.
6827    if test -f $ac_srcdir/configure.gnu; then
6828      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6829    elif test -f $ac_srcdir/configure; then
6830      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6831    elif test -f $ac_srcdir/configure.in; then
6832      ac_sub_configure=$ac_configure
6833    else
6834      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6835echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6836      ac_sub_configure=
6837    fi
6838
6839    # The recursion is here.
6840    if test -n "$ac_sub_configure"; then
6841      # Make the cache file name correct relative to the subdirectory.
6842      case $cache_file in
6843      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6844      *) # Relative path.
6845        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6846      esac
6847
6848      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6849echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6850      # The eval makes quoting arguments work.
6851      eval $ac_sub_configure $ac_sub_configure_args \
6852           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6853        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6854echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6855   { (exit 1); exit 1; }; }
6856    fi
6857
6858    cd $ac_popdir
6859  done
6860fi
6861
Note: See TracBrowser for help on using the repository browser.